python: Memory leak: Free roots array along handle close path.
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-24 22:09+0000\n"
12 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
13 "Last-Translator: rjones <rjones@redhat.com>\n"
14 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
15 "Language: uk\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3
28 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
29 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
30 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
31 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
32 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
33 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
34 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
35 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
36 #: ../test-tool/libguestfs-test-tool.pod:3
37 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
38 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
39 #: ../tools/virt-win-reg.pl:35
40 msgid "NAME"
41 msgstr "НАЗВА"
42
43 #. type: textblock
44 #: ../align/virt-alignment-scan.pod:5
45 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
46 msgstr ""
47
48 #. type: =head1
49 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
50 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
51 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
52 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
53 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
54 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
55 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
56 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
57 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
58 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
59 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
60 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
61 #: ../test-tool/libguestfs-test-tool.pod:7
62 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
63 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
64 #: ../tools/virt-win-reg.pl:39
65 msgid "SYNOPSIS"
66 msgstr "КОРОТКИЙ ОПИС"
67
68 #. type: verbatim
69 #: ../align/virt-alignment-scan.pod:9
70 #, no-wrap
71 msgid ""
72 " virt-alignment-scan [--options] -d domname\n"
73 "\n"
74 msgstr ""
75
76 #. type: verbatim
77 #: ../align/virt-alignment-scan.pod:11
78 #, no-wrap
79 msgid ""
80 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
81 "\n"
82 msgstr ""
83
84 #. type: =head1
85 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
86 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
87 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
88 #: ../erlang/examples/guestfs-erlang.pod:16
89 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
90 #: ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30
91 #: ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13
92 #: ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15
93 #: ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19
94 #: ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25
95 #: ../perl/examples/guestfs-perl.pod:18
96 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
97 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
98 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
99 #: ../test-tool/libguestfs-test-tool.pod:11
100 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
101 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
102 #: ../tools/virt-win-reg.pl:63
103 msgid "DESCRIPTION"
104 msgstr "ОПИС"
105
106 #. type: textblock
107 #: ../align/virt-alignment-scan.pod:15
108 msgid ""
109 "When older operating systems install themselves, the partitioning tools "
110 "place partitions at a sector misaligned with the underlying storage "
111 "(commonly the first partition starts on sector C<63>).  Misaligned "
112 "partitions can result in an operating system issuing more I/O than should be "
113 "necessary."
114 msgstr ""
115
116 #. type: textblock
117 #: ../align/virt-alignment-scan.pod:21
118 msgid ""
119 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
120 "machines and disk images and warns you if there are alignment problems."
121 msgstr ""
122
123 #. type: textblock
124 #: ../align/virt-alignment-scan.pod:25
125 msgid ""
126 "Currently there is no virt tool for fixing alignment problems.  You can only "
127 "reinstall the guest operating system.  The following NetApp document "
128 "summarises the problem and possible solutions: L<http://media.netapp.com/"
129 "documents/tr-3747.pdf>"
130 msgstr ""
131
132 #. type: =head1
133 #: ../align/virt-alignment-scan.pod:30
134 msgid "OUTPUT"
135 msgstr ""
136
137 #. type: textblock
138 #: ../align/virt-alignment-scan.pod:32
139 msgid "To run this tool on a disk image directly, use the I<-a> option:"
140 msgstr ""
141
142 #. type: verbatim
143 #: ../align/virt-alignment-scan.pod:34
144 #, no-wrap
145 msgid ""
146 " $ virt-alignment-scan -a winxp.img\n"
147 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
148 "\n"
149 msgstr ""
150
151 #. type: verbatim
152 #: ../align/virt-alignment-scan.pod:37
153 #, no-wrap
154 msgid ""
155 " $ virt-alignment-scan -a fedora16.img\n"
156 " /dev/sda1      1048576         1024K   ok\n"
157 " /dev/sda2      2097152         2048K   ok\n"
158 " /dev/sda3    526385152         2048K   ok\n"
159 "\n"
160 msgstr ""
161
162 #. type: textblock
163 #: ../align/virt-alignment-scan.pod:42
164 msgid ""
165 "To run the tool on a guest known to libvirt, use the I<-d> option and "
166 "possibly the I<-c> option:"
167 msgstr ""
168
169 #. type: verbatim
170 #: ../align/virt-alignment-scan.pod:45
171 #, no-wrap
172 msgid ""
173 " # virt-alignment-scan -d RHEL5\n"
174 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
175 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
176 "\n"
177 msgstr ""
178
179 #. type: verbatim
180 #: ../align/virt-alignment-scan.pod:49
181 #, no-wrap
182 msgid ""
183 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
184 " /dev/sda1      1048576         1024K   ok\n"
185 " /dev/sda2    105906176         1024K   ok\n"
186 " /dev/sdb1        65536           64K   ok\n"
187 "\n"
188 msgstr ""
189
190 #. type: textblock
191 #: ../align/virt-alignment-scan.pod:54
192 msgid ""
193 "The output consists of 4 or more whitespace-separated columns.  Only the "
194 "first 4 columns are signficant if you want to parse this from a program.  "
195 "The columns are:"
196 msgstr ""
197
198 #. type: =item
199 #: ../align/virt-alignment-scan.pod:60
200 msgid "col 1"
201 msgstr ""
202
203 #. type: textblock
204 #: ../align/virt-alignment-scan.pod:62
205 msgid ""
206 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
207 "on the first block device)"
208 msgstr ""
209
210 #. type: =item
211 #: ../align/virt-alignment-scan.pod:65
212 msgid "col 2"
213 msgstr ""
214
215 #. type: textblock
216 #: ../align/virt-alignment-scan.pod:67
217 msgid "the start of the partition in bytes"
218 msgstr ""
219
220 #. type: =item
221 #: ../align/virt-alignment-scan.pod:69
222 msgid "col 3"
223 msgstr ""
224
225 #. type: textblock
226 #: ../align/virt-alignment-scan.pod:71
227 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
228 msgstr ""
229
230 #. type: =item
231 #: ../align/virt-alignment-scan.pod:73
232 msgid "col 4"
233 msgstr ""
234
235 #. type: textblock
236 #: ../align/virt-alignment-scan.pod:75
237 msgid ""
238 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
239 "can cause performance problems"
240 msgstr ""
241
242 #. type: =item
243 #: ../align/virt-alignment-scan.pod:78
244 msgid "cols 5+"
245 msgstr ""
246
247 #. type: textblock
248 #: ../align/virt-alignment-scan.pod:80
249 msgid "optional free-text explanation."
250 msgstr ""
251
252 #. type: textblock
253 #: ../align/virt-alignment-scan.pod:84
254 msgid ""
255 "The exit code from the program changes depending on whether poorly aligned "
256 "partitions were found.  See L</EXIT STATUS> below."
257 msgstr ""
258
259 #. type: textblock
260 #: ../align/virt-alignment-scan.pod:87
261 msgid "If you just want the exit code with no output, use the I<-q> option."
262 msgstr ""
263
264 #. type: =head1
265 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
266 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
267 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
268 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
269 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
270 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
271 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
272 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
273 #: ../test-tool/libguestfs-test-tool.pod:36
274 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
275 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
276 #: ../tools/virt-win-reg.pl:96
277 msgid "OPTIONS"
278 msgstr "ПАРАМЕТРИ"
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
282 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
283 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
284 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
285 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
286 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
287 #: ../test-tool/libguestfs-test-tool.pod:40
288 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
289 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
290 #: ../tools/virt-win-reg.pl:104
291 msgid "B<--help>"
292 msgstr "B<--help>"
293
294 #. type: textblock
295 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
296 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
297 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
298 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
299 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
300 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
301 #: ../tools/virt-win-reg.pl:106
302 msgid "Display brief help."
303 msgstr "Показати коротку довідку."
304
305 #. type: =item
306 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
307 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
308 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
309 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
310 msgid "B<-a> file"
311 msgstr "B<-a> файл"
312
313 #. type: =item
314 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
315 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
316 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
317 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
318 msgid "B<--add> file"
319 msgstr "B<--add> файл"
320
321 #. type: textblock
322 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
323 msgid "Add I<file> which should be a disk image from a virtual machine."
324 msgstr ""
325
326 #. type: textblock
327 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
328 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
329 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
330 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
331 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
332 msgid ""
333 "The format of the disk image is auto-detected.  To override this and force a "
334 "particular format use the I<--format=..> option."
335 msgstr ""
336
337 #. type: =item
338 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
339 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
340 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
341 #: ../rescue/virt-rescue.pod:107
342 msgid "B<-c> URI"
343 msgstr "B<-c> адреса"
344
345 #. type: =item
346 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
347 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
348 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
349 #: ../rescue/virt-rescue.pod:109
350 msgid "B<--connect> URI"
351 msgstr "B<--connect> адреса"
352
353 #. type: textblock
354 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
355 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
356 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
357 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
358 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
359 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
360 msgid ""
361 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
362 "to the default libvirt hypervisor."
363 msgstr ""
364
365 #. type: textblock
366 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
367 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
368 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
369 #: ../rescue/virt-rescue.pod:114
370 msgid ""
371 "If you specify guest block devices directly (I<-a>), then libvirt is not "
372 "used at all."
373 msgstr ""
374
375 #. type: =item
376 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
377 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
378 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
379 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
380 msgid "B<-d> guest"
381 msgstr "B<-d> гість"
382
383 #. type: =item
384 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
385 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
386 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
387 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
388 msgid "B<--domain> guest"
389 msgstr "B<--domain> гість"
390
391 #. type: textblock
392 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
393 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
394 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
395 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
396 msgid ""
397 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
398 "instead of names."
399 msgstr ""
400
401 #. type: =item
402 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
403 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
404 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
405 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
406 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
407 msgid "B<--format=raw|qcow2|..>"
408 msgstr "B<--format=raw|qcow2|..>"
409
410 #. type: =item
411 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
412 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
413 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
414 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
415 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
416 #: ../rescue/virt-rescue.pod:126
417 msgid "B<--format>"
418 msgstr "B<--format>"
419
420 #. type: textblock
421 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
422 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
423 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
424 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
425 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
426 msgid ""
427 "The default for the I<-a> option is to auto-detect the format of the disk "
428 "image.  Using this forces the disk format for I<-a> options which follow on "
429 "the command line.  Using I<--format> with no argument switches back to auto-"
430 "detection for subsequent I<-a> options."
431 msgstr ""
432
433 #. type: textblock
434 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
435 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
436 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
437 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
438 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
439 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
440 msgid "For example:"
441 msgstr "Приклад:"
442
443 #. type: verbatim
444 #: ../align/virt-alignment-scan.pod:134
445 #, no-wrap
446 msgid ""
447 " virt-alignment-scan --format=raw -a disk.img\n"
448 "\n"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
453 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
454 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
455 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
456 #: ../rescue/virt-rescue.pod:137
457 msgid "forces raw format (no auto-detection) for C<disk.img>."
458 msgstr ""
459
460 #. type: verbatim
461 #: ../align/virt-alignment-scan.pod:138
462 #, no-wrap
463 msgid ""
464 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
465 "\n"
466 msgstr ""
467
468 #. type: textblock
469 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
470 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
471 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
472 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
473 #: ../rescue/virt-rescue.pod:141
474 msgid ""
475 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
476 "detection for C<another.img>."
477 msgstr ""
478
479 #. type: textblock
480 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
481 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
482 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
483 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
484 msgid ""
485 "If you have untrusted raw-format guest disk images, you should use this "
486 "option to specify the disk format.  This avoids a possible security problem "
487 "with malicious guests (CVE-2010-3851)."
488 msgstr ""
489
490 #. type: =item
491 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
492 #: ../sparsify/virt-sparsify.pod:152
493 msgid "B<-q>"
494 msgstr "B<-q>"
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
498 #: ../sparsify/virt-sparsify.pod:154
499 msgid "B<--quiet>"
500 msgstr "B<--quiet>"
501
502 #. type: textblock
503 #: ../align/virt-alignment-scan.pod:151
504 msgid ""
505 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
506 "below)."
507 msgstr ""
508
509 #. type: =item
510 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
511 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
512 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
513 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
514 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
515 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:158
516 msgid "B<-v>"
517 msgstr "B<-v>"
518
519 #. type: =item
520 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
521 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
522 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
523 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
524 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
525 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:160
526 msgid "B<--verbose>"
527 msgstr "B<--verbose>"
528
529 #. type: textblock
530 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
531 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
532 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
533 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
534 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:162
535 msgid "Enable verbose messages for debugging."
536 msgstr ""
537
538 #. type: =item
539 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
540 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
541 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
542 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
543 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
544 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561
545 #: ../sparsify/virt-sparsify.pod:164
546 msgid "B<-V>"
547 msgstr "B<-V>"
548
549 #. type: =item
550 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
551 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
552 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
553 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
554 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
555 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
556 #: ../sparsify/virt-sparsify.pod:166 ../tools/virt-list-filesystems.pl:69
557 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
558 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
559 msgid "B<--version>"
560 msgstr "B<--version>"
561
562 #. type: textblock
563 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
564 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
565 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
566 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
567 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
568 #: ../sparsify/virt-sparsify.pod:168 ../tools/virt-list-filesystems.pl:71
569 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
570 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
571 msgid "Display version number and exit."
572 msgstr "Показати дані щодо версії і завершити роботу."
573
574 #. type: =item
575 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
576 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
577 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
578 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
579 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
580 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:170
581 #: ../tools/virt-tar.pl:158
582 msgid "B<-x>"
583 msgstr "B<-x>"
584
585 #. type: textblock
586 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
587 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
588 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
589 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
590 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:172
591 msgid "Enable tracing of libguestfs API calls."
592 msgstr ""
593
594 #. type: =head1
595 #: ../align/virt-alignment-scan.pod:172
596 msgid "RECOMMENDED ALIGNMENT"
597 msgstr ""
598
599 #. type: textblock
600 #: ../align/virt-alignment-scan.pod:174
601 msgid ""
602 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
603 "first sector of the first partition at sector 63, with a 512 byte sector "
604 "size.  This happens because of a historical accident.  Drives have to report "
605 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
606 "completely meaningless on modern drives, but it happens that the geometry "
607 "reported always has 63 sectors per track.  The operating system therefore "
608 "places the first partition at the start of the second \"track\", at sector "
609 "63."
610 msgstr ""
611
612 #. type: textblock
613 #: ../align/virt-alignment-scan.pod:183
614 msgid ""
615 "When the guest OS is virtualized, the host operating system and hypervisor "
616 "may prefer accesses aligned to one of:"
617 msgstr ""
618
619 #. type: =item
620 #: ../align/virt-alignment-scan.pod:188
621 msgid "* 512 bytes"
622 msgstr ""
623
624 #. type: textblock
625 #: ../align/virt-alignment-scan.pod:190
626 msgid ""
627 "if the host OS uses local storage directly on hard drive partitions, and the "
628 "hard drive has 512 byte physical sectors."
629 msgstr ""
630
631 #. type: =item
632 #: ../align/virt-alignment-scan.pod:193
633 msgid "* 4 Kbytes"
634 msgstr ""
635
636 #. type: textblock
637 #: ../align/virt-alignment-scan.pod:195
638 msgid ""
639 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
640 "backed storage on filesystems with 4Kbyte block size; or for some types of "
641 "network-attached storage."
642 msgstr ""
643
644 #. type: =item
645 #: ../align/virt-alignment-scan.pod:199
646 msgid "* 64 Kbytes"
647 msgstr ""
648
649 #. type: textblock
650 #: ../align/virt-alignment-scan.pod:201
651 msgid ""
652 "for high-end network-attached storage.  This is the optimal block size for "
653 "some NetApp hardware."
654 msgstr ""
655
656 #. type: =item
657 #: ../align/virt-alignment-scan.pod:204
658 msgid "* 1 Mbyte"
659 msgstr ""
660
661 #. type: textblock
662 #: ../align/virt-alignment-scan.pod:206
663 msgid "see L</1 MB PARTITION ALIGNMENT> below."
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:210
668 msgid ""
669 "Partitions which are not aligned correctly to the underlying storage cause "
670 "extra I/O.  For example:"
671 msgstr ""
672
673 #. type: verbatim
674 #: ../align/virt-alignment-scan.pod:213
675 #, no-wrap
676 msgid ""
677 "                       sect#63\n"
678 "                       +--------------------------+------\n"
679 "                       |         guest            |\n"
680 "                       |    filesystem block      |\n"
681 " ---+------------------+------+-------------------+-----+---\n"
682 "    |  host block             |  host block             |\n"
683 "    |                         |                         |\n"
684 " ---+-------------------------+-------------------------+---\n"
685 "\n"
686 msgstr ""
687
688 #. type: textblock
689 #: ../align/virt-alignment-scan.pod:222
690 msgid ""
691 "In this example, each time a 4K guest block is read, two blocks on the host "
692 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
693 "written, two host blocks must first be read, the old and new data combined, "
694 "and the two blocks written back (4x I/O)."
695 msgstr ""
696
697 #. type: =head2
698 #: ../align/virt-alignment-scan.pod:227
699 msgid "LINUX HOST BLOCK AND I/O SIZE"
700 msgstr ""
701
702 #. type: textblock
703 #: ../align/virt-alignment-scan.pod:229
704 msgid ""
705 "New versions of the Linux kernel expose the physical and logical block size, "
706 "and minimum and recommended I/O size."
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:232
711 msgid "For a typical consumer hard drive with 512 byte sectors:"
712 msgstr ""
713
714 #. type: verbatim
715 #: ../align/virt-alignment-scan.pod:234
716 #, no-wrap
717 msgid ""
718 " $ cat /sys/block/sda/queue/hw_sector_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/physical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/logical_block_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/minimum_io_size\n"
725 " 512\n"
726 " $ cat /sys/block/sda/queue/optimal_io_size\n"
727 " 0\n"
728 "\n"
729 msgstr ""
730
731 #. type: textblock
732 #: ../align/virt-alignment-scan.pod:245
733 msgid "For a new consumer hard drive with 4Kbyte sectors:"
734 msgstr ""
735
736 #. type: verbatim
737 #: ../align/virt-alignment-scan.pod:247
738 #, no-wrap
739 msgid ""
740 " $ cat /sys/block/sda/queue/hw_sector_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/physical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/logical_block_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/minimum_io_size\n"
747 " 4096\n"
748 " $ cat /sys/block/sda/queue/optimal_io_size\n"
749 " 0\n"
750 "\n"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:258
755 msgid "For a NetApp LUN:"
756 msgstr ""
757
758 #. type: verbatim
759 #: ../align/virt-alignment-scan.pod:260
760 #, no-wrap
761 msgid ""
762 " $ cat /sys/block/sdc/queue/logical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/physical_block_size\n"
765 " 512\n"
766 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
767 " 4096\n"
768 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
769 " 65536\n"
770 "\n"
771 msgstr ""
772
773 #. type: textblock
774 #: ../align/virt-alignment-scan.pod:269
775 msgid ""
776 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
777 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:273
782 msgid ""
783 "For detailed information about what these numbers mean, see L<http://docs."
784 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
785 "Storage_Administration_Guide/newstorage-iolimits.html>"
786 msgstr ""
787
788 #. type: textblock
789 #: ../align/virt-alignment-scan.pod:276
790 msgid ""
791 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
792 "for providing NetApp data and additional information.]"
793 msgstr ""
794
795 #. type: =head2
796 #: ../align/virt-alignment-scan.pod:279
797 msgid "1 MB PARTITION ALIGNMENT"
798 msgstr ""
799
800 #. type: textblock
801 #: ../align/virt-alignment-scan.pod:281
802 msgid ""
803 "Microsoft picked 1 MB as the default alignment for all partitions starting "
804 "with Windows 2008 Server, and Linux has followed this."
805 msgstr ""
806
807 #. type: textblock
808 #: ../align/virt-alignment-scan.pod:284
809 msgid ""
810 "Assuming 512 byte sectors in the guest, you will now see the first partition "
811 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
812 "multiple of 2048 sectors."
813 msgstr ""
814
815 #. type: textblock
816 #: ../align/virt-alignment-scan.pod:288
817 msgid ""
818 "1 MB alignment is compatible with all current alignment requirements (4K, "
819 "64K) and provides room for future growth in physical block sizes."
820 msgstr ""
821
822 #. type: =head2
823 #: ../align/virt-alignment-scan.pod:291
824 msgid "SETTING ALIGNMENT"
825 msgstr ""
826
827 #. type: textblock
828 #: ../align/virt-alignment-scan.pod:293
829 msgid ""
830 "L<virt-resize(1)> can change the alignment of the partitions of some "
831 "guests.  Currently it can fully align all the partitions of all Windows "
832 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
833 "it can align the second and subsequent partitions, so the majority of OS "
834 "accesses except at boot will be aligned."
835 msgstr ""
836
837 #. type: textblock
838 #: ../align/virt-alignment-scan.pod:299
839 msgid ""
840 "Another way to correct partition alignment problems is to reinstall your "
841 "guest operating systems.  If you install operating systems from templates, "
842 "ensure these have correct partition alignment too."
843 msgstr ""
844
845 #. type: textblock
846 #: ../align/virt-alignment-scan.pod:303
847 msgid ""
848 "For older versions of Windows, the following NetApp document contains useful "
849 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
850 msgstr ""
851
852 #. type: textblock
853 #: ../align/virt-alignment-scan.pod:306
854 msgid ""
855 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
856 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
857 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
858 "contains an example."
859 msgstr ""
860
861 #. type: =head1
862 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
863 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
864 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241
865 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
866 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
867 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
868 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
869 #: ../tools/virt-win-reg.pl:744
870 msgid "SHELL QUOTING"
871 msgstr ""
872
873 #. type: textblock
874 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
875 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
876 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
879 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
880 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
881 #: ../tools/virt-win-reg.pl:752
882 msgid ""
883 "Libvirt guest names can contain arbitrary characters, some of which have "
884 "meaning to the shell such as C<#> and space.  You may need to quote or "
885 "escape these characters on the command line.  See the shell manual page L<sh"
886 "(1)> for details."
887 msgstr ""
888
889 #. type: =head1
890 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
891 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
892 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248
893 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
894 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
895 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:226
896 #: ../test-tool/libguestfs-test-tool.pod:90
897 msgid "EXIT STATUS"
898 msgstr ""
899
900 #. type: textblock
901 #: ../align/virt-alignment-scan.pod:320
902 msgid "This program returns:"
903 msgstr ""
904
905 #. type: =item
906 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
907 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
908 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
909 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
910 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
911 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
912 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
913 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
914 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
915 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
916 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
917 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
918 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
919 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
920 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
921 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
922 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
923 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
924 #: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114
925 #: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13
926 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441
927 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456
928 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262
929 #: ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270
930 #: ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282
931 #: ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290
932 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304
933 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398
934 #: ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407
935 #: ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454
936 #: ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463
937 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726
938 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136
939 #: ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150
940 #: ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164
941 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
942 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
943 #: ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412
944 #: ../resize/virt-resize.pod:359 ../resize/virt-resize.pod:363
945 #: ../resize/virt-resize.pod:372 ../resize/virt-resize.pod:378
946 #: ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39
947 #: ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49
948 #: ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58
949 #: ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22
950 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641
951 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656
952 #: ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079
953 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087
954 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099
955 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107
956 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121
957 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263
958 #: ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272
959 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338
960 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347
961 #: ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769
962 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321
963 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335
964 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349
965 #: ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413
966 #: ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426
967 #: ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109
968 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122
969 #: ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157
970 #: ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187
971 #: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199
972 #: ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698
973 #: ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809
974 #: ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113
975 #: ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645
976 #: ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662
977 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076
978 #: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098
979 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339
980 #: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347
981 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
982 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721
983 #: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
984 msgid "*"
985 msgstr "*"
986
987 #. type: textblock
988 #: ../align/virt-alignment-scan.pod:326
989 msgid "0"
990 msgstr ""
991
992 #. type: textblock
993 #: ../align/virt-alignment-scan.pod:328
994 msgid ""
995 "successful exit, all partitions are aligned E<ge> 64K for best performance"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid "1"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../align/virt-alignment-scan.pod:334
1005 msgid "an error scanning the disk image or guest"
1006 msgstr ""
1007
1008 #. type: textblock
1009 #: ../align/virt-alignment-scan.pod:338
1010 msgid "2"
1011 msgstr ""
1012
1013 #. type: textblock
1014 #: ../align/virt-alignment-scan.pod:340
1015 msgid ""
1016 "successful exit, some partitions have alignment E<lt> 64K which can result "
1017 "in poor performance on high end network storage"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../align/virt-alignment-scan.pod:345
1022 msgid "3"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../align/virt-alignment-scan.pod:347
1027 msgid ""
1028 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1029 "poor performance on most hypervisors"
1030 msgstr ""
1031
1032 #. type: =head1
1033 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1034 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1035 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253
1036 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1037 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1038 #: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268
1039 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1040 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1041 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1042 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1043 #: ../perl/examples/guestfs-perl.pod:39
1044 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1045 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:250 ../src/guestfs.pod:3275
1047 #: ../test-tool/libguestfs-test-tool.pod:100
1048 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1049 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1050 #: ../tools/virt-win-reg.pl:757
1051 msgid "SEE ALSO"
1052 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1053
1054 #. type: textblock
1055 #: ../align/virt-alignment-scan.pod:354
1056 msgid ""
1057 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1058 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1059 msgstr ""
1060
1061 #. type: =head1
1062 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1063 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1064 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261
1065 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1066 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:263
1067 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1068 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1069 #: ../tools/virt-win-reg.pl:783
1070 msgid "AUTHOR"
1071 msgstr "АВТОР"
1072
1073 #. type: textblock
1074 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1075 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1076 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263
1077 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1078 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1079 #: ../sparsify/virt-sparsify.pod:265 ../tools/virt-list-filesystems.pl:210
1080 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1081 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1082 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1083 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1084
1085 #. type: =head1
1086 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1087 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1088 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265
1089 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1090 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1091 #: ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300
1092 #: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53
1093 #: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
1094 #: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418
1095 #: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95
1096 #: ../perl/examples/guestfs-perl.pod:56
1097 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1098 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:267 ../src/guestfs.pod:3358
1100 #: ../test-tool/libguestfs-test-tool.pod:110
1101 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1102 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1103 #: ../tools/virt-win-reg.pl:787
1104 msgid "COPYRIGHT"
1105 msgstr "АВТОРСЬКІ ПРАВА"
1106
1107 #. type: textblock
1108 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1109 #: ../sparsify/virt-sparsify.pod:269
1110 msgid "Copyright (C) 2011 Red Hat Inc."
1111 msgstr ""
1112
1113 #. type: textblock
1114 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1115 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1116 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269
1117 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1118 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1119 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1120 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1121 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1122 #: ../sparsify/virt-sparsify.pod:271 ../test-tool/libguestfs-test-tool.pod:115
1123 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1124 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1125 #: ../tools/virt-win-reg.pl:791
1126 msgid ""
1127 "This program is free software; you can redistribute it and/or modify it "
1128 "under the terms of the GNU General Public License as published by the Free "
1129 "Software Foundation; either version 2 of the License, or (at your option) "
1130 "any later version."
1131 msgstr ""
1132
1133 #. type: textblock
1134 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1135 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1136 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274
1137 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1138 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1139 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1140 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1141 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1142 #: ../sparsify/virt-sparsify.pod:276 ../test-tool/libguestfs-test-tool.pod:120
1143 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1144 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1145 #: ../tools/virt-win-reg.pl:796
1146 msgid ""
1147 "This program is distributed in the hope that it will be useful, but WITHOUT "
1148 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1149 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1150 "more details."
1151 msgstr ""
1152 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1153 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1154 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1155 "дізнатися з GNU General Public License."
1156
1157 #. type: textblock
1158 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1159 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1160 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279
1161 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1162 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1163 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1164 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1165 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1166 #: ../sparsify/virt-sparsify.pod:281 ../test-tool/libguestfs-test-tool.pod:125
1167 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1168 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1169 #: ../tools/virt-win-reg.pl:801
1170 msgid ""
1171 "You should have received a copy of the GNU General Public License along with "
1172 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1173 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1174 msgstr ""
1175 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1176 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1177 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1178
1179 #. type: textblock
1180 #: ../cat/virt-cat.pod:5
1181 msgid "virt-cat - Display files in a virtual machine"
1182 msgstr "virt-cat — показ файлів у віртуальній машині"
1183
1184 #. type: verbatim
1185 #: ../cat/virt-cat.pod:9
1186 #, no-wrap
1187 msgid ""
1188 " virt-cat [--options] -d domname file [file ...]\n"
1189 "\n"
1190 msgstr ""
1191 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1192 "\n"
1193
1194 #. type: verbatim
1195 #: ../cat/virt-cat.pod:11
1196 #, no-wrap
1197 msgid ""
1198 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1199 "\n"
1200 msgstr ""
1201 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1202 "\n"
1203
1204 #. type: textblock
1205 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1206 #: ../inspector/virt-inspector.pod:13
1207 msgid "Old-style:"
1208 msgstr "Застарілий стиль:"
1209
1210 #. type: verbatim
1211 #: ../cat/virt-cat.pod:15
1212 #, no-wrap
1213 msgid ""
1214 " virt-cat domname file\n"
1215 "\n"
1216 msgstr ""
1217 " virt-cat назва_домену файл\n"
1218 "\n"
1219
1220 #. type: verbatim
1221 #: ../cat/virt-cat.pod:17
1222 #, no-wrap
1223 msgid ""
1224 " virt-cat disk.img file\n"
1225 "\n"
1226 msgstr ""
1227 " virt-cat диск.img файл\n"
1228 "\n"
1229
1230 #. type: textblock
1231 #: ../cat/virt-cat.pod:21
1232 msgid ""
1233 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1234 "C<file> exists in the named virtual machine (or disk image)."
1235 msgstr ""
1236 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1237 "зберігається у вказаній віртуальній машині (або образі диска)."
1238
1239 #. type: textblock
1240 #: ../cat/virt-cat.pod:24
1241 msgid ""
1242 "Multiple filenames can be given, in which case they are concatenated "
1243 "together.  Each filename must be a full path, starting at the root directory "
1244 "(starting with '/')."
1245 msgstr ""
1246 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1247 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1248 "кореневого каталогу (тобто назва має починатися з «/»)."
1249
1250 #. type: textblock
1251 #: ../cat/virt-cat.pod:28
1252 msgid ""
1253 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1254 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1255 "(see L</USING GUESTFISH> below)."
1256 msgstr ""
1257 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1258 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1259 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1260 "нижче)."
1261
1262 #. type: =head1
1263 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1264 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1265 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1266 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1267 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1268 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1269 #: ../tools/virt-tar.pl:50
1270 msgid "EXAMPLES"
1271 msgstr "ПРИКЛАДИ"
1272
1273 #. type: textblock
1274 #: ../cat/virt-cat.pod:34
1275 msgid ""
1276 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1277 msgstr ""
1278 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1279
1280 #. type: verbatim
1281 #: ../cat/virt-cat.pod:37
1282 #, no-wrap
1283 msgid ""
1284 " virt-cat -d mydomain /etc/fstab\n"
1285 "\n"
1286 msgstr ""
1287 " virt-cat -d mydomain /etc/fstab\n"
1288 "\n"
1289
1290 #. type: textblock
1291 #: ../cat/virt-cat.pod:39
1292 msgid "List syslog messages from a VM disk image file:"
1293 msgstr ""
1294 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1295
1296 #. type: verbatim
1297 #: ../cat/virt-cat.pod:41
1298 #, no-wrap
1299 msgid ""
1300 " virt-cat -a disk.img /var/log/messages | tail\n"
1301 "\n"
1302 msgstr ""
1303 " virt-cat -a disk.img /var/log/messages | tail\n"
1304 "\n"
1305
1306 #. type: textblock
1307 #: ../cat/virt-cat.pod:43
1308 msgid "Find out what DHCP IP address a VM acquired:"
1309 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1310
1311 #. type: verbatim
1312 #: ../cat/virt-cat.pod:45
1313 #, no-wrap
1314 msgid ""
1315 " virt-cat -d mydomain /var/log/messages | \\\n"
1316 "   grep 'dhclient: bound to' | tail\n"
1317 "\n"
1318 msgstr ""
1319 " virt-cat -d mydomain /var/log/messages | \\\n"
1320 "   grep 'dhclient: bound to' | tail\n"
1321 "\n"
1322
1323 #. type: textblock
1324 #: ../cat/virt-cat.pod:48
1325 msgid "Find out what packages were recently installed:"
1326 msgstr "Пошук нещодавно встановлених пакунків:"
1327
1328 #. type: verbatim
1329 #: ../cat/virt-cat.pod:50
1330 #, no-wrap
1331 msgid ""
1332 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1333 "\n"
1334 msgstr ""
1335 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1336 "\n"
1337
1338 #. type: textblock
1339 #: ../cat/virt-cat.pod:52
1340 msgid "Find out who is logged on inside a virtual machine:"
1341 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1342
1343 #. type: verbatim
1344 #: ../cat/virt-cat.pod:54
1345 #, no-wrap
1346 msgid ""
1347 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1348 " who /tmp/utmp\n"
1349 "\n"
1350 msgstr ""
1351 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1352 " who /tmp/utmp\n"
1353 "\n"
1354
1355 #. type: textblock
1356 #: ../cat/virt-cat.pod:57
1357 msgid "or who was logged on:"
1358 msgstr "або тих, які у ній працювали:"
1359
1360 #. type: verbatim
1361 #: ../cat/virt-cat.pod:59
1362 #, no-wrap
1363 msgid ""
1364 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1365 " last -f /tmp/wtmp\n"
1366 "\n"
1367 msgstr ""
1368 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1369 " last -f /tmp/wtmp\n"
1370 "\n"
1371
1372 #. type: textblock
1373 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1374 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1375 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1376 msgid ""
1377 "Add I<file> which should be a disk image from a virtual machine.  If the "
1378 "virtual machine has multiple block devices, you must supply all of them with "
1379 "separate I<-a> options."
1380 msgstr ""
1381
1382 #. type: =item
1383 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1384 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1385 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1386 msgid "B<--echo-keys>"
1387 msgstr "B<--echo-keys>"
1388
1389 #. type: textblock
1390 #: ../cat/virt-cat.pod:100
1391 msgid ""
1392 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1393 "so you cannot see what you are typing.  If you are not worried about Tempest "
1394 "attacks and there is no one else in the room you can specify this flag to "
1395 "see what you are typing."
1396 msgstr ""
1397
1398 #. type: verbatim
1399 #: ../cat/virt-cat.pod:116
1400 #, no-wrap
1401 msgid ""
1402 " virt-cat --format=raw -a disk.img file\n"
1403 "\n"
1404 msgstr ""
1405 " virt-cat --format=raw -a disk.img file\n"
1406 "\n"
1407
1408 #. type: verbatim
1409 #: ../cat/virt-cat.pod:120
1410 #, no-wrap
1411 msgid ""
1412 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1413 "\n"
1414 msgstr ""
1415 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1416 "\n"
1417
1418 #. type: =item
1419 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1420 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1421 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1422 msgid "B<--keys-from-stdin>"
1423 msgstr "B<--keys-from-stdin>"
1424
1425 #. type: textblock
1426 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1427 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1428 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1429 msgid ""
1430 "Read key or passphrase parameters from stdin.  The default is to try to read "
1431 "passphrases from the user by opening C</dev/tty>."
1432 msgstr ""
1433
1434 #. type: =head1
1435 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1436 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:209
1437 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1438 msgstr ""
1439
1440 #. type: textblock
1441 #: ../cat/virt-cat.pod:154
1442 msgid "Previous versions of virt-cat allowed you to write either:"
1443 msgstr ""
1444
1445 #. type: verbatim
1446 #: ../cat/virt-cat.pod:156
1447 #, no-wrap
1448 msgid ""
1449 " virt-cat disk.img [disk.img ...] file\n"
1450 "\n"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1455 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:215
1456 msgid "or"
1457 msgstr "або"
1458
1459 #. type: verbatim
1460 #: ../cat/virt-cat.pod:160
1461 #, no-wrap
1462 msgid ""
1463 " virt-cat guestname file\n"
1464 "\n"
1465 msgstr ""
1466
1467 #. type: textblock
1468 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1469 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:219
1470 msgid ""
1471 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1472 "the confusing case where a disk image might have the same name as a guest."
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1477 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:223
1478 msgid "For compatibility the old style is still supported."
1479 msgstr ""
1480
1481 #. type: =head1
1482 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1483 msgid "WINDOWS PATHS"
1484 msgstr "ШЛЯХИ У WINDOWS"
1485
1486 #. type: textblock
1487 #: ../cat/virt-cat.pod:170
1488 msgid ""
1489 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1490 "paths (eg. C<E:\\foo\\bar.txt>)."
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1495 msgid "If and only if the guest is running Windows then:"
1496 msgstr ""
1497
1498 #. type: textblock
1499 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1500 msgid ""
1501 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1502 "to the correct filesystem."
1503 msgstr ""
1504
1505 #. type: textblock
1506 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1507 msgid ""
1508 "Any backslash (C<\\>) characters in the path are replaced with forward "
1509 "slashes so that libguestfs can process it."
1510 msgstr ""
1511
1512 #. type: textblock
1513 #: ../cat/virt-cat.pod:189
1514 msgid ""
1515 "The path is resolved case insensitively to locate the file that should be "
1516 "displayed."
1517 msgstr ""
1518
1519 #. type: textblock
1520 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1521 msgid "There are some known shortcomings:"
1522 msgstr ""
1523
1524 #. type: textblock
1525 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1526 msgid "Some NTFS symbolic links may not be followed correctly."
1527 msgstr ""
1528
1529 #. type: textblock
1530 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1531 msgid "NTFS junction points that cross filesystems are not followed."
1532 msgstr ""
1533
1534 #. type: =head1
1535 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1536 msgid "USING GUESTFISH"
1537 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1538
1539 #. type: textblock
1540 #: ../cat/virt-cat.pod:210
1541 msgid ""
1542 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1543 "C<virt-cat> doesn't work."
1544 msgstr ""
1545
1546 #. type: textblock
1547 #: ../cat/virt-cat.pod:213
1548 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1549 msgstr ""
1550
1551 #. type: verbatim
1552 #: ../cat/virt-cat.pod:215
1553 #, no-wrap
1554 msgid ""
1555 " guestfish --ro -i -d domname download file -\n"
1556 "\n"
1557 msgstr ""
1558
1559 #. type: textblock
1560 #: ../cat/virt-cat.pod:217
1561 msgid ""
1562 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1563 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1564 msgstr ""
1565
1566 #. type: textblock
1567 #: ../cat/virt-cat.pod:221
1568 msgid ""
1569 "The command above uses libguestfs's guest inspection feature and so does not "
1570 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1571 "disk images that don't contain guests.  To display a file from a disk image "
1572 "directly, use:"
1573 msgstr ""
1574
1575 #. type: verbatim
1576 #: ../cat/virt-cat.pod:226
1577 #, no-wrap
1578 msgid ""
1579 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1580 "\n"
1581 msgstr ""
1582
1583 #. type: textblock
1584 #: ../cat/virt-cat.pod:228
1585 msgid ""
1586 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1587 "the disk image, and C<file> is the full path to the file."
1588 msgstr ""
1589
1590 #. type: textblock
1591 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1592 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351
1593 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1594 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:228
1595 msgid ""
1596 "This program returns 0 if successful, or non-zero if there was an error."
1597 msgstr ""
1598
1599 #. type: textblock
1600 #: ../cat/virt-cat.pod:245
1601 msgid ""
1602 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1603 "tar-out(1)>, L<http://libguestfs.org/>."
1604 msgstr ""
1605 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1606 "tar-out(1)>, L<http://libguestfs.org/>."
1607
1608 #. type: textblock
1609 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1610 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1611 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1612 msgstr "©Red Hat Inc., 2010–2011"
1613
1614 #. type: textblock
1615 #: ../cat/virt-filesystems.pod:5
1616 msgid ""
1617 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1618 "virtual machine or disk image"
1619 msgstr ""
1620
1621 #. type: verbatim
1622 #: ../cat/virt-filesystems.pod:9
1623 #, no-wrap
1624 msgid ""
1625 " virt-filesystems [--options] -d domname\n"
1626 "\n"
1627 msgstr ""
1628 " virt-filesystems [--параметри] -d назва_домену\n"
1629 "\n"
1630
1631 #. type: verbatim
1632 #: ../cat/virt-filesystems.pod:11
1633 #, no-wrap
1634 msgid ""
1635 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1636 "\n"
1637 msgstr ""
1638
1639 #. type: textblock
1640 #: ../cat/virt-filesystems.pod:15
1641 msgid ""
1642 "This tool allows you to discover filesystems, partitions, logical volumes, "
1643 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1644 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1645 msgstr ""
1646
1647 #. type: textblock
1648 #: ../cat/virt-filesystems.pod:20
1649 msgid ""
1650 "One use for this tool is from shell scripts to iterate over all filesystems "
1651 "from a disk image:"
1652 msgstr ""
1653
1654 #. type: verbatim
1655 #: ../cat/virt-filesystems.pod:23
1656 #, no-wrap
1657 msgid ""
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1659 "   # ...\n"
1660 " done\n"
1661 "\n"
1662 msgstr ""
1663 " for fs in $(virt-filesystems -a disk.img); do\n"
1664 "   # ...\n"
1665 " done\n"
1666 "\n"
1667
1668 #. type: textblock
1669 #: ../cat/virt-filesystems.pod:27
1670 msgid ""
1671 "Another use is to list partitions before using another tool to modify those "
1672 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1673 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:32
1678 msgid ""
1679 "Various command line options control what this program displays.  You need "
1680 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1681 "guest respectively.  If you just specify that then the program shows "
1682 "filesystems found, one per line, like this:"
1683 msgstr ""
1684
1685 #. type: verbatim
1686 #: ../cat/virt-filesystems.pod:37
1687 #, no-wrap
1688 msgid ""
1689 " $ virt-filesystems -a disk.img\n"
1690 " /dev/sda1\n"
1691 " /dev/vg_guest/lv_root\n"
1692 "\n"
1693 msgstr ""
1694 " $ virt-filesystems -a disk.img\n"
1695 " /dev/sda1\n"
1696 " /dev/vg_guest/lv_root\n"
1697 "\n"
1698
1699 #. type: textblock
1700 #: ../cat/virt-filesystems.pod:41
1701 msgid ""
1702 "If you add I<-l> or I<--long> then the output includes extra information:"
1703 msgstr ""
1704
1705 #. type: verbatim
1706 #: ../cat/virt-filesystems.pod:44
1707 #, no-wrap
1708 msgid ""
1709 " $ virt-filesystems -a disk.img -l\n"
1710 " Name                   Type         VFS   Label  Size\n"
1711 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1712 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1713 "\n"
1714 msgstr ""
1715
1716 #. type: textblock
1717 #: ../cat/virt-filesystems.pod:49
1718 msgid ""
1719 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1720 "shown as well:"
1721 msgstr ""
1722
1723 #. type: verbatim
1724 #: ../cat/virt-filesystems.pod:52
1725 #, no-wrap
1726 msgid ""
1727 " $ virt-filesystems -a disk.img --extra\n"
1728 " /dev/sda1\n"
1729 " /dev/vg_guest/lv_root\n"
1730 " /dev/vg_guest/lv_swap\n"
1731 " /dev/vg_guest/lv_data\n"
1732 "\n"
1733 msgstr ""
1734 " $ virt-filesystems -a disk.img --extra\n"
1735 " /dev/sda1\n"
1736 " /dev/vg_guest/lv_root\n"
1737 " /dev/vg_guest/lv_swap\n"
1738 " /dev/vg_guest/lv_data\n"
1739 "\n"
1740
1741 #. type: textblock
1742 #: ../cat/virt-filesystems.pod:58
1743 msgid ""
1744 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1745 msgstr ""
1746
1747 #. type: verbatim
1748 #: ../cat/virt-filesystems.pod:60
1749 #, no-wrap
1750 msgid ""
1751 " $ virt-filesystems -a disk.img --partitions\n"
1752 " /dev/sda1\n"
1753 " /dev/sda2\n"
1754 "\n"
1755 msgstr ""
1756 " $ virt-filesystems -a disk.img --partitions\n"
1757 " /dev/sda1\n"
1758 " /dev/sda2\n"
1759 "\n"
1760
1761 #. type: textblock
1762 #: ../cat/virt-filesystems.pod:64
1763 msgid ""
1764 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1765 "volumes>, I<--block-devices> to list those items."
1766 msgstr ""
1767
1768 #. type: textblock
1769 #: ../cat/virt-filesystems.pod:67
1770 msgid ""
1771 "You can use these options in combination as well (if you want a combination "
1772 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1773 "items fall into several categories (eg. C</dev/sda1> might be both a "
1774 "partition and a filesystem).  These items are listed several times.  To get "
1775 "a list which includes absolutely everything that virt-filesystems knows "
1776 "about, use the I<--all> option."
1777 msgstr ""
1778
1779 #. type: textblock
1780 #: ../cat/virt-filesystems.pod:74
1781 msgid ""
1782 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1783 "uuid> option to display device and filesystem UUIDs in the long output."
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:78
1788 msgid ""
1789 "I<--all --long --uuid> is a useful combination to display all possible "
1790 "information about everything."
1791 msgstr ""
1792
1793 #. type: verbatim
1794 #: ../cat/virt-filesystems.pod:81
1795 #, no-wrap
1796 msgid ""
1797 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1798 " Name      Type       VFS  Label           Size Parent   UUID\n"
1799 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1800 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1801 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1802 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1803 " /dev/sda  device     -    -               20G  -        -\n"
1804 "\n"
1805 msgstr ""
1806
1807 #. type: textblock
1808 #: ../cat/virt-filesystems.pod:89
1809 msgid ""
1810 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1811 msgstr ""
1812
1813 #. type: =item
1814 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1815 msgid "B<--all>"
1816 msgstr "B<--all>"
1817
1818 #. type: textblock
1819 #: ../cat/virt-filesystems.pod:112
1820 msgid ""
1821 "Display everything.  This is currently the same as specifying these options: "
1822 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1823 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1824 "added to this list in future)."
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-filesystems.pod:117
1829 msgid "See also I<--long>."
1830 msgstr "Див. також I<--long>."
1831
1832 #. type: =item
1833 #: ../cat/virt-filesystems.pod:119
1834 msgid "B<--blkdevs>"
1835 msgstr "B<--blkdevs>"
1836
1837 #. type: =item
1838 #: ../cat/virt-filesystems.pod:121
1839 msgid "B<--block-devices>"
1840 msgstr "B<--block-devices>"
1841
1842 #. type: textblock
1843 #: ../cat/virt-filesystems.pod:123
1844 msgid "Display block devices."
1845 msgstr "Показати список блокових пристроїв."
1846
1847 #. type: =item
1848 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1849 msgid "B<--csv>"
1850 msgstr "B<--csv>"
1851
1852 #. type: textblock
1853 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1854 msgid ""
1855 "Write out the results in CSV format (comma-separated values).  This format "
1856 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1857 "ABOUT CSV FORMAT> below."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-filesystems.pod:150
1862 msgid ""
1863 "When prompting for keys and passphrases, virt-filesystems normally turns "
1864 "echoing off so you cannot see what you are typing.  If you are not worried "
1865 "about Tempest attacks and there is no one else in the room you can specify "
1866 "this flag to see what you are typing."
1867 msgstr ""
1868
1869 #. type: =item
1870 #: ../cat/virt-filesystems.pod:155
1871 msgid "B<--extra>"
1872 msgstr "B<--extra>"
1873
1874 #. type: textblock
1875 #: ../cat/virt-filesystems.pod:157
1876 msgid ""
1877 "This causes filesystems that are not ordinary, mountable filesystems to be "
1878 "displayed.  This category includes swapspace, and filesystems that are empty "
1879 "or contain unknown data."
1880 msgstr ""
1881
1882 #. type: textblock
1883 #: ../cat/virt-filesystems.pod:161
1884 msgid "This option implies I<--filesystems>."
1885 msgstr ""
1886
1887 #. type: =item
1888 #: ../cat/virt-filesystems.pod:163
1889 msgid "B<--filesystems>"
1890 msgstr "B<--filesystems>"
1891
1892 #. type: textblock
1893 #: ../cat/virt-filesystems.pod:165
1894 msgid ""
1895 "Display mountable filesystems.  If no display option was selected then this "
1896 "option is implied."
1897 msgstr ""
1898
1899 #. type: textblock
1900 #: ../cat/virt-filesystems.pod:168
1901 msgid "With I<--extra>, non-mountable filesystems are shown too."
1902 msgstr ""
1903
1904 #. type: verbatim
1905 #: ../cat/virt-filesystems.pod:181
1906 #, no-wrap
1907 msgid ""
1908 " virt-filesystems --format=raw -a disk.img\n"
1909 "\n"
1910 msgstr ""
1911 " virt-filesystems --format=raw -a диск.img\n"
1912 "\n"
1913
1914 #. type: verbatim
1915 #: ../cat/virt-filesystems.pod:185
1916 #, no-wrap
1917 msgid ""
1918 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1919 "\n"
1920 msgstr ""
1921
1922 #. type: =item
1923 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1924 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1925 #: ../tools/virt-list-partitions.pl:109
1926 msgid "B<-h>"
1927 msgstr "B<-h>"
1928
1929 #. type: =item
1930 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1931 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1932 msgid "B<--human-readable>"
1933 msgstr "B<--human-readable>"
1934
1935 #. type: textblock
1936 #: ../cat/virt-filesystems.pod:198
1937 msgid "In I<--long> mode, display sizes in human-readable format."
1938 msgstr ""
1939
1940 #. type: =item
1941 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1942 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1943 msgid "B<-l>"
1944 msgstr "B<-l>"
1945
1946 #. type: =item
1947 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1948 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1949 msgid "B<--long>"
1950 msgstr "B<--long>"
1951
1952 #. type: textblock
1953 #: ../cat/virt-filesystems.pod:209
1954 msgid "Display extra columns of data (\"long format\")."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:211
1959 msgid "A title row is added unless you also specify I<--no-title>."
1960 msgstr ""
1961
1962 #. type: textblock
1963 #: ../cat/virt-filesystems.pod:213
1964 msgid ""
1965 "The extra columns displayed depend on what output you select, and the "
1966 "ordering of columns may change in future versions.  Use the title row, I<--"
1967 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1968 "programs."
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../cat/virt-filesystems.pod:218
1973 msgid ""
1974 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1975 "default is to show raw numbers of I<bytes>."
1976 msgstr ""
1977
1978 #. type: textblock
1979 #: ../cat/virt-filesystems.pod:221
1980 msgid "Use I<--uuid> to display UUIDs too."
1981 msgstr ""
1982
1983 #. type: =item
1984 #: ../cat/virt-filesystems.pod:223
1985 msgid "B<--lvs>"
1986 msgstr "B<--lvs>"
1987
1988 #. type: =item
1989 #: ../cat/virt-filesystems.pod:225
1990 msgid "B<--logvols>"
1991 msgstr "B<--logvols>"
1992
1993 #. type: =item
1994 #: ../cat/virt-filesystems.pod:227
1995 msgid "B<--logical-volumes>"
1996 msgstr "B<--logical-volumes>"
1997
1998 #. type: textblock
1999 #: ../cat/virt-filesystems.pod:229
2000 msgid ""
2001 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
2002 "of whether the LVs contain filesystems."
2003 msgstr ""
2004
2005 #. type: =item
2006 #: ../cat/virt-filesystems.pod:232
2007 msgid "B<--no-title>"
2008 msgstr "B<--no-title>"
2009
2010 #. type: textblock
2011 #: ../cat/virt-filesystems.pod:234
2012 msgid "In I<--long> mode, don't add a title row."
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-filesystems.pod:236
2017 msgid ""
2018 "Note that the order of the columns is not fixed, and may change in future "
2019 "versions of virt-filesystems, so using this option may give you unexpected "
2020 "surprises."
2021 msgstr ""
2022
2023 #. type: =item
2024 #: ../cat/virt-filesystems.pod:240
2025 msgid "B<--parts>"
2026 msgstr "B<--parts>"
2027
2028 #. type: =item
2029 #: ../cat/virt-filesystems.pod:242
2030 msgid "B<--partitions>"
2031 msgstr "B<--partitions>"
2032
2033 #. type: textblock
2034 #: ../cat/virt-filesystems.pod:244
2035 msgid ""
2036 "Display partitions.  In this mode, these are displayed irrespective of "
2037 "whether the partitions contain filesystems."
2038 msgstr ""
2039
2040 #. type: =item
2041 #: ../cat/virt-filesystems.pod:247
2042 msgid "B<--pvs>"
2043 msgstr "B<--pvs>"
2044
2045 #. type: =item
2046 #: ../cat/virt-filesystems.pod:249
2047 msgid "B<--physvols>"
2048 msgstr "B<--physvols>"
2049
2050 #. type: =item
2051 #: ../cat/virt-filesystems.pod:251
2052 msgid "B<--physical-volumes>"
2053 msgstr "B<--physical-volumes>"
2054
2055 #. type: textblock
2056 #: ../cat/virt-filesystems.pod:253
2057 msgid "Display LVM physical volumes."
2058 msgstr ""
2059
2060 #. type: =item
2061 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2062 msgid "B<--uuid>"
2063 msgstr "B<--uuid>"
2064
2065 #. type: =item
2066 #: ../cat/virt-filesystems.pod:257
2067 msgid "B<--uuids>"
2068 msgstr "B<--uuids>"
2069
2070 #. type: textblock
2071 #: ../cat/virt-filesystems.pod:259
2072 msgid "In I<--long> mode, display UUIDs as well."
2073 msgstr ""
2074
2075 #. type: =item
2076 #: ../cat/virt-filesystems.pod:273
2077 msgid "B<--vgs>"
2078 msgstr "B<--vgs>"
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:275
2082 msgid "B<--volgroups>"
2083 msgstr "B<--volgroups>"
2084
2085 #. type: =item
2086 #: ../cat/virt-filesystems.pod:277
2087 msgid "B<--volume-groups>"
2088 msgstr "B<--volume-groups>"
2089
2090 #. type: textblock
2091 #: ../cat/virt-filesystems.pod:279
2092 msgid "Display LVM volume groups."
2093 msgstr ""
2094
2095 #. type: =head1
2096 #: ../cat/virt-filesystems.pod:287
2097 msgid "COLUMNS"
2098 msgstr "СТОВПЧИКИ"
2099
2100 #. type: textblock
2101 #: ../cat/virt-filesystems.pod:289
2102 msgid ""
2103 "Note that columns in the output are subject to reordering and change in "
2104 "future versions of this tool."
2105 msgstr ""
2106
2107 #. type: =item
2108 #: ../cat/virt-filesystems.pod:294
2109 msgid "B<Name>"
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-filesystems.pod:296
2114 msgid "The filesystem, partition, block device or LVM name."
2115 msgstr ""
2116
2117 #. type: textblock
2118 #: ../cat/virt-filesystems.pod:298
2119 msgid ""
2120 "For device and partition names these are displayed as canonical libguestfs "
2121 "names, so that for example C</dev/sda2> is the second partition on the first "
2122 "device."
2123 msgstr ""
2124
2125 #. type: textblock
2126 #: ../cat/virt-filesystems.pod:302
2127 msgid ""
2128 "If the I<--long> option is B<not> specified, then only the name column is "
2129 "shown in the output."
2130 msgstr ""
2131
2132 #. type: =item
2133 #: ../cat/virt-filesystems.pod:305
2134 msgid "B<Type>"
2135 msgstr ""
2136
2137 #. type: textblock
2138 #: ../cat/virt-filesystems.pod:307
2139 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2140 msgstr ""
2141
2142 #. type: =item
2143 #: ../cat/virt-filesystems.pod:309
2144 msgid "B<VFS>"
2145 msgstr "B<VFS>"
2146
2147 #. type: textblock
2148 #: ../cat/virt-filesystems.pod:311
2149 msgid ""
2150 "If there is a filesystem, then this column displays the filesystem type if "
2151 "one could be detected, eg. C<ext4>."
2152 msgstr ""
2153
2154 #. type: =item
2155 #: ../cat/virt-filesystems.pod:314
2156 msgid "B<Label>"
2157 msgstr ""
2158
2159 #. type: textblock
2160 #: ../cat/virt-filesystems.pod:316
2161 msgid ""
2162 "If the object has a label (used for identifying and mounting filesystems) "
2163 "then this column contains the label."
2164 msgstr ""
2165
2166 #. type: =item
2167 #: ../cat/virt-filesystems.pod:319
2168 msgid "B<MBR>"
2169 msgstr ""
2170
2171 #. type: textblock
2172 #: ../cat/virt-filesystems.pod:321
2173 msgid ""
2174 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2175 "comprehensive list of partition types can be found here: L<http://www.win."
2176 "tue.nl/~aeb/partitions/partition_types-1.html>"
2177 msgstr ""
2178
2179 #. type: textblock
2180 #: ../cat/virt-filesystems.pod:325
2181 msgid "This is only applicable for DOS (MBR) partitions."
2182 msgstr ""
2183
2184 #. type: =item
2185 #: ../cat/virt-filesystems.pod:327
2186 msgid "B<Size>"
2187 msgstr ""
2188
2189 #. type: textblock
2190 #: ../cat/virt-filesystems.pod:329
2191 msgid ""
2192 "The size of the object in bytes.  If the I<--human> option is used then the "
2193 "size is displayed in a human-readable form."
2194 msgstr ""
2195
2196 #. type: =item
2197 #: ../cat/virt-filesystems.pod:332
2198 msgid "B<Parent>"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-filesystems.pod:334
2203 msgid ""
2204 "The parent column records the parent relationship between objects.  For "
2205 "example, if the object is a partition, then this column contains the name of "
2206 "the containing device.  If the object is a logical volume, then this column "
2207 "is the name of the volume group."
2208 msgstr ""
2209
2210 #. type: =item
2211 #: ../cat/virt-filesystems.pod:339
2212 msgid "B<UUID>"
2213 msgstr "B<UUID>"
2214
2215 #. type: textblock
2216 #: ../cat/virt-filesystems.pod:341
2217 msgid ""
2218 "If the object has a UUID (used for identifying and mounting filesystems and "
2219 "block devices) then this column contains the UUID as a string."
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../cat/virt-filesystems.pod:345
2224 msgid "The UUID is only displayed if the I<--uuid> option is given."
2225 msgstr ""
2226
2227 #. type: =head1
2228 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2229 #: ../df/virt-df.pod:217
2230 msgid "NOTE ABOUT CSV FORMAT"
2231 msgstr ""
2232
2233 #. type: textblock
2234 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2235 #: ../df/virt-df.pod:219
2236 msgid ""
2237 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2238 "should be easy to parse, but it is definitely not easy to parse."
2239 msgstr ""
2240
2241 #. type: textblock
2242 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2243 #: ../df/virt-df.pod:222
2244 msgid ""
2245 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2246 "reliably.  This example has two columns:"
2247 msgstr ""
2248
2249 #. type: verbatim
2250 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2251 #: ../df/virt-df.pod:225
2252 #, no-wrap
2253 msgid ""
2254 " \"foo,bar\",baz\n"
2255 "\n"
2256 msgstr ""
2257
2258 #. type: textblock
2259 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2260 #: ../df/virt-df.pod:227
2261 msgid ""
2262 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2263 "reliably.  This example has one row:"
2264 msgstr ""
2265
2266 #. type: verbatim
2267 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2268 #: ../df/virt-df.pod:230
2269 #, no-wrap
2270 msgid ""
2271 " \"foo\n"
2272 " bar\",baz\n"
2273 "\n"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2278 #: ../df/virt-df.pod:233
2279 msgid ""
2280 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2281 "packaged in major Linux distributions)."
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2286 #: ../df/virt-df.pod:236
2287 msgid ""
2288 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2289 "or Python's built-in csv library)."
2290 msgstr ""
2291
2292 #. type: textblock
2293 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2294 #: ../df/virt-df.pod:239
2295 msgid "Most spreadsheets and databases can import CSV directly."
2296 msgstr ""
2297
2298 #. type: textblock
2299 #: ../cat/virt-filesystems.pod:387
2300 msgid ""
2301 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2302 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2303 "libguestfs.org/>."
2304 msgstr ""
2305 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2306 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2307 "libguestfs.org/>."
2308
2309 #. type: textblock
2310 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2311 msgid "Copyright (C) 2010 Red Hat Inc."
2312 msgstr "©Red Hat Inc., 2010"
2313
2314 #. type: textblock
2315 #: ../cat/virt-ls.pod:5
2316 msgid "virt-ls - List files in a virtual machine"
2317 msgstr ""
2318
2319 #. type: verbatim
2320 #: ../cat/virt-ls.pod:9
2321 #, no-wrap
2322 msgid ""
2323 " virt-ls [--options] -d domname directory [directory ...]\n"
2324 "\n"
2325 msgstr ""
2326
2327 #. type: verbatim
2328 #: ../cat/virt-ls.pod:11
2329 #, no-wrap
2330 msgid ""
2331 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2332 "\n"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2337 msgid "Old style:"
2338 msgstr "Старий стиль:"
2339
2340 #. type: verbatim
2341 #: ../cat/virt-ls.pod:15
2342 #, no-wrap
2343 msgid ""
2344 " virt-ls [--options] domname directory\n"
2345 "\n"
2346 msgstr ""
2347
2348 #. type: verbatim
2349 #: ../cat/virt-ls.pod:17
2350 #, no-wrap
2351 msgid ""
2352 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2353 "\n"
2354 msgstr ""
2355
2356 #. type: textblock
2357 #: ../cat/virt-ls.pod:21
2358 msgid ""
2359 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2360 "more from a virtual machine or disk image."
2361 msgstr ""
2362
2363 #. type: textblock
2364 #: ../cat/virt-ls.pod:24
2365 msgid ""
2366 "Multiple directory names can be given, in which case the output from each is "
2367 "concatenated."
2368 msgstr ""
2369
2370 #. type: textblock
2371 #: ../cat/virt-ls.pod:27
2372 msgid ""
2373 "To list directories from a libvirt guest use the I<-d> option to specify the "
2374 "name of the guest.  For a disk image, use the I<-a> option."
2375 msgstr ""
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:31
2379 msgid ""
2380 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2381 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2382 "(3)> API."
2383 msgstr ""
2384
2385 #. type: textblock
2386 #: ../cat/virt-ls.pod:37
2387 msgid "Get a list of all files and directories in a virtual machine:"
2388 msgstr ""
2389
2390 #. type: verbatim
2391 #: ../cat/virt-ls.pod:39
2392 #, no-wrap
2393 msgid ""
2394 " virt-ls -R -d guest /\n"
2395 "\n"
2396 msgstr ""
2397
2398 #. type: textblock
2399 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
2400 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2401 msgstr ""
2402
2403 #. type: verbatim
2404 #: ../cat/virt-ls.pod:43
2405 #, no-wrap
2406 msgid ""
2407 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2408 "\n"
2409 msgstr ""
2410
2411 #. type: textblock
2412 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
2413 msgid "List all public-writable directories in a Linux virtual machine:"
2414 msgstr ""
2415
2416 #. type: verbatim
2417 #: ../cat/virt-ls.pod:47
2418 #, no-wrap
2419 msgid ""
2420 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2421 "\n"
2422 msgstr ""
2423
2424 #. type: textblock
2425 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
2426 msgid "List all Unix domain sockets in a Linux virtual machine:"
2427 msgstr ""
2428
2429 #. type: verbatim
2430 #: ../cat/virt-ls.pod:51
2431 #, no-wrap
2432 msgid ""
2433 " virt-ls -lR -d guest / | grep '^s'\n"
2434 "\n"
2435 msgstr ""
2436
2437 #. type: textblock
2438 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
2439 msgid "List all regular files with filenames ending in '.png':"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:55
2444 #, no-wrap
2445 msgid ""
2446 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2447 "\n"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../cat/virt-ls.pod:57
2452 msgid "To display files larger than 10MB in home directories:"
2453 msgstr ""
2454
2455 #. type: verbatim
2456 #: ../cat/virt-ls.pod:59
2457 #, no-wrap
2458 msgid ""
2459 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2460 "\n"
2461 msgstr ""
2462
2463 #. type: textblock
2464 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
2465 msgid "Find everything modified in the last 7 days:"
2466 msgstr ""
2467
2468 #. type: verbatim
2469 #: ../cat/virt-ls.pod:63
2470 #, no-wrap
2471 msgid ""
2472 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2473 "\n"
2474 msgstr ""
2475
2476 #. type: textblock
2477 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
2478 msgid "Find regular files modified in the last 24 hours:"
2479 msgstr ""
2480
2481 #. type: verbatim
2482 #: ../cat/virt-ls.pod:67
2483 #, no-wrap
2484 msgid ""
2485 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2486 "\n"
2487 msgstr ""
2488
2489 #. type: =head2
2490 #: ../cat/virt-ls.pod:69
2491 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2492 msgstr ""
2493
2494 #. type: textblock
2495 #: ../cat/virt-ls.pod:71
2496 msgid ""
2497 "Find the differences between files in a guest and an earlier snapshot of the "
2498 "same guest."
2499 msgstr ""
2500
2501 #. type: verbatim
2502 #: ../cat/virt-ls.pod:74
2503 #, no-wrap
2504 msgid ""
2505 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2506 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2507 " diff -u old new | less\n"
2508 "\n"
2509 msgstr ""
2510
2511 #. type: textblock
2512 #: ../cat/virt-ls.pod:78
2513 msgid ""
2514 "The commands above won't find files where the content has changed but the "
2515 "metadata (eg. file size and modification date) is the same.  To do that, you "
2516 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2517 "checksum> can be quite slow since it has to read and compute a checksum of "
2518 "every regular file in the virtual machine."
2519 msgstr ""
2520
2521 #. type: =head1
2522 #: ../cat/virt-ls.pod:84
2523 msgid "OUTPUT MODES"
2524 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2525
2526 #. type: textblock
2527 #: ../cat/virt-ls.pod:86
2528 msgid ""
2529 "C<virt-ls> has four output modes, controlled by different combinations of "
2530 "the I<-l> and I<-R> options."
2531 msgstr ""
2532
2533 #. type: =head2
2534 #: ../cat/virt-ls.pod:89
2535 msgid "SIMPLE LISTING"
2536 msgstr "ПРОСТИЙ СПИСОК"
2537
2538 #. type: textblock
2539 #: ../cat/virt-ls.pod:91
2540 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2541 msgstr ""
2542
2543 #. type: verbatim
2544 #: ../cat/virt-ls.pod:93
2545 #, no-wrap
2546 msgid ""
2547 " $ virt-ls -d guest /\n"
2548 " bin\n"
2549 " boot\n"
2550 " [etc.]\n"
2551 "\n"
2552 msgstr ""
2553 " $ virt-ls -d guest /\n"
2554 " bin\n"
2555 " boot\n"
2556 " [тощо]\n"
2557 "\n"
2558
2559 #. type: =head2
2560 #: ../cat/virt-ls.pod:98
2561 msgid "LONG LISTING"
2562 msgstr "ДОВГИЙ СПИСОК"
2563
2564 #. type: textblock
2565 #: ../cat/virt-ls.pod:100
2566 msgid ""
2567 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2568 "(more specifically, like the C<guestfs_ll> function)."
2569 msgstr ""
2570
2571 #. type: verbatim
2572 #: ../cat/virt-ls.pod:103
2573 #, no-wrap
2574 msgid ""
2575 " $ virt-ls -l -d guest /\n"
2576 " total 204\n"
2577 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2578 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2579 " [etc.]\n"
2580 "\n"
2581 msgstr ""
2582 " $ virt-ls -l -d guest /\n"
2583 " total 204\n"
2584 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2585 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2586 " [тощо]\n"
2587 "\n"
2588
2589 #. type: textblock
2590 #: ../cat/virt-ls.pod:109
2591 msgid ""
2592 "Note that while this is useful for displaying a directory, do not try "
2593 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2594 "instead."
2595 msgstr ""
2596
2597 #. type: =head2
2598 #: ../cat/virt-ls.pod:113
2599 msgid "RECURSIVE LISTING"
2600 msgstr "РЕКУРСИВНИЙ СПИСОК"
2601
2602 #. type: textblock
2603 #: ../cat/virt-ls.pod:115
2604 msgid ""
2605 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2606 "and directories recursively:"
2607 msgstr ""
2608
2609 #. type: verbatim
2610 #: ../cat/virt-ls.pod:118
2611 #, no-wrap
2612 msgid ""
2613 " $ virt-ls -R -d guest /tmp\n"
2614 " foo\n"
2615 " foo/bar\n"
2616 " [etc.]\n"
2617 "\n"
2618 msgstr ""
2619 " $ virt-ls -R -d guest /tmp\n"
2620 " foo\n"
2621 " foo/bar\n"
2622 " [тощо]\n"
2623 "\n"
2624
2625 #. type: textblock
2626 #: ../cat/virt-ls.pod:123
2627 msgid ""
2628 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2629 "converts C<\\0> characters to C<\\n>."
2630 msgstr ""
2631
2632 #. type: =head2
2633 #: ../cat/virt-ls.pod:126
2634 msgid "RECURSIVE LONG LISTING"
2635 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2636
2637 #. type: textblock
2638 #: ../cat/virt-ls.pod:128
2639 msgid ""
2640 "Using I<-lR> options together changes the output to display directories "
2641 "recursively, with file stats, and optionally other features such as "
2642 "checksums and extended attributes."
2643 msgstr ""
2644
2645 #. type: textblock
2646 #: ../cat/virt-ls.pod:132
2647 msgid ""
2648 "Most of the interesting features of C<virt-ls> are only available when using "
2649 "I<-lR> mode."
2650 msgstr ""
2651
2652 #. type: textblock
2653 #: ../cat/virt-ls.pod:135
2654 msgid ""
2655 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2656 "you cannot use the output in another program (because filenames can contain "
2657 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2658 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2659 "on you by creating filenames with embedded newline characters.  To B<safely> "
2660 "parse the output in another program, use the I<--csv> (Comma-Separated "
2661 "Values) option."
2662 msgstr ""
2663
2664 #. type: textblock
2665 #: ../cat/virt-ls.pod:143
2666 msgid ""
2667 "Note that this output format is completely unrelated to the C<ls -lR> "
2668 "command."
2669 msgstr ""
2670
2671 #. type: verbatim
2672 #: ../cat/virt-ls.pod:146
2673 #, no-wrap
2674 msgid ""
2675 " $ virt-ls -lR -d guest /bin\n"
2676 " d 0555       4096 /bin\n"
2677 " - 0755        123 /bin/alsaunmute\n"
2678 " - 0755      28328 /bin/arch\n"
2679 " l 0777          4 /bin/awk -> gawk\n"
2680 " - 0755      27216 /bin/basename\n"
2681 " - 0755     943360 /bin/bash\n"
2682 " [etc.]\n"
2683 "\n"
2684 msgstr ""
2685 " $ virt-ls -lR -d guest /bin\n"
2686 " d 0555       4096 /bin\n"
2687 " - 0755        123 /bin/alsaunmute\n"
2688 " - 0755      28328 /bin/arch\n"
2689 " l 0777          4 /bin/awk -> gawk\n"
2690 " - 0755      27216 /bin/basename\n"
2691 " - 0755     943360 /bin/bash\n"
2692 " [тощо]\n"
2693 "\n"
2694
2695 #. type: textblock
2696 #: ../cat/virt-ls.pod:155
2697 msgid "These basic fields are always shown:"
2698 msgstr ""
2699
2700 #. type: =item
2701 #: ../cat/virt-ls.pod:159
2702 msgid "type"
2703 msgstr "тип"
2704
2705 #. type: textblock
2706 #: ../cat/virt-ls.pod:161
2707 msgid ""
2708 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2709 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2710 "link), C<s> (socket) or C<u> (unknown)."
2711 msgstr ""
2712
2713 #. type: =item
2714 #: ../cat/virt-ls.pod:171
2715 msgid "permissions"
2716 msgstr "права доступу"
2717
2718 #. type: textblock
2719 #: ../cat/virt-ls.pod:173
2720 msgid "The Unix permissions, displayed as a 4 digit octal number."
2721 msgstr ""
2722
2723 #. type: =item
2724 #: ../cat/virt-ls.pod:175
2725 msgid "size"
2726 msgstr "розмір"
2727
2728 #. type: textblock
2729 #: ../cat/virt-ls.pod:177
2730 msgid ""
2731 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2732 "readable> option is given, in which case this is shown as a human-readable "
2733 "number."
2734 msgstr ""
2735
2736 #. type: =head2
2737 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2738 msgid "path"
2739 msgstr "шлях"
2740
2741 #. type: textblock
2742 #: ../cat/virt-ls.pod:183
2743 msgid "The full path of the file or directory."
2744 msgstr ""
2745
2746 #. type: =item
2747 #: ../cat/virt-ls.pod:185
2748 msgid "link"
2749 msgstr "посилання"
2750
2751 #. type: textblock
2752 #: ../cat/virt-ls.pod:187
2753 msgid "For symbolic links only, the link target."
2754 msgstr ""
2755
2756 #. type: textblock
2757 #: ../cat/virt-ls.pod:191
2758 msgid ""
2759 "In I<-lR> mode, additional command line options enable the display of more "
2760 "fields."
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../cat/virt-ls.pod:194
2765 msgid ""
2766 "With the I<--uids> flag, these additional fields are displayed before the "
2767 "path:"
2768 msgstr ""
2769
2770 #. type: =item
2771 #: ../cat/virt-ls.pod:199
2772 msgid "uid"
2773 msgstr "uid"
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:201
2777 msgid "gid"
2778 msgstr "gid"
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:203
2782 msgid ""
2783 "The UID and GID of the owner of the file (displayed numerically).  Note "
2784 "these only make sense in the context of a Unix-like guest."
2785 msgstr ""
2786
2787 #. type: textblock
2788 #: ../cat/virt-ls.pod:208
2789 msgid "With the I<--times> flag, these additional fields are displayed:"
2790 msgstr ""
2791
2792 #. type: =item
2793 #: ../cat/virt-ls.pod:212
2794 msgid "atime"
2795 msgstr "atime"
2796
2797 #. type: textblock
2798 #: ../cat/virt-ls.pod:214
2799 msgid "The time of last access."
2800 msgstr "Час останнього доступу."
2801
2802 #. type: =item
2803 #: ../cat/virt-ls.pod:216
2804 msgid "mtime"
2805 msgstr "mtime"
2806
2807 #. type: textblock
2808 #: ../cat/virt-ls.pod:218
2809 msgid "The time of last modification."
2810 msgstr "Час останнього внесення змін."
2811
2812 #. type: =item
2813 #: ../cat/virt-ls.pod:220
2814 msgid "ctime"
2815 msgstr "ctime"
2816
2817 #. type: textblock
2818 #: ../cat/virt-ls.pod:222
2819 msgid "The time of last status change."
2820 msgstr "Час останньої зміни стану."
2821
2822 #. type: textblock
2823 #: ../cat/virt-ls.pod:226
2824 msgid ""
2825 "The time fields are displayed as string dates and times, unless one of the "
2826 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2827 msgstr ""
2828
2829 #. type: textblock
2830 #: ../cat/virt-ls.pod:229
2831 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2832 msgstr ""
2833
2834 #. type: =item
2835 #: ../cat/virt-ls.pod:233
2836 msgid "device"
2837 msgstr "пристрій"
2838
2839 #. type: textblock
2840 #: ../cat/virt-ls.pod:235
2841 msgid ""
2842 "The device containing the file (displayed as major:minor).  This may not "
2843 "match devices as known to the guest."
2844 msgstr ""
2845
2846 #. type: =item
2847 #: ../cat/virt-ls.pod:238
2848 msgid "inode"
2849 msgstr "inode"
2850
2851 #. type: textblock
2852 #: ../cat/virt-ls.pod:240
2853 msgid "The inode number."
2854 msgstr ""
2855
2856 #. type: =item
2857 #: ../cat/virt-ls.pod:242
2858 msgid "nlink"
2859 msgstr "nlink"
2860
2861 #. type: textblock
2862 #: ../cat/virt-ls.pod:244
2863 msgid "The number of hard links."
2864 msgstr "Кількість жорстких посилань."
2865
2866 #. type: =item
2867 #: ../cat/virt-ls.pod:246
2868 msgid "rdev"
2869 msgstr "rdev"
2870
2871 #. type: textblock
2872 #: ../cat/virt-ls.pod:248
2873 msgid ""
2874 "For block and char special files, the device (displayed as major:minor)."
2875 msgstr ""
2876
2877 #. type: =item
2878 #: ../cat/virt-ls.pod:251
2879 msgid "blocks"
2880 msgstr "блоки"
2881
2882 #. type: textblock
2883 #: ../cat/virt-ls.pod:253
2884 msgid "The number of 512 byte blocks allocated to the file."
2885 msgstr ""
2886
2887 #. type: textblock
2888 #: ../cat/virt-ls.pod:257
2889 msgid ""
2890 "With the I<--checksum> flag, the checksum of the file contents is shown "
2891 "(only for regular files).  Computing file checksums can take a considerable "
2892 "amount of time."
2893 msgstr ""
2894
2895 #. type: =item
2896 #: ../cat/virt-ls.pod:280
2897 msgid "B<--checksum>"
2898 msgstr "B<--checksum>"
2899
2900 #. type: =item
2901 #: ../cat/virt-ls.pod:282
2902 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2903 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2904
2905 #. type: textblock
2906 #: ../cat/virt-ls.pod:284
2907 msgid ""
2908 "Display checksum over file contents for regular files.  With no argument, "
2909 "this defaults to using I<md5>.  Using an argument, you can select the "
2910 "checksum type to use."
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2915 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2916 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2917 msgid ""
2918 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2919 "LISTING> above."
2920 msgstr ""
2921
2922 #. type: textblock
2923 #: ../cat/virt-ls.pod:316
2924 msgid ""
2925 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2926 "so you cannot see what you are typing.  If you are not worried about Tempest "
2927 "attacks and there is no one else in the room you can specify this flag to "
2928 "see what you are typing."
2929 msgstr ""
2930
2931 #. type: =item
2932 #: ../cat/virt-ls.pod:321
2933 msgid "B<--extra-stats>"
2934 msgstr "B<--extra-stats>"
2935
2936 #. type: textblock
2937 #: ../cat/virt-ls.pod:323
2938 msgid "Display extra stats."
2939 msgstr "Показати додаткові дані."
2940
2941 #. type: verbatim
2942 #: ../cat/virt-ls.pod:339
2943 #, no-wrap
2944 msgid ""
2945 " virt-ls --format=raw -a disk.img /dir\n"
2946 "\n"
2947 msgstr ""
2948
2949 #. type: verbatim
2950 #: ../cat/virt-ls.pod:343
2951 #, no-wrap
2952 msgid ""
2953 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2954 "\n"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../cat/virt-ls.pod:356
2959 msgid "Display file sizes in human-readable format."
2960 msgstr ""
2961
2962 #. type: =item
2963 #: ../cat/virt-ls.pod:370
2964 msgid "B<-R>"
2965 msgstr "B<-R>"
2966
2967 #. type: =item
2968 #: ../cat/virt-ls.pod:372
2969 msgid "B<--recursive>"
2970 msgstr "B<--recursive>"
2971
2972 #. type: textblock
2973 #: ../cat/virt-ls.pod:374
2974 msgid ""
2975 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2976 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2977 "LISTING>."
2978 msgstr ""
2979
2980 #. type: textblock
2981 #: ../cat/virt-ls.pod:378
2982 msgid ""
2983 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2984 "LONG LISTING>."
2985 msgstr ""
2986
2987 #. type: textblock
2988 #: ../cat/virt-ls.pod:381
2989 msgid ""
2990 "C<virt-ls -R> produces a recursive list of files starting at the named "
2991 "directory.  See L</RECURSIVE LISTING>."
2992 msgstr ""
2993
2994 #. type: textblock
2995 #: ../cat/virt-ls.pod:384
2996 msgid ""
2997 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2998 "parsed.  See L</RECURSIVE LONG LISTING>."
2999 msgstr ""
3000
3001 #. type: =item
3002 #: ../cat/virt-ls.pod:387
3003 msgid "B<--times>"
3004 msgstr "B<--times>"
3005
3006 #. type: textblock
3007 #: ../cat/virt-ls.pod:389
3008 msgid "Display time fields."
3009 msgstr ""
3010
3011 #. type: =item
3012 #: ../cat/virt-ls.pod:394
3013 msgid "B<--time-days>"
3014 msgstr "B<--time-days>"
3015
3016 #. type: textblock
3017 #: ../cat/virt-ls.pod:396
3018 msgid "Display time fields as days before now (negative if in the future)."
3019 msgstr ""
3020
3021 #. type: textblock
3022 #: ../cat/virt-ls.pod:398
3023 msgid ""
3024 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3025 "of the file is between 0 and 86399 seconds."
3026 msgstr ""
3027
3028 #. type: =item
3029 #: ../cat/virt-ls.pod:404
3030 msgid "B<--time-relative>"
3031 msgstr "B<--time-relative>"
3032
3033 #. type: textblock
3034 #: ../cat/virt-ls.pod:406
3035 msgid "Display time fields as seconds before now (negative if in the future)."
3036 msgstr ""
3037
3038 #. type: =item
3039 #: ../cat/virt-ls.pod:411
3040 msgid "B<--time-t>"
3041 msgstr "B<--time-t>"
3042
3043 #. type: textblock
3044 #: ../cat/virt-ls.pod:413
3045 msgid "Display time fields as seconds since the Unix epoch."
3046 msgstr ""
3047
3048 #. type: =item
3049 #: ../cat/virt-ls.pod:418
3050 msgid "B<--uids>"
3051 msgstr "B<--uids>"
3052
3053 #. type: textblock
3054 #: ../cat/virt-ls.pod:420
3055 msgid "Display UID and GID fields."
3056 msgstr ""
3057
3058 #. type: textblock
3059 #: ../cat/virt-ls.pod:445
3060 msgid "Previous versions of virt-ls allowed you to write either:"
3061 msgstr ""
3062
3063 #. type: verbatim
3064 #: ../cat/virt-ls.pod:447
3065 #, no-wrap
3066 msgid ""
3067 " virt-ls disk.img [disk.img ...] /dir\n"
3068 "\n"
3069 msgstr ""
3070
3071 #. type: verbatim
3072 #: ../cat/virt-ls.pod:451
3073 #, no-wrap
3074 msgid ""
3075 " virt-ls guestname /dir\n"
3076 "\n"
3077 msgstr ""
3078
3079 #. type: textblock
3080 #: ../cat/virt-ls.pod:497
3081 msgid ""
3082 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3083 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3084 "L<http://libguestfs.org/>."
3085 msgstr ""
3086 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3087 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3088 "L<http://libguestfs.org/>."
3089
3090 #. type: textblock
3091 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374
3092 #: ../rescue/virt-rescue.pod:302
3093 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3094 msgstr "©Red Hat Inc., 2009–2011"
3095
3096 #. type: textblock
3097 #: ../clone/virt-sysprep.pod:5
3098 msgid ""
3099 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3100 msgstr ""
3101
3102 #. type: verbatim
3103 #: ../clone/virt-sysprep.pod:9
3104 #, no-wrap
3105 msgid ""
3106 " virt-sysprep [--options] -d domname\n"
3107 "\n"
3108 msgstr ""
3109
3110 #. type: verbatim
3111 #: ../clone/virt-sysprep.pod:11
3112 #, no-wrap
3113 msgid ""
3114 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3115 "\n"
3116 msgstr ""
3117
3118 #. type: textblock
3119 #: ../clone/virt-sysprep.pod:15
3120 msgid ""
3121 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3122 "can be made from it.  Steps in this process include removing SSH host keys, "
3123 "removing persistent network MAC configuration, and removing user accounts.  "
3124 "Each step can be enabled or disabled as required."
3125 msgstr ""
3126
3127 #. type: textblock
3128 #: ../clone/virt-sysprep.pod:21
3129 msgid ""
3130 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3131 "customization by the system administrator."
3132 msgstr ""
3133
3134 #. type: textblock
3135 #: ../clone/virt-sysprep.pod:24
3136 msgid ""
3137 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3138 "be shut down.  If you want to preserve the existing contents of the guest, "
3139 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3140 msgstr ""
3141
3142 #. type: textblock
3143 #: ../clone/virt-sysprep.pod:29
3144 msgid ""
3145 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3146 "recommend that you don't.  The time you might want to run it as root is when "
3147 "you need root in order to access the disk image, but even in this case it "
3148 "would be better to change the permissions on the disk image to be writable "
3149 "as the non-root user running virt-sysprep."
3150 msgstr ""
3151
3152 #. type: textblock
3153 #: ../clone/virt-sysprep.pod:35
3154 msgid ""
3155 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3156 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3157 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3158 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3159 "Windows sysprepping in a future version, and we already have code to do it."
3160 msgstr ""
3161
3162 #. type: =item
3163 #: ../clone/virt-sysprep.pod:76
3164 msgid "B<--enable=...>"
3165 msgstr ""
3166
3167 #. type: textblock
3168 #: ../clone/virt-sysprep.pod:78
3169 msgid ""
3170 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3171 "operations, for example:"
3172 msgstr ""
3173
3174 #. type: verbatim
3175 #: ../clone/virt-sysprep.pod:81
3176 #, no-wrap
3177 msgid ""
3178 " --enable=ssh-hostkeys,udev-persistent-net\n"
3179 "\n"
3180 msgstr ""
3181
3182 #. type: textblock
3183 #: ../clone/virt-sysprep.pod:83
3184 msgid ""
3185 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3186 msgstr ""
3187
3188 #. type: textblock
3189 #: ../clone/virt-sysprep.pod:85
3190 msgid ""
3191 "If the I<--enable> option is not given, then we default to trying all "
3192 "possible sysprep operations.  But some sysprep operations are skipped for "
3193 "some guest types."
3194 msgstr ""
3195
3196 #. type: textblock
3197 #: ../clone/virt-sysprep.pod:89
3198 msgid ""
3199 "Use I<--list-operations> to list operations supported by a particular "
3200 "version of virt-sysprep."
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../clone/virt-sysprep.pod:92
3205 msgid ""
3206 "See L</OPERATIONS> below for a list and an explanation of each operation."
3207 msgstr ""
3208
3209 #. type: verbatim
3210 #: ../clone/virt-sysprep.pod:106
3211 #, no-wrap
3212 msgid ""
3213 " virt-sysprep --format=raw -a disk.img\n"
3214 "\n"
3215 msgstr ""
3216
3217 #. type: verbatim
3218 #: ../clone/virt-sysprep.pod:110
3219 #, no-wrap
3220 msgid ""
3221 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3222 "\n"
3223 msgstr ""
3224
3225 #. type: =item
3226 #: ../clone/virt-sysprep.pod:119
3227 msgid "B<--hostname> newhostname"
3228 msgstr ""
3229
3230 #. type: textblock
3231 #: ../clone/virt-sysprep.pod:121
3232 msgid ""
3233 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3234 "defaults to C<localhost.localdomain>."
3235 msgstr ""
3236
3237 #. type: =item
3238 #: ../clone/virt-sysprep.pod:124
3239 msgid "B<--list-operations>"
3240 msgstr ""
3241
3242 #. type: textblock
3243 #: ../clone/virt-sysprep.pod:126
3244 msgid "List the operations supported by the virt-sysprep program."
3245 msgstr ""
3246
3247 #. type: =item
3248 #: ../clone/virt-sysprep.pod:128
3249 msgid "B<--selinux-relabel>"
3250 msgstr ""
3251
3252 #. type: =item
3253 #: ../clone/virt-sysprep.pod:130
3254 msgid "B<--no-selinux-relabel>"
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../clone/virt-sysprep.pod:132
3259 msgid ""
3260 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3261 "I<--no-selinux-relabel> disables relabelling."
3262 msgstr ""
3263
3264 #. type: textblock
3265 #: ../clone/virt-sysprep.pod:135
3266 msgid ""
3267 "The default is to try to detect if SELinux relabelling is required.  See L</"
3268 "SELINUX RELABELLING> below for more details."
3269 msgstr ""
3270
3271 #. type: =head1
3272 #: ../clone/virt-sysprep.pod:156
3273 msgid "OPERATIONS"
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../clone/virt-sysprep.pod:158
3278 msgid ""
3279 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3280 "enabled>, although some are skipped depending on the type of guest."
3281 msgstr ""
3282
3283 #. type: textblock
3284 #: ../clone/virt-sysprep.pod:162
3285 msgid ""
3286 "Operations can be individually enabled using the I<--enable> option.  Use a "
3287 "comma-separated list, for example:"
3288 msgstr ""
3289
3290 #. type: verbatim
3291 #: ../clone/virt-sysprep.pod:165
3292 #, no-wrap
3293 msgid ""
3294 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3295 "\n"
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../clone/virt-sysprep.pod:167
3300 msgid ""
3301 "To list the operations supported by the current version of virt-sysprep, use "
3302 "I<--list-operations>."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../clone/virt-sysprep.pod:170
3307 msgid ""
3308 "Future versions of virt-sysprep may add more operations.  If you are using "
3309 "virt-sysprep and want predictable behaviour, specify only the operations "
3310 "that you want to have enabled."
3311 msgstr ""
3312
3313 #. type: =head2
3314 #: ../clone/virt-sysprep.pod:174
3315 msgid "cron-spool"
3316 msgstr ""
3317
3318 #. type: textblock
3319 #: ../clone/virt-sysprep.pod:176
3320 msgid "Remove user at-jobs and cron-jobs."
3321 msgstr ""
3322
3323 #. type: =head2
3324 #: ../clone/virt-sysprep.pod:178
3325 msgid "dhcp-client-state"
3326 msgstr ""
3327
3328 #. type: textblock
3329 #: ../clone/virt-sysprep.pod:180
3330 msgid "Remove DHCP client leases."
3331 msgstr ""
3332
3333 #. type: =head2
3334 #: ../clone/virt-sysprep.pod:182
3335 msgid "dhcp-server-state"
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../clone/virt-sysprep.pod:184
3340 msgid "Remove DHCP server leases."
3341 msgstr ""
3342
3343 #. type: =head2
3344 #: ../clone/virt-sysprep.pod:186
3345 msgid "hostname"
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../clone/virt-sysprep.pod:188
3350 msgid ""
3351 "Changes the hostname of the guest to the value given in the I<--hostname> "
3352 "parameter."
3353 msgstr ""
3354
3355 #. type: textblock
3356 #: ../clone/virt-sysprep.pod:191
3357 msgid ""
3358 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3359 "C<localhost.localdomain>."
3360 msgstr ""
3361
3362 #. type: =head2
3363 #: ../clone/virt-sysprep.pod:194
3364 msgid "logfiles"
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:196
3369 msgid "Remove many log files."
3370 msgstr ""
3371
3372 #. type: =head2
3373 #: ../clone/virt-sysprep.pod:198
3374 msgid "mail-spool"
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../clone/virt-sysprep.pod:200
3379 msgid "Remove email from the local mail spool directory."
3380 msgstr ""
3381
3382 #. type: =head2
3383 #: ../clone/virt-sysprep.pod:202
3384 msgid "net-hwaddr"
3385 msgstr ""
3386
3387 #. type: textblock
3388 #: ../clone/virt-sysprep.pod:204
3389 msgid ""
3390 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3391 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3392 msgstr ""
3393
3394 #. type: =head2
3395 #: ../clone/virt-sysprep.pod:207
3396 msgid "random-seed"
3397 msgstr ""
3398
3399 #. type: textblock
3400 #: ../clone/virt-sysprep.pod:209
3401 msgid ""
3402 "Write some random bytes from the host into the random seed file of the guest."
3403 msgstr ""
3404
3405 #. type: textblock
3406 #: ../clone/virt-sysprep.pod:212
3407 msgid "See L</RANDOM SEED> below."
3408 msgstr ""
3409
3410 #. type: =head2
3411 #: ../clone/virt-sysprep.pod:214
3412 msgid "rhn-systemid"
3413 msgstr ""
3414
3415 #. type: textblock
3416 #: ../clone/virt-sysprep.pod:216
3417 msgid "Remove the RHN system ID."
3418 msgstr ""
3419
3420 #. type: =head2
3421 #: ../clone/virt-sysprep.pod:218
3422 msgid "smolt-uuid"
3423 msgstr ""
3424
3425 #. type: textblock
3426 #: ../clone/virt-sysprep.pod:220
3427 msgid "Remove the Smolt hardware UUID."
3428 msgstr ""
3429
3430 #. type: =head2
3431 #: ../clone/virt-sysprep.pod:222
3432 msgid "ssh-hostkeys"
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../clone/virt-sysprep.pod:224
3437 msgid "Remove the SSH host keys in the guest."
3438 msgstr ""
3439
3440 #. type: textblock
3441 #: ../clone/virt-sysprep.pod:226
3442 msgid ""
3443 "The SSH host keys are regenerated (differently) next time the guest is "
3444 "booted."
3445 msgstr ""
3446
3447 #. type: textblock
3448 #: ../clone/virt-sysprep.pod:229
3449 msgid ""
3450 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3451 "stark warning about the host key changing:"
3452 msgstr ""
3453
3454 #. type: verbatim
3455 #: ../clone/virt-sysprep.pod:232
3456 #, no-wrap
3457 msgid ""
3458 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3459 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3460 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3461 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3462 "\n"
3463 msgstr ""
3464
3465 #. type: =head2
3466 #: ../clone/virt-sysprep.pod:237
3467 msgid "udev-persistent-net"
3468 msgstr ""
3469
3470 #. type: textblock
3471 #: ../clone/virt-sysprep.pod:239
3472 msgid ""
3473 "Remove udev persistent net rules which map the guest's existing MAC address "
3474 "to a fixed ethernet device (eg. eth0)."
3475 msgstr ""
3476
3477 #. type: textblock
3478 #: ../clone/virt-sysprep.pod:242
3479 msgid ""
3480 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3481 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3482 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3483 "Erasing the udev persistent net rules avoids this."
3484 msgstr ""
3485
3486 #. type: =head2
3487 #: ../clone/virt-sysprep.pod:247
3488 msgid "utmp"
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../clone/virt-sysprep.pod:249
3493 msgid "Remove the utmp file."
3494 msgstr ""
3495
3496 #. type: textblock
3497 #: ../clone/virt-sysprep.pod:251
3498 msgid ""
3499 "This records who is currently logged in on a machine.  In modern Linux "
3500 "distros it is stored in a ramdisk and hence not part of the virtual "
3501 "machine's disk, but it was stored on disk in older distros."
3502 msgstr ""
3503
3504 #. type: =head2
3505 #: ../clone/virt-sysprep.pod:255
3506 msgid "yum-uuid"
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../clone/virt-sysprep.pod:257
3511 msgid "Remove the yum UUID."
3512 msgstr ""
3513
3514 #. type: textblock
3515 #: ../clone/virt-sysprep.pod:259
3516 msgid ""
3517 "Yum creates a fresh UUID the next time it runs when it notices that the "
3518 "original UUID has been erased."
3519 msgstr ""
3520
3521 #. type: =head1
3522 #: ../clone/virt-sysprep.pod:262
3523 msgid "COPYING AND CLONING"
3524 msgstr ""
3525
3526 #. type: textblock
3527 #: ../clone/virt-sysprep.pod:264
3528 msgid ""
3529 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3530 "prepare a template from which guests can be cloned.  There are many "
3531 "different ways to achieve this using the virt tools, and this section is "
3532 "just an introduction."
3533 msgstr ""
3534
3535 #. type: textblock
3536 #: ../clone/virt-sysprep.pod:269
3537 msgid "A virtual machine (when switched off) consists of two parts:"
3538 msgstr ""
3539
3540 #. type: =item
3541 #: ../clone/virt-sysprep.pod:273
3542 msgid "I<configuration>"
3543 msgstr ""
3544
3545 #. type: textblock
3546 #: ../clone/virt-sysprep.pod:275
3547 msgid ""
3548 "The configuration or description of the guest.  eg. The libvirt XML (see "
3549 "C<virsh dumpxml>), the running configuration of the guest, or another "
3550 "external format like OVF."
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../clone/virt-sysprep.pod:279
3555 msgid "Some configuration items that might need to be changed:"
3556 msgstr ""
3557
3558 #. type: textblock
3559 #: ../clone/virt-sysprep.pod:285
3560 msgid "name"
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3565 msgid "UUID"
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../clone/virt-sysprep.pod:293
3570 msgid "path to block device(s)"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../clone/virt-sysprep.pod:297
3575 msgid "network card MAC address"
3576 msgstr ""
3577
3578 #. type: =item
3579 #: ../clone/virt-sysprep.pod:301
3580 msgid "I<block device(s)>"
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../clone/virt-sysprep.pod:303
3585 msgid ""
3586 "One or more hard disk images, themselves containing files, directories, "
3587 "applications, kernels, configuration, etc."
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../clone/virt-sysprep.pod:306
3592 msgid "Some things inside the block devices that might need to be changed:"
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../clone/virt-sysprep.pod:312
3597 msgid "hostname and other net configuration"
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../clone/virt-sysprep.pod:320
3602 msgid "SSH host keys"
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../clone/virt-sysprep.pod:324
3607 msgid "Windows unique security ID (SID)"
3608 msgstr ""
3609
3610 #. type: textblock
3611 #: ../clone/virt-sysprep.pod:328
3612 msgid "Puppet registration"
3613 msgstr ""
3614
3615 #. type: =head2
3616 #: ../clone/virt-sysprep.pod:334
3617 msgid "COPYING THE BLOCK DEVICE"
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../clone/virt-sysprep.pod:336
3622 msgid ""
3623 "Starting with an original guest, you probably wish to copy the guest block "
3624 "device and its configuration to make a template.  Then once you are happy "
3625 "with the template, you will want to make many clones from it."
3626 msgstr ""
3627
3628 #. type: verbatim
3629 #: ../clone/virt-sysprep.pod:341
3630 #, no-wrap
3631 msgid ""
3632 "                        virt-sysprep\n"
3633 "                             |\n"
3634 "                             v\n"
3635 " original guest --------> template ---------->\n"
3636 "                                      \\------> cloned\n"
3637 "                                       \\-----> guests\n"
3638 "                                        \\---->\n"
3639 "\n"
3640 msgstr ""
3641
3642 #. type: textblock
3643 #: ../clone/virt-sysprep.pod:349
3644 msgid ""
3645 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3646 "L<dd(1)>."
3647 msgstr ""
3648
3649 #. type: verbatim
3650 #: ../clone/virt-sysprep.pod:352
3651 #, no-wrap
3652 msgid ""
3653 "                   dd                 dd\n"
3654 " original guest --------> template ---------->\n"
3655 "                                      \\------> cloned\n"
3656 "                                       \\-----> guests\n"
3657 "                                        \\---->\n"
3658 "\n"
3659 msgstr ""
3660
3661 #. type: textblock
3662 #: ../clone/virt-sysprep.pod:358
3663 msgid "There are some smarter (and faster) ways too:"
3664 msgstr ""
3665
3666 #. type: verbatim
3667 #: ../clone/virt-sysprep.pod:364
3668 #, no-wrap
3669 msgid ""
3670 "                          snapshot\n"
3671 "                template ---------->\n"
3672 "                            \\------> cloned\n"
3673 "                             \\-----> guests\n"
3674 "                              \\---->\n"
3675 "\n"
3676 msgstr ""
3677
3678 #. type: textblock
3679 #: ../clone/virt-sysprep.pod:370
3680 msgid ""
3681 "Use the block device as a backing file and create a snapshot on top for each "
3682 "guest.  The advantage is that you don't need to copy the block device (very "
3683 "fast) and only changes are stored (less storage required)."
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../clone/virt-sysprep.pod:375
3688 msgid ""
3689 "Note that writing to the backing file once you have created guests on top of "
3690 "it is not possible: you will corrupt the guests."
3691 msgstr ""
3692
3693 #. type: textblock
3694 #: ../clone/virt-sysprep.pod:378
3695 msgid ""
3696 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3697 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3698 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3699 "also create cheap snapshots from files or LUNs."
3700 msgstr ""
3701
3702 #. type: textblock
3703 #: ../clone/virt-sysprep.pod:386
3704 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3705 msgstr ""
3706
3707 #. type: textblock
3708 #: ../clone/virt-sysprep.pod:390
3709 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3710 msgstr ""
3711
3712 #. type: =head2
3713 #: ../clone/virt-sysprep.pod:394
3714 msgid "VIRT-CLONE"
3715 msgstr ""
3716
3717 #. type: textblock
3718 #: ../clone/virt-sysprep.pod:396
3719 msgid ""
3720 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3721 "and/or modify the external libvirt configuration of a guest.  It will reset "
3722 "the name, UUID and MAC address of the guest in the libvirt XML."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../clone/virt-sysprep.pod:401
3727 msgid ""
3728 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3729 "image.  This was the original motivation to write virt-sysprep."
3730 msgstr ""
3731
3732 #. type: =head2
3733 #: ../clone/virt-sysprep.pod:404
3734 msgid "SPARSIFY"
3735 msgstr ""
3736
3737 #. type: verbatim
3738 #: ../clone/virt-sysprep.pod:406
3739 #, no-wrap
3740 msgid ""
3741 "              virt-sparsify\n"
3742 " original guest --------> template\n"
3743 "\n"
3744 msgstr ""
3745
3746 #. type: textblock
3747 #: ../clone/virt-sysprep.pod:409
3748 msgid ""
3749 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3750 "it easier to compress and/or faster to copy."
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../clone/virt-sysprep.pod:412
3755 msgid ""
3756 "Notice that since virt-sparsify also copies the image, you can use it to "
3757 "make the initial copy (instead of C<dd>)."
3758 msgstr ""
3759
3760 #. type: =head2
3761 #: ../clone/virt-sysprep.pod:415
3762 msgid "RESIZE"
3763 msgstr ""
3764
3765 #. type: verbatim
3766 #: ../clone/virt-sysprep.pod:417
3767 #, no-wrap
3768 msgid ""
3769 "                         virt-resize\n"
3770 "                template ---------->\n"
3771 "                            \\------> cloned\n"
3772 "                             \\-----> guests\n"
3773 "                              \\---->\n"
3774 "\n"
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../clone/virt-sysprep.pod:423
3779 msgid ""
3780 "If you want to give people cloned guests, but let them pick the size of the "
3781 "guest themselves (eg. depending on how much they are prepared to pay for "
3782 "disk space), then instead of copying the template, you can run L<virt-resize"
3783 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3784 "guests from a template."
3785 msgstr ""
3786
3787 #. type: =head1
3788 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3789 msgid "SECURITY"
3790 msgstr "БЕЗПЕКА"
3791
3792 #. type: textblock
3793 #: ../clone/virt-sysprep.pod:431
3794 msgid ""
3795 "Although virt-sysprep removes some sensitive information from the guest, it "
3796 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3797 "above, and the implementation of the operations in the shell script.  You "
3798 "should also examine the guest afterwards."
3799 msgstr ""
3800
3801 #. type: textblock
3802 #: ../clone/virt-sysprep.pod:436
3803 msgid ""
3804 "Sensitive files are simply removed.  The data they contained may still exist "
3805 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3806 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3807 "(1)> command to get rid of deleted content in directory entries and inodes."
3808 msgstr ""
3809
3810 #. type: =head2
3811 #: ../clone/virt-sysprep.pod:442
3812 msgid "RANDOM SEED"
3813 msgstr ""
3814
3815 #. type: textblock
3816 #: ../clone/virt-sysprep.pod:444
3817 msgid "I<(This section applies to Linux guests only)>"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../clone/virt-sysprep.pod:446
3822 msgid ""
3823 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3824 "from the host into the guest's random seed file."
3825 msgstr ""
3826
3827 #. type: textblock
3828 #: ../clone/virt-sysprep.pod:449
3829 msgid ""
3830 "If this is just done once and the guest is cloned from the same template, "
3831 "then each guest will start with the same entropy, and things like SSH host "
3832 "keys and TCP sequence numbers may be predictable."
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../clone/virt-sysprep.pod:453
3837 msgid ""
3838 "Therefore you should arrange to add more randomness I<after> cloning from a "
3839 "template too, which can be done by just enabling the C<random-seed> "
3840 "operation:"
3841 msgstr ""
3842
3843 #. type: verbatim
3844 #: ../clone/virt-sysprep.pod:457
3845 #, no-wrap
3846 msgid ""
3847 " cp template.img newguest.img\n"
3848 " virt-sysprep --enable=random-seed -a newguest.img\n"
3849 "\n"
3850 msgstr ""
3851
3852 #. type: =head2
3853 #: ../clone/virt-sysprep.pod:460
3854 msgid "SELINUX RELABELLING"
3855 msgstr ""
3856
3857 #. type: textblock
3858 #: ../clone/virt-sysprep.pod:462
3859 msgid "I<(This section applies to Linux guests using SELinux only)>"
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../clone/virt-sysprep.pod:464
3864 msgid ""
3865 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3866 "autorelabel> so that these will be correctly labelled by SELinux the next "
3867 "time the guest is booted.  This process interrupts boot and can take some "
3868 "time."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../clone/virt-sysprep.pod:469
3873 msgid ""
3874 "You can force relabelling for all guests by supplying the I<--selinux-"
3875 "relabel> option."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../clone/virt-sysprep.pod:472
3880 msgid ""
3881 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3882 "relabel> option."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../clone/virt-sysprep.pod:484
3887 msgid "This program returns 0 on success, or 1 if there was an error."
3888 msgstr ""
3889
3890 #. type: textblock
3891 #: ../clone/virt-sysprep.pod:488
3892 msgid ""
3893 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3894 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3895 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../df/virt-df.pod:5
3900 msgid "virt-df - Display free space on virtual filesystems"
3901 msgstr ""
3902
3903 #. type: verbatim
3904 #: ../df/virt-df.pod:9
3905 #, no-wrap
3906 msgid ""
3907 " virt-df [--options]\n"
3908 "\n"
3909 msgstr ""
3910 " virt-df [--параметри]\n"
3911 "\n"
3912
3913 #. type: verbatim
3914 #: ../df/virt-df.pod:11
3915 #, no-wrap
3916 msgid ""
3917 " virt-df [--options] -d domname\n"
3918 "\n"
3919 msgstr ""
3920
3921 #. type: verbatim
3922 #: ../df/virt-df.pod:13
3923 #, no-wrap
3924 msgid ""
3925 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3926 "\n"
3927 msgstr ""
3928
3929 #. type: verbatim
3930 #: ../df/virt-df.pod:17
3931 #, no-wrap
3932 msgid ""
3933 " virt-df [--options] domname\n"
3934 "\n"
3935 msgstr ""
3936
3937 #. type: verbatim
3938 #: ../df/virt-df.pod:19
3939 #, no-wrap
3940 msgid ""
3941 " virt-df [--options] disk.img [disk.img ...]\n"
3942 "\n"
3943 msgstr ""
3944
3945 #. type: textblock
3946 #: ../df/virt-df.pod:23
3947 msgid ""
3948 "C<virt-df> is a command line tool to display free space on virtual machine "
3949 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3950 "allocated to a virtual machine, but can look inside disk images to see how "
3951 "much space is really being used."
3952 msgstr ""
3953
3954 #. type: textblock
3955 #: ../df/virt-df.pod:28
3956 msgid ""
3957 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3958 "to get a list of all active and inactive guests, and performs a C<df>-type "
3959 "operation on each one in turn, printing out the results."
3960 msgstr ""
3961
3962 #. type: textblock
3963 #: ../df/virt-df.pod:32
3964 msgid ""
3965 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3966 "type operation on either the single named libvirt domain, or on the disk "
3967 "image(s) listed on the command line (which must all belong to a single VM).  "
3968 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3969 "guest>.  If you want to run on multiple guests, then you have to invoke "
3970 "C<virt-df> multiple times."
3971 msgstr ""
3972
3973 #. type: textblock
3974 #: ../df/virt-df.pod:39
3975 msgid ""
3976 "Use the I<--csv> option to get a format which can be easily parsed by other "
3977 "programs.  Other options are similar to the standard L<df(1)> command."
3978 msgstr ""
3979
3980 #. type: textblock
3981 #: ../df/virt-df.pod:45
3982 msgid ""
3983 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3984 "output human-readable:"
3985 msgstr ""
3986
3987 #. type: verbatim
3988 #: ../df/virt-df.pod:48
3989 #, no-wrap
3990 msgid ""
3991 " # virt-df -d F14x64 -h\n"
3992 " Filesystem                       Size     Used  Available  Use%\n"
3993 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3994 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3995 "\n"
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../df/virt-df.pod:53
4000 msgid "Show disk usage for a disk image file called C<test.img>:"
4001 msgstr ""
4002
4003 #. type: verbatim
4004 #: ../df/virt-df.pod:55
4005 #, no-wrap
4006 msgid ""
4007 " $ virt-df -a test1.img\n"
4008 " Filesystem                  1K-blocks     Used  Available  Use%\n"
4009 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
4010 "\n"
4011 msgstr ""
4012
4013 #. type: verbatim
4014 #: ../df/virt-df.pod:112
4015 #, no-wrap
4016 msgid ""
4017 " virt-df --format=raw -a disk.img\n"
4018 "\n"
4019 msgstr ""
4020
4021 #. type: verbatim
4022 #: ../df/virt-df.pod:116
4023 #, no-wrap
4024 msgid ""
4025 " virt-df --format=raw -a disk.img --format -a another.img\n"
4026 "\n"
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../df/virt-df.pod:129
4031 msgid "Print sizes in human-readable format."
4032 msgstr ""
4033
4034 #. type: textblock
4035 #: ../df/virt-df.pod:131
4036 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4037 msgstr ""
4038
4039 #. type: =item
4040 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4041 msgid "B<-i>"
4042 msgstr "B<-i>"
4043
4044 #. type: =item
4045 #: ../df/virt-df.pod:135
4046 msgid "B<--inodes>"
4047 msgstr "B<--inodes>"
4048
4049 #. type: textblock
4050 #: ../df/virt-df.pod:137
4051 msgid "Print inodes instead of blocks."
4052 msgstr ""
4053
4054 #. type: =item
4055 #: ../df/virt-df.pod:139
4056 msgid "B<--one-per-guest>"
4057 msgstr "B<--one-per-guest>"
4058
4059 #. type: textblock
4060 #: ../df/virt-df.pod:141
4061 msgid ""
4062 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
4063 "disks from several guests to a single libguestfs appliance."
4064 msgstr ""
4065
4066 #. type: textblock
4067 #: ../df/virt-df.pod:144
4068 msgid "You might use this option in the following circumstances:"
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../df/virt-df.pod:150
4073 msgid ""
4074 "If you think an untrusted guest might actively try to exploit the libguestfs "
4075 "appliance kernel, then this prevents one guest from interfering with the "
4076 "stats printed for another guest."
4077 msgstr ""
4078
4079 #. type: textblock
4080 #: ../df/virt-df.pod:156
4081 msgid ""
4082 "If the kernel has a bug which stops it from accessing a filesystem in one "
4083 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4084 "and report stats for further guests."
4085 msgstr ""
4086
4087 #. type: textblock
4088 #: ../df/virt-df.pod:165
4089 msgid ""
4090 "Print UUIDs instead of names.  This is useful for following a guest even "
4091 "when the guest is migrated or renamed, or when two guests happen to have the "
4092 "same name."
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../df/virt-df.pod:169
4097 msgid ""
4098 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
4099 "images, we still print the disk image name even when this option is "
4100 "specified."
4101 msgstr ""
4102
4103 #. type: =head1
4104 #: ../df/virt-df.pod:191
4105 #, fuzzy
4106 #| msgid "NUMBERS"
4107 msgid "STATVFS NUMBERS"
4108 msgstr "ЧИСЛА"
4109
4110 #. type: textblock
4111 #: ../df/virt-df.pod:193
4112 msgid ""
4113 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
4114 "call.  You can get the same information directly, either from the host "
4115 "(using libguestfs) or inside the guest:"
4116 msgstr ""
4117
4118 #. type: =item
4119 #: ../df/virt-df.pod:199
4120 msgid "From the host"
4121 msgstr ""
4122
4123 #. type: textblock
4124 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
4125 #, fuzzy
4126 #| msgid ""
4127 #| " sh-lines command\n"
4128 #| "\n"
4129 msgid "Run this command:"
4130 msgstr ""
4131 " sh-lines команда\n"
4132 "\n"
4133
4134 #. type: verbatim
4135 #: ../df/virt-df.pod:203
4136 #, fuzzy, no-wrap
4137 #| msgid ""
4138 #| " guestfish --ro -d myguest -i\n"
4139 #| "\n"
4140 msgid ""
4141 " guestfish --ro -d GuestName -i statvfs /\n"
4142 "\n"
4143 msgstr ""
4144 " guestfish --ro -d myguest -i\n"
4145 "\n"
4146
4147 #. type: textblock
4148 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
4149 msgid "(change C</> to see stats for other filesystems)."
4150 msgstr ""
4151
4152 #. type: =item
4153 #: ../df/virt-df.pod:207
4154 msgid "From inside the guest"
4155 msgstr ""
4156
4157 #. type: verbatim
4158 #: ../df/virt-df.pod:211
4159 #, no-wrap
4160 msgid ""
4161 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
4162 "\n"
4163 msgstr ""
4164
4165 #. type: textblock
4166 #: ../df/virt-df.pod:255
4167 msgid ""
4168 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4169 "libguestfs.org/>."
4170 msgstr ""
4171
4172 #. type: textblock
4173 #: ../edit/virt-edit.pod:5
4174 msgid "virt-edit - Edit a file in a virtual machine"
4175 msgstr ""
4176
4177 #. type: verbatim
4178 #: ../edit/virt-edit.pod:9
4179 #, no-wrap
4180 msgid ""
4181 " virt-edit [--options] -d domname file [file ...]\n"
4182 "\n"
4183 msgstr ""
4184
4185 #. type: verbatim
4186 #: ../edit/virt-edit.pod:11
4187 #, no-wrap
4188 msgid ""
4189 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4190 "\n"
4191 msgstr ""
4192
4193 #. type: verbatim
4194 #: ../edit/virt-edit.pod:13
4195 #, no-wrap
4196 msgid ""
4197 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4198 "\n"
4199 msgstr ""
4200
4201 #. type: verbatim
4202 #: ../edit/virt-edit.pod:17
4203 #, no-wrap
4204 msgid ""
4205 " virt-edit domname file\n"
4206 "\n"
4207 msgstr ""
4208
4209 #. type: verbatim
4210 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4211 #, no-wrap
4212 msgid ""
4213 " virt-edit disk.img [disk.img ...] file\n"
4214 "\n"
4215 msgstr ""
4216
4217 #. type: =head1
4218 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4219 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4220 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4221 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4222 msgid "WARNING"
4223 msgstr "ПОПЕРЕДЖЕННЯ"
4224
4225 #. type: textblock
4226 #: ../edit/virt-edit.pod:23
4227 msgid ""
4228 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4229 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4230 "doing this, but doesn't catch all cases."
4231 msgstr ""
4232
4233 #. type: textblock
4234 #: ../edit/virt-edit.pod:29
4235 msgid ""
4236 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4237 "exists in the named virtual machine (or disk image)."
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../edit/virt-edit.pod:32
4242 msgid ""
4243 "Multiple filenames can be given, in which case they are each edited in "
4244 "turn.  Each filename must be a full path, starting at the root directory "
4245 "(starting with '/')."
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../edit/virt-edit.pod:36
4250 msgid "If you want to just view a file, use L<virt-cat(1)>."
4251 msgstr ""
4252
4253 #. type: textblock
4254 #: ../edit/virt-edit.pod:38
4255 msgid ""
4256 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4257 "USING GUESTFISH> below)."
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../edit/virt-edit.pod:41
4262 msgid ""
4263 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4264 "that and much more."
4265 msgstr ""
4266
4267 #. type: textblock
4268 #: ../edit/virt-edit.pod:46
4269 msgid "Edit the named files interactively:"
4270 msgstr ""
4271
4272 #. type: verbatim
4273 #: ../edit/virt-edit.pod:48
4274 #, no-wrap
4275 msgid ""
4276 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4277 "\n"
4278 msgstr ""
4279
4280 #. type: verbatim
4281 #: ../edit/virt-edit.pod:50
4282 #, no-wrap
4283 msgid ""
4284 " virt-edit -d mydomain /etc/passwd\n"
4285 "\n"
4286 msgstr ""
4287
4288 #. type: textblock
4289 #: ../edit/virt-edit.pod:52
4290 msgid "For Windows guests, some Windows paths are understood:"
4291 msgstr ""
4292
4293 #. type: verbatim
4294 #: ../edit/virt-edit.pod:54
4295 #, no-wrap
4296 msgid ""
4297 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4298 "\n"
4299 msgstr ""
4300
4301 #. type: textblock
4302 #: ../edit/virt-edit.pod:56
4303 msgid ""
4304 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4305 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4306 msgstr ""
4307
4308 #. type: verbatim
4309 #: ../edit/virt-edit.pod:60
4310 #, no-wrap
4311 msgid ""
4312 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4313 "\n"
4314 msgstr ""
4315
4316 #. type: =item
4317 #: ../edit/virt-edit.pod:81
4318 msgid "B<-b> extension"
4319 msgstr ""
4320
4321 #. type: =item
4322 #: ../edit/virt-edit.pod:83
4323 msgid "B<--backup> extension"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../edit/virt-edit.pod:85
4328 msgid ""
4329 "Create a backup of the original file I<in the guest disk image>.  The backup "
4330 "has the original filename with C<extension> added."
4331 msgstr ""
4332
4333 #. type: textblock
4334 #: ../edit/virt-edit.pod:88
4335 msgid ""
4336 "Usually the first character of C<extension> would be a dot C<.> so you would "
4337 "write:"
4338 msgstr ""
4339
4340 #. type: verbatim
4341 #: ../edit/virt-edit.pod:91
4342 #, no-wrap
4343 msgid ""
4344 " virt-edit -b .orig [etc]\n"
4345 "\n"
4346 msgstr ""
4347
4348 #. type: textblock
4349 #: ../edit/virt-edit.pod:93
4350 msgid "By default, no backup file is made."
4351 msgstr ""
4352
4353 #. type: =item
4354 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4355 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4356 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4357 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4358 msgid "B<-c URI>"
4359 msgstr "B<-c адреса>"
4360
4361 #. type: =item
4362 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4363 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4364 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4365 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4366 msgid "B<--connect URI>"
4367 msgstr "B<--connect адреса>"
4368
4369 #. type: textblock
4370 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4371 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4372 #: ../tools/virt-win-reg.pl:135
4373 msgid ""
4374 "If you specify guest block devices directly, then libvirt is not used at all."
4375 msgstr ""
4376
4377 #. type: textblock
4378 #: ../edit/virt-edit.pod:114
4379 msgid ""
4380 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4381 "off so you cannot see what you are typing.  If you are not worried about "
4382 "Tempest attacks and there is no one else in the room you can specify this "
4383 "flag to see what you are typing."
4384 msgstr ""
4385
4386 #. type: =item
4387 #: ../edit/virt-edit.pod:119
4388 msgid "B<-e> EXPR"
4389 msgstr "B<-e> вираз"
4390
4391 #. type: =item
4392 #: ../edit/virt-edit.pod:121
4393 msgid "B<--expr> EXPR"
4394 msgstr "B<--expr> вираз"
4395
4396 #. type: textblock
4397 #: ../edit/virt-edit.pod:123
4398 msgid ""
4399 "Instead of launching the external editor, non-interactively apply the Perl "
4400 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4401 "EDITING> below."
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../edit/virt-edit.pod:127
4406 msgid ""
4407 "Be careful to properly quote the expression to prevent it from being altered "
4408 "by the shell."
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../edit/virt-edit.pod:130
4413 msgid "Note that this option is only available when Perl 5 is installed."
4414 msgstr ""
4415
4416 #. type: =item
4417 #: ../edit/virt-edit.pod:132
4418 msgid "B<--format> raw|qcow2|..."
4419 msgstr "B<--format> raw|qcow2|..."
4420
4421 #. type: verbatim
4422 #: ../edit/virt-edit.pod:143
4423 #, no-wrap
4424 msgid ""
4425 " virt-edit --format=raw -a disk.img file\n"
4426 "\n"
4427 msgstr ""
4428
4429 #. type: verbatim
4430 #: ../edit/virt-edit.pod:147
4431 #, no-wrap
4432 msgid ""
4433 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4434 "\n"
4435 msgstr ""
4436
4437 #. type: textblock
4438 #: ../edit/virt-edit.pod:181
4439 msgid "Previous versions of virt-edit allowed you to write either:"
4440 msgstr ""
4441
4442 #. type: verbatim
4443 #: ../edit/virt-edit.pod:187
4444 #, no-wrap
4445 msgid ""
4446 " virt-edit guestname file\n"
4447 "\n"
4448 msgstr ""
4449
4450 #. type: =head1
4451 #: ../edit/virt-edit.pod:195
4452 msgid "NON-INTERACTIVE EDITING"
4453 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4454
4455 #. type: textblock
4456 #: ../edit/virt-edit.pod:197
4457 msgid ""
4458 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4459 "administrator can interactively edit the file."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../edit/virt-edit.pod:200
4464 msgid ""
4465 "There are two ways also to use C<virt-edit> from scripts in order to make "
4466 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4467 "like this, it's less error-prone to write scripts directly using the "
4468 "libguestfs API and Augeas for configuration file editing.)"
4469 msgstr ""
4470
4471 #. type: textblock
4472 #: ../edit/virt-edit.pod:206
4473 msgid ""
4474 "The first method is to temporarily set C<$EDITOR> to any script or program "
4475 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4476 "update C<tmpfile> in place however it likes."
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../edit/virt-edit.pod:210
4481 msgid ""
4482 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4483 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4484 "instances of C<foo> with C<bar> in a file:"
4485 msgstr ""
4486
4487 #. type: verbatim
4488 #: ../edit/virt-edit.pod:214
4489 #, no-wrap
4490 msgid ""
4491 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4492 "\n"
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../edit/virt-edit.pod:216
4497 msgid ""
4498 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4499 "For example to delete root's password you could do:"
4500 msgstr ""
4501
4502 #. type: verbatim
4503 #: ../edit/virt-edit.pod:219
4504 #, no-wrap
4505 msgid ""
4506 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4507 "\n"
4508 msgstr ""
4509 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4510 "\n"
4511
4512 #. type: textblock
4513 #: ../edit/virt-edit.pod:221
4514 msgid ""
4515 "What really happens is that the snippet is evaluated as a Perl expression "
4516 "for each line of the file.  The line, including the final C<\\n>, is passed "
4517 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4518 msgstr ""
4519
4520 #. type: textblock
4521 #: ../edit/virt-edit.pod:226
4522 msgid ""
4523 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4524 "C<apache> user account from the password file you can do:"
4525 msgstr ""
4526
4527 #. type: verbatim
4528 #: ../edit/virt-edit.pod:229
4529 #, no-wrap
4530 msgid ""
4531 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4532 "\n"
4533 msgstr ""
4534 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4535 "\n"
4536
4537 #. type: textblock
4538 #: ../edit/virt-edit.pod:231
4539 msgid ""
4540 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4541 "the end of the file is rather difficult this way since there is no concept "
4542 "of \"last line of the file\" - your expression just doesn't get called "
4543 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4544 "want to do this."
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../edit/virt-edit.pod:237
4549 msgid ""
4550 "The variable C<$lineno> contains the current line number.  As is "
4551 "traditional, the first line in the file is number C<1>."
4552 msgstr ""
4553
4554 #. type: textblock
4555 #: ../edit/virt-edit.pod:240
4556 msgid ""
4557 "The return value from the expression is ignored, but the expression may call "
4558 "C<die> in order to abort the whole program, leaving the original file "
4559 "untouched."
4560 msgstr ""
4561
4562 #. type: textblock
4563 #: ../edit/virt-edit.pod:244
4564 msgid ""
4565 "Remember when matching the end of a line that C<$_> may contain the final C<"
4566 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4567 "newline then neither of these.  Thus to match or substitute some text at the "
4568 "end of a line, use this regular expression:"
4569 msgstr ""
4570
4571 #. type: verbatim
4572 #: ../edit/virt-edit.pod:249
4573 #, no-wrap
4574 msgid ""
4575 " /some text(\\r?\\n)?$/\n"
4576 "\n"
4577 msgstr ""
4578 " /якийсь текст(\\r?\\n)?$/\n"
4579 "\n"
4580
4581 #. type: textblock
4582 #: ../edit/virt-edit.pod:251
4583 msgid ""
4584 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4585 "$_> itself (since that would remove all newlines from the file):"
4586 msgstr ""
4587
4588 #. type: verbatim
4589 #: ../edit/virt-edit.pod:255
4590 #, no-wrap
4591 msgid ""
4592 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4593 "\n"
4594 msgstr ""
4595 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4596 "\n"
4597
4598 #. type: textblock
4599 #: ../edit/virt-edit.pod:259
4600 msgid ""
4601 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4602 "paths (eg. C<E:\\foo\\bar.txt>)."
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../edit/virt-edit.pod:278
4607 msgid ""
4608 "The path is resolved case insensitively to locate the file that should be "
4609 "edited."
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../edit/virt-edit.pod:299
4614 msgid ""
4615 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4616 "C<virt-edit> doesn't work."
4617 msgstr ""
4618
4619 #. type: textblock
4620 #: ../edit/virt-edit.pod:302
4621 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4622 msgstr ""
4623
4624 #. type: verbatim
4625 #: ../edit/virt-edit.pod:304
4626 #, no-wrap
4627 msgid ""
4628 " guestfish --rw -i -d domname edit /file\n"
4629 "\n"
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../edit/virt-edit.pod:306
4634 msgid ""
4635 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4636 "path to the file."
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../edit/virt-edit.pod:309
4641 msgid ""
4642 "The command above uses libguestfs's guest inspection feature and so does not "
4643 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4644 "disk images that don't contain guests.  To edit a file on a disk image "
4645 "directly, use:"
4646 msgstr ""
4647
4648 #. type: verbatim
4649 #: ../edit/virt-edit.pod:314
4650 #, no-wrap
4651 msgid ""
4652 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4653 "\n"
4654 msgstr ""
4655
4656 #. type: textblock
4657 #: ../edit/virt-edit.pod:316
4658 msgid ""
4659 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4660 "the disk image to edit, and C</file> is the full path to the file."
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../edit/virt-edit.pod:320
4665 msgid ""
4666 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4667 "C<write> or C<upload> instead:"
4668 msgstr ""
4669
4670 #. type: verbatim
4671 #: ../edit/virt-edit.pod:323
4672 #, no-wrap
4673 msgid ""
4674 " guestfish --rw -i -d domname touch /newfile\n"
4675 "\n"
4676 msgstr ""
4677
4678 #. type: verbatim
4679 #: ../edit/virt-edit.pod:325
4680 #, no-wrap
4681 msgid ""
4682 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4683 "\n"
4684 msgstr ""
4685
4686 #. type: verbatim
4687 #: ../edit/virt-edit.pod:327
4688 #, no-wrap
4689 msgid ""
4690 " guestfish --rw -i -d domname upload localfile /newfile\n"
4691 "\n"
4692 msgstr ""
4693
4694 #. type: =head1
4695 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4696 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:231
4697 #: ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95
4698 msgid "ENVIRONMENT VARIABLES"
4699 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4700
4701 #. type: =item
4702 #: ../edit/virt-edit.pod:333
4703 msgid "C<EDITOR>"
4704 msgstr "C<EDITOR>"
4705
4706 #. type: textblock
4707 #: ../edit/virt-edit.pod:335
4708 msgid ""
4709 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4710 "\"emacs -nw\">"
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../edit/virt-edit.pod:338
4715 msgid "If not set, C<vi> is used."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../edit/virt-edit.pod:356
4720 msgid ""
4721 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4722 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4723 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4724 msgstr ""
4725 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4726 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4727 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4728
4729 #. type: textblock
4730 #: ../erlang/examples/guestfs-erlang.pod:5
4731 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4732 msgstr ""
4733
4734 #. type: verbatim
4735 #: ../erlang/examples/guestfs-erlang.pod:9
4736 #, no-wrap
4737 msgid ""
4738 " {ok, G} = guestfs:create(),\n"
4739 " ok = guestfs:add_drive_opts(G, Disk,\n"
4740 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4741 " ok = guestfs:launch(G),\n"
4742 " [Device] = guestfs:list_devices(G),\n"
4743 " ok = guestfs:close(G).\n"
4744 "\n"
4745 msgstr ""
4746
4747 #. type: textblock
4748 #: ../erlang/examples/guestfs-erlang.pod:18
4749 msgid ""
4750 "This manual page documents how to call libguestfs from the Erlang "
4751 "programming language.  This page just documents the differences from the C "
4752 "API and gives some examples.  If you are not familiar with using libguestfs, "
4753 "you also need to read L<guestfs(3)>."
4754 msgstr ""
4755
4756 #. type: =head2
4757 #: ../erlang/examples/guestfs-erlang.pod:23
4758 msgid "OPENING AND CLOSING THE HANDLE"
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../erlang/examples/guestfs-erlang.pod:25
4763 msgid ""
4764 "The Erlang bindings are implemented using an external program called C<erl-"
4765 "guestfs>.  This program must be on the current PATH, or else you should "
4766 "specify the full path to the program:"
4767 msgstr ""
4768
4769 #. type: verbatim
4770 #: ../erlang/examples/guestfs-erlang.pod:29
4771 #, no-wrap
4772 msgid ""
4773 " {ok, G} = guestfs:create().\n"
4774 "\n"
4775 msgstr ""
4776
4777 #. type: verbatim
4778 #: ../erlang/examples/guestfs-erlang.pod:31
4779 #, no-wrap
4780 msgid ""
4781 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4782 "\n"
4783 msgstr ""
4784
4785 #. type: textblock
4786 #: ../erlang/examples/guestfs-erlang.pod:33
4787 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4788 msgstr ""
4789
4790 #. type: textblock
4791 #: ../erlang/examples/guestfs-erlang.pod:36
4792 msgid "To close the handle:"
4793 msgstr ""
4794
4795 #. type: verbatim
4796 #: ../erlang/examples/guestfs-erlang.pod:38
4797 #, no-wrap
4798 msgid ""
4799 " ok = guestfs:close(G).\n"
4800 "\n"
4801 msgstr ""
4802
4803 #. type: =head2
4804 #: ../erlang/examples/guestfs-erlang.pod:40
4805 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4806 msgstr ""
4807
4808 #. type: textblock
4809 #: ../erlang/examples/guestfs-erlang.pod:42
4810 msgid ""
4811 "For functions that take optional arguments, the first arguments are the non-"
4812 "optional ones.  The last argument is a list of tuples supplying the "
4813 "remaining optional arguments."
4814 msgstr ""
4815
4816 #. type: verbatim
4817 #: ../erlang/examples/guestfs-erlang.pod:46
4818 #, no-wrap
4819 msgid ""
4820 " ok = guestfs:add_drive_opts(G, Disk,\n"
4821 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4822 "\n"
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../erlang/examples/guestfs-erlang.pod:49
4827 msgid "If the last argument would be an empty list, you can also omit it:"
4828 msgstr ""
4829
4830 #. type: verbatim
4831 #: ../erlang/examples/guestfs-erlang.pod:51
4832 #, no-wrap
4833 msgid ""
4834 " ok = guestfs:add_drive_opts(G, Disk).\n"
4835 "\n"
4836 msgstr ""
4837
4838 #. type: =head2
4839 #: ../erlang/examples/guestfs-erlang.pod:53
4840 msgid "RETURN VALUES AND ERRORS"
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../erlang/examples/guestfs-erlang.pod:55
4845 msgid ""
4846 "On success, most functions return a C<Result> term (which could be a list, "
4847 "string, tuple etc.).  If there is nothing for the function to return, then "
4848 "the atom C<ok> is returned."
4849 msgstr ""
4850
4851 #. type: textblock
4852 #: ../erlang/examples/guestfs-erlang.pod:59
4853 msgid "On error, you would see one of the following tuples:"
4854 msgstr ""
4855
4856 #. type: =item
4857 #: ../erlang/examples/guestfs-erlang.pod:63
4858 msgid "C<{error, Msg, Errno}>"
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../erlang/examples/guestfs-erlang.pod:65
4863 msgid "This indicates an ordinary error from the function."
4864 msgstr ""
4865
4866 #. type: textblock
4867 #: ../erlang/examples/guestfs-erlang.pod:67
4868 msgid ""
4869 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4870 "(integer)."
4871 msgstr ""
4872
4873 #. type: textblock
4874 #: ../erlang/examples/guestfs-erlang.pod:70
4875 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4876 msgstr ""
4877
4878 #. type: =item
4879 #: ../erlang/examples/guestfs-erlang.pod:72
4880 msgid "C<{unknown, Function}>"
4881 msgstr ""
4882
4883 #. type: textblock
4884 #: ../erlang/examples/guestfs-erlang.pod:74
4885 msgid ""
4886 "This indicates that the function you called is not known.  Generally this "
4887 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4888 "which you should not do."
4889 msgstr ""
4890
4891 #. type: textblock
4892 #: ../erlang/examples/guestfs-erlang.pod:78
4893 msgid "C<Function> is the name of the unknown function."
4894 msgstr ""
4895
4896 #. type: =item
4897 #: ../erlang/examples/guestfs-erlang.pod:80
4898 msgid "C<{unknownarg, Arg}>"
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../erlang/examples/guestfs-erlang.pod:82
4903 msgid ""
4904 "This indicates that you called a function with optional arguments, with an "
4905 "unknown argument name."
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../erlang/examples/guestfs-erlang.pod:85
4910 msgid "C<Arg> is the name of the unknown argument."
4911 msgstr ""
4912
4913 #. type: =head1
4914 #: ../erlang/examples/guestfs-erlang.pod:89
4915 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4916 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4917 #: ../python/examples/guestfs-python.pod:34
4918 #: ../ruby/examples/guestfs-ruby.pod:28
4919 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4920 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4921
4922 #. type: textblock
4923 #: ../erlang/examples/guestfs-erlang.pod:91
4924 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4925 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4926 #: ../python/examples/guestfs-python.pod:36
4927 #: ../ruby/examples/guestfs-ruby.pod:30
4928 msgid "@EXAMPLE1@"
4929 msgstr "@EXAMPLE1@"
4930
4931 #. type: =head1
4932 #: ../erlang/examples/guestfs-erlang.pod:93
4933 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4934 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4935 #: ../python/examples/guestfs-python.pod:38
4936 #: ../ruby/examples/guestfs-ruby.pod:32
4937 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4938 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4939
4940 #. type: textblock
4941 #: ../erlang/examples/guestfs-erlang.pod:95
4942 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4943 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4944 #: ../python/examples/guestfs-python.pod:40
4945 #: ../ruby/examples/guestfs-ruby.pod:34
4946 msgid "@EXAMPLE2@"
4947 msgstr "@EXAMPLE2@"
4948
4949 #. type: textblock
4950 #: ../erlang/examples/guestfs-erlang.pod:99
4951 msgid ""
4952 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4953 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4954 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4955 msgstr ""
4956
4957 #. type: =head1
4958 #: ../erlang/examples/guestfs-erlang.pod:110
4959 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4960 #: ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296
4961 #: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
4962 #: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
4963 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404
4964 #: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91
4965 #: ../perl/examples/guestfs-perl.pod:52
4966 #: ../python/examples/guestfs-python.pod:54
4967 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3354
4968 #: ../test-tool/libguestfs-test-tool.pod:106
4969 msgid "AUTHORS"
4970 msgstr "АВТОРИ"
4971
4972 #. type: textblock
4973 #: ../erlang/examples/guestfs-erlang.pod:112
4974 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4975 #: ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298
4976 #: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
4977 #: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
4978 #: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60
4979 #: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54
4980 #: ../python/examples/guestfs-python.pod:56
4981 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3356
4982 #: ../test-tool/libguestfs-test-tool.pod:108
4983 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4984 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4985
4986 #. type: textblock
4987 #: ../erlang/examples/guestfs-erlang.pod:116
4988 #: ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64
4989 #: ../perl/examples/guestfs-perl.pod:58
4990 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../erlang/examples/guestfs-erlang.pod:118
4995 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4996 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4997 #: ../perl/examples/guestfs-perl.pod:60
4998 #: ../python/examples/guestfs-python.pod:62
4999 #: ../ruby/examples/guestfs-ruby.pod:56
5000 msgid ""
5001 "The examples in this manual page may be freely copied, modified and "
5002 "distributed without any restrictions."
5003 msgstr ""
5004
5005 #. type: textblock
5006 #: ../erlang/examples/guestfs-erlang.pod:121
5007 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
5008 #: ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69
5009 #: ../ocaml/examples/guestfs-ocaml.pod:102
5010 #: ../perl/examples/guestfs-perl.pod:63
5011 #: ../python/examples/guestfs-python.pod:65
5012 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3363
5013 msgid ""
5014 "This library is free software; you can redistribute it and/or modify it "
5015 "under the terms of the GNU Lesser General Public License as published by the "
5016 "Free Software Foundation; either version 2 of the License, or (at your "
5017 "option) any later version."
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../erlang/examples/guestfs-erlang.pod:126
5022 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
5023 #: ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74
5024 #: ../ocaml/examples/guestfs-ocaml.pod:107
5025 #: ../perl/examples/guestfs-perl.pod:68
5026 #: ../python/examples/guestfs-python.pod:70
5027 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3368
5028 msgid ""
5029 "This library is distributed in the hope that it will be useful, but WITHOUT "
5030 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5031 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5032 "for more details."
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../erlang/examples/guestfs-erlang.pod:131
5037 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
5038 #: ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79
5039 #: ../ocaml/examples/guestfs-ocaml.pod:112
5040 #: ../perl/examples/guestfs-perl.pod:73
5041 #: ../python/examples/guestfs-python.pod:75
5042 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3373
5043 msgid ""
5044 "You should have received a copy of the GNU Lesser General Public License "
5045 "along with this library; if not, write to the Free Software Foundation, "
5046 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5047 msgstr ""
5048
5049 #. type: textblock
5050 #: ../examples/guestfs-examples.pod:5
5051 msgid "guestfs-examples - Examples of using libguestfs from C"
5052 msgstr ""
5053
5054 #. type: verbatim
5055 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
5056 #, no-wrap
5057 msgid ""
5058 " #include <guestfs.h>\n"
5059 " \n"
5060 msgstr ""
5061 " #include <guestfs.h>\n"
5062 " \n"
5063
5064 #. type: verbatim
5065 #: ../examples/guestfs-examples.pod:11
5066 #, no-wrap
5067 msgid ""
5068 " guestfs_h *g = guestfs_create ();\n"
5069 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5070 " guestfs_launch (g);\n"
5071 "\n"
5072 msgstr ""
5073 " guestfs_h *g = guestfs_create ();\n"
5074 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5075 " guestfs_launch (g);\n"
5076 "\n"
5077
5078 #. type: verbatim
5079 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5080 #, no-wrap
5081 msgid ""
5082 " cc prog.c -o prog -lguestfs\n"
5083 "or:\n"
5084 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5085 "\n"
5086 msgstr ""
5087 " cc prog.c -o prog -lguestfs\n"
5088 "або:\n"
5089 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5090 "\n"
5091
5092 #. type: textblock
5093 #: ../examples/guestfs-examples.pod:21
5094 msgid ""
5095 "This manual page contains examples of calling libguestfs from the C "
5096 "programming language.  If you are not familiar with using libguestfs, you "
5097 "also need to read L<guestfs(3)>."
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../examples/guestfs-examples.pod:35
5102 msgid ""
5103 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5104 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5105 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5110 #: ../python/examples/guestfs-python.pod:60
5111 #: ../ruby/examples/guestfs-ruby.pod:54
5112 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5113 msgstr ""
5114
5115 #. type: =end
5116 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5117 msgid "comment"
5118 msgstr "коментар"
5119
5120 #. type: textblock
5121 #: ../examples/guestfs-recipes.pod:5
5122 msgid ""
5123 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5124 "here.  The only way which works for both sorts of output is to just write "
5125 "the URL directly.  Do NOT use L<...> for URLs."
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../examples/guestfs-recipes.pod:9
5130 msgid ""
5131 "We break with tradition here and don't use ALL CAPS for the section "
5132 "headings, as this makes them much easier to read."
5133 msgstr ""
5134
5135 #. type: textblock
5136 #: ../examples/guestfs-recipes.pod:16
5137 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5138 msgstr ""
5139
5140 #. type: textblock
5141 #: ../examples/guestfs-recipes.pod:20
5142 msgid ""
5143 "This page contains recipes for and links to things you can do using "
5144 "libguestfs, L<guestfish(1)> and the virt tools."
5145 msgstr ""
5146
5147 #. type: =head1
5148 #: ../examples/guestfs-recipes.pod:23
5149 msgid "Audit a virtual machine for setuid files"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../examples/guestfs-recipes.pod:25
5154 msgid ""
5155 "The link below contains a small program which can be used to audit a Linux "
5156 "virtual machine to see what setuid and setgid files it contains."
5157 msgstr ""
5158
5159 #. type: textblock
5160 #: ../examples/guestfs-recipes.pod:28
5161 msgid ""
5162 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5163 "files/#content"
5164 msgstr ""
5165
5166 #. type: =head1
5167 #: ../examples/guestfs-recipes.pod:30
5168 msgid "Change the background image in a Windows XP VM"
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../examples/guestfs-recipes.pod:32
5173 msgid ""
5174 "The links below explain how to use L<guestfish(1)> to change the background "
5175 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5176 "be substantially different for each version of Windows."
5177 msgstr ""
5178
5179 #. type: textblock
5180 #: ../examples/guestfs-recipes.pod:37
5181 msgid ""
5182 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5183 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5184 msgstr ""
5185
5186 #. type: =head1
5187 #: ../examples/guestfs-recipes.pod:40
5188 msgid "Cloning a virtual machine (Linux)"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../examples/guestfs-recipes.pod:42
5193 msgid ""
5194 "The guestfish technique described in the link below works well for most "
5195 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5196 "slightly."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:46
5201 msgid ""
5202 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5203 "vm/#content"
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:48
5208 msgid ""
5209 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5210 "discussion."
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../examples/guestfs-recipes.pod:51
5215 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5216 msgstr ""
5217
5218 #. type: =head1
5219 #: ../examples/guestfs-recipes.pod:53
5220 msgid "Cloning a virtual machine (Windows)"
5221 msgstr ""
5222
5223 #. type: textblock
5224 #: ../examples/guestfs-recipes.pod:55
5225 msgid ""
5226 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5227 "straightforward.  Currently there is code in the Aeolus Oz project which "
5228 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5229 "we may add sysprepping ability."
5230 msgstr ""
5231
5232 #. type: textblock
5233 #: ../examples/guestfs-recipes.pod:60
5234 msgid ""
5235 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5236 "list/2011-May/msg00019.html"
5237 msgstr ""
5238
5239 #. type: =head1
5240 #: ../examples/guestfs-recipes.pod:63
5241 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5242 msgstr ""
5243
5244 #. type: textblock
5245 #: ../examples/guestfs-recipes.pod:65
5246 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5247 msgstr ""
5248
5249 #. type: verbatim
5250 #: ../examples/guestfs-recipes.pod:67
5251 #, no-wrap
5252 msgid ""
5253 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5254 "\n"
5255 msgstr ""
5256
5257 #. type: textblock
5258 #: ../examples/guestfs-recipes.pod:69
5259 msgid "To export just a subdirectory, eg. C</files>, do:"
5260 msgstr ""
5261
5262 #. type: verbatim
5263 #: ../examples/guestfs-recipes.pod:71
5264 #, no-wrap
5265 msgid ""
5266 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5267 "\n"
5268 msgstr ""
5269
5270 #. type: =head1
5271 #: ../examples/guestfs-recipes.pod:73
5272 msgid "Create empty disk images"
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../examples/guestfs-recipes.pod:75
5277 msgid ""
5278 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5279 "The useful guide below explains the options available."
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../examples/guestfs-recipes.pod:78
5284 msgid ""
5285 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5286 "#content"
5287 msgstr ""
5288
5289 #. type: =head1
5290 #: ../examples/guestfs-recipes.pod:80
5291 msgid "Dump raw filesystem content from inside a disk image or VM"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../examples/guestfs-recipes.pod:82
5296 msgid ""
5297 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5298 "filesystem content from any filesystem in a disk image or a VM (even one "
5299 "which is encrypted or buried inside an LV):"
5300 msgstr ""
5301
5302 #. type: verbatim
5303 #: ../examples/guestfs-recipes.pod:86
5304 #, no-wrap
5305 msgid ""
5306 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5307 "\n"
5308 msgstr ""
5309
5310 #. type: verbatim
5311 #: ../examples/guestfs-recipes.pod:88
5312 #, no-wrap
5313 msgid ""
5314 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5315 "\n"
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../examples/guestfs-recipes.pod:90
5320 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5321 msgstr ""
5322
5323 #. type: =head1
5324 #: ../examples/guestfs-recipes.pod:92
5325 msgid "Edit grub configuration in a VM"
5326 msgstr ""
5327
5328 #. type: textblock
5329 #: ../examples/guestfs-recipes.pod:94
5330 msgid "You can use this to:"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-recipes.pod:100
5335 msgid "Fix a virtual machine that does not boot."
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../examples/guestfs-recipes.pod:104
5340 msgid "Change which kernel is used to boot the VM."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-recipes.pod:108
5345 msgid "Change kernel command line options."
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../examples/guestfs-recipes.pod:112
5350 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5351 msgstr ""
5352
5353 #. type: verbatim
5354 #: ../examples/guestfs-recipes.pod:114
5355 #, no-wrap
5356 msgid ""
5357 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5358 "\n"
5359 msgstr ""
5360
5361 #. type: textblock
5362 #: ../examples/guestfs-recipes.pod:116
5363 msgid ""
5364 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5365 "this:"
5366 msgstr ""
5367
5368 #. type: verbatim
5369 #: ../examples/guestfs-recipes.pod:119
5370 #, no-wrap
5371 msgid ""
5372 " virt-rescue -d BrokenGuest\n"
5373 "\n"
5374 msgstr ""
5375
5376 #. type: =head1
5377 #: ../examples/guestfs-recipes.pod:121
5378 msgid "Export any directory from a VM"
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../examples/guestfs-recipes.pod:123
5383 msgid ""
5384 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5385 msgstr ""
5386
5387 #. type: verbatim
5388 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
5389 #, no-wrap
5390 msgid ""
5391 " virt-copy-out -d Guest /home .\n"
5392 "\n"
5393 msgstr ""
5394
5395 #. type: textblock
5396 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5397 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5398 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5399 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5400 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5401 #: ../tools/virt-win-reg.pl:717
5402 msgid "Notes:"
5403 msgstr "Нотатки:"
5404
5405 #. type: textblock
5406 #: ../examples/guestfs-recipes.pod:134
5407 msgid ""
5408 "The final dot of the command is not a printing error.  It means we want to "
5409 "copy out to the current directory."
5410 msgstr ""
5411
5412 #. type: textblock
5413 #: ../examples/guestfs-recipes.pod:139
5414 msgid "This creates a directory called C<home> under the current directory."
5415 msgstr ""
5416
5417 #. type: textblock
5418 #: ../examples/guestfs-recipes.pod:143
5419 msgid ""
5420 "If the guest is a Windows guest then you can use drive letters and "
5421 "backslashes, but you must prefix the path with C<win:> and quote it to "
5422 "protect it from the shell, like this:"
5423 msgstr ""
5424
5425 #. type: verbatim
5426 #: ../examples/guestfs-recipes.pod:147
5427 #, no-wrap
5428 msgid ""
5429 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5430 "\n"
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../examples/guestfs-recipes.pod:149
5435 msgid "To get the output as a compressed tarball, do:"
5436 msgstr ""
5437
5438 #. type: verbatim
5439 #: ../examples/guestfs-recipes.pod:151
5440 #, no-wrap
5441 msgid ""
5442 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5443 "\n"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../examples/guestfs-recipes.pod:153
5448 msgid ""
5449 "Although it sounds tempting, this is usually not a reliable way to get a "
5450 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5451 "org/FAQ.html#backup"
5452 msgstr ""
5453
5454 #. type: =head1
5455 #: ../examples/guestfs-recipes.pod:157
5456 msgid "Find out which user is using the most space"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../examples/guestfs-recipes.pod:159
5461 msgid ""
5462 "This simple script examines a Linux guest to find out which user is using "
5463 "the most space in their home directory:"
5464 msgstr ""
5465
5466 #. type: verbatim
5467 #: ../examples/guestfs-recipes.pod:162
5468 #, no-wrap
5469 msgid ""
5470 " #!/bin/sh -\n"
5471 " \n"
5472 msgstr ""
5473
5474 #. type: verbatim
5475 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5476 #, no-wrap
5477 msgid ""
5478 " set -e\n"
5479 " \n"
5480 msgstr ""
5481
5482 #. type: verbatim
5483 #: ../examples/guestfs-recipes.pod:166
5484 #, no-wrap
5485 msgid ""
5486 " vm=\"$1\"\n"
5487 " dir=/home\n"
5488 " \n"
5489 msgstr ""
5490
5491 #. type: verbatim
5492 #: ../examples/guestfs-recipes.pod:169
5493 #, no-wrap
5494 msgid ""
5495 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5496 " \n"
5497 msgstr ""
5498
5499 #. type: verbatim
5500 #: ../examples/guestfs-recipes.pod:171
5501 #, no-wrap
5502 msgid ""
5503 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5504 "     echo -n \"$dir/$d\"\n"
5505 "     echo -ne '\\t'\n"
5506 "     guestfish --remote du \"$dir/$d\";\n"
5507 " done | sort -nr -k 2\n"
5508 " \n"
5509 msgstr ""
5510
5511 #. type: verbatim
5512 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5513 #, no-wrap
5514 msgid ""
5515 " guestfish --remote exit\n"
5516 "\n"
5517 msgstr ""
5518
5519 #. type: =head1
5520 #: ../examples/guestfs-recipes.pod:179
5521 msgid "Get DHCP address from a VM"
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../examples/guestfs-recipes.pod:181
5526 msgid ""
5527 "The link below explains the many different possible techniques for getting "
5528 "the last assigned DHCP address of a virtual machine."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-recipes.pod:184
5533 msgid ""
5534 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5535 "a-virtual-machine-disk-image/#content"
5536 msgstr ""
5537
5538 #. type: textblock
5539 #: ../examples/guestfs-recipes.pod:186
5540 msgid ""
5541 "In the libguestfs source examples directory you will find the latest version "
5542 "of the C<virt-dhcp-address.c> program."
5543 msgstr ""
5544
5545 #. type: =head1
5546 #: ../examples/guestfs-recipes.pod:189
5547 msgid "Get the operating system product name string"
5548 msgstr ""
5549
5550 #. type: textblock
5551 #: ../examples/guestfs-recipes.pod:191
5552 msgid "Save the following script into a file called C<product-name.sh>:"
5553 msgstr ""
5554
5555 #. type: verbatim
5556 #: ../examples/guestfs-recipes.pod:193
5557 #, no-wrap
5558 msgid ""
5559 " #!/bin/sh -\n"
5560 " set -e\n"
5561 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5562 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5563 " guestfish --remote inspect-get-product-name \"$root\"\n"
5564 " guestfish --remote exit\n"
5565 "\n"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:200
5570 msgid "Make the script executable and run it on a named guest:"
5571 msgstr ""
5572
5573 #. type: verbatim
5574 #: ../examples/guestfs-recipes.pod:202
5575 #, no-wrap
5576 msgid ""
5577 " # product-name.sh RHEL60x64\n"
5578 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5579 "\n"
5580 msgstr ""
5581
5582 #. type: textblock
5583 #: ../examples/guestfs-recipes.pod:205
5584 msgid ""
5585 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5586 "C<xpath> command line tool or from your favourite programming language:"
5587 msgstr ""
5588
5589 #. type: verbatim
5590 #: ../examples/guestfs-recipes.pod:209
5591 #, no-wrap
5592 msgid ""
5593 " # virt-inspector RHEL60x64 > xml\n"
5594 " # xpath '//product_name' < xml\n"
5595 " Found 1 nodes:\n"
5596 " -- NODE --\n"
5597 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5598 "\n"
5599 msgstr ""
5600
5601 #. type: =head1
5602 #: ../examples/guestfs-recipes.pod:215
5603 msgid "Get the default boot kernel for a Linux VM"
5604 msgstr ""
5605
5606 #. type: textblock
5607 #: ../examples/guestfs-recipes.pod:217
5608 msgid ""
5609 "The link below contains a program to print the default boot kernel for a "
5610 "Linux VM."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../examples/guestfs-recipes.pod:220
5615 msgid ""
5616 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5617 "kernel-for-a-vm/#content"
5618 msgstr ""
5619
5620 #. type: textblock
5621 #: ../examples/guestfs-recipes.pod:222
5622 msgid ""
5623 "It uses Augeas, and the technique is generally applicable for many different "
5624 "tasks, such as:"
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../examples/guestfs-recipes.pod:229
5629 msgid "listing the user accounts in the guest"
5630 msgstr ""
5631
5632 #. type: textblock
5633 #: ../examples/guestfs-recipes.pod:233
5634 msgid "what repositories is it configured to use"
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../examples/guestfs-recipes.pod:237
5639 msgid "what NTP servers does it connect to"
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../examples/guestfs-recipes.pod:241
5644 msgid "what were the boot messages last time it booted"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../examples/guestfs-recipes.pod:245
5649 msgid "listing who was logged in recently"
5650 msgstr ""
5651
5652 #. type: textblock
5653 #: ../examples/guestfs-recipes.pod:249
5654 msgid "http://augeas.net/"
5655 msgstr ""
5656
5657 #. type: =head1
5658 #: ../examples/guestfs-recipes.pod:251
5659 msgid "Install RPMs in a guest"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../examples/guestfs-recipes.pod:253
5664 msgid ""
5665 "The link below contains a method to install RPMs in a guest.  In fact the "
5666 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5667 "installs them next time the guest is booted.  You could use this technique "
5668 "to install vital security updates in an offline guest."
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../examples/guestfs-recipes.pod:259
5673 msgid ""
5674 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5675 msgstr ""
5676
5677 #. type: =head1
5678 #: ../examples/guestfs-recipes.pod:261
5679 msgid "List applications installed in a VM"
5680 msgstr ""
5681
5682 #. type: textblock
5683 #: ../examples/guestfs-recipes.pod:263
5684 msgid "Save the following to a file C<list-apps.sh>:"
5685 msgstr ""
5686
5687 #. type: verbatim
5688 #: ../examples/guestfs-recipes.pod:265
5689 #, no-wrap
5690 msgid ""
5691 " #!/bin/sh -\n"
5692 " set -e\n"
5693 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5694 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5695 " guestfish --remote inspect-list-applications \"$root\"\n"
5696 " guestfish --remote exit\n"
5697 "\n"
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../examples/guestfs-recipes.pod:272
5702 msgid ""
5703 "Make the file executable and then you can run it on any named virtual "
5704 "machine:"
5705 msgstr ""
5706
5707 #. type: verbatim
5708 #: ../examples/guestfs-recipes.pod:275
5709 #, no-wrap
5710 msgid ""
5711 " # list-apps.sh WinGuest\n"
5712 " [0] = {\n"
5713 "   app_name: Mozilla Firefox (3.6.12)\n"
5714 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5715 "   app_epoch: 0\n"
5716 "   app_version: 3.6.12 (en-GB)\n"
5717 "   app_release:\n"
5718 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5719 "   app_trans_path:\n"
5720 "   app_publisher: Mozilla\n"
5721 "   app_url: http://www.mozilla.com/en-GB/\n"
5722 "   app_source_package:\n"
5723 "   app_summary:\n"
5724 "   app_description: Mozilla Firefox\n"
5725 " }\n"
5726 " [1] = {\n"
5727 "   app_name: VLC media player\n"
5728 "   app_display_name: VLC media player 1.1.5\n"
5729 "   app_epoch: 0\n"
5730 "   app_version: 1.1.5\n"
5731 "   app_release:\n"
5732 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5733 "   app_trans_path:\n"
5734 "   app_publisher: VideoLAN\n"
5735 "   app_url: http://www.videolan.org/\n"
5736 "   app_source_package:\n"
5737 "   app_summary:\n"
5738 "   app_description:\n"
5739 " }\n"
5740 "\n"
5741 msgstr ""
5742
5743 #. type: textblock
5744 #: ../examples/guestfs-recipes.pod:305
5745 msgid ""
5746 "If you want to run the script on disk images (instead of libvirt virtual "
5747 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5748 ">."
5749 msgstr ""
5750
5751 #. type: =head1
5752 #: ../examples/guestfs-recipes.pod:309
5753 msgid "List files and directories in a VM"
5754 msgstr ""
5755
5756 #. type: textblock
5757 #: ../examples/guestfs-recipes.pod:311
5758 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5759 msgstr ""
5760
5761 #. type: verbatim
5762 #: ../examples/guestfs-recipes.pod:313
5763 #, no-wrap
5764 msgid ""
5765 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5766 "\n"
5767 msgstr ""
5768
5769 #. type: =head1
5770 #: ../examples/guestfs-recipes.pod:315
5771 msgid "List services in a Windows VM"
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../examples/guestfs-recipes.pod:317
5776 msgid ""
5777 "The link below contains a script that can be used to list out the services "
5778 "from a Windows VM, and whether those services run at boot time or are loaded "
5779 "on demand."
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../examples/guestfs-recipes.pod:321
5784 msgid ""
5785 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5786 "#content"
5787 msgstr ""
5788
5789 #. type: =head1
5790 #: ../examples/guestfs-recipes.pod:323
5791 msgid "Make a disk image sparse"
5792 msgstr ""
5793
5794 #. type: textblock
5795 #: ../examples/guestfs-recipes.pod:325
5796 msgid ""
5797 "The link below contains some guides for making a disk image sparse (or "
5798 "reintroducing sparseness)."
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../examples/guestfs-recipes.pod:328
5803 msgid ""
5804 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5805 msgstr ""
5806
5807 #. type: =head1
5808 #: ../examples/guestfs-recipes.pod:330
5809 msgid "Monitor disk usage over time"
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../examples/guestfs-recipes.pod:332
5814 msgid ""
5815 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5816 "The link below contains a guide."
5817 msgstr ""
5818
5819 #. type: textblock
5820 #: ../examples/guestfs-recipes.pod:335
5821 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5822 msgstr ""
5823
5824 #. type: =head1
5825 #: ../examples/guestfs-recipes.pod:337
5826 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5827 msgstr ""
5828
5829 #. type: textblock
5830 #: ../examples/guestfs-recipes.pod:339
5831 msgid ""
5832 "L<guestfish(1)> plus the tools described in the link below can be used to "
5833 "read out the Windows Event Log from any virtual machine running Windows "
5834 "Vista or a later version."
5835 msgstr ""
5836
5837 #. type: textblock
5838 #: ../examples/guestfs-recipes.pod:343
5839 msgid ""
5840 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5841 "guestfish/#content"
5842 msgstr ""
5843
5844 #. type: =head1
5845 #: ../examples/guestfs-recipes.pod:345
5846 msgid "Remove root password (Linux)"
5847 msgstr ""
5848
5849 #. type: textblock
5850 #: ../examples/guestfs-recipes.pod:347
5851 msgid ""
5852 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5853 "files.  One use is to remove the root password from a Linux guest:"
5854 msgstr ""
5855
5856 #. type: verbatim
5857 #: ../examples/guestfs-recipes.pod:350
5858 #, no-wrap
5859 msgid ""
5860 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5861 "\n"
5862 msgstr ""
5863
5864 #. type: =head1
5865 #: ../examples/guestfs-recipes.pod:352
5866 msgid "Remove Administrator password (Windows)"
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../examples/guestfs-recipes.pod:354
5871 msgid ""
5872 "The link below contains one technique for removing the Administrator "
5873 "password from a Windows VM, or to be more precise, it gives you a command "
5874 "prompt the next time you log in which you can use to bypass any security:"
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../examples/guestfs-recipes.pod:359
5879 msgid ""
5880 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5881 "administrator-password-with-guestfish/"
5882 msgstr ""
5883
5884 #. type: =head1
5885 #: ../examples/guestfs-recipes.pod:361
5886 msgid "Unpack a live CD"
5887 msgstr ""
5888
5889 #. type: textblock
5890 #: ../examples/guestfs-recipes.pod:363
5891 msgid ""
5892 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5893 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5894 "layers, as outlined in the guide below."
5895 msgstr ""
5896
5897 #. type: textblock
5898 #: ../examples/guestfs-recipes.pod:367
5899 msgid ""
5900 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5901 "cd/#content"
5902 msgstr ""
5903
5904 #. type: =head1
5905 #: ../examples/guestfs-recipes.pod:369
5906 msgid "Uploading and downloading files"
5907 msgstr ""
5908
5909 #. type: textblock
5910 #: ../examples/guestfs-recipes.pod:371
5911 msgid ""
5912 "The link below contains general tips on uploading (copying in)  and "
5913 "downloading (copying out) files from VMs."
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../examples/guestfs-recipes.pod:374
5918 msgid ""
5919 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5920 msgstr ""
5921
5922 #. type: =head1
5923 #: ../examples/guestfs-recipes.pod:376
5924 msgid "Use libguestfs tools on VMware ESX guests"
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-recipes.pod:378
5929 msgid ""
5930 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5931 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5932 msgstr ""
5933
5934 #. type: textblock
5935 #: ../examples/guestfs-recipes.pod:382
5936 msgid ""
5937 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5938 "guests/#content"
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../examples/guestfs-recipes.pod:386
5943 msgid ""
5944 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5945 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5946 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../examples/guestfs-recipes.pod:403
5951 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:5
5956 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5957 msgstr ""
5958
5959 #. type: textblock
5960 #: ../examples/guestfs-testing.pod:9
5961 msgid ""
5962 "This page has manual tests you can try on libguestfs.  Everyone has a "
5963 "slightly different combination of platform, hardware and guests, so this "
5964 "testing is very valuable.  Thanks for helping out!"
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../examples/guestfs-testing.pod:13
5969 msgid "These tests require libguestfs E<ge> 1.14."
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../examples/guestfs-testing.pod:15
5974 msgid ""
5975 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5976 "careful.  The others are safe and won't modify anything."
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../examples/guestfs-testing.pod:18
5981 msgid "You can report bugs you find through this link:"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../examples/guestfs-testing.pod:20
5986 #, fuzzy
5987 #| msgid ""
5988 #| "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5989 #| "component=libguestfs&product=Virtualization+Tools>"
5990 msgid ""
5991 "https://bugzilla.redhat.com/enter_bug.cgi?"
5992 "component=libguestfs&product=Virtualization+Tools"
5993 msgstr ""
5994 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5995 "component=libguestfs&product=Virtualization+Tools>"
5996
5997 #. type: textblock
5998 #: ../examples/guestfs-testing.pod:22
5999 msgid ""
6000 "or post on the mailing list (registration is B<not> required, but if you're "
6001 "not registered then you'll have to wait for a moderator to manually approve "
6002 "your message):"
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../examples/guestfs-testing.pod:26
6007 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
6008 msgstr ""
6009
6010 #. type: =head1
6011 #: ../examples/guestfs-testing.pod:28
6012 msgid "TESTS"
6013 msgstr ""
6014
6015 #. type: =head2
6016 #: ../examples/guestfs-testing.pod:30
6017 msgid "Check KVM acceleration is being used."
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../examples/guestfs-testing.pod:32
6022 msgid ""
6023 "If your host has hardware virt acceleration, then with a hot cache "
6024 "libguestfs should be able to start up in a few seconds.  Run the following "
6025 "command a few times:"
6026 msgstr ""
6027
6028 #. type: verbatim
6029 #: ../examples/guestfs-testing.pod:36
6030 #, no-wrap
6031 msgid ""
6032 " time guestfish -a /dev/null run\n"
6033 "\n"
6034 msgstr ""
6035
6036 #. type: textblock
6037 #: ../examples/guestfs-testing.pod:38
6038 msgid ""
6039 "After a few runs, the time should settle down to a few seconds (under 5 "
6040 "seconds on fast 64 bit hardware)."
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../examples/guestfs-testing.pod:41
6045 msgid "How to check for hardware virt:"
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../examples/guestfs-testing.pod:43
6050 msgid "http://virt-tools.org/learning/check-hardware-virt/"
6051 msgstr ""
6052
6053 #. type: textblock
6054 #: ../examples/guestfs-testing.pod:45
6055 msgid ""
6056 "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
6057 msgstr ""
6058
6059 #. type: =head2
6060 #: ../examples/guestfs-testing.pod:48
6061 msgid "Run virt-alignment-scan on all your guests."
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../examples/guestfs-testing.pod:50
6066 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
6067 msgstr ""
6068
6069 #. type: verbatim
6070 #: ../examples/guestfs-testing.pod:52
6071 #, no-wrap
6072 msgid ""
6073 " virt-alignment-scan -a /path/to/disk.img\n"
6074 "\n"
6075 msgstr ""
6076
6077 #. type: textblock
6078 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161
6079 #: ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234
6080 #: ../src/guestfs.pod:2792
6081 msgid "or:"
6082 msgstr "або:"
6083
6084 #. type: verbatim
6085 #: ../examples/guestfs-testing.pod:56
6086 #, no-wrap
6087 msgid ""
6088 " virt-alignment-scan -d Guest\n"
6089 "\n"
6090 msgstr ""
6091
6092 #. type: textblock
6093 #: ../examples/guestfs-testing.pod:58
6094 msgid "Does the alignment report match how the guest partitions are aligned?"
6095 msgstr ""
6096
6097 #. type: =head2
6098 #: ../examples/guestfs-testing.pod:60
6099 #, fuzzy
6100 #| msgid ""
6101 #| " virt-cat domname file\n"
6102 #| "\n"
6103 msgid "Run virt-cat on some files in guests."
6104 msgstr ""
6105 " virt-cat назва_домену файл\n"
6106 "\n"
6107
6108 #. type: textblock
6109 #: ../examples/guestfs-testing.pod:62
6110 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
6111 msgstr ""
6112
6113 #. type: verbatim
6114 #: ../examples/guestfs-testing.pod:64
6115 #, fuzzy, no-wrap
6116 #| msgid ""
6117 #| " virt-cat -d mydomain /etc/fstab\n"
6118 #| "\n"
6119 msgid ""
6120 " virt-cat LinuxGuest /etc/passwd\n"
6121 "\n"
6122 msgstr ""
6123 " virt-cat -d mydomain /etc/fstab\n"
6124 "\n"
6125
6126 #. type: textblock
6127 #: ../examples/guestfs-testing.pod:66
6128 msgid "A recent feature is support for Windows paths, for example:"
6129 msgstr ""
6130
6131 #. type: verbatim
6132 #: ../examples/guestfs-testing.pod:68
6133 #, no-wrap
6134 msgid ""
6135 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
6136 "\n"
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../examples/guestfs-testing.pod:70
6141 msgid ""
6142 "An even better test is if you have a Windows guest with multiple drives.  Do "
6143 "C<D:>, C<E:> etc paths work correctly?"
6144 msgstr ""
6145
6146 #. type: =head2
6147 #: ../examples/guestfs-testing.pod:73
6148 msgid "B<*> Copy some files into a B<shut off> guest."
6149 msgstr ""
6150
6151 #. type: textblock
6152 #: ../examples/guestfs-testing.pod:75
6153 msgid ""
6154 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
6155 "or disk image."
6156 msgstr ""
6157
6158 #. type: verbatim
6159 #: ../examples/guestfs-testing.pod:78
6160 #, no-wrap
6161 msgid ""
6162 " virt-copy-in -d Guest /etc /tmp\n"
6163 "\n"
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../examples/guestfs-testing.pod:80
6168 msgid ""
6169 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
6170 "(recursively).  If you boot the guest, can you see all of the copied files "
6171 "and directories?"
6172 msgstr ""
6173
6174 #. type: textblock
6175 #: ../examples/guestfs-testing.pod:84
6176 msgid "Shut the guest down and try copying multiple files and directories:"
6177 msgstr ""
6178
6179 #. type: verbatim
6180 #: ../examples/guestfs-testing.pod:86
6181 #, no-wrap
6182 msgid ""
6183 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
6184 "\n"
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../examples/guestfs-testing.pod:88
6189 msgid "Copy some files out of a guest."
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../examples/guestfs-testing.pod:90
6194 msgid ""
6195 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
6196 "guest or disk image."
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../examples/guestfs-testing.pod:95
6201 msgid "Note the final space and period in the command is not a typo."
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../examples/guestfs-testing.pod:97
6206 msgid "This should copy C</home> from the guest into the current directory."
6207 msgstr ""
6208
6209 #. type: =head2
6210 #: ../examples/guestfs-testing.pod:99
6211 msgid "Run virt-df."
6212 msgstr ""
6213
6214 #. type: textblock
6215 #: ../examples/guestfs-testing.pod:101
6216 msgid "L<virt-df(1)> lists disk space.  Run:"
6217 msgstr ""
6218
6219 #. type: verbatim
6220 #: ../examples/guestfs-testing.pod:103
6221 #, fuzzy, no-wrap
6222 #| msgid ""
6223 #| " df\n"
6224 #| "\n"
6225 msgid ""
6226 " virt-df\n"
6227 "\n"
6228 msgstr ""
6229 " df\n"
6230 "\n"
6231
6232 #. type: textblock
6233 #: ../examples/guestfs-testing.pod:105
6234 msgid ""
6235 "You can try comparing this to the results from L<df(1)> inside the guest, "
6236 "but there are some provisos:"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../examples/guestfs-testing.pod:112
6241 msgid "The guest must be idle."
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../examples/guestfs-testing.pod:116
6246 msgid "The guest disks must be synched using L<sync(1)>."
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../examples/guestfs-testing.pod:120
6251 msgid ""
6252 "Any action such as booting the guest will write log files causing the "
6253 "numbers to change."
6254 msgstr ""
6255
6256 #. type: textblock
6257 #: ../examples/guestfs-testing.pod:125
6258 msgid ""
6259 "We don't guarantee that the numbers will be identical even under these "
6260 "circumstances.  They should be similar.  It would indicate a bug if you saw "
6261 "greatly differing numbers."
6262 msgstr ""
6263
6264 #. type: =head2
6265 #: ../examples/guestfs-testing.pod:129
6266 msgid "Try importing virt-df CSV output into a spreadsheet or database."
6267 msgstr ""
6268
6269 #. type: textblock
6270 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
6271 msgid "Run:"
6272 msgstr ""
6273
6274 #. type: verbatim
6275 #: ../examples/guestfs-testing.pod:133
6276 #, no-wrap
6277 msgid ""
6278 " virt-df --csv > /tmp/report.csv\n"
6279 "\n"
6280 msgstr ""
6281
6282 #. type: textblock
6283 #: ../examples/guestfs-testing.pod:135
6284 msgid ""
6285 "Now try to load this into your favorite spreadsheet or database.  Are the "
6286 "results reproduced faithfully in the spreadsheet/database?"
6287 msgstr ""
6288
6289 #. type: textblock
6290 #: ../examples/guestfs-testing.pod:138
6291 msgid ""
6292 "http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/"
6293 "doc/refman/5.1/en/load-data.html"
6294 msgstr ""
6295
6296 #. type: =head2
6297 #: ../examples/guestfs-testing.pod:141
6298 msgid "B<*> Edit a file in a B<shut off> guest."
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../examples/guestfs-testing.pod:143
6303 msgid ""
6304 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
6305 "Fedora guest:"
6306 msgstr ""
6307
6308 #. type: verbatim
6309 #: ../examples/guestfs-testing.pod:146
6310 #, no-wrap
6311 msgid ""
6312 " virt-edit LinuxGuest /etc/sysconfig/network\n"
6313 "\n"
6314 msgstr ""
6315
6316 #. type: textblock
6317 #: ../examples/guestfs-testing.pod:148
6318 msgid "On other Linux guests try editing other files such as:"
6319 msgstr ""
6320
6321 #. type: verbatim
6322 #: ../examples/guestfs-testing.pod:150
6323 #, no-wrap
6324 msgid ""
6325 " virt-edit LinuxGuest /etc/motd\n"
6326 "\n"
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../examples/guestfs-testing.pod:152
6331 msgid "Are the changes seen inside the guest when it is booted?"
6332 msgstr ""
6333
6334 #. type: =head2
6335 #: ../examples/guestfs-testing.pod:154
6336 msgid "Display the filesystems / partitions / LVs in a guest."
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../examples/guestfs-testing.pod:156
6341 msgid ""
6342 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
6343 "this command on any disk image or guest:"
6344 msgstr ""
6345
6346 #. type: verbatim
6347 #: ../examples/guestfs-testing.pod:159
6348 #, fuzzy, no-wrap
6349 #| msgid ""
6350 #| " virt-filesystems --format=raw -a disk.img\n"
6351 #| "\n"
6352 msgid ""
6353 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
6354 "\n"
6355 msgstr ""
6356 " virt-filesystems --format=raw -a диск.img\n"
6357 "\n"
6358
6359 #. type: verbatim
6360 #: ../examples/guestfs-testing.pod:163
6361 #, fuzzy, no-wrap
6362 #| msgid ""
6363 #| " virt-filesystems [--options] -d domname\n"
6364 #| "\n"
6365 msgid ""
6366 " virt-filesystems -d Guest --all --long -h\n"
6367 "\n"
6368 msgstr ""
6369 " virt-filesystems [--параметри] -d назва_домену\n"
6370 "\n"
6371
6372 #. type: textblock
6373 #: ../examples/guestfs-testing.pod:165
6374 msgid "Do the results match what is seen in the guest?"
6375 msgstr ""
6376
6377 #. type: =head2
6378 #: ../examples/guestfs-testing.pod:167
6379 msgid "Run virt-inspector on all your guests."
6380 msgstr ""
6381
6382 #. type: textblock
6383 #: ../examples/guestfs-testing.pod:169
6384 msgid ""
6385 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
6386 "images:"
6387 msgstr ""
6388
6389 #. type: verbatim
6390 #: ../examples/guestfs-testing.pod:172
6391 #, fuzzy, no-wrap
6392 #| msgid ""
6393 #| " virt-cat disk.img file\n"
6394 #| "\n"
6395 msgid ""
6396 " virt-inspector -a /path/to/disk.img | less\n"
6397 "\n"
6398 msgstr ""
6399 " virt-cat диск.img файл\n"
6400 "\n"
6401
6402 #. type: verbatim
6403 #: ../examples/guestfs-testing.pod:176
6404 #, no-wrap
6405 msgid ""
6406 " virt-inspector -d Guest | less\n"
6407 "\n"
6408 msgstr ""
6409
6410 #. type: textblock
6411 #: ../examples/guestfs-testing.pod:178
6412 msgid "Do the results match what is actually in the guest?"
6413 msgstr ""
6414
6415 #. type: =head2
6416 #: ../examples/guestfs-testing.pod:180
6417 msgid "Try the auditing features of virt-ls on all your guests."
6418 msgstr ""
6419
6420 #. type: verbatim
6421 #: ../examples/guestfs-testing.pod:184
6422 #, fuzzy, no-wrap
6423 #| msgid ""
6424 #| " $ virt-ls -R -d guest /tmp\n"
6425 #| " foo\n"
6426 #| " foo/bar\n"
6427 #| " [etc.]\n"
6428 #| "\n"
6429 msgid ""
6430 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
6431 "\n"
6432 msgstr ""
6433 " $ virt-ls -R -d guest /tmp\n"
6434 " foo\n"
6435 " foo/bar\n"
6436 " [тощо]\n"
6437 "\n"
6438
6439 #. type: verbatim
6440 #: ../examples/guestfs-testing.pod:188
6441 #, fuzzy, no-wrap
6442 #| msgid ""
6443 #| " $ virt-ls -R -d guest /tmp\n"
6444 #| " foo\n"
6445 #| " foo/bar\n"
6446 #| " [etc.]\n"
6447 #| "\n"
6448 msgid ""
6449 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
6450 "\n"
6451 msgstr ""
6452 " $ virt-ls -R -d guest /tmp\n"
6453 " foo\n"
6454 " foo/bar\n"
6455 " [тощо]\n"
6456 "\n"
6457
6458 #. type: verbatim
6459 #: ../examples/guestfs-testing.pod:192
6460 #, fuzzy, no-wrap
6461 #| msgid ""
6462 #| " $ virt-ls -R -d guest /tmp\n"
6463 #| " foo\n"
6464 #| " foo/bar\n"
6465 #| " [etc.]\n"
6466 #| "\n"
6467 msgid ""
6468 " virt-ls -lR -d Guest / | grep '^s'\n"
6469 "\n"
6470 msgstr ""
6471 " $ virt-ls -R -d guest /tmp\n"
6472 " foo\n"
6473 " foo/bar\n"
6474 " [тощо]\n"
6475 "\n"
6476
6477 #. type: verbatim
6478 #: ../examples/guestfs-testing.pod:196
6479 #, no-wrap
6480 msgid ""
6481 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
6482 "\n"
6483 msgstr ""
6484
6485 #. type: textblock
6486 #: ../examples/guestfs-testing.pod:198
6487 msgid "Display files larger than 10MB in home directories:"
6488 msgstr ""
6489
6490 #. type: verbatim
6491 #: ../examples/guestfs-testing.pod:200
6492 #, no-wrap
6493 msgid ""
6494 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: verbatim
6499 #: ../examples/guestfs-testing.pod:204
6500 #, no-wrap
6501 msgid ""
6502 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
6503 "\n"
6504 msgstr ""
6505
6506 #. type: verbatim
6507 #: ../examples/guestfs-testing.pod:208
6508 #, no-wrap
6509 msgid ""
6510 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
6511 "\n"
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../examples/guestfs-testing.pod:210
6516 msgid "Do the results match what is in the guest?"
6517 msgstr ""
6518
6519 #. type: =head2
6520 #: ../examples/guestfs-testing.pod:212
6521 msgid "Create a disk image from a tarball."
6522 msgstr ""
6523
6524 #. type: textblock
6525 #: ../examples/guestfs-testing.pod:214
6526 msgid ""
6527 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
6528 "happen to have:"
6529 msgstr ""
6530
6531 #. type: verbatim
6532 #: ../examples/guestfs-testing.pod:217
6533 #, no-wrap
6534 msgid ""
6535 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
6536 "\n"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../examples/guestfs-testing.pod:219
6541 msgid ""
6542 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
6543 "see the files.  This test is particularly useful if you try it with a "
6544 "Windows guest."
6545 msgstr ""
6546
6547 #. type: textblock
6548 #: ../examples/guestfs-testing.pod:223
6549 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
6550 msgstr ""
6551
6552 #. type: textblock
6553 #: ../examples/guestfs-testing.pod:225
6554 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
6555 msgstr ""
6556
6557 #. type: =head2
6558 #: ../examples/guestfs-testing.pod:227
6559 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../examples/guestfs-testing.pod:229
6564 msgid ""
6565 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
6566 "disk image:"
6567 msgstr ""
6568
6569 #. type: verbatim
6570 #: ../examples/guestfs-testing.pod:232
6571 #, fuzzy, no-wrap
6572 #| msgid ""
6573 #| " virt-cat disk.img file\n"
6574 #| "\n"
6575 msgid ""
6576 " virt-rescue -a /path/to/disk.img\n"
6577 "\n"
6578 msgstr ""
6579 " virt-cat диск.img файл\n"
6580 "\n"
6581
6582 #. type: verbatim
6583 #: ../examples/guestfs-testing.pod:236
6584 #, no-wrap
6585 msgid ""
6586 " virt-rescue -d Guest\n"
6587 "\n"
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../examples/guestfs-testing.pod:238
6592 msgid "Can you use ordinary shell commands to examine the guest?"
6593 msgstr ""
6594
6595 #. type: =head2
6596 #: ../examples/guestfs-testing.pod:240
6597 msgid "B<*> Resize your guests."
6598 msgstr ""
6599
6600 #. type: textblock
6601 #: ../examples/guestfs-testing.pod:242
6602 msgid ""
6603 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
6604 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
6605 msgstr ""
6606
6607 #. type: verbatim
6608 #: ../examples/guestfs-testing.pod:246
6609 #, no-wrap
6610 msgid ""
6611 " truncate -s 30G newdisk.img\n"
6612 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
6613 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
6614 " qemu-kvm -m 1024 -hda newdisk.img\n"
6615 "\n"
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../examples/guestfs-testing.pod:251
6620 msgid "Does the guest still boot? Try expanding other partitions."
6621 msgstr ""
6622
6623 #. type: =head2
6624 #: ../examples/guestfs-testing.pod:253
6625 msgid "B<*> Sparsify a guest disk."
6626 msgstr ""
6627
6628 #. type: textblock
6629 #: ../examples/guestfs-testing.pod:255
6630 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
6631 msgstr ""
6632
6633 #. type: verbatim
6634 #: ../examples/guestfs-testing.pod:257
6635 #, fuzzy, no-wrap
6636 #| msgid ""
6637 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
6638 #| "\n"
6639 msgid ""
6640 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
6641 "\n"
6642 msgstr ""
6643 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
6644 "\n"
6645
6646 #. type: textblock
6647 #: ../examples/guestfs-testing.pod:259
6648 msgid ""
6649 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
6650 "image smaller (use C<du> to check)?"
6651 msgstr ""
6652
6653 #. type: =head2
6654 #: ../examples/guestfs-testing.pod:262
6655 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
6656 msgstr ""
6657
6658 #. type: textblock
6659 #: ../examples/guestfs-testing.pod:264
6660 msgid ""
6661 "Note that this really will mess up an existing guest, so it's better to "
6662 "clone the guest before trying this."
6663 msgstr ""
6664
6665 #. type: verbatim
6666 #: ../examples/guestfs-testing.pod:267
6667 #, no-wrap
6668 msgid ""
6669 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
6670 "\n"
6671 msgstr ""
6672
6673 #. type: textblock
6674 #: ../examples/guestfs-testing.pod:269
6675 msgid ""
6676 "Was the sysprep successful? After booting, what changes were made and were "
6677 "they successful?"
6678 msgstr ""
6679
6680 #. type: =head2
6681 #: ../examples/guestfs-testing.pod:272
6682 msgid "Dump the Windows Registry from your Windows guests."
6683 msgstr ""
6684
6685 #. type: textblock
6686 #: ../examples/guestfs-testing.pod:274
6687 msgid ""
6688 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
6689 "guests that you have."
6690 msgstr ""
6691
6692 #. type: verbatim
6693 #: ../examples/guestfs-testing.pod:277
6694 #, no-wrap
6695 msgid ""
6696 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
6697 "   less\n"
6698 "\n"
6699 msgstr ""
6700
6701 #. type: verbatim
6702 #: ../examples/guestfs-testing.pod:280
6703 #, no-wrap
6704 msgid ""
6705 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
6706 "   less\n"
6707 "\n"
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../examples/guestfs-testing.pod:283
6712 msgid "Does the output match running C<regedit> inside the guest?"
6713 msgstr ""
6714
6715 #. type: textblock
6716 #: ../examples/guestfs-testing.pod:285
6717 msgid ""
6718 "A recent feature is the ability to dump user registries, so try this, "
6719 "replacing I<username> with the name of a local user in the guest:"
6720 msgstr ""
6721
6722 #. type: verbatim
6723 #: ../examples/guestfs-testing.pod:288
6724 #, no-wrap
6725 msgid ""
6726 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n"
6727 "   less\n"
6728 "\n"
6729 msgstr ""
6730
6731 #. type: textblock
6732 #: ../examples/guestfs-testing.pod:293
6733 #, fuzzy
6734 #| msgid ""
6735 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
6736 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
6737 msgid ""
6738 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<http://libguestfs."
6739 "org/>."
6740 msgstr ""
6741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
6742 "tar-out(1)>, L<http://libguestfs.org/>."
6743
6744 #. type: =head2
6745 #: ../fish/guestfish-actions.pod:1
6746 msgid "add-cdrom"
6747 msgstr ""
6748
6749 #. type: verbatim
6750 #: ../fish/guestfish-actions.pod:3
6751 #, no-wrap
6752 msgid ""
6753 " add-cdrom filename\n"
6754 "\n"
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6759 msgid "This function adds a virtual CD-ROM disk image to the guest."
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6764 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6765 msgstr ""
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:15
6769 msgid ""
6770 "This call checks for the existence of C<filename>.  This stops you from "
6771 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6772 "and C<http:> URLs.  To specify those, use the general L</config> call "
6773 "instead."
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:22
6778 msgid ""
6779 "If you just want to add an ISO file (often you use this as an efficient way "
6780 "to transfer large files into the guest), then you should probably use L</add-"
6781 "drive-ro> instead."
6782 msgstr ""
6783
6784 #. type: textblock
6785 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
6786 #: ../fish/guestfish-actions.pod:228
6787 msgid ""
6788 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6789 "instead."
6790 msgstr ""
6791
6792 #. type: textblock
6793 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
6794 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
6795 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
6796 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
6797 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595
6798 #: ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561
6799 #: ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600
6800 #: ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287
6801 #: ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10
6802 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6803 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
6804 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
6805 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076
6806 #: ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698
6807 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035
6808 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126
6809 #: ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167
6810 #: ../src/guestfs-actions.pod:8347
6811 msgid ""
6812 "Deprecated functions will not be removed from the API, but the fact that "
6813 "they are deprecated indicates that there are problems with correct use of "
6814 "these functions."
6815 msgstr ""
6816
6817 #. type: =head2
6818 #: ../fish/guestfish-actions.pod:35
6819 msgid "add-domain"
6820 msgstr "add-domain"
6821
6822 #. type: =head2
6823 #: ../fish/guestfish-actions.pod:37
6824 msgid "domain"
6825 msgstr "домен"
6826
6827 #. type: verbatim
6828 #: ../fish/guestfish-actions.pod:39
6829 #, no-wrap
6830 msgid ""
6831 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6832 "\n"
6833 msgstr ""
6834
6835 #. type: textblock
6836 #: ../fish/guestfish-actions.pod:41
6837 msgid ""
6838 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6839 "It works by connecting to libvirt, requesting the domain and domain XML from "
6840 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6845 msgid ""
6846 "The number of disks added is returned.  This operation is atomic: if an "
6847 "error is returned, then no disks are added."
6848 msgstr ""
6849
6850 #. type: textblock
6851 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6852 msgid ""
6853 "This function does some minimal checks to make sure the libvirt domain is "
6854 "not running (unless C<readonly> is true).  In a future version we will try "
6855 "to acquire the libvirt lock on each disk."
6856 msgstr ""
6857
6858 #. type: textblock
6859 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6860 msgid ""
6861 "Disks must be accessible locally.  This often means that adding disks from a "
6862 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6863 "unless those disks are accessible via the same device path locally too."
6864 msgstr ""
6865
6866 #. type: textblock
6867 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6868 msgid ""
6869 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6870 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6871 "libvirt URI (or one set through an environment variable, see the libvirt "
6872 "documentation for full details)."
6873 msgstr ""
6874
6875 #. type: textblock
6876 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6877 msgid ""
6878 "The optional C<live> flag controls whether this call will try to connect to "
6879 "a running virtual machine C<guestfsd> process if it sees a suitable "
6880 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6881 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6882 "DAEMONS> for more information."
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6887 msgid ""
6888 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6889 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6890 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6891 "as usual."
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6896 msgid ""
6897 "The optional C<readonlydisk> parameter controls what we do for disks which "
6898 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6899 msgstr ""
6900
6901 #. type: =item
6902 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6903 msgid "readonlydisk = \"error\""
6904 msgstr ""
6905
6906 #. type: textblock
6907 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6908 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6909 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6910 msgid "If C<readonly> is false:"
6911 msgstr ""
6912
6913 #. type: textblock
6914 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6915 msgid ""
6916 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6917 "E<gt> flag is found."
6918 msgstr ""
6919
6920 #. type: textblock
6921 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6922 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6923 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6924 msgid "If C<readonly> is true:"
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6929 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6930 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6931 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6932 msgstr ""
6933
6934 #. type: =item
6935 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6936 msgid "readonlydisk = \"read\""
6937 msgstr ""
6938
6939 #. type: textblock
6940 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6941 msgid ""
6942 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6943 "are added read/write."
6944 msgstr ""
6945
6946 #. type: =item
6947 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6948 msgid "readonlydisk = \"write\" (default)"
6949 msgstr ""
6950
6951 #. type: textblock
6952 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6953 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6954 msgstr ""
6955
6956 #. type: =item
6957 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6958 msgid "readonlydisk = \"ignore\""
6959 msgstr ""
6960
6961 #. type: textblock
6962 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6963 msgid "If C<readonly> is true or false:"
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6968 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6969 msgstr ""
6970
6971 #. type: textblock
6972 #: ../fish/guestfish-actions.pod:122
6973 msgid ""
6974 "The other optional parameters are passed directly through to L</add-drive-"
6975 "opts>."
6976 msgstr ""
6977
6978 #. type: textblock
6979 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6980 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6981 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6982 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6983 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6984 #: ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496
6985 #: ../fish/guestfish-actions.pod:3631
6986 msgid ""
6987 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6988 msgstr ""
6989
6990 #. type: =head2
6991 #: ../fish/guestfish-actions.pod:127
6992 msgid "add-drive"
6993 msgstr "add-drive"
6994
6995 #. type: verbatim
6996 #: ../fish/guestfish-actions.pod:129
6997 #, no-wrap
6998 msgid ""
6999 " add-drive filename\n"
7000 "\n"
7001 msgstr ""
7002 " add-drive назва_файла\n"
7003 "\n"
7004
7005 #. type: textblock
7006 #: ../fish/guestfish-actions.pod:131
7007 msgid ""
7008 "This function is the equivalent of calling L</add-drive-opts> with no "
7009 "optional parameters, so the disk is added writable, with the format being "
7010 "detected automatically."
7011 msgstr ""
7012
7013 #. type: textblock
7014 #: ../fish/guestfish-actions.pod:135
7015 msgid ""
7016 "Automatic detection of the format opens you up to a potential security hole "
7017 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
7018 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
7019 "you should think about replacing calls to this function with calls to L</add-"
7020 "drive-opts>, and specifying the format."
7021 msgstr ""
7022
7023 #. type: =head2
7024 #: ../fish/guestfish-actions.pod:142
7025 msgid "add-drive-opts"
7026 msgstr "add-drive-opts"
7027
7028 #. type: =head2
7029 #: ../fish/guestfish-actions.pod:144
7030 msgid "add"
7031 msgstr "add"
7032
7033 #. type: verbatim
7034 #: ../fish/guestfish-actions.pod:146
7035 #, no-wrap
7036 msgid ""
7037 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
7038 "\n"
7039 msgstr ""
7040
7041 #. type: textblock
7042 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
7043 msgid ""
7044 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
7045 "The first time you call this function, the disk appears as C</dev/sda>, the "
7046 "second time as C</dev/sdb>, and so on."
7047 msgstr ""
7048
7049 #. type: textblock
7050 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
7051 msgid ""
7052 "You don't necessarily need to be root when using libguestfs.  However you "
7053 "obviously do need sufficient permissions to access the filename for whatever "
7054 "operations you want to perform (ie. read access if you just want to read the "
7055 "image or write access if you want to modify the image)."
7056 msgstr ""
7057
7058 #. type: textblock
7059 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
7060 msgid "This call checks that C<filename> exists."
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295
7065 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
7066 msgid "The optional arguments are:"
7067 msgstr ""
7068
7069 #. type: =item
7070 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
7071 msgid "C<readonly>"
7072 msgstr "C<readonly>"
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
7076 msgid ""
7077 "If true then the image is treated as read-only.  Writes are still allowed, "
7078 "but they are stored in a temporary snapshot overlay which is discarded at "
7079 "the end.  The disk that you add is not modified."
7080 msgstr ""
7081
7082 #. type: =item
7083 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
7084 msgid "C<format>"
7085 msgstr "C<format>"
7086
7087 #. type: textblock
7088 #: ../fish/guestfish-actions.pod:173
7089 msgid ""
7090 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
7091 "add-drive-ro>) then the format is automatically detected.  Possible formats "
7092 "include C<raw> and C<qcow2>."
7093 msgstr ""
7094
7095 #. type: textblock
7096 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
7097 msgid ""
7098 "Automatic detection of the format opens you up to a potential security hole "
7099 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
7100 "RHBZ#642934.  Specifying the format closes this security hole."
7101 msgstr ""
7102
7103 #. type: =item
7104 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
7105 msgid "C<iface>"
7106 msgstr "C<iface>"
7107
7108 #. type: textblock
7109 #: ../fish/guestfish-actions.pod:184
7110 msgid ""
7111 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
7112 "add-drive-with-if> call (q.v.)"
7113 msgstr ""
7114
7115 #. type: =item
7116 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
7117 msgid "C<name>"
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
7122 msgid ""
7123 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
7124 "a hint to the guest inspection process if it is available."
7125 msgstr ""
7126
7127 #. type: =head2
7128 #: ../fish/guestfish-actions.pod:196
7129 msgid "add-drive-ro"
7130 msgstr "add-drive-ro"
7131
7132 #. type: =head2
7133 #: ../fish/guestfish-actions.pod:198
7134 msgid "add-ro"
7135 msgstr "add-ro"
7136
7137 #. type: verbatim
7138 #: ../fish/guestfish-actions.pod:200
7139 #, no-wrap
7140 msgid ""
7141 " add-drive-ro filename\n"
7142 "\n"
7143 msgstr ""
7144
7145 #. type: textblock
7146 #: ../fish/guestfish-actions.pod:202
7147 msgid ""
7148 "This function is the equivalent of calling L</add-drive-opts> with the "
7149 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
7150 "is added read-only, with the format being detected automatically."
7151 msgstr ""
7152
7153 #. type: =head2
7154 #: ../fish/guestfish-actions.pod:207
7155 msgid "add-drive-ro-with-if"
7156 msgstr ""
7157
7158 #. type: verbatim
7159 #: ../fish/guestfish-actions.pod:209
7160 #, no-wrap
7161 msgid ""
7162 " add-drive-ro-with-if filename iface\n"
7163 "\n"
7164 msgstr ""
7165
7166 #. type: textblock
7167 #: ../fish/guestfish-actions.pod:211
7168 msgid ""
7169 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
7170 "interface emulation to use at run time."
7171 msgstr ""
7172
7173 #. type: =head2
7174 #: ../fish/guestfish-actions.pod:221
7175 msgid "add-drive-with-if"
7176 msgstr ""
7177
7178 #. type: verbatim
7179 #: ../fish/guestfish-actions.pod:223
7180 #, no-wrap
7181 msgid ""
7182 " add-drive-with-if filename iface\n"
7183 "\n"
7184 msgstr ""
7185
7186 #. type: textblock
7187 #: ../fish/guestfish-actions.pod:225
7188 msgid ""
7189 "This is the same as L</add-drive> but it allows you to specify the QEMU "
7190 "interface emulation to use at run time."
7191 msgstr ""
7192
7193 #. type: =head2
7194 #: ../fish/guestfish-actions.pod:235
7195 msgid "aug-clear"
7196 msgstr ""
7197
7198 #. type: verbatim
7199 #: ../fish/guestfish-actions.pod:237
7200 #, no-wrap
7201 msgid ""
7202 " aug-clear augpath\n"
7203 "\n"
7204 msgstr ""
7205
7206 #. type: textblock
7207 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
7208 msgid ""
7209 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7210 "L<augtool(1)> C<clear> command."
7211 msgstr ""
7212
7213 #. type: =head2
7214 #: ../fish/guestfish-actions.pod:242
7215 msgid "aug-close"
7216 msgstr ""
7217
7218 #. type: verbatim
7219 #: ../fish/guestfish-actions.pod:244
7220 #, no-wrap
7221 msgid ""
7222 " aug-close\n"
7223 "\n"
7224 msgstr ""
7225
7226 #. type: textblock
7227 #: ../fish/guestfish-actions.pod:246
7228 msgid ""
7229 "Close the current Augeas handle and free up any resources used by it.  After "
7230 "calling this, you have to call L</aug-init> again before you can use any "
7231 "other Augeas functions."
7232 msgstr ""
7233
7234 #. type: =head2
7235 #: ../fish/guestfish-actions.pod:251
7236 msgid "aug-defnode"
7237 msgstr ""
7238
7239 #. type: verbatim
7240 #: ../fish/guestfish-actions.pod:253
7241 #, no-wrap
7242 msgid ""
7243 " aug-defnode name expr val\n"
7244 "\n"
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
7249 msgid ""
7250 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7251 msgstr ""
7252
7253 #. type: textblock
7254 #: ../fish/guestfish-actions.pod:258
7255 msgid ""
7256 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7257 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
7258 "containing that single node."
7259 msgstr ""
7260
7261 #. type: textblock
7262 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
7263 msgid ""
7264 "On success this returns a pair containing the number of nodes in the "
7265 "nodeset, and a boolean flag if a node was created."
7266 msgstr ""
7267
7268 #. type: =head2
7269 #: ../fish/guestfish-actions.pod:266
7270 msgid "aug-defvar"
7271 msgstr ""
7272
7273 #. type: verbatim
7274 #: ../fish/guestfish-actions.pod:268
7275 #, no-wrap
7276 msgid ""
7277 " aug-defvar name expr\n"
7278 "\n"
7279 msgstr ""
7280
7281 #. type: textblock
7282 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
7283 msgid ""
7284 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7285 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7286 msgstr ""
7287
7288 #. type: textblock
7289 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
7290 msgid ""
7291 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7292 "evaluates to something which is not a nodeset."
7293 msgstr ""
7294
7295 #. type: =head2
7296 #: ../fish/guestfish-actions.pod:277
7297 msgid "aug-get"
7298 msgstr ""
7299
7300 #. type: verbatim
7301 #: ../fish/guestfish-actions.pod:279
7302 #, no-wrap
7303 msgid ""
7304 " aug-get augpath\n"
7305 "\n"
7306 msgstr ""
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7310 msgid ""
7311 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7312 "node, the C<value> is returned."
7313 msgstr ""
7314
7315 #. type: =head2
7316 #: ../fish/guestfish-actions.pod:284
7317 msgid "aug-init"
7318 msgstr ""
7319
7320 #. type: verbatim
7321 #: ../fish/guestfish-actions.pod:286
7322 #, no-wrap
7323 msgid ""
7324 " aug-init root flags\n"
7325 "\n"
7326 msgstr ""
7327
7328 #. type: textblock
7329 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7330 msgid ""
7331 "Create a new Augeas handle for editing configuration files.  If there was "
7332 "any previous Augeas handle associated with this guestfs session, then it is "
7333 "closed."
7334 msgstr ""
7335
7336 #. type: textblock
7337 #: ../fish/guestfish-actions.pod:292
7338 msgid "You must call this before using any other L</aug-*> commands."
7339 msgstr ""
7340
7341 #. type: textblock
7342 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7343 msgid ""
7344 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7349 msgid ""
7350 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7351 "logical I<or> of the following integers:"
7352 msgstr ""
7353
7354 #. type: =item
7355 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7356 msgid "C<AUG_SAVE_BACKUP> = 1"
7357 msgstr "C<AUG_SAVE_BACKUP> = 1"
7358
7359 #. type: textblock
7360 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7361 msgid "Keep the original file with a C<.augsave> extension."
7362 msgstr ""
7363
7364 #. type: =item
7365 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7366 msgid "C<AUG_SAVE_NEWFILE> = 2"
7367 msgstr "C<AUG_SAVE_NEWFILE> = 2"
7368
7369 #. type: textblock
7370 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7371 msgid ""
7372 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7373 "original.  Overrides C<AUG_SAVE_BACKUP>."
7374 msgstr ""
7375
7376 #. type: =item
7377 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7378 msgid "C<AUG_TYPE_CHECK> = 4"
7379 msgstr "C<AUG_TYPE_CHECK> = 4"
7380
7381 #. type: textblock
7382 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7383 msgid "Typecheck lenses."
7384 msgstr ""
7385
7386 #. type: textblock
7387 #: ../fish/guestfish-actions.pod:317
7388 msgid ""
7389 "This option is only useful when debugging Augeas lenses.  Use of this option "
7390 "may require additional memory for the libguestfs appliance.  You may need to "
7391 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7392 msgstr ""
7393
7394 #. type: =item
7395 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7396 msgid "C<AUG_NO_STDINC> = 8"
7397 msgstr "C<AUG_NO_STDINC> = 8"
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7401 msgid "Do not use standard load path for modules."
7402 msgstr ""
7403
7404 #. type: =item
7405 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7406 msgid "C<AUG_SAVE_NOOP> = 16"
7407 msgstr "C<AUG_SAVE_NOOP> = 16"
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7411 msgid "Make save a no-op, just record what would have been changed."
7412 msgstr ""
7413
7414 #. type: =item
7415 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7416 msgid "C<AUG_NO_LOAD> = 32"
7417 msgstr "C<AUG_NO_LOAD> = 32"
7418
7419 #. type: textblock
7420 #: ../fish/guestfish-actions.pod:332
7421 msgid "Do not load the tree in L</aug-init>."
7422 msgstr ""
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:336
7426 msgid "To close the handle, you can call L</aug-close>."
7427 msgstr ""
7428
7429 #. type: textblock
7430 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7431 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7432 msgstr ""
7433
7434 #. type: =head2
7435 #: ../fish/guestfish-actions.pod:340
7436 msgid "aug-insert"
7437 msgstr ""
7438
7439 #. type: verbatim
7440 #: ../fish/guestfish-actions.pod:342
7441 #, no-wrap
7442 msgid ""
7443 " aug-insert augpath label true|false\n"
7444 "\n"
7445 msgstr ""
7446
7447 #. type: textblock
7448 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7449 msgid ""
7450 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7451 "or after C<path> (depending on the boolean flag C<before>)."
7452 msgstr ""
7453
7454 #. type: textblock
7455 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7456 msgid ""
7457 "C<path> must match exactly one existing node in the tree, and C<label> must "
7458 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7459 msgstr ""
7460
7461 #. type: =head2
7462 #: ../fish/guestfish-actions.pod:352
7463 msgid "aug-load"
7464 msgstr ""
7465
7466 #. type: verbatim
7467 #: ../fish/guestfish-actions.pod:354
7468 #, no-wrap
7469 msgid ""
7470 " aug-load\n"
7471 "\n"
7472 msgstr ""
7473
7474 #. type: textblock
7475 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7476 msgid "Load files into the tree."
7477 msgstr "Завантажити файли до ієрархії."
7478
7479 #. type: textblock
7480 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7481 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7482 msgstr ""
7483
7484 #. type: =head2
7485 #: ../fish/guestfish-actions.pod:361
7486 msgid "aug-ls"
7487 msgstr ""
7488
7489 #. type: verbatim
7490 #: ../fish/guestfish-actions.pod:363
7491 #, no-wrap
7492 msgid ""
7493 " aug-ls augpath\n"
7494 "\n"
7495 msgstr ""
7496
7497 #. type: textblock
7498 #: ../fish/guestfish-actions.pod:365
7499 msgid ""
7500 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7501 "resulting nodes into alphabetical order."
7502 msgstr ""
7503
7504 #. type: =head2
7505 #: ../fish/guestfish-actions.pod:368
7506 msgid "aug-match"
7507 msgstr ""
7508
7509 #. type: verbatim
7510 #: ../fish/guestfish-actions.pod:370
7511 #, no-wrap
7512 msgid ""
7513 " aug-match augpath\n"
7514 "\n"
7515 msgstr ""
7516
7517 #. type: textblock
7518 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7519 msgid ""
7520 "Returns a list of paths which match the path expression C<path>.  The "
7521 "returned paths are sufficiently qualified so that they match exactly one "
7522 "node in the current tree."
7523 msgstr ""
7524
7525 #. type: =head2
7526 #: ../fish/guestfish-actions.pod:376
7527 msgid "aug-mv"
7528 msgstr ""
7529
7530 #. type: verbatim
7531 #: ../fish/guestfish-actions.pod:378
7532 #, no-wrap
7533 msgid ""
7534 " aug-mv src dest\n"
7535 "\n"
7536 msgstr ""
7537
7538 #. type: textblock
7539 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7540 msgid ""
7541 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7542 "C<dest> is overwritten if it exists."
7543 msgstr ""
7544
7545 #. type: =head2
7546 #: ../fish/guestfish-actions.pod:383
7547 msgid "aug-rm"
7548 msgstr ""
7549
7550 #. type: verbatim
7551 #: ../fish/guestfish-actions.pod:385
7552 #, no-wrap
7553 msgid ""
7554 " aug-rm augpath\n"
7555 "\n"
7556 msgstr ""
7557
7558 #. type: textblock
7559 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7560 msgid "Remove C<path> and all of its children."
7561 msgstr ""
7562
7563 #. type: textblock
7564 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7565 msgid "On success this returns the number of entries which were removed."
7566 msgstr ""
7567
7568 #. type: =head2
7569 #: ../fish/guestfish-actions.pod:391
7570 msgid "aug-save"
7571 msgstr ""
7572
7573 #. type: verbatim
7574 #: ../fish/guestfish-actions.pod:393
7575 #, no-wrap
7576 msgid ""
7577 " aug-save\n"
7578 "\n"
7579 msgstr ""
7580
7581 #. type: textblock
7582 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7583 msgid "This writes all pending changes to disk."
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:397
7588 msgid ""
7589 "The flags which were passed to L</aug-init> affect exactly how files are "
7590 "saved."
7591 msgstr ""
7592
7593 #. type: =head2
7594 #: ../fish/guestfish-actions.pod:400
7595 msgid "aug-set"
7596 msgstr ""
7597
7598 #. type: verbatim
7599 #: ../fish/guestfish-actions.pod:402
7600 #, no-wrap
7601 msgid ""
7602 " aug-set augpath val\n"
7603 "\n"
7604 msgstr ""
7605
7606 #. type: textblock
7607 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7608 msgid "Set the value associated with C<path> to C<val>."
7609 msgstr ""
7610
7611 #. type: textblock
7612 #: ../fish/guestfish-actions.pod:406
7613 msgid ""
7614 "In the Augeas API, it is possible to clear a node by setting the value to "
7615 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7616 "this call.  Instead you must use the L</aug-clear> call."
7617 msgstr ""
7618
7619 #. type: =head2
7620 #: ../fish/guestfish-actions.pod:411
7621 msgid "available"
7622 msgstr ""
7623
7624 #. type: verbatim
7625 #: ../fish/guestfish-actions.pod:413
7626 #, no-wrap
7627 msgid ""
7628 " available 'groups ...'\n"
7629 "\n"
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7634 msgid ""
7635 "This command is used to check the availability of some groups of "
7636 "functionality in the appliance, which not all builds of the libguestfs "
7637 "appliance will be able to provide."
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:419
7642 msgid ""
7643 "The libguestfs groups, and the functions that those groups correspond to, "
7644 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7645 "runtime by calling L</available-all-groups>."
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7650 msgid ""
7651 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7652 "\"]> would check for the availability of the Linux inotify functions and "
7653 "Augeas (configuration file editing) functions."
7654 msgstr ""
7655
7656 #. type: textblock
7657 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7658 msgid "The command returns no error if I<all> requested groups are available."
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7663 msgid ""
7664 "It fails with an error if one or more of the requested groups is unavailable "
7665 "in the appliance."
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7670 msgid ""
7671 "If an unknown group name is included in the list of groups then an error is "
7672 "always returned."
7673 msgstr ""
7674
7675 #. type: textblock
7676 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7677 msgid "I<Notes:>"
7678 msgstr "I<Нотатки:>"
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:443
7682 msgid "You must call L</launch> before calling this function."
7683 msgstr ""
7684
7685 #. type: textblock
7686 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7687 msgid ""
7688 "The reason is because we don't know what groups are supported by the "
7689 "appliance/daemon until it is running and can be queried."
7690 msgstr ""
7691
7692 #. type: textblock
7693 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7694 msgid ""
7695 "If a group of functions is available, this does not necessarily mean that "
7696 "they will work.  You still have to check for errors when calling individual "
7697 "API functions even if they are available."
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7702 msgid ""
7703 "It is usually the job of distro packagers to build complete functionality "
7704 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7705 "with all requirements satisfied, will support everything."
7706 msgstr ""
7707
7708 #. type: textblock
7709 #: ../fish/guestfish-actions.pod:465
7710 msgid ""
7711 "This call was added in version C<1.0.80>.  In previous versions of "
7712 "libguestfs all you could do would be to speculatively execute a command to "
7713 "find out if the daemon implemented it.  See also L</version>."
7714 msgstr ""
7715
7716 #. type: =head2
7717 #: ../fish/guestfish-actions.pod:472
7718 msgid "available-all-groups"
7719 msgstr ""
7720
7721 #. type: verbatim
7722 #: ../fish/guestfish-actions.pod:474
7723 #, no-wrap
7724 msgid ""
7725 " available-all-groups\n"
7726 "\n"
7727 msgstr ""
7728
7729 #. type: textblock
7730 #: ../fish/guestfish-actions.pod:476
7731 msgid ""
7732 "This command returns a list of all optional groups that this daemon knows "
7733 "about.  Note this returns both supported and unsupported groups.  To find "
7734 "out which ones the daemon can actually support you have to call L</"
7735 "available> on each member of the returned list."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:482
7740 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7741 msgstr ""
7742
7743 #. type: =head2
7744 #: ../fish/guestfish-actions.pod:484
7745 msgid "base64-in"
7746 msgstr ""
7747
7748 #. type: verbatim
7749 #: ../fish/guestfish-actions.pod:486
7750 #, no-wrap
7751 msgid ""
7752 " base64-in (base64file|-) filename\n"
7753 "\n"
7754 msgstr ""
7755
7756 #. type: textblock
7757 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7758 msgid ""
7759 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7760 msgstr ""
7761
7762 #. type: textblock
7763 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7764 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
7765 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
7766 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
7767 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870
7768 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892
7769 #: ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953
7770 #: ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
7771 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7772 msgstr ""
7773
7774 #. type: =head2
7775 #: ../fish/guestfish-actions.pod:493
7776 msgid "base64-out"
7777 msgstr ""
7778
7779 #. type: verbatim
7780 #: ../fish/guestfish-actions.pod:495
7781 #, no-wrap
7782 msgid ""
7783 " base64-out filename (base64file|-)\n"
7784 "\n"
7785 msgstr ""
7786
7787 #. type: textblock
7788 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7789 msgid ""
7790 "This command downloads the contents of C<filename>, writing it out to local "
7791 "file C<base64file> encoded as base64."
7792 msgstr ""
7793
7794 #. type: =head2
7795 #: ../fish/guestfish-actions.pod:502
7796 msgid "blockdev-flushbufs"
7797 msgstr ""
7798
7799 #. type: verbatim
7800 #: ../fish/guestfish-actions.pod:504
7801 #, no-wrap
7802 msgid ""
7803 " blockdev-flushbufs device\n"
7804 "\n"
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7809 msgid ""
7810 "This tells the kernel to flush internal buffers associated with C<device>."
7811 msgstr ""
7812
7813 #. type: textblock
7814 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
7815 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
7816 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
7817 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
7818 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
7819 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
7820 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
7821 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
7822 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
7823 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7824 msgid "This uses the L<blockdev(8)> command."
7825 msgstr ""
7826
7827 #. type: =head2
7828 #: ../fish/guestfish-actions.pod:511
7829 msgid "blockdev-getbsz"
7830 msgstr ""
7831
7832 #. type: verbatim
7833 #: ../fish/guestfish-actions.pod:513
7834 #, no-wrap
7835 msgid ""
7836 " blockdev-getbsz device\n"
7837 "\n"
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7842 msgid "This returns the block size of a device."
7843 msgstr ""
7844
7845 #. type: textblock
7846 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
7847 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7848 msgid ""
7849 "(Note this is different from both I<size in blocks> and I<filesystem block "
7850 "size>)."
7851 msgstr ""
7852
7853 #. type: =head2
7854 #: ../fish/guestfish-actions.pod:522
7855 msgid "blockdev-getro"
7856 msgstr ""
7857
7858 #. type: verbatim
7859 #: ../fish/guestfish-actions.pod:524
7860 #, no-wrap
7861 msgid ""
7862 " blockdev-getro device\n"
7863 "\n"
7864 msgstr ""
7865
7866 #. type: textblock
7867 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7868 msgid ""
7869 "Returns a boolean indicating if the block device is read-only (true if read-"
7870 "only, false if not)."
7871 msgstr ""
7872
7873 #. type: =head2
7874 #: ../fish/guestfish-actions.pod:531
7875 msgid "blockdev-getsize64"
7876 msgstr ""
7877
7878 #. type: verbatim
7879 #: ../fish/guestfish-actions.pod:533
7880 #, no-wrap
7881 msgid ""
7882 " blockdev-getsize64 device\n"
7883 "\n"
7884 msgstr ""
7885
7886 #. type: textblock
7887 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7888 msgid "This returns the size of the device in bytes."
7889 msgstr ""
7890
7891 #. type: textblock
7892 #: ../fish/guestfish-actions.pod:537
7893 msgid "See also L</blockdev-getsz>."
7894 msgstr "Див. також L</blockdev-getsz>."
7895
7896 #. type: =head2
7897 #: ../fish/guestfish-actions.pod:541
7898 msgid "blockdev-getss"
7899 msgstr ""
7900
7901 #. type: verbatim
7902 #: ../fish/guestfish-actions.pod:543
7903 #, no-wrap
7904 msgid ""
7905 " blockdev-getss device\n"
7906 "\n"
7907 msgstr ""
7908
7909 #. type: textblock
7910 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7911 msgid ""
7912 "This returns the size of sectors on a block device.  Usually 512, but can be "
7913 "larger for modern devices."
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:548
7918 msgid ""
7919 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7920 msgstr ""
7921
7922 #. type: =head2
7923 #: ../fish/guestfish-actions.pod:553
7924 msgid "blockdev-getsz"
7925 msgstr ""
7926
7927 #. type: verbatim
7928 #: ../fish/guestfish-actions.pod:555
7929 #, no-wrap
7930 msgid ""
7931 " blockdev-getsz device\n"
7932 "\n"
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7937 msgid ""
7938 "This returns the size of the device in units of 512-byte sectors (even if "
7939 "the sectorsize isn't 512 bytes ... weird)."
7940 msgstr ""
7941
7942 #. type: textblock
7943 #: ../fish/guestfish-actions.pod:560
7944 msgid ""
7945 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7946 "blockdev-getsize64> for the more useful I<size in bytes>."
7947 msgstr ""
7948
7949 #. type: =head2
7950 #: ../fish/guestfish-actions.pod:566
7951 msgid "blockdev-rereadpt"
7952 msgstr ""
7953
7954 #. type: verbatim
7955 #: ../fish/guestfish-actions.pod:568
7956 #, no-wrap
7957 msgid ""
7958 " blockdev-rereadpt device\n"
7959 "\n"
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7964 msgid "Reread the partition table on C<device>."
7965 msgstr ""
7966
7967 #. type: =head2
7968 #: ../fish/guestfish-actions.pod:574
7969 msgid "blockdev-setbsz"
7970 msgstr ""
7971
7972 #. type: verbatim
7973 #: ../fish/guestfish-actions.pod:576
7974 #, no-wrap
7975 msgid ""
7976 " blockdev-setbsz device blocksize\n"
7977 "\n"
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7982 msgid "This sets the block size of a device."
7983 msgstr ""
7984
7985 #. type: =head2
7986 #: ../fish/guestfish-actions.pod:585
7987 msgid "blockdev-setro"
7988 msgstr ""
7989
7990 #. type: verbatim
7991 #: ../fish/guestfish-actions.pod:587
7992 #, no-wrap
7993 msgid ""
7994 " blockdev-setro device\n"
7995 "\n"
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
8000 msgid "Sets the block device named C<device> to read-only."
8001 msgstr ""
8002
8003 #. type: =head2
8004 #: ../fish/guestfish-actions.pod:593
8005 msgid "blockdev-setrw"
8006 msgstr ""
8007
8008 #. type: verbatim
8009 #: ../fish/guestfish-actions.pod:595
8010 #, no-wrap
8011 msgid ""
8012 " blockdev-setrw device\n"
8013 "\n"
8014 msgstr ""
8015
8016 #. type: textblock
8017 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
8018 msgid "Sets the block device named C<device> to read-write."
8019 msgstr ""
8020
8021 #. type: =head2
8022 #: ../fish/guestfish-actions.pod:601
8023 msgid "btrfs-filesystem-resize"
8024 msgstr ""
8025
8026 #. type: verbatim
8027 #: ../fish/guestfish-actions.pod:603
8028 #, no-wrap
8029 msgid ""
8030 " btrfs-filesystem-resize mountpoint [size:N]\n"
8031 "\n"
8032 msgstr ""
8033
8034 #. type: textblock
8035 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
8036 msgid "This command resizes a btrfs filesystem."
8037 msgstr ""
8038
8039 #. type: textblock
8040 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
8041 msgid ""
8042 "Note that unlike other resize calls, the filesystem has to be mounted and "
8043 "the parameter is the mountpoint not the device (this is a requirement of "
8044 "btrfs itself)."
8045 msgstr ""
8046
8047 #. type: textblock
8048 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606
8049 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
8050 msgid "The optional parameters are:"
8051 msgstr ""
8052
8053 #. type: =item
8054 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610
8055 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
8056 msgid "C<size>"
8057 msgstr "C<розмір>"
8058
8059 #. type: textblock
8060 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
8061 msgid ""
8062 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
8063 "resized to the maximum size."
8064 msgstr ""
8065
8066 #. type: textblock
8067 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
8068 msgid "See also L<btrfs(8)>."
8069 msgstr "Див. також L<btrfs(8)>."
8070
8071 #. type: =head2
8072 #: ../fish/guestfish-actions.pod:626
8073 msgid "case-sensitive-path"
8074 msgstr ""
8075
8076 #. type: verbatim
8077 #: ../fish/guestfish-actions.pod:628
8078 #, no-wrap
8079 msgid ""
8080 " case-sensitive-path path\n"
8081 "\n"
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
8086 msgid ""
8087 "This can be used to resolve case insensitive paths on a filesystem which is "
8088 "case sensitive.  The use case is to resolve paths which you have read from "
8089 "Windows configuration files or the Windows Registry, to the true path."
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
8094 msgid ""
8095 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8096 "(and probably others), which is that although the underlying filesystem is "
8097 "case-insensitive, the driver exports the filesystem to Linux as case-"
8098 "sensitive."
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
8103 msgid ""
8104 "One consequence of this is that special directories such as C<c:\\windows> "
8105 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8106 "precise details of how they were created.  In Windows itself this would not "
8107 "be a problem."
8108 msgstr ""
8109
8110 #. type: textblock
8111 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
8112 msgid ""
8113 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8114 "#posixfilenames1>"
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
8119 msgid ""
8120 "This function resolves the true case of each element in the path and returns "
8121 "the case-sensitive path."
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../fish/guestfish-actions.pod:652
8126 msgid ""
8127 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
8128 "WINDOWS/system32\"> (the exact return value would depend on details of how "
8129 "the directories were originally created under Windows)."
8130 msgstr ""
8131
8132 #. type: textblock
8133 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
8134 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8135 msgstr ""
8136
8137 #. type: textblock
8138 #: ../fish/guestfish-actions.pod:660
8139 msgid "See also L</realpath>."
8140 msgstr "Див. також L</realpath>."
8141
8142 #. type: =head2
8143 #: ../fish/guestfish-actions.pod:662
8144 msgid "cat"
8145 msgstr "cat"
8146
8147 #. type: verbatim
8148 #: ../fish/guestfish-actions.pod:664
8149 #, no-wrap
8150 msgid ""
8151 " cat path\n"
8152 "\n"
8153 msgstr ""
8154 " cat шлях\n"
8155 "\n"
8156
8157 #. type: textblock
8158 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037
8159 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
8160 msgid "Return the contents of the file named C<path>."
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:668
8165 msgid ""
8166 "Note that this function cannot correctly handle binary files (specifically, "
8167 "files containing C<\\0> character which is treated as end of string).  For "
8168 "those you need to use the L</read-file> or L</download> functions which have "
8169 "a more complex interface."
8170 msgstr ""
8171
8172 #. type: textblock
8173 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
8174 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
8175 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
8176 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
8177 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
8178 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
8179 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
8180 #: ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922
8181 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015
8182 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699
8183 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830
8184 #: ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251
8185 #: ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281
8186 #: ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308
8187 #: ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372
8188 #: ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411
8189 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
8190 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
8191 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
8192 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
8193 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
8194 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
8195 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
8196 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105
8197 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
8198 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241
8199 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442
8200 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131
8201 #: ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184
8202 #: ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222
8203 #: ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332
8204 #: ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
8205 msgid ""
8206 "Because of the message protocol, there is a transfer limit of somewhere "
8207 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8208 msgstr ""
8209
8210 #. type: =head2
8211 #: ../fish/guestfish-actions.pod:676
8212 msgid "checksum"
8213 msgstr "checksum"
8214
8215 #. type: verbatim
8216 #: ../fish/guestfish-actions.pod:678
8217 #, no-wrap
8218 msgid ""
8219 " checksum csumtype path\n"
8220 "\n"
8221 msgstr ""
8222
8223 #. type: textblock
8224 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
8225 msgid ""
8226 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
8231 msgid ""
8232 "The type of checksum to compute is given by the C<csumtype> parameter which "
8233 "must have one of the following values:"
8234 msgstr ""
8235
8236 #. type: =item
8237 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
8238 msgid "C<crc>"
8239 msgstr "C<crc>"
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
8243 msgid ""
8244 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8245 "C<cksum> command."
8246 msgstr ""
8247
8248 #. type: =item
8249 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
8250 msgid "C<md5>"
8251 msgstr "C<md5>"
8252
8253 #. type: textblock
8254 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
8255 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8256 msgstr ""
8257
8258 #. type: =item
8259 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
8260 msgid "C<sha1>"
8261 msgstr "C<sha1>"
8262
8263 #. type: textblock
8264 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
8265 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8266 msgstr ""
8267
8268 #. type: =item
8269 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
8270 msgid "C<sha224>"
8271 msgstr "C<sha224>"
8272
8273 #. type: textblock
8274 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
8275 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8276 msgstr ""
8277
8278 #. type: =item
8279 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
8280 msgid "C<sha256>"
8281 msgstr "C<sha256>"
8282
8283 #. type: textblock
8284 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
8285 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8286 msgstr ""
8287
8288 #. type: =item
8289 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
8290 msgid "C<sha384>"
8291 msgstr "C<sha384>"
8292
8293 #. type: textblock
8294 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
8295 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8296 msgstr ""
8297
8298 #. type: =item
8299 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
8300 msgid "C<sha512>"
8301 msgstr "C<sha512>"
8302
8303 #. type: textblock
8304 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
8305 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8306 msgstr ""
8307
8308 #. type: textblock
8309 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
8310 msgid "The checksum is returned as a printable string."
8311 msgstr ""
8312
8313 #. type: textblock
8314 #: ../fish/guestfish-actions.pod:721
8315 msgid "To get the checksum for a device, use L</checksum-device>."
8316 msgstr ""
8317
8318 #. type: textblock
8319 #: ../fish/guestfish-actions.pod:723
8320 msgid "To get the checksums for many files, use L</checksums-out>."
8321 msgstr ""
8322
8323 #. type: =head2
8324 #: ../fish/guestfish-actions.pod:725
8325 msgid "checksum-device"
8326 msgstr "checksum-device"
8327
8328 #. type: verbatim
8329 #: ../fish/guestfish-actions.pod:727
8330 #, no-wrap
8331 msgid ""
8332 " checksum-device csumtype device\n"
8333 "\n"
8334 msgstr ""
8335
8336 #. type: textblock
8337 #: ../fish/guestfish-actions.pod:729
8338 msgid ""
8339 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8340 "device named C<device>.  For the types of checksums supported see the L</"
8341 "checksum> command."
8342 msgstr ""
8343
8344 #. type: =head2
8345 #: ../fish/guestfish-actions.pod:733
8346 msgid "checksums-out"
8347 msgstr ""
8348
8349 #. type: verbatim
8350 #: ../fish/guestfish-actions.pod:735
8351 #, no-wrap
8352 msgid ""
8353 " checksums-out csumtype directory (sumsfile|-)\n"
8354 "\n"
8355 msgstr ""
8356
8357 #. type: textblock
8358 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
8359 msgid ""
8360 "This command computes the checksums of all regular files in C<directory> and "
8361 "then emits a list of those checksums to the local output file C<sumsfile>."
8362 msgstr ""
8363
8364 #. type: textblock
8365 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
8366 msgid ""
8367 "This can be used for verifying the integrity of a virtual machine.  However "
8368 "to be properly secure you should pay attention to the output of the checksum "
8369 "command (it uses the ones from GNU coreutils).  In particular when the "
8370 "filename is not printable, coreutils uses a special backslash syntax.  For "
8371 "more information, see the GNU coreutils info file."
8372 msgstr ""
8373
8374 #. type: =head2
8375 #: ../fish/guestfish-actions.pod:751
8376 msgid "chmod"
8377 msgstr "chmod"
8378
8379 #. type: verbatim
8380 #: ../fish/guestfish-actions.pod:753
8381 #, no-wrap
8382 msgid ""
8383 " chmod mode path\n"
8384 "\n"
8385 msgstr ""
8386
8387 #. type: textblock
8388 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
8389 msgid ""
8390 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8391 "supported."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
8396 msgid ""
8397 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8398 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8399 "C<700>."
8400 msgstr ""
8401
8402 #. type: textblock
8403 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259
8404 #: ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408
8405 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117
8406 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253
8407 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
8408 msgid "The mode actually set is affected by the umask."
8409 msgstr ""
8410
8411 #. type: =head2
8412 #: ../fish/guestfish-actions.pod:764
8413 msgid "chown"
8414 msgstr "chown"
8415
8416 #. type: verbatim
8417 #: ../fish/guestfish-actions.pod:766
8418 #, no-wrap
8419 msgid ""
8420 " chown owner group path\n"
8421 "\n"
8422 msgstr ""
8423
8424 #. type: textblock
8425 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
8426 msgid "Change the file owner to C<owner> and group to C<group>."
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
8431 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
8432 msgid ""
8433 "Only numeric uid and gid are supported.  If you want to use names, you will "
8434 "need to locate and parse the password file yourself (Augeas support makes "
8435 "this relatively easy)."
8436 msgstr ""
8437
8438 #. type: =head2
8439 #: ../fish/guestfish-actions.pod:774
8440 msgid "command"
8441 msgstr "command"
8442
8443 #. type: verbatim
8444 #: ../fish/guestfish-actions.pod:776
8445 #, no-wrap
8446 msgid ""
8447 " command 'arguments ...'\n"
8448 "\n"
8449 msgstr ""
8450 " command 'параметри...'\n"
8451 "\n"
8452
8453 #. type: textblock
8454 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
8455 msgid ""
8456 "This call runs a command from the guest filesystem.  The filesystem must be "
8457 "mounted, and must contain a compatible operating system (ie. something "
8458 "Linux, with the same or compatible processor architecture)."
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../fish/guestfish-actions.pod:783
8463 msgid ""
8464 "The single parameter is an argv-style list of arguments.  The first element "
8465 "is the name of the program to run.  Subsequent elements are parameters.  The "
8466 "list must be non-empty (ie. must contain a program name).  Note that the "
8467 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8468 msgstr ""
8469
8470 #. type: textblock
8471 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
8472 msgid "The return value is anything printed to I<stdout> by the command."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
8477 msgid ""
8478 "If the command returns a non-zero exit status, then this function returns an "
8479 "error message.  The error message string is the content of I<stderr> from "
8480 "the command."
8481 msgstr ""
8482
8483 #. type: textblock
8484 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
8485 msgid ""
8486 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8487 "bin>.  If you require a program from another location, you should provide "
8488 "the full path in the first parameter."
8489 msgstr ""
8490
8491 #. type: textblock
8492 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
8493 msgid ""
8494 "Shared libraries and data files required by the program must be available on "
8495 "filesystems which are mounted in the correct places.  It is the caller's "
8496 "responsibility to ensure all filesystems that are needed are mounted at the "
8497 "right locations."
8498 msgstr ""
8499
8500 #. type: =head2
8501 #: ../fish/guestfish-actions.pod:811
8502 msgid "command-lines"
8503 msgstr ""
8504
8505 #. type: verbatim
8506 #: ../fish/guestfish-actions.pod:813
8507 #, no-wrap
8508 msgid ""
8509 " command-lines 'arguments ...'\n"
8510 "\n"
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:815
8515 msgid ""
8516 "This is the same as L</command>, but splits the result into a list of lines."
8517 msgstr ""
8518
8519 #. type: textblock
8520 #: ../fish/guestfish-actions.pod:818
8521 msgid "See also: L</sh-lines>"
8522 msgstr "Див. також L</sh-lines>"
8523
8524 #. type: =head2
8525 #: ../fish/guestfish-actions.pod:823
8526 msgid "compress-device-out"
8527 msgstr ""
8528
8529 #. type: verbatim
8530 #: ../fish/guestfish-actions.pod:825
8531 #, no-wrap
8532 msgid ""
8533 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8534 "\n"
8535 msgstr ""
8536
8537 #. type: textblock
8538 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
8539 msgid ""
8540 "This command compresses C<device> and writes it out to the local file "
8541 "C<zdevice>."
8542 msgstr ""
8543
8544 #. type: textblock
8545 #: ../fish/guestfish-actions.pod:830
8546 msgid ""
8547 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8548 "compress-out>."
8549 msgstr ""
8550
8551 #. type: =head2
8552 #: ../fish/guestfish-actions.pod:837
8553 msgid "compress-out"
8554 msgstr ""
8555
8556 #. type: verbatim
8557 #: ../fish/guestfish-actions.pod:839
8558 #, no-wrap
8559 msgid ""
8560 " compress-out ctype file (zfile|-) [level:N]\n"
8561 "\n"
8562 msgstr ""
8563
8564 #. type: textblock
8565 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
8566 msgid ""
8567 "This command compresses C<file> and writes it out to the local file C<zfile>."
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
8572 msgid ""
8573 "The compression program used is controlled by the C<ctype> parameter.  "
8574 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8575 "Some compression types may not be supported by particular builds of "
8576 "libguestfs, in which case you will get an error containing the substring "
8577 "\"not supported\"."
8578 msgstr ""
8579
8580 #. type: textblock
8581 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
8582 msgid ""
8583 "The optional C<level> parameter controls compression level.  The meaning and "
8584 "default for this parameter depends on the compression program being used."
8585 msgstr ""
8586
8587 #. type: =head2
8588 #: ../fish/guestfish-actions.pod:858
8589 msgid "config"
8590 msgstr ""
8591
8592 #. type: verbatim
8593 #: ../fish/guestfish-actions.pod:860
8594 #, no-wrap
8595 msgid ""
8596 " config qemuparam qemuvalue\n"
8597 "\n"
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
8602 msgid ""
8603 "This can be used to add arbitrary qemu command line parameters of the form "
8604 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8605 "setting some parameters which would interfere with parameters that we use."
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
8610 msgid "The first character of C<param> string must be a C<-> (dash)."
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
8615 msgid "C<value> can be NULL."
8616 msgstr ""
8617
8618 #. type: =head2
8619 #: ../fish/guestfish-actions.pod:871
8620 msgid "copy-device-to-device"
8621 msgstr ""
8622
8623 #. type: verbatim
8624 #: ../fish/guestfish-actions.pod:873
8625 #, no-wrap
8626 msgid ""
8627 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8628 "\n"
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../fish/guestfish-actions.pod:875
8633 msgid ""
8634 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8635 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8636 "(device|file) to a destination (device|file)."
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
8641 msgid ""
8642 "Partial copies can be made since you can specify optionally the source "
8643 "offset, destination offset and size to copy.  These values are all specified "
8644 "in bytes.  If not given, the offsets both default to zero, and the size "
8645 "defaults to copying as much as possible until we hit the end of the source."
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
8650 msgid ""
8651 "The source and destination may be the same object.  However overlapping "
8652 "regions may not be copied correctly."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
8657 msgid ""
8658 "If the destination is a file, it is created if required.  If the destination "
8659 "file is not large enough, it is extended."
8660 msgstr ""
8661
8662 #. type: =head2
8663 #: ../fish/guestfish-actions.pod:896
8664 msgid "copy-device-to-file"
8665 msgstr ""
8666
8667 #. type: verbatim
8668 #: ../fish/guestfish-actions.pod:898
8669 #, no-wrap
8670 msgid ""
8671 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8672 "\n"
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
8677 #: ../fish/guestfish-actions.pod:918
8678 msgid "See L</copy-device-to-device> for a general overview of this call."
8679 msgstr ""
8680
8681 #. type: =head2
8682 #: ../fish/guestfish-actions.pod:905
8683 msgid "copy-file-to-device"
8684 msgstr ""
8685
8686 #. type: verbatim
8687 #: ../fish/guestfish-actions.pod:907
8688 #, no-wrap
8689 msgid ""
8690 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8691 "\n"
8692 msgstr ""
8693
8694 #. type: =head2
8695 #: ../fish/guestfish-actions.pod:914
8696 msgid "copy-file-to-file"
8697 msgstr ""
8698
8699 #. type: verbatim
8700 #: ../fish/guestfish-actions.pod:916
8701 #, no-wrap
8702 msgid ""
8703 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8704 "\n"
8705 msgstr ""
8706
8707 #. type: textblock
8708 #: ../fish/guestfish-actions.pod:921
8709 msgid ""
8710 "This is B<not> the function you want for copying files.  This is for copying "
8711 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
8712 "file copying and moving functions."
8713 msgstr ""
8714
8715 #. type: =head2
8716 #: ../fish/guestfish-actions.pod:928
8717 msgid "copy-size"
8718 msgstr ""
8719
8720 #. type: verbatim
8721 #: ../fish/guestfish-actions.pod:930
8722 #, no-wrap
8723 msgid ""
8724 " copy-size src dest size\n"
8725 "\n"
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
8730 msgid ""
8731 "This command copies exactly C<size> bytes from one source device or file "
8732 "C<src> to another destination device or file C<dest>."
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
8737 msgid ""
8738 "Note this will fail if the source is too short or if the destination is not "
8739 "large enough."
8740 msgstr ""
8741
8742 #. type: textblock
8743 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
8744 msgid ""
8745 "I<This function is deprecated.> In new code, use the L</"
8746 "copy_device_to_device> call instead."
8747 msgstr ""
8748
8749 #. type: =head2
8750 #: ../fish/guestfish-actions.pod:945
8751 msgid "cp"
8752 msgstr "cp"
8753
8754 #. type: verbatim
8755 #: ../fish/guestfish-actions.pod:947
8756 #, no-wrap
8757 msgid ""
8758 " cp src dest\n"
8759 "\n"
8760 msgstr ""
8761
8762 #. type: textblock
8763 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
8764 msgid ""
8765 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8766 "destination filename or destination directory."
8767 msgstr ""
8768
8769 #. type: =head2
8770 #: ../fish/guestfish-actions.pod:952
8771 msgid "cp-a"
8772 msgstr "cp-a"
8773
8774 #. type: verbatim
8775 #: ../fish/guestfish-actions.pod:954
8776 #, no-wrap
8777 msgid ""
8778 " cp-a src dest\n"
8779 "\n"
8780 msgstr ""
8781
8782 #. type: textblock
8783 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
8784 msgid ""
8785 "This copies a file or directory from C<src> to C<dest> recursively using the "
8786 "C<cp -a> command."
8787 msgstr ""
8788
8789 #. type: =head2
8790 #: ../fish/guestfish-actions.pod:959
8791 msgid "dd"
8792 msgstr "dd"
8793
8794 #. type: verbatim
8795 #: ../fish/guestfish-actions.pod:961
8796 #, no-wrap
8797 msgid ""
8798 " dd src dest\n"
8799 "\n"
8800 msgstr ""
8801
8802 #. type: textblock
8803 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
8804 msgid ""
8805 "This command copies from one source device or file C<src> to another "
8806 "destination device or file C<dest>.  Normally you would use this to copy to "
8807 "or from a device or partition, for example to duplicate a filesystem."
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:968
8812 msgid ""
8813 "If the destination is a device, it must be as large or larger than the "
8814 "source file or device, otherwise the copy will fail.  This command cannot do "
8815 "partial copies (see L</copy-device-to-device>)."
8816 msgstr ""
8817
8818 #. type: =head2
8819 #: ../fish/guestfish-actions.pod:980
8820 msgid "df"
8821 msgstr "df"
8822
8823 #. type: verbatim
8824 #: ../fish/guestfish-actions.pod:982
8825 #, no-wrap
8826 msgid ""
8827 " df\n"
8828 "\n"
8829 msgstr ""
8830 " df\n"
8831 "\n"
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8835 msgid "This command runs the C<df> command to report disk space used."
8836 msgstr ""
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8840 msgid ""
8841 "This command is mostly useful for interactive sessions.  It is I<not> "
8842 "intended that you try to parse the output string.  Use L</statvfs> from "
8843 "programs."
8844 msgstr ""
8845
8846 #. type: =head2
8847 #: ../fish/guestfish-actions.pod:990
8848 msgid "df-h"
8849 msgstr "df-h"
8850
8851 #. type: verbatim
8852 #: ../fish/guestfish-actions.pod:992
8853 #, no-wrap
8854 msgid ""
8855 " df-h\n"
8856 "\n"
8857 msgstr ""
8858 " df-h\n"
8859 "\n"
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8863 msgid ""
8864 "This command runs the C<df -h> command to report disk space used in human-"
8865 "readable format."
8866 msgstr ""
8867
8868 #. type: =head2
8869 #: ../fish/guestfish-actions.pod:1001
8870 msgid "dmesg"
8871 msgstr "dmesg"
8872
8873 #. type: verbatim
8874 #: ../fish/guestfish-actions.pod:1003
8875 #, no-wrap
8876 msgid ""
8877 " dmesg\n"
8878 "\n"
8879 msgstr ""
8880 " dmesg\n"
8881 "\n"
8882
8883 #. type: textblock
8884 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8885 msgid ""
8886 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8887 "This is sometimes useful for extended debugging of problems."
8888 msgstr ""
8889
8890 #. type: textblock
8891 #: ../fish/guestfish-actions.pod:1009
8892 msgid ""
8893 "Another way to get the same information is to enable verbose messages with "
8894 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8895 "before running the program."
8896 msgstr ""
8897
8898 #. type: =head2
8899 #: ../fish/guestfish-actions.pod:1014
8900 msgid "download"
8901 msgstr "download"
8902
8903 #. type: verbatim
8904 #: ../fish/guestfish-actions.pod:1016
8905 #, no-wrap
8906 msgid ""
8907 " download remotefilename (filename|-)\n"
8908 "\n"
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8913 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8914 msgid ""
8915 "Download file C<remotefilename> and save it as C<filename> on the local "
8916 "machine."
8917 msgstr ""
8918
8919 #. type: textblock
8920 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003
8921 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
8922 msgid "C<filename> can also be a named pipe."
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:1023
8927 msgid "See also L</upload>, L</cat>."
8928 msgstr ""
8929
8930 #. type: =head2
8931 #: ../fish/guestfish-actions.pod:1027
8932 msgid "download-offset"
8933 msgstr "download-offset"
8934
8935 #. type: verbatim
8936 #: ../fish/guestfish-actions.pod:1029
8937 #, no-wrap
8938 msgid ""
8939 " download-offset remotefilename (filename|-) offset size\n"
8940 "\n"
8941 msgstr ""
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8945 msgid ""
8946 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8947 "region must be within the file or device)."
8948 msgstr ""
8949
8950 #. type: textblock
8951 #: ../fish/guestfish-actions.pod:1037
8952 msgid ""
8953 "Note that there is no limit on the amount of data that can be downloaded "
8954 "with this call, unlike with L</pread>, and this call always reads the full "
8955 "amount unless an error occurs."
8956 msgstr ""
8957
8958 #. type: textblock
8959 #: ../fish/guestfish-actions.pod:1042
8960 msgid "See also L</download>, L</pread>."
8961 msgstr ""
8962
8963 #. type: =head2
8964 #: ../fish/guestfish-actions.pod:1046
8965 msgid "drop-caches"
8966 msgstr ""
8967
8968 #. type: verbatim
8969 #: ../fish/guestfish-actions.pod:1048
8970 #, no-wrap
8971 msgid ""
8972 " drop-caches whattodrop\n"
8973 "\n"
8974 msgstr ""
8975
8976 #. type: textblock
8977 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8978 msgid ""
8979 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8980 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8981 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8982 msgstr ""
8983
8984 #. type: textblock
8985 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8986 msgid "Setting C<whattodrop> to 3 should drop everything."
8987 msgstr ""
8988
8989 #. type: textblock
8990 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8991 msgid ""
8992 "This automatically calls L<sync(2)> before the operation, so that the "
8993 "maximum guest memory is freed."
8994 msgstr ""
8995
8996 #. type: =head2
8997 #: ../fish/guestfish-actions.pod:1060
8998 msgid "du"
8999 msgstr "du"
9000
9001 #. type: verbatim
9002 #: ../fish/guestfish-actions.pod:1062
9003 #, no-wrap
9004 msgid ""
9005 " du path\n"
9006 "\n"
9007 msgstr ""
9008 " du шлях\n"
9009 "\n"
9010
9011 #. type: textblock
9012 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
9013 msgid ""
9014 "This command runs the C<du -s> command to estimate file space usage for "
9015 "C<path>."
9016 msgstr ""
9017
9018 #. type: textblock
9019 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
9020 msgid ""
9021 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9022 "estimate includes the contents of the directory and all subdirectories "
9023 "(recursively)."
9024 msgstr ""
9025
9026 #. type: textblock
9027 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
9028 msgid ""
9029 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9030 msgstr ""
9031
9032 #. type: =head2
9033 #: ../fish/guestfish-actions.pod:1074
9034 msgid "e2fsck-f"
9035 msgstr "e2fsck-f"
9036
9037 #. type: verbatim
9038 #: ../fish/guestfish-actions.pod:1076
9039 #, no-wrap
9040 msgid ""
9041 " e2fsck-f device\n"
9042 "\n"
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
9047 msgid ""
9048 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9049 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9050 "clean (I<-f>)."
9051 msgstr ""
9052
9053 #. type: textblock
9054 #: ../fish/guestfish-actions.pod:1082
9055 msgid ""
9056 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
9057 "should use L</fsck>."
9058 msgstr ""
9059
9060 #. type: =head2
9061 #: ../fish/guestfish-actions.pod:1085
9062 msgid "echo-daemon"
9063 msgstr ""
9064
9065 #. type: verbatim
9066 #: ../fish/guestfish-actions.pod:1087
9067 #, no-wrap
9068 msgid ""
9069 " echo-daemon 'words ...'\n"
9070 "\n"
9071 msgstr ""
9072
9073 #. type: textblock
9074 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
9075 msgid ""
9076 "This command concatenates the list of C<words> passed with single spaces "
9077 "between them and returns the resulting string."
9078 msgstr ""
9079
9080 #. type: textblock
9081 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
9082 msgid "You can use this command to test the connection through to the daemon."
9083 msgstr ""
9084
9085 #. type: textblock
9086 #: ../fish/guestfish-actions.pod:1094
9087 msgid "See also L</ping-daemon>."
9088 msgstr "Див. також L</ping-daemon>."
9089
9090 #. type: =head2
9091 #: ../fish/guestfish-actions.pod:1096
9092 msgid "egrep"
9093 msgstr "egrep"
9094
9095 #. type: verbatim
9096 #: ../fish/guestfish-actions.pod:1098
9097 #, no-wrap
9098 msgid ""
9099 " egrep regex path\n"
9100 "\n"
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
9105 msgid ""
9106 "This calls the external C<egrep> program and returns the matching lines."
9107 msgstr ""
9108
9109 #. type: =head2
9110 #: ../fish/guestfish-actions.pod:1106
9111 msgid "egrepi"
9112 msgstr "egrepi"
9113
9114 #. type: verbatim
9115 #: ../fish/guestfish-actions.pod:1108
9116 #, no-wrap
9117 msgid ""
9118 " egrepi regex path\n"
9119 "\n"
9120 msgstr ""
9121
9122 #. type: textblock
9123 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
9124 msgid ""
9125 "This calls the external C<egrep -i> program and returns the matching lines."
9126 msgstr ""
9127
9128 #. type: =head2
9129 #: ../fish/guestfish-actions.pod:1116
9130 msgid "equal"
9131 msgstr "equal"
9132
9133 #. type: verbatim
9134 #: ../fish/guestfish-actions.pod:1118
9135 #, no-wrap
9136 msgid ""
9137 " equal file1 file2\n"
9138 "\n"
9139 msgstr ""
9140 " equal файл1 файл2\n"
9141 "\n"
9142
9143 #. type: textblock
9144 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
9145 msgid ""
9146 "This compares the two files C<file1> and C<file2> and returns true if their "
9147 "content is exactly equal, or false otherwise."
9148 msgstr ""
9149
9150 #. type: textblock
9151 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
9152 msgid "The external L<cmp(1)> program is used for the comparison."
9153 msgstr ""
9154
9155 #. type: =head2
9156 #: ../fish/guestfish-actions.pod:1125
9157 msgid "exists"
9158 msgstr "exists"
9159
9160 #. type: verbatim
9161 #: ../fish/guestfish-actions.pod:1127
9162 #, no-wrap
9163 msgid ""
9164 " exists path\n"
9165 "\n"
9166 msgstr ""
9167 " exists шлях\n"
9168 "\n"
9169
9170 #. type: textblock
9171 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
9172 msgid ""
9173 "This returns C<true> if and only if there is a file, directory (or anything) "
9174 "with the given C<path> name."
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:1132
9179 msgid "See also L</is-file>, L</is-dir>, L</stat>."
9180 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
9181
9182 #. type: =head2
9183 #: ../fish/guestfish-actions.pod:1134
9184 msgid "fallocate"
9185 msgstr "fallocate"
9186
9187 #. type: verbatim
9188 #: ../fish/guestfish-actions.pod:1136
9189 #, no-wrap
9190 msgid ""
9191 " fallocate path len\n"
9192 "\n"
9193 msgstr ""
9194 " fallocate шлях довжина\n"
9195 "\n"
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
9199 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
9200 msgid ""
9201 "This command preallocates a file (containing zero bytes) named C<path> of "
9202 "size C<len> bytes.  If the file exists already, it is overwritten."
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
9207 msgid ""
9208 "Do not confuse this with the guestfish-specific C<alloc> command which "
9209 "allocates a file in the host and attaches it as a device."
9210 msgstr ""
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:1146
9214 msgid ""
9215 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
9216 "instead."
9217 msgstr ""
9218
9219 #. type: =head2
9220 #: ../fish/guestfish-actions.pod:1153
9221 msgid "fallocate64"
9222 msgstr "fallocate64"
9223
9224 #. type: verbatim
9225 #: ../fish/guestfish-actions.pod:1155
9226 #, no-wrap
9227 msgid ""
9228 " fallocate64 path len\n"
9229 "\n"
9230 msgstr ""
9231 " fallocate64 шлях довжина\n"
9232 "\n"
9233
9234 #. type: textblock
9235 #: ../fish/guestfish-actions.pod:1161
9236 msgid ""
9237 "Note that this call allocates disk blocks for the file.  To create a sparse "
9238 "file use L</truncate-size> instead."
9239 msgstr ""
9240
9241 #. type: textblock
9242 #: ../fish/guestfish-actions.pod:1164
9243 msgid ""
9244 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9245 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9246 "maximum size of files created through that call to 1GB."
9247 msgstr ""
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
9251 msgid ""
9252 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9253 "commands which create a file in the host and attach it as a device."
9254 msgstr ""
9255
9256 #. type: =head2
9257 #: ../fish/guestfish-actions.pod:1173
9258 msgid "fgrep"
9259 msgstr "fgrep"
9260
9261 #. type: verbatim
9262 #: ../fish/guestfish-actions.pod:1175
9263 #, no-wrap
9264 msgid ""
9265 " fgrep pattern path\n"
9266 "\n"
9267 msgstr ""
9268 " fgrep шаблон шлях\n"
9269 "\n"
9270
9271 #. type: textblock
9272 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
9273 msgid ""
9274 "This calls the external C<fgrep> program and returns the matching lines."
9275 msgstr ""
9276
9277 #. type: =head2
9278 #: ../fish/guestfish-actions.pod:1183
9279 msgid "fgrepi"
9280 msgstr "fgrepi"
9281
9282 #. type: verbatim
9283 #: ../fish/guestfish-actions.pod:1185
9284 #, no-wrap
9285 msgid ""
9286 " fgrepi pattern path\n"
9287 "\n"
9288 msgstr ""
9289 " fgrepi шаблон шлях\n"
9290 "\n"
9291
9292 #. type: textblock
9293 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
9294 msgid ""
9295 "This calls the external C<fgrep -i> program and returns the matching lines."
9296 msgstr ""
9297
9298 #. type: =head2
9299 #: ../fish/guestfish-actions.pod:1193
9300 msgid "file"
9301 msgstr "file"
9302
9303 #. type: verbatim
9304 #: ../fish/guestfish-actions.pod:1195
9305 #, no-wrap
9306 msgid ""
9307 " file path\n"
9308 "\n"
9309 msgstr ""
9310 " file шлях\n"
9311 "\n"
9312
9313 #. type: textblock
9314 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
9315 msgid ""
9316 "This call uses the standard L<file(1)> command to determine the type or "
9317 "contents of the file."
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
9322 msgid ""
9323 "This call will also transparently look inside various types of compressed "
9324 "file."
9325 msgstr ""
9326
9327 #. type: textblock
9328 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
9329 msgid ""
9330 "The exact command which runs is C<file -zb path>.  Note in particular that "
9331 "the filename is not prepended to the output (the I<-b> option)."
9332 msgstr ""
9333
9334 #. type: textblock
9335 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
9336 msgid ""
9337 "The output depends on the output of the underlying L<file(1)> command and it "
9338 "can change in future in ways beyond our control.  In other words, the output "
9339 "is not guaranteed by the ABI."
9340 msgstr ""
9341
9342 #. type: textblock
9343 #: ../fish/guestfish-actions.pod:1211
9344 msgid ""
9345 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9346 "(etc), L</is-zero>."
9347 msgstr ""
9348
9349 #. type: =head2
9350 #: ../fish/guestfish-actions.pod:1214
9351 msgid "file-architecture"
9352 msgstr "file-architecture"
9353
9354 #. type: verbatim
9355 #: ../fish/guestfish-actions.pod:1216
9356 #, no-wrap
9357 msgid ""
9358 " file-architecture filename\n"
9359 "\n"
9360 msgstr ""
9361 " file-architecture назва_файла\n"
9362 "\n"
9363
9364 #. type: textblock
9365 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
9366 msgid ""
9367 "This detects the architecture of the binary C<filename>, and returns it if "
9368 "known."
9369 msgstr ""
9370
9371 #. type: textblock
9372 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
9373 msgid "Currently defined architectures are:"
9374 msgstr ""
9375
9376 #. type: =item
9377 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
9378 msgid "\"i386\""
9379 msgstr "\"i386\""
9380
9381 #. type: textblock
9382 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
9383 msgid ""
9384 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9385 "irrespective of the precise processor requirements of the binary."
9386 msgstr ""
9387
9388 #. type: =item
9389 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
9390 msgid "\"x86_64\""
9391 msgstr "\"x86_64\""
9392
9393 #. type: textblock
9394 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
9395 msgid "64 bit x86-64."
9396 msgstr ""
9397
9398 #. type: =item
9399 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
9400 msgid "\"sparc\""
9401 msgstr ""
9402
9403 #. type: textblock
9404 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
9405 msgid "32 bit SPARC."
9406 msgstr ""
9407
9408 #. type: =item
9409 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
9410 msgid "\"sparc64\""
9411 msgstr ""
9412
9413 #. type: textblock
9414 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
9415 msgid "64 bit SPARC V9 and above."
9416 msgstr ""
9417
9418 #. type: =item
9419 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
9420 msgid "\"ia64\""
9421 msgstr "\"ia64\""
9422
9423 #. type: textblock
9424 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
9425 msgid "Intel Itanium."
9426 msgstr "Intel Itanium."
9427
9428 #. type: =item
9429 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
9430 msgid "\"ppc\""
9431 msgstr ""
9432
9433 #. type: textblock
9434 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
9435 msgid "32 bit Power PC."
9436 msgstr ""
9437
9438 #. type: =item
9439 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
9440 msgid "\"ppc64\""
9441 msgstr ""
9442
9443 #. type: textblock
9444 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
9445 msgid "64 bit Power PC."
9446 msgstr ""
9447
9448 #. type: textblock
9449 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
9450 msgid "Libguestfs may return other architecture strings in future."
9451 msgstr ""
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
9455 msgid "The function works on at least the following types of files:"
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
9460 msgid "many types of Un*x and Linux binary"
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
9465 msgid "many types of Un*x and Linux shared library"
9466 msgstr ""
9467
9468 #. type: textblock
9469 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
9470 msgid "Windows Win32 and Win64 binaries"
9471 msgstr ""
9472
9473 #. type: textblock
9474 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
9475 msgid "Windows Win32 and Win64 DLLs"
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
9480 msgid "Win32 binaries and DLLs return C<i386>."
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
9485 msgid "Win64 binaries and DLLs return C<x86_64>."
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
9490 msgid "Linux kernel modules"
9491 msgstr ""
9492
9493 #. type: textblock
9494 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
9495 msgid "Linux new-style initrd images"
9496 msgstr ""
9497
9498 #. type: textblock
9499 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
9500 msgid "some non-x86 Linux vmlinuz kernels"
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
9505 msgid "What it can't do currently:"
9506 msgstr ""
9507
9508 #. type: textblock
9509 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
9510 msgid "static libraries (libfoo.a)"
9511 msgstr ""
9512
9513 #. type: textblock
9514 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
9515 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9516 msgstr ""
9517
9518 #. type: textblock
9519 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
9520 msgid "x86 Linux vmlinuz kernels"
9521 msgstr ""
9522
9523 #. type: textblock
9524 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
9525 msgid ""
9526 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9527 "compressed code, and are horribly hard to unpack.  If you want to find the "
9528 "architecture of a kernel, use the architecture of the associated initrd or "
9529 "kernel module(s) instead."
9530 msgstr ""
9531
9532 #. type: =head2
9533 #: ../fish/guestfish-actions.pod:1319
9534 msgid "filesize"
9535 msgstr "filesize"
9536
9537 #. type: verbatim
9538 #: ../fish/guestfish-actions.pod:1321
9539 #, no-wrap
9540 msgid ""
9541 " filesize file\n"
9542 "\n"
9543 msgstr ""
9544 " filesize файл\n"
9545 "\n"
9546
9547 #. type: textblock
9548 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
9549 msgid "This command returns the size of C<file> in bytes."
9550 msgstr ""
9551
9552 #. type: textblock
9553 #: ../fish/guestfish-actions.pod:1325
9554 msgid ""
9555 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9556 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
9557 msgstr ""
9558
9559 #. type: =head2
9560 #: ../fish/guestfish-actions.pod:1329
9561 msgid "fill"
9562 msgstr "fill"
9563
9564 #. type: verbatim
9565 #: ../fish/guestfish-actions.pod:1331
9566 #, no-wrap
9567 msgid ""
9568 " fill c len path\n"
9569 "\n"
9570 msgstr ""
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
9574 msgid ""
9575 "This command creates a new file called C<path>.  The initial content of the "
9576 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9577 "[0..255]>."
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../fish/guestfish-actions.pod:1337
9582 msgid ""
9583 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9584 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
9585 "L</fill-pattern>."
9586 msgstr ""
9587
9588 #. type: =head2
9589 #: ../fish/guestfish-actions.pod:1342
9590 msgid "fill-pattern"
9591 msgstr "fill-pattern"
9592
9593 #. type: verbatim
9594 #: ../fish/guestfish-actions.pod:1344
9595 #, no-wrap
9596 msgid ""
9597 " fill-pattern pattern len path\n"
9598 "\n"
9599 msgstr ""
9600
9601 #. type: textblock
9602 #: ../fish/guestfish-actions.pod:1346
9603 msgid ""
9604 "This function is like L</fill> except that it creates a new file of length "
9605 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
9606 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9607 "bytes."
9608 msgstr ""
9609
9610 #. type: =head2
9611 #: ../fish/guestfish-actions.pod:1351
9612 msgid "find"
9613 msgstr "find"
9614
9615 #. type: verbatim
9616 #: ../fish/guestfish-actions.pod:1353
9617 #, no-wrap
9618 msgid ""
9619 " find directory\n"
9620 "\n"
9621 msgstr ""
9622 " find каталог\n"
9623 "\n"
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
9627 msgid ""
9628 "This command lists out all files and directories, recursively, starting at "
9629 "C<directory>.  It is essentially equivalent to running the shell command "
9630 "C<find directory -print> but some post-processing happens on the output, "
9631 "described below."
9632 msgstr ""
9633
9634 #. type: textblock
9635 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
9636 msgid ""
9637 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9638 "structure was:"
9639 msgstr ""
9640
9641 #. type: verbatim
9642 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
9643 #, no-wrap
9644 msgid ""
9645 " /tmp/a\n"
9646 " /tmp/b\n"
9647 " /tmp/c/d\n"
9648 "\n"
9649 msgstr ""
9650
9651 #. type: textblock
9652 #: ../fish/guestfish-actions.pod:1367
9653 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9654 msgstr ""
9655
9656 #. type: verbatim
9657 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
9658 #, no-wrap
9659 msgid ""
9660 " a\n"
9661 " b\n"
9662 " c\n"
9663 " c/d\n"
9664 "\n"
9665 msgstr ""
9666
9667 #. type: textblock
9668 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
9669 msgid "If C<directory> is not a directory, then this command returns an error."
9670 msgstr ""
9671
9672 #. type: textblock
9673 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
9674 msgid "The returned list is sorted."
9675 msgstr ""
9676
9677 #. type: textblock
9678 #: ../fish/guestfish-actions.pod:1380
9679 msgid "See also L</find0>."
9680 msgstr "Див. також L</find0>."
9681
9682 #. type: =head2
9683 #: ../fish/guestfish-actions.pod:1385
9684 msgid "find0"
9685 msgstr "find0"
9686
9687 #. type: verbatim
9688 #: ../fish/guestfish-actions.pod:1387
9689 #, no-wrap
9690 msgid ""
9691 " find0 directory (files|-)\n"
9692 "\n"
9693 msgstr ""
9694 " find0 каталог (файли|-)\n"
9695 "\n"
9696
9697 #. type: textblock
9698 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
9699 msgid ""
9700 "This command lists out all files and directories, recursively, starting at "
9701 "C<directory>, placing the resulting list in the external file called "
9702 "C<files>."
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:1393
9707 msgid ""
9708 "This command works the same way as L</find> with the following exceptions:"
9709 msgstr ""
9710
9711 #. type: textblock
9712 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
9713 msgid "The resulting list is written to an external file."
9714 msgstr ""
9715
9716 #. type: textblock
9717 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
9718 msgid ""
9719 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9720 "L<find(1)> option I<-print0>."
9721 msgstr ""
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
9725 msgid "This command is not limited in the number of names that it can return."
9726 msgstr ""
9727
9728 #. type: textblock
9729 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
9730 msgid "The result list is not sorted."
9731 msgstr ""
9732
9733 #. type: =head2
9734 #: ../fish/guestfish-actions.pod:1420
9735 msgid "findfs-label"
9736 msgstr "findfs-label"
9737
9738 #. type: verbatim
9739 #: ../fish/guestfish-actions.pod:1422
9740 #, no-wrap
9741 msgid ""
9742 " findfs-label label\n"
9743 "\n"
9744 msgstr ""
9745 " findfs-label мітка\n"
9746 "\n"
9747
9748 #. type: textblock
9749 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
9750 msgid ""
9751 "This command searches the filesystems and returns the one which has the "
9752 "given label.  An error is returned if no such filesystem can be found."
9753 msgstr ""
9754
9755 #. type: textblock
9756 #: ../fish/guestfish-actions.pod:1428
9757 msgid "To find the label of a filesystem, use L</vfs-label>."
9758 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
9759
9760 #. type: =head2
9761 #: ../fish/guestfish-actions.pod:1430
9762 msgid "findfs-uuid"
9763 msgstr "findfs-uuid"
9764
9765 #. type: verbatim
9766 #: ../fish/guestfish-actions.pod:1432
9767 #, no-wrap
9768 msgid ""
9769 " findfs-uuid uuid\n"
9770 "\n"
9771 msgstr ""
9772 " findfs-uuid uuid\n"
9773 "\n"
9774
9775 #. type: textblock
9776 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
9777 msgid ""
9778 "This command searches the filesystems and returns the one which has the "
9779 "given UUID.  An error is returned if no such filesystem can be found."
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:1438
9784 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9785 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
9786
9787 #. type: =head2
9788 #: ../fish/guestfish-actions.pod:1440
9789 msgid "fsck"
9790 msgstr "fsck"
9791
9792 #. type: verbatim
9793 #: ../fish/guestfish-actions.pod:1442
9794 #, no-wrap
9795 msgid ""
9796 " fsck fstype device\n"
9797 "\n"
9798 msgstr ""
9799 " fsck тип_файлової_системи пристрій\n"
9800 "\n"
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
9804 msgid ""
9805 "This runs the filesystem checker (fsck) on C<device> which should have "
9806 "filesystem type C<fstype>."
9807 msgstr ""
9808
9809 #. type: textblock
9810 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
9811 msgid ""
9812 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9813 "codes from C<fsck>."
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
9818 msgid "Multiple status codes can be summed together."
9819 msgstr ""
9820
9821 #. type: textblock
9822 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
9823 msgid ""
9824 "A non-zero return code can mean \"success\", for example if errors have been "
9825 "corrected on the filesystem."
9826 msgstr ""
9827
9828 #. type: textblock
9829 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9830 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9831 msgstr ""
9832
9833 #. type: textblock
9834 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
9835 msgid ""
9836 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9837 msgstr ""
9838
9839 #. type: =head2
9840 #: ../fish/guestfish-actions.pod:1472
9841 msgid "get-append"
9842 msgstr "get-append"
9843
9844 #. type: verbatim
9845 #: ../fish/guestfish-actions.pod:1474
9846 #, no-wrap
9847 msgid ""
9848 " get-append\n"
9849 "\n"
9850 msgstr ""
9851 " get-append\n"
9852 "\n"
9853
9854 #. type: textblock
9855 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9856 msgid ""
9857 "Return the additional kernel options which are added to the guest kernel "
9858 "command line."
9859 msgstr ""
9860
9861 #. type: textblock
9862 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9863 msgid "If C<NULL> then no options are added."
9864 msgstr ""
9865
9866 #. type: =head2
9867 #: ../fish/guestfish-actions.pod:1481
9868 msgid "get-attach-method"
9869 msgstr "get-attach-method"
9870
9871 #. type: verbatim
9872 #: ../fish/guestfish-actions.pod:1483
9873 #, no-wrap
9874 msgid ""
9875 " get-attach-method\n"
9876 "\n"
9877 msgstr ""
9878 " get-attach-method\n"
9879 "\n"
9880
9881 #. type: textblock
9882 #: ../fish/guestfish-actions.pod:1485
9883 msgid "Return the current attach method.  See L</set-attach-method>."
9884 msgstr ""
9885
9886 #. type: =head2
9887 #: ../fish/guestfish-actions.pod:1487
9888 msgid "get-autosync"
9889 msgstr "get-autosync"
9890
9891 #. type: verbatim
9892 #: ../fish/guestfish-actions.pod:1489
9893 #, no-wrap
9894 msgid ""
9895 " get-autosync\n"
9896 "\n"
9897 msgstr ""
9898 " get-autosync\n"
9899 "\n"
9900
9901 #. type: textblock
9902 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9903 msgid "Get the autosync flag."
9904 msgstr ""
9905
9906 #. type: =head2
9907 #: ../fish/guestfish-actions.pod:1493
9908 msgid "get-direct"
9909 msgstr "get-direct"
9910
9911 #. type: verbatim
9912 #: ../fish/guestfish-actions.pod:1495
9913 #, no-wrap
9914 msgid ""
9915 " get-direct\n"
9916 "\n"
9917 msgstr ""
9918 " get-direct\n"
9919 "\n"
9920
9921 #. type: textblock
9922 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9923 msgid "Return the direct appliance mode flag."
9924 msgstr ""
9925
9926 #. type: =head2
9927 #: ../fish/guestfish-actions.pod:1499
9928 msgid "get-e2label"
9929 msgstr "get-e2label"
9930
9931 #. type: verbatim
9932 #: ../fish/guestfish-actions.pod:1501
9933 #, no-wrap
9934 msgid ""
9935 " get-e2label device\n"
9936 "\n"
9937 msgstr ""
9938 " get-e2label пристрій\n"
9939 "\n"
9940
9941 #. type: textblock
9942 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9943 msgid ""
9944 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9945 msgstr ""
9946
9947 #. type: textblock
9948 #: ../fish/guestfish-actions.pod:1506
9949 msgid ""
9950 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9951 "instead."
9952 msgstr ""
9953
9954 #. type: =head2
9955 #: ../fish/guestfish-actions.pod:1513
9956 msgid "get-e2uuid"
9957 msgstr "get-e2uuid"
9958
9959 #. type: verbatim
9960 #: ../fish/guestfish-actions.pod:1515
9961 #, no-wrap
9962 msgid ""
9963 " get-e2uuid device\n"
9964 "\n"
9965 msgstr ""
9966 " get-e2uuid пристрій\n"
9967 "\n"
9968
9969 #. type: textblock
9970 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9971 msgid ""
9972 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9973 msgstr ""
9974
9975 #. type: textblock
9976 #: ../fish/guestfish-actions.pod:1520
9977 msgid ""
9978 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9979 "instead."
9980 msgstr ""
9981
9982 #. type: =head2
9983 #: ../fish/guestfish-actions.pod:1527
9984 msgid "get-memsize"
9985 msgstr "get-memsize"
9986
9987 #. type: verbatim
9988 #: ../fish/guestfish-actions.pod:1529
9989 #, no-wrap
9990 msgid ""
9991 " get-memsize\n"
9992 "\n"
9993 msgstr ""
9994 " get-memsize\n"
9995 "\n"
9996
9997 #. type: textblock
9998 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9999 msgid ""
10000 "This gets the memory size in megabytes allocated to the qemu subprocess."
10001 msgstr ""
10002
10003 #. type: textblock
10004 #: ../fish/guestfish-actions.pod:1534
10005 msgid ""
10006 "If L</set-memsize> was not called on this handle, and if "
10007 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10008 "value for memsize."
10009 msgstr ""
10010
10011 #. type: textblock
10012 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
10013 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462
10014 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
10015 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
10016 msgid ""
10017 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10018 msgstr ""
10019
10020 #. type: =head2
10021 #: ../fish/guestfish-actions.pod:1541
10022 msgid "get-network"
10023 msgstr "get-network"
10024
10025 #. type: verbatim
10026 #: ../fish/guestfish-actions.pod:1543
10027 #, no-wrap
10028 msgid ""
10029 " get-network\n"
10030 "\n"
10031 msgstr ""
10032 " get-network\n"
10033 "\n"
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
10037 msgid "This returns the enable network flag."
10038 msgstr ""
10039
10040 #. type: =head2
10041 #: ../fish/guestfish-actions.pod:1547
10042 msgid "get-path"
10043 msgstr "get-path"
10044
10045 #. type: verbatim
10046 #: ../fish/guestfish-actions.pod:1549
10047 #, no-wrap
10048 msgid ""
10049 " get-path\n"
10050 "\n"
10051 msgstr ""
10052 " get-path\n"
10053 "\n"
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
10057 msgid "Return the current search path."
10058 msgstr ""
10059
10060 #. type: textblock
10061 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
10062 msgid ""
10063 "This is always non-NULL.  If it wasn't set already, then this will return "
10064 "the default path."
10065 msgstr ""
10066
10067 #. type: =head2
10068 #: ../fish/guestfish-actions.pod:1556
10069 msgid "get-pgroup"
10070 msgstr ""
10071
10072 #. type: verbatim
10073 #: ../fish/guestfish-actions.pod:1558
10074 #, no-wrap
10075 msgid ""
10076 " get-pgroup\n"
10077 "\n"
10078 msgstr ""
10079
10080 #. type: textblock
10081 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
10082 msgid "This returns the process group flag."
10083 msgstr ""
10084
10085 #. type: =head2
10086 #: ../fish/guestfish-actions.pod:1562
10087 msgid "get-pid"
10088 msgstr "get-pid"
10089
10090 #. type: =head2
10091 #: ../fish/guestfish-actions.pod:1564
10092 msgid "pid"
10093 msgstr "PID"
10094
10095 #. type: verbatim
10096 #: ../fish/guestfish-actions.pod:1566
10097 #, no-wrap
10098 msgid ""
10099 " get-pid\n"
10100 "\n"
10101 msgstr ""
10102 " get-pid\n"
10103 "\n"
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
10107 msgid ""
10108 "Return the process ID of the qemu subprocess.  If there is no qemu "
10109 "subprocess, then this will return an error."
10110 msgstr ""
10111
10112 #. type: textblock
10113 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
10114 msgid "This is an internal call used for debugging and testing."
10115 msgstr ""
10116
10117 #. type: =head2
10118 #: ../fish/guestfish-actions.pod:1573
10119 msgid "get-qemu"
10120 msgstr "get-qemu"
10121
10122 #. type: verbatim
10123 #: ../fish/guestfish-actions.pod:1575
10124 #, no-wrap
10125 msgid ""
10126 " get-qemu\n"
10127 "\n"
10128 msgstr ""
10129 " get-qemu\n"
10130 "\n"
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
10134 msgid "Return the current qemu binary."
10135 msgstr ""
10136
10137 #. type: textblock
10138 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
10139 msgid ""
10140 "This is always non-NULL.  If it wasn't set already, then this will return "
10141 "the default qemu binary name."
10142 msgstr ""
10143
10144 #. type: =head2
10145 #: ../fish/guestfish-actions.pod:1582
10146 msgid "get-recovery-proc"
10147 msgstr "get-recovery-proc"
10148
10149 #. type: verbatim
10150 #: ../fish/guestfish-actions.pod:1584
10151 #, no-wrap
10152 msgid ""
10153 " get-recovery-proc\n"
10154 "\n"
10155 msgstr ""
10156 " get-recovery-proc\n"
10157 "\n"
10158
10159 #. type: textblock
10160 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
10161 msgid "Return the recovery process enabled flag."
10162 msgstr ""
10163
10164 #. type: =head2
10165 #: ../fish/guestfish-actions.pod:1588
10166 msgid "get-selinux"
10167 msgstr "get-selinux"
10168
10169 #. type: verbatim
10170 #: ../fish/guestfish-actions.pod:1590
10171 #, no-wrap
10172 msgid ""
10173 " get-selinux\n"
10174 "\n"
10175 msgstr ""
10176 " get-selinux\n"
10177 "\n"
10178
10179 #. type: textblock
10180 #: ../fish/guestfish-actions.pod:1592
10181 msgid ""
10182 "This returns the current setting of the selinux flag which is passed to the "
10183 "appliance at boot time.  See L</set-selinux>."
10184 msgstr ""
10185
10186 #. type: =head2
10187 #: ../fish/guestfish-actions.pod:1598
10188 msgid "get-smp"
10189 msgstr ""
10190
10191 #. type: verbatim
10192 #: ../fish/guestfish-actions.pod:1600
10193 #, no-wrap
10194 msgid ""
10195 " get-smp\n"
10196 "\n"
10197 msgstr ""
10198
10199 #. type: textblock
10200 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
10201 msgid "This returns the number of virtual CPUs assigned to the appliance."
10202 msgstr ""
10203
10204 #. type: =head2
10205 #: ../fish/guestfish-actions.pod:1604
10206 msgid "get-state"
10207 msgstr "get-state"
10208
10209 #. type: verbatim
10210 #: ../fish/guestfish-actions.pod:1606
10211 #, no-wrap
10212 msgid ""
10213 " get-state\n"
10214 "\n"
10215 msgstr ""
10216 " get-state\n"
10217 "\n"
10218
10219 #. type: textblock
10220 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
10221 msgid ""
10222 "This returns the current state as an opaque integer.  This is only useful "
10223 "for printing debug and internal error messages."
10224 msgstr ""
10225
10226 #. type: textblock
10227 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
10228 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
10229 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
10230 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
10231 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
10232 msgid "For more information on states, see L<guestfs(3)>."
10233 msgstr ""
10234
10235 #. type: =head2
10236 #: ../fish/guestfish-actions.pod:1613
10237 msgid "get-trace"
10238 msgstr "get-trace"
10239
10240 #. type: verbatim
10241 #: ../fish/guestfish-actions.pod:1615
10242 #, no-wrap
10243 msgid ""
10244 " get-trace\n"
10245 "\n"
10246 msgstr ""
10247 " get-trace\n"
10248 "\n"
10249
10250 #. type: textblock
10251 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
10252 msgid "Return the command trace flag."
10253 msgstr ""
10254
10255 #. type: =head2
10256 #: ../fish/guestfish-actions.pod:1619
10257 msgid "get-umask"
10258 msgstr "get-umask"
10259
10260 #. type: verbatim
10261 #: ../fish/guestfish-actions.pod:1621
10262 #, no-wrap
10263 msgid ""
10264 " get-umask\n"
10265 "\n"
10266 msgstr ""
10267 " get-umask\n"
10268 "\n"
10269
10270 #. type: textblock
10271 #: ../fish/guestfish-actions.pod:1623
10272 msgid ""
10273 "Return the current umask.  By default the umask is C<022> unless it has been "
10274 "set by calling L</umask>."
10275 msgstr ""
10276
10277 #. type: =head2
10278 #: ../fish/guestfish-actions.pod:1626
10279 msgid "get-verbose"
10280 msgstr "get-verbose"
10281
10282 #. type: verbatim
10283 #: ../fish/guestfish-actions.pod:1628
10284 #, no-wrap
10285 msgid ""
10286 " get-verbose\n"
10287 "\n"
10288 msgstr ""
10289 " get-verbose\n"
10290 "\n"
10291
10292 #. type: textblock
10293 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
10294 msgid "This returns the verbose messages flag."
10295 msgstr ""
10296
10297 #. type: =head2
10298 #: ../fish/guestfish-actions.pod:1632
10299 msgid "getcon"
10300 msgstr "getcon"
10301
10302 #. type: verbatim
10303 #: ../fish/guestfish-actions.pod:1634
10304 #, no-wrap
10305 msgid ""
10306 " getcon\n"
10307 "\n"
10308 msgstr ""
10309 " getcon\n"
10310 "\n"
10311
10312 #. type: textblock
10313 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
10314 msgid "This gets the SELinux security context of the daemon."
10315 msgstr ""
10316
10317 #. type: textblock
10318 #: ../fish/guestfish-actions.pod:1638
10319 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10320 msgstr ""
10321
10322 #. type: =head2
10323 #: ../fish/guestfish-actions.pod:1641
10324 msgid "getxattr"
10325 msgstr "getxattr"
10326
10327 #. type: verbatim
10328 #: ../fish/guestfish-actions.pod:1643
10329 #, no-wrap
10330 msgid ""
10331 " getxattr path name\n"
10332 "\n"
10333 msgstr ""
10334 " getxattr шлях назва\n"
10335 "\n"
10336
10337 #. type: textblock
10338 #: ../fish/guestfish-actions.pod:1645
10339 msgid ""
10340 "Get a single extended attribute from file C<path> named C<name>.  This call "
10341 "follows symlinks.  If you want to lookup an extended attribute for the "
10342 "symlink itself, use L</lgetxattr>."
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
10347 msgid ""
10348 "Normally it is better to get all extended attributes from a file in one go "
10349 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
10350 "buggy and do not provide a way to list out attributes.  For these "
10351 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
10352 "attributes you want in advance and call this function."
10353 msgstr ""
10354
10355 #. type: textblock
10356 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
10357 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
10358 msgid ""
10359 "Extended attribute values are blobs of binary data.  If there is no extended "
10360 "attribute named C<name>, this returns an error."
10361 msgstr ""
10362
10363 #. type: textblock
10364 #: ../fish/guestfish-actions.pod:1659
10365 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10366 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10367
10368 #. type: =head2
10369 #: ../fish/guestfish-actions.pod:1661
10370 msgid "getxattrs"
10371 msgstr "getxattrs"
10372
10373 #. type: verbatim
10374 #: ../fish/guestfish-actions.pod:1663
10375 #, no-wrap
10376 msgid ""
10377 " getxattrs path\n"
10378 "\n"
10379 msgstr ""
10380 " getxattrs шлях\n"
10381 "\n"
10382
10383 #. type: textblock
10384 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
10385 msgid ""
10386 "This call lists the extended attributes of the file or directory C<path>."
10387 msgstr ""
10388
10389 #. type: textblock
10390 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
10391 msgid ""
10392 "At the system call level, this is a combination of the L<listxattr(2)> and "
10393 "L<getxattr(2)> calls."
10394 msgstr ""
10395
10396 #. type: textblock
10397 #: ../fish/guestfish-actions.pod:1671
10398 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10399 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
10400
10401 #. type: =head2
10402 #: ../fish/guestfish-actions.pod:1673
10403 msgid "glob-expand"
10404 msgstr "glob-expand"
10405
10406 #. type: verbatim
10407 #: ../fish/guestfish-actions.pod:1675
10408 #, no-wrap
10409 msgid ""
10410 " glob-expand pattern\n"
10411 "\n"
10412 msgstr ""
10413 " glob-expand шаблон\n"
10414 "\n"
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
10418 msgid ""
10419 "This command searches for all the pathnames matching C<pattern> according to "
10420 "the wildcard expansion rules used by the shell."
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
10425 msgid ""
10426 "If no paths match, then this returns an empty list (note: not an error)."
10427 msgstr ""
10428
10429 #. type: textblock
10430 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
10431 msgid ""
10432 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10433 "GLOB_BRACE>.  See that manual page for more details."
10434 msgstr ""
10435
10436 #. type: =head2
10437 #: ../fish/guestfish-actions.pod:1688
10438 msgid "grep"
10439 msgstr "grep"
10440
10441 #. type: verbatim
10442 #: ../fish/guestfish-actions.pod:1690
10443 #, no-wrap
10444 msgid ""
10445 " grep regex path\n"
10446 "\n"
10447 msgstr ""
10448 " grepi формальний_вираз шлях\n"
10449 "\n"
10450
10451 #. type: textblock
10452 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
10453 msgid "This calls the external C<grep> program and returns the matching lines."
10454 msgstr ""
10455
10456 #. type: =head2
10457 #: ../fish/guestfish-actions.pod:1698
10458 msgid "grepi"
10459 msgstr "grepi"
10460
10461 #. type: verbatim
10462 #: ../fish/guestfish-actions.pod:1700
10463 #, no-wrap
10464 msgid ""
10465 " grepi regex path\n"
10466 "\n"
10467 msgstr ""
10468 " grepi формальний_вираз шлях\n"
10469 "\n"
10470
10471 #. type: textblock
10472 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
10473 msgid ""
10474 "This calls the external C<grep -i> program and returns the matching lines."
10475 msgstr ""
10476
10477 #. type: =head2
10478 #: ../fish/guestfish-actions.pod:1708
10479 msgid "grub-install"
10480 msgstr "grub-install"
10481
10482 #. type: verbatim
10483 #: ../fish/guestfish-actions.pod:1710
10484 #, no-wrap
10485 msgid ""
10486 " grub-install root device\n"
10487 "\n"
10488 msgstr ""
10489 " grub-install кореневий пристрій\n"
10490 "\n"
10491
10492 #. type: textblock
10493 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
10494 msgid ""
10495 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10496 "with the root directory being C<root>."
10497 msgstr ""
10498
10499 #. type: textblock
10500 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
10501 msgid ""
10502 "There is currently no way in the API to install grub2, which is used by most "
10503 "modern Linux guests.  It is possible to run the grub2 command from the "
10504 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10505 msgstr ""
10506
10507 #. type: textblock
10508 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
10509 msgid ""
10510 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
10511 "compatible with itself, so this only works in rather narrow circumstances.  "
10512 "Careful testing with each guest version is advisable."
10513 msgstr ""
10514
10515 #. type: textblock
10516 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
10517 msgid ""
10518 "If grub-install reports the error \"No suitable drive was found in the "
10519 "generated device map.\" it may be that you need to create a C</boot/grub/"
10520 "device.map> file first that contains the mapping between grub device names "
10521 "and Linux device names.  It is usually sufficient to create a file "
10522 "containing:"
10523 msgstr ""
10524
10525 #. type: verbatim
10526 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
10527 #, no-wrap
10528 msgid ""
10529 " (hd0) /dev/vda\n"
10530 "\n"
10531 msgstr ""
10532
10533 #. type: textblock
10534 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
10535 msgid "replacing C</dev/vda> with the name of the installation device."
10536 msgstr ""
10537
10538 #. type: =head2
10539 #: ../fish/guestfish-actions.pod:1748
10540 msgid "head"
10541 msgstr "head"
10542
10543 #. type: verbatim
10544 #: ../fish/guestfish-actions.pod:1750
10545 #, no-wrap
10546 msgid ""
10547 " head path\n"
10548 "\n"
10549 msgstr ""
10550 " head шлях\n"
10551 "\n"
10552
10553 #. type: textblock
10554 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
10555 msgid ""
10556 "This command returns up to the first 10 lines of a file as a list of strings."
10557 msgstr ""
10558
10559 #. type: =head2
10560 #: ../fish/guestfish-actions.pod:1758
10561 msgid "head-n"
10562 msgstr "head-n"
10563
10564 #. type: verbatim
10565 #: ../fish/guestfish-actions.pod:1760
10566 #, no-wrap
10567 msgid ""
10568 " head-n nrlines path\n"
10569 "\n"
10570 msgstr ""
10571
10572 #. type: textblock
10573 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
10574 msgid ""
10575 "If the parameter C<nrlines> is a positive number, this returns the first "
10576 "C<nrlines> lines of the file C<path>."
10577 msgstr ""
10578
10579 #. type: textblock
10580 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
10581 msgid ""
10582 "If the parameter C<nrlines> is a negative number, this returns lines from "
10583 "the file C<path>, excluding the last C<nrlines> lines."
10584 msgstr ""
10585
10586 #. type: textblock
10587 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843
10588 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
10589 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10590 msgstr ""
10591
10592 #. type: =head2
10593 #: ../fish/guestfish-actions.pod:1773
10594 msgid "hexdump"
10595 msgstr "hexdump"
10596
10597 #. type: verbatim
10598 #: ../fish/guestfish-actions.pod:1775
10599 #, no-wrap
10600 msgid ""
10601 " hexdump path\n"
10602 "\n"
10603 msgstr ""
10604 " hexdump шлях\n"
10605 "\n"
10606
10607 #. type: textblock
10608 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
10609 msgid ""
10610 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10611 "readable, canonical hex dump of the file."
10612 msgstr ""
10613
10614 #. type: =head2
10615 #: ../fish/guestfish-actions.pod:1783
10616 msgid "initrd-cat"
10617 msgstr "initrd-cat"
10618
10619 #. type: verbatim
10620 #: ../fish/guestfish-actions.pod:1785
10621 #, no-wrap
10622 msgid ""
10623 " initrd-cat initrdpath filename\n"
10624 "\n"
10625 msgstr ""
10626 " initrd-cat шлях_initrd назва_файла\n"
10627 "\n"
10628
10629 #. type: textblock
10630 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
10631 msgid ""
10632 "This command unpacks the file C<filename> from the initrd file called "
10633 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10634 "character."
10635 msgstr ""
10636
10637 #. type: textblock
10638 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
10639 msgid ""
10640 "For example, in guestfish you could use the following command to examine the "
10641 "boot script (usually called C</init>)  contained in a Linux initrd or "
10642 "initramfs image:"
10643 msgstr ""
10644
10645 #. type: verbatim
10646 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
10647 #, no-wrap
10648 msgid ""
10649 " initrd-cat /boot/initrd-<version>.img init\n"
10650 "\n"
10651 msgstr ""
10652
10653 #. type: textblock
10654 #: ../fish/guestfish-actions.pod:1797
10655 msgid "See also L</initrd-list>."
10656 msgstr "Див. також L</initrd-list>."
10657
10658 #. type: =head2
10659 #: ../fish/guestfish-actions.pod:1802
10660 msgid "initrd-list"
10661 msgstr "initrd-list"
10662
10663 #. type: verbatim
10664 #: ../fish/guestfish-actions.pod:1804
10665 #, no-wrap
10666 msgid ""
10667 " initrd-list path\n"
10668 "\n"
10669 msgstr ""
10670 " initrd-list шлях\n"
10671 "\n"
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
10675 msgid "This command lists out files contained in an initrd."
10676 msgstr ""
10677
10678 #. type: textblock
10679 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
10680 msgid ""
10681 "The files are listed without any initial C</> character.  The files are "
10682 "listed in the order they appear (not necessarily alphabetical).  Directory "
10683 "names are listed as separate items."
10684 msgstr ""
10685
10686 #. type: textblock
10687 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
10688 msgid ""
10689 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10690 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10691 "files)."
10692 msgstr ""
10693
10694 #. type: =head2
10695 #: ../fish/guestfish-actions.pod:1816
10696 msgid "inotify-add-watch"
10697 msgstr "inotify-add-watch"
10698
10699 #. type: verbatim
10700 #: ../fish/guestfish-actions.pod:1818
10701 #, no-wrap
10702 msgid ""
10703 " inotify-add-watch path mask\n"
10704 "\n"
10705 msgstr ""
10706 " inotify-add-watch шлях маска\n"
10707 "\n"
10708
10709 #. type: textblock
10710 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
10711 msgid "Watch C<path> for the events listed in C<mask>."
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
10716 msgid ""
10717 "Note that if C<path> is a directory then events within that directory are "
10718 "watched, but this does I<not> happen recursively (in subdirectories)."
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
10723 msgid ""
10724 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10725 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10726 msgstr ""
10727
10728 #. type: =head2
10729 #: ../fish/guestfish-actions.pod:1830
10730 msgid "inotify-close"
10731 msgstr "inotify-close"
10732
10733 #. type: verbatim
10734 #: ../fish/guestfish-actions.pod:1832
10735 #, no-wrap
10736 msgid ""
10737 " inotify-close\n"
10738 "\n"
10739 msgstr ""
10740 " inotify-close\n"
10741 "\n"
10742
10743 #. type: textblock
10744 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
10745 msgid ""
10746 "This closes the inotify handle which was previously opened by inotify_init.  "
10747 "It removes all watches, throws away any pending events, and deallocates all "
10748 "resources."
10749 msgstr ""
10750
10751 #. type: =head2
10752 #: ../fish/guestfish-actions.pod:1838
10753 msgid "inotify-files"
10754 msgstr "inotify-files"
10755
10756 #. type: verbatim
10757 #: ../fish/guestfish-actions.pod:1840
10758 #, no-wrap
10759 msgid ""
10760 " inotify-files\n"
10761 "\n"
10762 msgstr ""
10763 " inotify-files\n"
10764 "\n"
10765
10766 #. type: textblock
10767 #: ../fish/guestfish-actions.pod:1842
10768 msgid ""
10769 "This function is a helpful wrapper around L</inotify-read> which just "
10770 "returns a list of pathnames of objects that were touched.  The returned "
10771 "pathnames are sorted and deduplicated."
10772 msgstr ""
10773
10774 #. type: =head2
10775 #: ../fish/guestfish-actions.pod:1846
10776 msgid "inotify-init"
10777 msgstr "inotify-init"
10778
10779 #. type: verbatim
10780 #: ../fish/guestfish-actions.pod:1848
10781 #, no-wrap
10782 msgid ""
10783 " inotify-init maxevents\n"
10784 "\n"
10785 msgstr ""
10786
10787 #. type: textblock
10788 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
10789 msgid ""
10790 "This command creates a new inotify handle.  The inotify subsystem can be "
10791 "used to notify events which happen to objects in the guest filesystem."
10792 msgstr ""
10793
10794 #. type: textblock
10795 #: ../fish/guestfish-actions.pod:1854
10796 msgid ""
10797 "C<maxevents> is the maximum number of events which will be queued up between "
10798 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10799 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10800 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10801 "but records the fact that it threw them away by setting a flag "
10802 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10803 msgstr ""
10804
10805 #. type: textblock
10806 #: ../fish/guestfish-actions.pod:1864
10807 msgid ""
10808 "Before any events are generated, you have to add some watches to the "
10809 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10810 "L</inotify-watch-all>."
10811 msgstr ""
10812
10813 #. type: textblock
10814 #: ../fish/guestfish-actions.pod:1870
10815 msgid ""
10816 "Queued up events should be read periodically by calling L</inotify-read> (or "
10817 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10818 "If you don't read the events out often enough then you risk the internal "
10819 "queue overflowing."
10820 msgstr ""
10821
10822 #. type: textblock
10823 #: ../fish/guestfish-actions.pod:1877
10824 msgid ""
10825 "The handle should be closed after use by calling L</inotify-close>.  This "
10826 "also removes any watches automatically."
10827 msgstr ""
10828
10829 #. type: textblock
10830 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
10831 msgid ""
10832 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10833 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10834 "that there is one global inotify handle per libguestfs instance."
10835 msgstr ""
10836
10837 #. type: =head2
10838 #: ../fish/guestfish-actions.pod:1886
10839 msgid "inotify-read"
10840 msgstr "inotify-read"
10841
10842 #. type: verbatim
10843 #: ../fish/guestfish-actions.pod:1888
10844 #, no-wrap
10845 msgid ""
10846 " inotify-read\n"
10847 "\n"
10848 msgstr ""
10849 " inotify-read\n"
10850 "\n"
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10854 msgid ""
10855 "Return the complete queue of events that have happened since the previous "
10856 "read call."
10857 msgstr ""
10858
10859 #. type: textblock
10860 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10861 msgid "If no events have happened, this returns an empty list."
10862 msgstr ""
10863
10864 #. type: textblock
10865 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10866 msgid ""
10867 "I<Note>: In order to make sure that all events have been read, you must call "
10868 "this function repeatedly until it returns an empty list.  The reason is that "
10869 "the call will read events up to the maximum appliance-to-host message size "
10870 "and leave remaining events in the queue."
10871 msgstr ""
10872
10873 #. type: =head2
10874 #: ../fish/guestfish-actions.pod:1901
10875 msgid "inotify-rm-watch"
10876 msgstr "inotify-rm-watch"
10877
10878 #. type: verbatim
10879 #: ../fish/guestfish-actions.pod:1903
10880 #, no-wrap
10881 msgid ""
10882 " inotify-rm-watch wd\n"
10883 "\n"
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:1905
10888 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10889 msgstr ""
10890
10891 #. type: =head2
10892 #: ../fish/guestfish-actions.pod:1908
10893 msgid "inspect-get-arch"
10894 msgstr "inspect-get-arch"
10895
10896 #. type: verbatim
10897 #: ../fish/guestfish-actions.pod:1910
10898 #, no-wrap
10899 msgid ""
10900 " inspect-get-arch root\n"
10901 "\n"
10902 msgstr ""
10903 " inspect-get-arch корінь\n"
10904 "\n"
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:1912
10908 msgid ""
10909 "This returns the architecture of the inspected operating system.  The "
10910 "possible return values are listed under L</file-architecture>."
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10915 msgid ""
10916 "If the architecture could not be determined, then the string C<unknown> is "
10917 "returned."
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10922 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10923 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10924 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10925 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10926 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10927 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10928 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10929 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10930 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10931 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10932 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10933 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10934 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10935 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10936 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10937 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10938 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10939 msgstr ""
10940
10941 #. type: =head2
10942 #: ../fish/guestfish-actions.pod:1921
10943 msgid "inspect-get-distro"
10944 msgstr "inspect-get-distro"
10945
10946 #. type: verbatim
10947 #: ../fish/guestfish-actions.pod:1923
10948 #, no-wrap
10949 msgid ""
10950 " inspect-get-distro root\n"
10951 "\n"
10952 msgstr ""
10953 " inspect-get-distro корінь\n"
10954 "\n"
10955
10956 #. type: textblock
10957 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10958 msgid ""
10959 "This returns the distro (distribution) of the inspected operating system."
10960 msgstr ""
10961
10962 #. type: textblock
10963 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10964 msgid "Currently defined distros are:"
10965 msgstr ""
10966
10967 #. type: =item
10968 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10969 msgid "\"archlinux\""
10970 msgstr "\"archlinux\""
10971
10972 #. type: textblock
10973 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10974 msgid "Arch Linux."
10975 msgstr "Arch Linux."
10976
10977 #. type: =item
10978 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10979 msgid "\"centos\""
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10984 msgid "CentOS."
10985 msgstr ""
10986
10987 #. type: =item
10988 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10989 msgid "\"debian\""
10990 msgstr "\"debian\""
10991
10992 #. type: textblock
10993 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10994 msgid "Debian."
10995 msgstr "Debian."
10996
10997 #. type: =item
10998 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10999 msgid "\"fedora\""
11000 msgstr "\"fedora\""
11001
11002 #. type: textblock
11003 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
11004 msgid "Fedora."
11005 msgstr "Fedora."
11006
11007 #. type: =item
11008 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
11009 msgid "\"gentoo\""
11010 msgstr "\"gentoo\""
11011
11012 #. type: textblock
11013 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
11014 msgid "Gentoo."
11015 msgstr "Gentoo."
11016
11017 #. type: =item
11018 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
11019 msgid "\"linuxmint\""
11020 msgstr "\"linuxmint\""
11021
11022 #. type: textblock
11023 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
11024 msgid "Linux Mint."
11025 msgstr "Linux Mint."
11026
11027 #. type: =item
11028 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
11029 msgid "\"mageia\""
11030 msgstr ""
11031
11032 #. type: textblock
11033 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
11034 msgid "Mageia."
11035 msgstr ""
11036
11037 #. type: =item
11038 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
11039 msgid "\"mandriva\""
11040 msgstr "\"mandriva\""
11041
11042 #. type: textblock
11043 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
11044 msgid "Mandriva."
11045 msgstr "Mandriva."
11046
11047 #. type: =item
11048 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
11049 msgid "\"meego\""
11050 msgstr "\"meego\""
11051
11052 #. type: textblock
11053 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
11054 msgid "MeeGo."
11055 msgstr "MeeGo."
11056
11057 #. type: =item
11058 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
11059 msgid "\"opensuse\""
11060 msgstr ""
11061
11062 #. type: textblock
11063 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
11064 msgid "OpenSUSE."
11065 msgstr ""
11066
11067 #. type: =item
11068 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
11069 msgid "\"pardus\""
11070 msgstr "\"pardus\""
11071
11072 #. type: textblock
11073 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
11074 msgid "Pardus."
11075 msgstr "Pardus."
11076
11077 #. type: =item
11078 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
11079 msgid "\"redhat-based\""
11080 msgstr "\"redhat-based\""
11081
11082 #. type: textblock
11083 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
11084 msgid "Some Red Hat-derived distro."
11085 msgstr "Дистрибутив, що походить від Red Hat."
11086
11087 #. type: =item
11088 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
11089 msgid "\"rhel\""
11090 msgstr "\"rhel\""
11091
11092 #. type: textblock
11093 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
11094 msgid "Red Hat Enterprise Linux."
11095 msgstr "Red Hat Enterprise Linux."
11096
11097 #. type: =item
11098 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
11099 msgid "\"scientificlinux\""
11100 msgstr "\"scientificlinux\""
11101
11102 #. type: textblock
11103 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
11104 msgid "Scientific Linux."
11105 msgstr "Scientific Linux."
11106
11107 #. type: =item
11108 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
11109 msgid "\"slackware\""
11110 msgstr "\"slackware\""
11111
11112 #. type: textblock
11113 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
11114 msgid "Slackware."
11115 msgstr "Slackware."
11116
11117 #. type: =item
11118 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
11119 msgid "\"ttylinux\""
11120 msgstr ""
11121
11122 #. type: textblock
11123 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
11124 msgid "ttylinux."
11125 msgstr ""
11126
11127 #. type: =item
11128 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
11129 msgid "\"ubuntu\""
11130 msgstr "\"ubuntu\""
11131
11132 #. type: textblock
11133 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
11134 msgid "Ubuntu."
11135 msgstr "Ubuntu."
11136
11137 #. type: =item
11138 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
11139 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
11140 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
11141 msgid "\"unknown\""
11142 msgstr "\"unknown\""
11143
11144 #. type: textblock
11145 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
11146 msgid "The distro could not be determined."
11147 msgstr "Дистрибутив, тип якого не вдалося визначити."
11148
11149 #. type: =item
11150 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
11151 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
11152 msgid "\"windows\""
11153 msgstr "\"windows\""
11154
11155 #. type: textblock
11156 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
11157 msgid ""
11158 "Windows does not have distributions.  This string is returned if the OS type "
11159 "is Windows."
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
11164 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
11165 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
11166 msgid ""
11167 "Future versions of libguestfs may return other strings here.  The caller "
11168 "should be prepared to handle any string."
11169 msgstr ""
11170
11171 #. type: =head2
11172 #: ../fish/guestfish-actions.pod:2016
11173 msgid "inspect-get-drive-mappings"
11174 msgstr ""
11175
11176 #. type: verbatim
11177 #: ../fish/guestfish-actions.pod:2018
11178 #, no-wrap
11179 msgid ""
11180 " inspect-get-drive-mappings root\n"
11181 "\n"
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
11186 msgid ""
11187 "This call is useful for Windows which uses a primitive system of assigning "
11188 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11189 "Windows Registry to find out how disks/partitions are mapped to drive "
11190 "letters, and returns a hash table as in the example below:"
11191 msgstr ""
11192
11193 #. type: verbatim
11194 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
11195 #, no-wrap
11196 msgid ""
11197 " C      =>     /dev/vda2\n"
11198 " E      =>     /dev/vdb1\n"
11199 " F      =>     /dev/vdc1\n"
11200 "\n"
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
11205 msgid ""
11206 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11207 "and just contains the drive letter, without the customary colon separator "
11208 "character."
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
11213 msgid ""
11214 "In future we may support other operating systems that also used drive "
11215 "letters, but the keys for those might not be case insensitive and might be "
11216 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
11217 "C<h1> etc."
11218 msgstr ""
11219
11220 #. type: textblock
11221 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
11222 msgid ""
11223 "For Windows guests, currently only hard drive mappings are returned.  "
11224 "Removable disks (eg. DVD-ROMs) are ignored."
11225 msgstr ""
11226
11227 #. type: textblock
11228 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
11229 msgid ""
11230 "For guests that do not use drive mappings, or if the drive mappings could "
11231 "not be determined, this returns an empty hash table."
11232 msgstr ""
11233
11234 #. type: textblock
11235 #: ../fish/guestfish-actions.pod:2045
11236 msgid ""
11237 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11238 "get-mountpoints>, L</inspect-get-filesystems>."
11239 msgstr ""
11240
11241 #. type: =head2
11242 #: ../fish/guestfish-actions.pod:2049
11243 msgid "inspect-get-filesystems"
11244 msgstr "inspect-get-filesystems"
11245
11246 #. type: verbatim
11247 #: ../fish/guestfish-actions.pod:2051
11248 #, no-wrap
11249 msgid ""
11250 " inspect-get-filesystems root\n"
11251 "\n"
11252 msgstr ""
11253 " inspect-get-filesystems корінь\n"
11254 "\n"
11255
11256 #. type: textblock
11257 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
11258 msgid ""
11259 "This returns a list of all the filesystems that we think are associated with "
11260 "this operating system.  This includes the root filesystem, other ordinary "
11261 "filesystems, and non-mounted devices like swap partitions."
11262 msgstr ""
11263
11264 #. type: textblock
11265 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
11266 msgid ""
11267 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11268 "to be shared between operating systems."
11269 msgstr ""
11270
11271 #. type: textblock
11272 #: ../fish/guestfish-actions.pod:2061
11273 msgid ""
11274 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11275 "get-mountpoints>."
11276 msgstr ""
11277
11278 #. type: =head2
11279 #: ../fish/guestfish-actions.pod:2064
11280 msgid "inspect-get-format"
11281 msgstr "inspect-get-format"
11282
11283 #. type: verbatim
11284 #: ../fish/guestfish-actions.pod:2066
11285 #, no-wrap
11286 msgid ""
11287 " inspect-get-format root\n"
11288 "\n"
11289 msgstr ""
11290 " inspect-get-format корінь\n"
11291 "\n"
11292
11293 #. type: textblock
11294 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
11295 msgid ""
11296 "This returns the format of the inspected operating system.  You can use it "
11297 "to detect install images, live CDs and similar."
11298 msgstr ""
11299
11300 #. type: textblock
11301 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
11302 msgid "Currently defined formats are:"
11303 msgstr ""
11304
11305 #. type: =item
11306 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
11307 msgid "\"installed\""
11308 msgstr "\"installed\""
11309
11310 #. type: textblock
11311 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
11312 msgid "This is an installed operating system."
11313 msgstr "Це встановлена операційна система."
11314
11315 #. type: =item
11316 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
11317 msgid "\"installer\""
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
11322 msgid ""
11323 "The disk image being inspected is not an installed operating system, but a "
11324 "I<bootable> install disk, live CD, or similar."
11325 msgstr ""
11326
11327 #. type: textblock
11328 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
11329 msgid "The format of this disk image is not known."
11330 msgstr ""
11331
11332 #. type: =head2
11333 #: ../fish/guestfish-actions.pod:2095
11334 msgid "inspect-get-hostname"
11335 msgstr "inspect-get-hostname"
11336
11337 #. type: verbatim
11338 #: ../fish/guestfish-actions.pod:2097
11339 #, no-wrap
11340 msgid ""
11341 " inspect-get-hostname root\n"
11342 "\n"
11343 msgstr ""
11344 " inspect-get-hostname корінь\n"
11345 "\n"
11346
11347 #. type: textblock
11348 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
11349 msgid ""
11350 "This function returns the hostname of the operating system as found by "
11351 "inspection of the guest's configuration files."
11352 msgstr ""
11353
11354 #. type: textblock
11355 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
11356 msgid ""
11357 "If the hostname could not be determined, then the string C<unknown> is "
11358 "returned."
11359 msgstr ""
11360
11361 #. type: =head2
11362 #: ../fish/guestfish-actions.pod:2107
11363 msgid "inspect-get-icon"
11364 msgstr ""
11365
11366 #. type: verbatim
11367 #: ../fish/guestfish-actions.pod:2109
11368 #, no-wrap
11369 msgid ""
11370 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11371 "\n"
11372 msgstr ""
11373
11374 #. type: textblock
11375 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
11376 msgid ""
11377 "This function returns an icon corresponding to the inspected operating "
11378 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
11379 "to PNG if necessary)."
11380 msgstr ""
11381
11382 #. type: textblock
11383 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
11384 msgid ""
11385 "If it was not possible to get an icon this function returns a zero-length "
11386 "(non-NULL) buffer.  I<Callers must check for this case>."
11387 msgstr ""
11388
11389 #. type: textblock
11390 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
11391 msgid ""
11392 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11393 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11394 "this file will be returned.  You can disable favicons by passing the "
11395 "optional C<favicon> boolean as false (default is true)."
11396 msgstr ""
11397
11398 #. type: textblock
11399 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
11400 msgid ""
11401 "If finding the favicon fails, then we look in other places in the guest for "
11402 "a suitable icon."
11403 msgstr ""
11404
11405 #. type: textblock
11406 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
11407 msgid ""
11408 "If the optional C<highquality> boolean is true then only high quality icons "
11409 "are returned, which means only icons of high resolution with an alpha "
11410 "channel.  The default (false) is to return any icon we can, even if it is of "
11411 "substandard quality."
11412 msgstr ""
11413
11414 #. type: textblock
11415 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
11416 msgid ""
11417 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11418 "before you call this, since it needs to read information from the guest "
11419 "filesystem during the call."
11420 msgstr ""
11421
11422 #. type: textblock
11423 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
11424 msgid ""
11425 "B<Security:> The icon data comes from the untrusted guest, and should be "
11426 "treated with caution.  PNG files have been known to contain exploits.  "
11427 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11428 "trying to process or display the icon."
11429 msgstr ""
11430
11431 #. type: textblock
11432 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
11433 msgid ""
11434 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11435 "tries to return the largest, highest quality icon available.  The "
11436 "application must scale the icon to the required size."
11437 msgstr ""
11438
11439 #. type: textblock
11440 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
11441 msgid ""
11442 "Extracting icons from Windows guests requires the external C<wrestool> "
11443 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11444 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11445 "installed separately."
11446 msgstr ""
11447
11448 #. type: textblock
11449 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
11450 msgid ""
11451 "Operating system icons are usually trademarks.  Seek legal advice before "
11452 "using trademarks in applications."
11453 msgstr ""
11454
11455 #. type: =head2
11456 #: ../fish/guestfish-actions.pod:2173
11457 msgid "inspect-get-major-version"
11458 msgstr "inspect-get-major-version"
11459
11460 #. type: verbatim
11461 #: ../fish/guestfish-actions.pod:2175
11462 #, no-wrap
11463 msgid ""
11464 " inspect-get-major-version root\n"
11465 "\n"
11466 msgstr ""
11467 " inspect-get-major-version корінь\n"
11468 "\n"
11469
11470 #. type: textblock
11471 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
11472 msgid ""
11473 "This returns the major version number of the inspected operating system."
11474 msgstr ""
11475
11476 #. type: textblock
11477 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
11478 msgid ""
11479 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11480 "popular public names used by the operating system.  Notably the operating "
11481 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11482 "1).  You can find out the real versions corresponding to releases of Windows "
11483 "by consulting Wikipedia or MSDN."
11484 msgstr ""
11485
11486 #. type: textblock
11487 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
11488 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
11489 msgid "If the version could not be determined, then C<0> is returned."
11490 msgstr ""
11491
11492 #. type: =head2
11493 #: ../fish/guestfish-actions.pod:2191
11494 msgid "inspect-get-minor-version"
11495 msgstr "inspect-get-minor-version"
11496
11497 #. type: verbatim
11498 #: ../fish/guestfish-actions.pod:2193
11499 #, no-wrap
11500 msgid ""
11501 " inspect-get-minor-version root\n"
11502 "\n"
11503 msgstr ""
11504 " inspect-get-minor-version корінь\n"
11505 "\n"
11506
11507 #. type: textblock
11508 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
11509 msgid ""
11510 "This returns the minor version number of the inspected operating system."
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:2200
11515 msgid ""
11516 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11517 "get-major-version>."
11518 msgstr ""
11519
11520 #. type: =head2
11521 #: ../fish/guestfish-actions.pod:2203
11522 msgid "inspect-get-mountpoints"
11523 msgstr "inspect-get-mountpoints"
11524
11525 #. type: verbatim
11526 #: ../fish/guestfish-actions.pod:2205
11527 #, no-wrap
11528 msgid ""
11529 " inspect-get-mountpoints root\n"
11530 "\n"
11531 msgstr ""
11532 " inspect-get-mountpoints корінь\n"
11533 "\n"
11534
11535 #. type: textblock
11536 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
11537 msgid ""
11538 "This returns a hash of where we think the filesystems associated with this "
11539 "operating system should be mounted.  Callers should note that this is at "
11540 "best an educated guess made by reading configuration files such as C</etc/"
11541 "fstab>.  I<In particular note> that this may return filesystems which are "
11542 "non-existent or not mountable and callers should be prepared to handle or "
11543 "ignore failures if they try to mount them."
11544 msgstr ""
11545
11546 #. type: textblock
11547 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
11548 msgid ""
11549 "Each element in the returned hashtable has a key which is the path of the "
11550 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11551 "mounted there (eg. C</dev/sda1>)."
11552 msgstr ""
11553
11554 #. type: textblock
11555 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
11556 msgid ""
11557 "Non-mounted devices such as swap devices are I<not> returned in this list."
11558 msgstr ""
11559
11560 #. type: textblock
11561 #: ../fish/guestfish-actions.pod:2224
11562 msgid ""
11563 "For operating systems like Windows which still use drive letters, this call "
11564 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11565 "information about the mapping of drive letters to partitions, see L</inspect-"
11566 "get-drive-mappings>."
11567 msgstr ""
11568
11569 #. type: textblock
11570 #: ../fish/guestfish-actions.pod:2230
11571 msgid ""
11572 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11573 "get-filesystems>."
11574 msgstr ""
11575
11576 #. type: =head2
11577 #: ../fish/guestfish-actions.pod:2233
11578 msgid "inspect-get-package-format"
11579 msgstr "inspect-get-package-format"
11580
11581 #. type: verbatim
11582 #: ../fish/guestfish-actions.pod:2235
11583 #, no-wrap
11584 msgid ""
11585 " inspect-get-package-format root\n"
11586 "\n"
11587 msgstr ""
11588 " inspect-get-package-format корінь\n"
11589 "\n"
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:2237
11593 msgid ""
11594 "This function and L</inspect-get-package-management> return the package "
11595 "format and package management tool used by the inspected operating system.  "
11596 "For example for Fedora these functions would return C<rpm> (package format) "
11597 "and C<yum> (package management)."
11598 msgstr ""
11599
11600 #. type: textblock
11601 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
11602 msgid ""
11603 "This returns the string C<unknown> if we could not determine the package "
11604 "format I<or> if the operating system does not have a real packaging system "
11605 "(eg. Windows)."
11606 msgstr ""
11607
11608 #. type: textblock
11609 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
11610 msgid ""
11611 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11612 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
11613 msgstr ""
11614
11615 #. type: =head2
11616 #: ../fish/guestfish-actions.pod:2253
11617 msgid "inspect-get-package-management"
11618 msgstr "inspect-get-package-management"
11619
11620 #. type: verbatim
11621 #: ../fish/guestfish-actions.pod:2255
11622 #, no-wrap
11623 msgid ""
11624 " inspect-get-package-management root\n"
11625 "\n"
11626 msgstr ""
11627 " inspect-get-package-management корінь\n"
11628 "\n"
11629
11630 #. type: textblock
11631 #: ../fish/guestfish-actions.pod:2257
11632 msgid ""
11633 "L</inspect-get-package-format> and this function return the package format "
11634 "and package management tool used by the inspected operating system.  For "
11635 "example for Fedora these functions would return C<rpm> (package format) and "
11636 "C<yum> (package management)."
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
11641 msgid ""
11642 "This returns the string C<unknown> if we could not determine the package "
11643 "management tool I<or> if the operating system does not have a real packaging "
11644 "system (eg. Windows)."
11645 msgstr ""
11646
11647 #. type: textblock
11648 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
11649 msgid ""
11650 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11651 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11652 "versions of libguestfs may return other strings."
11653 msgstr ""
11654
11655 #. type: =head2
11656 #: ../fish/guestfish-actions.pod:2274
11657 msgid "inspect-get-product-name"
11658 msgstr "inspect-get-product-name"
11659
11660 #. type: verbatim
11661 #: ../fish/guestfish-actions.pod:2276
11662 #, no-wrap
11663 msgid ""
11664 " inspect-get-product-name root\n"
11665 "\n"
11666 msgstr ""
11667 " inspect-get-product-name корінь\n"
11668 "\n"
11669
11670 #. type: textblock
11671 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
11672 msgid ""
11673 "This returns the product name of the inspected operating system.  The "
11674 "product name is generally some freeform string which can be displayed to the "
11675 "user, but should not be parsed by programs."
11676 msgstr ""
11677
11678 #. type: textblock
11679 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
11680 msgid ""
11681 "If the product name could not be determined, then the string C<unknown> is "
11682 "returned."
11683 msgstr ""
11684
11685 #. type: =head2
11686 #: ../fish/guestfish-actions.pod:2288
11687 msgid "inspect-get-product-variant"
11688 msgstr ""
11689
11690 #. type: verbatim
11691 #: ../fish/guestfish-actions.pod:2290
11692 #, no-wrap
11693 msgid ""
11694 " inspect-get-product-variant root\n"
11695 "\n"
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
11700 msgid "This returns the product variant of the inspected operating system."
11701 msgstr ""
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
11705 msgid ""
11706 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11707 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11708 "is usually a string such as C<Client> or C<Server> (other values are "
11709 "possible).  This can be used to distinguish consumer and enterprise versions "
11710 "of Windows that have the same version number (for example, Windows 7 and "
11711 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11712 "the latter is C<Server>)."
11713 msgstr ""
11714
11715 #. type: textblock
11716 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
11717 msgid ""
11718 "For enterprise Linux guests, in future we intend this to return the product "
11719 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11720 "implemented at present."
11721 msgstr ""
11722
11723 #. type: textblock
11724 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
11725 msgid ""
11726 "If the product variant could not be determined, then the string C<unknown> "
11727 "is returned."
11728 msgstr ""
11729
11730 #. type: textblock
11731 #: ../fish/guestfish-actions.pod:2311
11732 msgid ""
11733 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11734 "get-product-name>, L</inspect-get-major-version>."
11735 msgstr ""
11736
11737 #. type: =head2
11738 #: ../fish/guestfish-actions.pod:2315
11739 msgid "inspect-get-roots"
11740 msgstr "inspect-get-roots"
11741
11742 #. type: verbatim
11743 #: ../fish/guestfish-actions.pod:2317
11744 #, no-wrap
11745 msgid ""
11746 " inspect-get-roots\n"
11747 "\n"
11748 msgstr ""
11749 " inspect-get-roots\n"
11750 "\n"
11751
11752 #. type: textblock
11753 #: ../fish/guestfish-actions.pod:2319
11754 msgid ""
11755 "This function is a convenient way to get the list of root devices, as "
11756 "returned from a previous call to L</inspect-os>, but without redoing the "
11757 "whole inspection process."
11758 msgstr ""
11759
11760 #. type: textblock
11761 #: ../fish/guestfish-actions.pod:2323
11762 msgid ""
11763 "This returns an empty list if either no root devices were found or the "
11764 "caller has not called L</inspect-os>."
11765 msgstr ""
11766
11767 #. type: =head2
11768 #: ../fish/guestfish-actions.pod:2328
11769 msgid "inspect-get-type"
11770 msgstr "inspect-get-type"
11771
11772 #. type: verbatim
11773 #: ../fish/guestfish-actions.pod:2330
11774 #, no-wrap
11775 msgid ""
11776 " inspect-get-type root\n"
11777 "\n"
11778 msgstr ""
11779 " inspect-get-type корінь\n"
11780 "\n"
11781
11782 #. type: textblock
11783 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
11784 msgid ""
11785 "This returns the type of the inspected operating system.  Currently defined "
11786 "types are:"
11787 msgstr ""
11788
11789 #. type: =item
11790 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
11791 msgid "\"linux\""
11792 msgstr "\"linux\""
11793
11794 #. type: textblock
11795 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
11796 msgid "Any Linux-based operating system."
11797 msgstr ""
11798
11799 #. type: textblock
11800 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
11801 msgid "Any Microsoft Windows operating system."
11802 msgstr ""
11803
11804 #. type: =item
11805 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
11806 msgid "\"freebsd\""
11807 msgstr "\"freebsd\""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
11811 msgid "FreeBSD."
11812 msgstr "FreeBSD."
11813
11814 #. type: =item
11815 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
11816 msgid "\"netbsd\""
11817 msgstr ""
11818
11819 #. type: textblock
11820 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
11821 msgid "NetBSD."
11822 msgstr ""
11823
11824 #. type: textblock
11825 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11826 msgid "The operating system type could not be determined."
11827 msgstr ""
11828
11829 #. type: =head2
11830 #: ../fish/guestfish-actions.pod:2364
11831 msgid "inspect-get-windows-current-control-set"
11832 msgstr ""
11833
11834 #. type: verbatim
11835 #: ../fish/guestfish-actions.pod:2366
11836 #, no-wrap
11837 msgid ""
11838 " inspect-get-windows-current-control-set root\n"
11839 "\n"
11840 msgstr ""
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
11844 msgid ""
11845 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11846 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11847 msgstr ""
11848
11849 #. type: textblock
11850 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
11851 msgid ""
11852 "This call assumes that the guest is Windows and that the Registry could be "
11853 "examined by inspection.  If this is not the case then an error is returned."
11854 msgstr ""
11855
11856 #. type: =head2
11857 #: ../fish/guestfish-actions.pod:2377
11858 msgid "inspect-get-windows-systemroot"
11859 msgstr "inspect-get-windows-systemroot"
11860
11861 #. type: verbatim
11862 #: ../fish/guestfish-actions.pod:2379
11863 #, no-wrap
11864 msgid ""
11865 " inspect-get-windows-systemroot root\n"
11866 "\n"
11867 msgstr ""
11868 " inspect-get-windows-systemroot корінь\n"
11869 "\n"
11870
11871 #. type: textblock
11872 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11873 msgid ""
11874 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11875 "is a directory path such as C</WINDOWS>."
11876 msgstr ""
11877
11878 #. type: textblock
11879 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11880 msgid ""
11881 "This call assumes that the guest is Windows and that the systemroot could be "
11882 "determined by inspection.  If this is not the case then an error is returned."
11883 msgstr ""
11884
11885 #. type: =head2
11886 #: ../fish/guestfish-actions.pod:2390
11887 msgid "inspect-is-live"
11888 msgstr "inspect-is-live"
11889
11890 #. type: verbatim
11891 #: ../fish/guestfish-actions.pod:2392
11892 #, no-wrap
11893 msgid ""
11894 " inspect-is-live root\n"
11895 "\n"
11896 msgstr ""
11897 " inspect-is-live корінь\n"
11898 "\n"
11899
11900 #. type: textblock
11901 #: ../fish/guestfish-actions.pod:2394
11902 msgid ""
11903 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11904 "then this returns true if a live image was detected on the disk."
11905 msgstr ""
11906
11907 #. type: =head2
11908 #: ../fish/guestfish-actions.pod:2400
11909 msgid "inspect-is-multipart"
11910 msgstr "inspect-is-multipart"
11911
11912 #. type: verbatim
11913 #: ../fish/guestfish-actions.pod:2402
11914 #, no-wrap
11915 msgid ""
11916 " inspect-is-multipart root\n"
11917 "\n"
11918 msgstr ""
11919 " inspect-is-multipart корінь\n"
11920 "\n"
11921
11922 #. type: textblock
11923 #: ../fish/guestfish-actions.pod:2404
11924 msgid ""
11925 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11926 "then this returns true if the disk is part of a set."
11927 msgstr ""
11928
11929 #. type: =head2
11930 #: ../fish/guestfish-actions.pod:2410
11931 msgid "inspect-is-netinst"
11932 msgstr "inspect-is-netinst"
11933
11934 #. type: verbatim
11935 #: ../fish/guestfish-actions.pod:2412
11936 #, no-wrap
11937 msgid ""
11938 " inspect-is-netinst root\n"
11939 "\n"
11940 msgstr ""
11941 " inspect-is-netinst корінь\n"
11942 "\n"
11943
11944 #. type: textblock
11945 #: ../fish/guestfish-actions.pod:2414
11946 msgid ""
11947 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11948 "then this returns true if the disk is a network installer, ie. not a self-"
11949 "contained install CD but one which is likely to require network access to "
11950 "complete the install."
11951 msgstr ""
11952
11953 #. type: =head2
11954 #: ../fish/guestfish-actions.pod:2422
11955 msgid "inspect-list-applications"
11956 msgstr "inspect-list-applications"
11957
11958 #. type: verbatim
11959 #: ../fish/guestfish-actions.pod:2424
11960 #, no-wrap
11961 msgid ""
11962 " inspect-list-applications root\n"
11963 "\n"
11964 msgstr ""
11965 " inspect-list-applications кореневий_каталог\n"
11966 "\n"
11967
11968 #. type: textblock
11969 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11970 msgid "Return the list of applications installed in the operating system."
11971 msgstr ""
11972
11973 #. type: textblock
11974 #: ../fish/guestfish-actions.pod:2428
11975 msgid ""
11976 "I<Note:> This call works differently from other parts of the inspection "
11977 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11978 "then mount up the disks, before calling this.  Listing applications is a "
11979 "significantly more difficult operation which requires access to the full "
11980 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11981 "are just returning data cached in the libguestfs handle, this call actually "
11982 "reads parts of the mounted filesystems during the call."
11983 msgstr ""
11984
11985 #. type: textblock
11986 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11987 msgid ""
11988 "This returns an empty list if the inspection code was not able to determine "
11989 "the list of applications."
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11994 msgid "The application structure contains the following fields:"
11995 msgstr ""
11996
11997 #. type: =item
11998 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11999 msgid "C<app_name>"
12000 msgstr "C<app_name>"
12001
12002 #. type: textblock
12003 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
12004 msgid ""
12005 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12006 "guests, this is the package name."
12007 msgstr ""
12008
12009 #. type: =item
12010 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
12011 msgid "C<app_display_name>"
12012 msgstr "C<app_display_name>"
12013
12014 #. type: textblock
12015 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
12016 msgid ""
12017 "The display name of the application, sometimes localized to the install "
12018 "language of the guest operating system."
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
12023 msgid ""
12024 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12025 "to display something can use C<app_name> instead."
12026 msgstr ""
12027
12028 #. type: =item
12029 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
12030 msgid "C<app_epoch>"
12031 msgstr "C<app_epoch>"
12032
12033 #. type: textblock
12034 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
12035 msgid ""
12036 "For package managers which use epochs, this contains the epoch of the "
12037 "package (an integer).  If unavailable, this is returned as C<0>."
12038 msgstr ""
12039
12040 #. type: =item
12041 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
12042 msgid "C<app_version>"
12043 msgstr "C<app_version>"
12044
12045 #. type: textblock
12046 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
12047 msgid ""
12048 "The version string of the application or package.  If unavailable this is "
12049 "returned as an empty string C<\"\">."
12050 msgstr ""
12051
12052 #. type: =item
12053 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
12054 msgid "C<app_release>"
12055 msgstr "C<app_release>"
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
12059 msgid ""
12060 "The release string of the application or package, for package managers that "
12061 "use this.  If unavailable this is returned as an empty string C<\"\">."
12062 msgstr ""
12063
12064 #. type: =item
12065 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
12066 msgid "C<app_install_path>"
12067 msgstr "C<app_install_path>"
12068
12069 #. type: textblock
12070 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
12071 msgid ""
12072 "The installation path of the application (on operating systems such as "
12073 "Windows which use installation paths).  This path is in the format used by "
12074 "the guest operating system, it is not a libguestfs path."
12075 msgstr ""
12076
12077 #. type: textblock
12078 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
12079 msgid "If unavailable this is returned as an empty string C<\"\">."
12080 msgstr ""
12081
12082 #. type: =item
12083 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
12084 msgid "C<app_trans_path>"
12085 msgstr "C<app_trans_path>"
12086
12087 #. type: textblock
12088 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
12089 msgid ""
12090 "The install path translated into a libguestfs path.  If unavailable this is "
12091 "returned as an empty string C<\"\">."
12092 msgstr ""
12093
12094 #. type: =item
12095 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
12096 msgid "C<app_publisher>"
12097 msgstr "C<app_publisher>"
12098
12099 #. type: textblock
12100 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
12101 msgid ""
12102 "The name of the publisher of the application, for package managers that use "
12103 "this.  If unavailable this is returned as an empty string C<\"\">."
12104 msgstr ""
12105
12106 #. type: =item
12107 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
12108 msgid "C<app_url>"
12109 msgstr "C<app_url>"
12110
12111 #. type: textblock
12112 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
12113 msgid ""
12114 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12115 "returned as an empty string C<\"\">."
12116 msgstr ""
12117
12118 #. type: =item
12119 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
12120 msgid "C<app_source_package>"
12121 msgstr "C<app_source_package>"
12122
12123 #. type: textblock
12124 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
12125 msgid ""
12126 "For packaging systems which support this, the name of the source package.  "
12127 "If unavailable this is returned as an empty string C<\"\">."
12128 msgstr ""
12129
12130 #. type: =item
12131 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
12132 msgid "C<app_summary>"
12133 msgstr "C<app_summary>"
12134
12135 #. type: textblock
12136 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
12137 msgid ""
12138 "A short (usually one line) description of the application or package.  If "
12139 "unavailable this is returned as an empty string C<\"\">."
12140 msgstr ""
12141
12142 #. type: =item
12143 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
12144 msgid "C<app_description>"
12145 msgstr "C<app_description>"
12146
12147 #. type: textblock
12148 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
12149 msgid ""
12150 "A longer description of the application or package.  If unavailable this is "
12151 "returned as an empty string C<\"\">."
12152 msgstr ""
12153
12154 #. type: =head2
12155 #: ../fish/guestfish-actions.pod:2518
12156 msgid "inspect-os"
12157 msgstr "inspect-os"
12158
12159 #. type: verbatim
12160 #: ../fish/guestfish-actions.pod:2520
12161 #, no-wrap
12162 msgid ""
12163 " inspect-os\n"
12164 "\n"
12165 msgstr ""
12166 " inspect-os\n"
12167 "\n"
12168
12169 #. type: textblock
12170 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
12171 msgid ""
12172 "This function uses other libguestfs functions and certain heuristics to "
12173 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12174 "for operating systems."
12175 msgstr ""
12176
12177 #. type: textblock
12178 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
12179 msgid "The list returned is empty if no operating systems were found."
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
12184 msgid ""
12185 "If one operating system was found, then this returns a list with a single "
12186 "element, which is the name of the root filesystem of this operating system.  "
12187 "It is also possible for this function to return a list containing more than "
12188 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12189 "element being the root filesystem of one of the operating systems."
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:2535
12194 msgid ""
12195 "You can pass the root string(s) returned to other L</inspect-get-*> "
12196 "functions in order to query further information about each operating system, "
12197 "such as the name and version."
12198 msgstr ""
12199
12200 #. type: textblock
12201 #: ../fish/guestfish-actions.pod:2540
12202 msgid ""
12203 "This function uses other libguestfs features such as L</mount-ro> and L</"
12204 "umount-all> in order to mount and unmount filesystems and look at the "
12205 "contents.  This should be called with no disks currently mounted.  The "
12206 "function may also use Augeas, so any existing Augeas handle will be closed."
12207 msgstr ""
12208
12209 #. type: textblock
12210 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
12211 msgid ""
12212 "This function cannot decrypt encrypted disks.  The caller must do that first "
12213 "(supplying the necessary keys) if the disk is encrypted."
12214 msgstr ""
12215
12216 #. type: textblock
12217 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
12218 #: ../fish/guestfish-actions.pod:2809
12219 msgid "See also L</list-filesystems>."
12220 msgstr "Див. також L</list-filesystems>."
12221
12222 #. type: =head2
12223 #: ../fish/guestfish-actions.pod:2554
12224 msgid "is-blockdev"
12225 msgstr "is-blockdev"
12226
12227 #. type: verbatim
12228 #: ../fish/guestfish-actions.pod:2556
12229 #, no-wrap
12230 msgid ""
12231 " is-blockdev path\n"
12232 "\n"
12233 msgstr ""
12234 " is-blockdev шлях\n"
12235 "\n"
12236
12237 #. type: textblock
12238 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
12239 msgid ""
12240 "This returns C<true> if and only if there is a block device with the given "
12241 "C<path> name."
12242 msgstr ""
12243
12244 #. type: textblock
12245 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
12246 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
12247 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
12248 #: ../fish/guestfish-actions.pod:2660
12249 msgid "See also L</stat>."
12250 msgstr "Див. також L</stat>."
12251
12252 #. type: =head2
12253 #: ../fish/guestfish-actions.pod:2563
12254 msgid "is-busy"
12255 msgstr "is-busy"
12256
12257 #. type: verbatim
12258 #: ../fish/guestfish-actions.pod:2565
12259 #, no-wrap
12260 msgid ""
12261 " is-busy\n"
12262 "\n"
12263 msgstr ""
12264 " is-busy\n"
12265 "\n"
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
12269 msgid ""
12270 "This returns true iff this handle is busy processing a command (in the "
12271 "C<BUSY> state)."
12272 msgstr ""
12273
12274 #. type: =head2
12275 #: ../fish/guestfish-actions.pod:2572
12276 msgid "is-chardev"
12277 msgstr "is-chardev"
12278
12279 #. type: verbatim
12280 #: ../fish/guestfish-actions.pod:2574
12281 #, no-wrap
12282 msgid ""
12283 " is-chardev path\n"
12284 "\n"
12285 msgstr ""
12286 " is-chardev шлях\n"
12287 "\n"
12288
12289 #. type: textblock
12290 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
12291 msgid ""
12292 "This returns C<true> if and only if there is a character device with the "
12293 "given C<path> name."
12294 msgstr ""
12295
12296 #. type: =head2
12297 #: ../fish/guestfish-actions.pod:2581
12298 msgid "is-config"
12299 msgstr "is-config"
12300
12301 #. type: verbatim
12302 #: ../fish/guestfish-actions.pod:2583
12303 #, no-wrap
12304 msgid ""
12305 " is-config\n"
12306 "\n"
12307 msgstr ""
12308 " is-config\n"
12309 "\n"
12310
12311 #. type: textblock
12312 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
12313 msgid ""
12314 "This returns true iff this handle is being configured (in the C<CONFIG> "
12315 "state)."
12316 msgstr ""
12317
12318 #. type: =head2
12319 #: ../fish/guestfish-actions.pod:2590
12320 msgid "is-dir"
12321 msgstr "is-dir"
12322
12323 #. type: verbatim
12324 #: ../fish/guestfish-actions.pod:2592
12325 #, no-wrap
12326 msgid ""
12327 " is-dir path\n"
12328 "\n"
12329 msgstr ""
12330 " is-dir шлях\n"
12331 "\n"
12332
12333 #. type: textblock
12334 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
12335 msgid ""
12336 "This returns C<true> if and only if there is a directory with the given "
12337 "C<path> name.  Note that it returns false for other objects like files."
12338 msgstr ""
12339
12340 #. type: =head2
12341 #: ../fish/guestfish-actions.pod:2600
12342 msgid "is-fifo"
12343 msgstr "is-fifo"
12344
12345 #. type: verbatim
12346 #: ../fish/guestfish-actions.pod:2602
12347 #, no-wrap
12348 msgid ""
12349 " is-fifo path\n"
12350 "\n"
12351 msgstr ""
12352 " is-fifo шлях\n"
12353 "\n"
12354
12355 #. type: textblock
12356 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
12357 msgid ""
12358 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12359 "given C<path> name."
12360 msgstr ""
12361
12362 #. type: =head2
12363 #: ../fish/guestfish-actions.pod:2609
12364 msgid "is-file"
12365 msgstr "is-file"
12366
12367 #. type: verbatim
12368 #: ../fish/guestfish-actions.pod:2611
12369 #, no-wrap
12370 msgid ""
12371 " is-file path\n"
12372 "\n"
12373 msgstr ""
12374 " is-file шлях\n"
12375 "\n"
12376
12377 #. type: textblock
12378 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
12379 msgid ""
12380 "This returns C<true> if and only if there is a regular file with the given "
12381 "C<path> name.  Note that it returns false for other objects like directories."
12382 msgstr ""
12383
12384 #. type: =head2
12385 #: ../fish/guestfish-actions.pod:2619
12386 msgid "is-launching"
12387 msgstr "is-launching"
12388
12389 #. type: verbatim
12390 #: ../fish/guestfish-actions.pod:2621
12391 #, no-wrap
12392 msgid ""
12393 " is-launching\n"
12394 "\n"
12395 msgstr ""
12396 " is-launching\n"
12397 "\n"
12398
12399 #. type: textblock
12400 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
12401 msgid ""
12402 "This returns true iff this handle is launching the subprocess (in the "
12403 "C<LAUNCHING> state)."
12404 msgstr ""
12405
12406 #. type: =head2
12407 #: ../fish/guestfish-actions.pod:2628
12408 msgid "is-lv"
12409 msgstr "is-lv"
12410
12411 #. type: verbatim
12412 #: ../fish/guestfish-actions.pod:2630
12413 #, no-wrap
12414 msgid ""
12415 " is-lv device\n"
12416 "\n"
12417 msgstr ""
12418 " is-lv пристрій\n"
12419 "\n"
12420
12421 #. type: textblock
12422 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
12423 msgid ""
12424 "This command tests whether C<device> is a logical volume, and returns true "
12425 "iff this is the case."
12426 msgstr ""
12427
12428 #. type: =head2
12429 #: ../fish/guestfish-actions.pod:2635
12430 msgid "is-ready"
12431 msgstr "is-ready"
12432
12433 #. type: verbatim
12434 #: ../fish/guestfish-actions.pod:2637
12435 #, no-wrap
12436 msgid ""
12437 " is-ready\n"
12438 "\n"
12439 msgstr ""
12440 " is-ready\n"
12441 "\n"
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
12445 msgid ""
12446 "This returns true iff this handle is ready to accept commands (in the "
12447 "C<READY> state)."
12448 msgstr ""
12449
12450 #. type: =head2
12451 #: ../fish/guestfish-actions.pod:2644
12452 msgid "is-socket"
12453 msgstr "is-socket"
12454
12455 #. type: verbatim
12456 #: ../fish/guestfish-actions.pod:2646
12457 #, no-wrap
12458 msgid ""
12459 " is-socket path\n"
12460 "\n"
12461 msgstr ""
12462 " is-socket шлях\n"
12463 "\n"
12464
12465 #. type: textblock
12466 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
12467 msgid ""
12468 "This returns C<true> if and only if there is a Unix domain socket with the "
12469 "given C<path> name."
12470 msgstr ""
12471
12472 #. type: =head2
12473 #: ../fish/guestfish-actions.pod:2653
12474 msgid "is-symlink"
12475 msgstr "is-symlink"
12476
12477 #. type: verbatim
12478 #: ../fish/guestfish-actions.pod:2655
12479 #, no-wrap
12480 msgid ""
12481 " is-symlink path\n"
12482 "\n"
12483 msgstr ""
12484 " is-symlink шлях\n"
12485 "\n"
12486
12487 #. type: textblock
12488 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
12489 msgid ""
12490 "This returns C<true> if and only if there is a symbolic link with the given "
12491 "C<path> name."
12492 msgstr ""
12493
12494 #. type: =head2
12495 #: ../fish/guestfish-actions.pod:2662
12496 msgid "is-zero"
12497 msgstr ""
12498
12499 #. type: verbatim
12500 #: ../fish/guestfish-actions.pod:2664
12501 #, no-wrap
12502 msgid ""
12503 " is-zero path\n"
12504 "\n"
12505 msgstr ""
12506
12507 #. type: textblock
12508 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
12509 msgid ""
12510 "This returns true iff the file exists and the file is empty or it contains "
12511 "all zero bytes."
12512 msgstr ""
12513
12514 #. type: =head2
12515 #: ../fish/guestfish-actions.pod:2669
12516 msgid "is-zero-device"
12517 msgstr ""
12518
12519 #. type: verbatim
12520 #: ../fish/guestfish-actions.pod:2671
12521 #, no-wrap
12522 msgid ""
12523 " is-zero-device device\n"
12524 "\n"
12525 msgstr ""
12526
12527 #. type: textblock
12528 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
12529 msgid "This returns true iff the device exists and contains all zero bytes."
12530 msgstr ""
12531
12532 #. type: textblock
12533 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
12534 msgid "Note that for large devices this can take a long time to run."
12535 msgstr ""
12536
12537 #. type: =head2
12538 #: ../fish/guestfish-actions.pod:2677
12539 msgid "kill-subprocess"
12540 msgstr "kill-subprocess"
12541
12542 #. type: verbatim
12543 #: ../fish/guestfish-actions.pod:2679
12544 #, no-wrap
12545 msgid ""
12546 " kill-subprocess\n"
12547 "\n"
12548 msgstr ""
12549 " kill-subprocess\n"
12550 "\n"
12551
12552 #. type: textblock
12553 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
12554 msgid "This kills the qemu subprocess.  You should never need to call this."
12555 msgstr ""
12556
12557 #. type: =head2
12558 #: ../fish/guestfish-actions.pod:2683
12559 msgid "launch"
12560 msgstr "launch"
12561
12562 #. type: =head2
12563 #: ../fish/guestfish-actions.pod:2685
12564 msgid "run"
12565 msgstr ""
12566
12567 #. type: verbatim
12568 #: ../fish/guestfish-actions.pod:2687
12569 #, no-wrap
12570 msgid ""
12571 " launch\n"
12572 "\n"
12573 msgstr ""
12574 " launch\n"
12575 "\n"
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
12579 msgid ""
12580 "Internally libguestfs is implemented by running a virtual machine using "
12581 "L<qemu(1)>."
12582 msgstr ""
12583
12584 #. type: textblock
12585 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
12586 msgid ""
12587 "You should call this after configuring the handle (eg. adding drives) but "
12588 "before performing any actions."
12589 msgstr ""
12590
12591 #. type: =head2
12592 #: ../fish/guestfish-actions.pod:2695
12593 msgid "lchown"
12594 msgstr "lchown"
12595
12596 #. type: verbatim
12597 #: ../fish/guestfish-actions.pod:2697
12598 #, no-wrap
12599 msgid ""
12600 " lchown owner group path\n"
12601 "\n"
12602 msgstr ""
12603 " lchown власник група шлях\n"
12604 "\n"
12605
12606 #. type: textblock
12607 #: ../fish/guestfish-actions.pod:2699
12608 msgid ""
12609 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12610 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12611 "target."
12612 msgstr ""
12613
12614 #. type: =head2
12615 #: ../fish/guestfish-actions.pod:2707
12616 msgid "lgetxattr"
12617 msgstr "lgetxattr"
12618
12619 #. type: verbatim
12620 #: ../fish/guestfish-actions.pod:2709
12621 #, no-wrap
12622 msgid ""
12623 " lgetxattr path name\n"
12624 "\n"
12625 msgstr ""
12626 " lgetxattr шлях назва\n"
12627 "\n"
12628
12629 #. type: textblock
12630 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
12631 msgid ""
12632 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12633 "is a symlink, then this call returns an extended attribute from the symlink."
12634 msgstr ""
12635
12636 #. type: textblock
12637 #: ../fish/guestfish-actions.pod:2725
12638 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12639 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12640
12641 #. type: =head2
12642 #: ../fish/guestfish-actions.pod:2727
12643 msgid "lgetxattrs"
12644 msgstr "lgetxattrs"
12645
12646 #. type: verbatim
12647 #: ../fish/guestfish-actions.pod:2729
12648 #, no-wrap
12649 msgid ""
12650 " lgetxattrs path\n"
12651 "\n"
12652 msgstr ""
12653 " lgetxattrs шлях\n"
12654 "\n"
12655
12656 #. type: textblock
12657 #: ../fish/guestfish-actions.pod:2731
12658 msgid ""
12659 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12660 "it returns the extended attributes of the link itself."
12661 msgstr ""
12662
12663 #. type: =head2
12664 #: ../fish/guestfish-actions.pod:2735
12665 msgid "list-9p"
12666 msgstr ""
12667
12668 #. type: verbatim
12669 #: ../fish/guestfish-actions.pod:2737
12670 #, no-wrap
12671 msgid ""
12672 " list-9p\n"
12673 "\n"
12674 msgstr ""
12675
12676 #. type: textblock
12677 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
12678 msgid ""
12679 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12680 "returned."
12681 msgstr ""
12682
12683 #. type: =head2
12684 #: ../fish/guestfish-actions.pod:2742
12685 msgid "list-devices"
12686 msgstr "list-devices"
12687
12688 #. type: verbatim
12689 #: ../fish/guestfish-actions.pod:2744
12690 #, no-wrap
12691 msgid ""
12692 " list-devices\n"
12693 "\n"
12694 msgstr ""
12695 " list-devices\n"
12696 "\n"
12697
12698 #. type: textblock
12699 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
12700 msgid "List all the block devices."
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
12705 msgid "The full block device names are returned, eg. C</dev/sda>."
12706 msgstr ""
12707
12708 #. type: =head2
12709 #: ../fish/guestfish-actions.pod:2752
12710 msgid "list-dm-devices"
12711 msgstr ""
12712
12713 #. type: verbatim
12714 #: ../fish/guestfish-actions.pod:2754
12715 #, no-wrap
12716 msgid ""
12717 " list-dm-devices\n"
12718 "\n"
12719 msgstr ""
12720
12721 #. type: textblock
12722 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
12723 msgid "List all device mapper devices."
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../fish/guestfish-actions.pod:2758
12728 msgid ""
12729 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12730 "previous call to L</luks-open>."
12731 msgstr ""
12732
12733 #. type: textblock
12734 #: ../fish/guestfish-actions.pod:2761
12735 msgid ""
12736 "Device mapper devices which correspond to logical volumes are I<not> "
12737 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12738 msgstr ""
12739
12740 #. type: =head2
12741 #: ../fish/guestfish-actions.pod:2765
12742 msgid "list-filesystems"
12743 msgstr "list-filesystems"
12744
12745 #. type: verbatim
12746 #: ../fish/guestfish-actions.pod:2767
12747 #, no-wrap
12748 msgid ""
12749 " list-filesystems\n"
12750 "\n"
12751 msgstr ""
12752 " list-filesystems\n"
12753 "\n"
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
12757 msgid ""
12758 "This inspection command looks for filesystems on partitions, block devices "
12759 "and logical volumes, returning a list of devices containing filesystems and "
12760 "their type."
12761 msgstr ""
12762
12763 #. type: textblock
12764 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12765 msgid ""
12766 "The return value is a hash, where the keys are the devices containing "
12767 "filesystems, and the values are the filesystem types.  For example:"
12768 msgstr ""
12769
12770 #. type: verbatim
12771 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12772 #, no-wrap
12773 msgid ""
12774 " \"/dev/sda1\" => \"ntfs\"\n"
12775 " \"/dev/sda2\" => \"ext2\"\n"
12776 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12777 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12778 "\n"
12779 msgstr ""
12780
12781 #. type: textblock
12782 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
12783 msgid ""
12784 "The value can have the special value \"unknown\", meaning the content of the "
12785 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12786 msgstr ""
12787
12788 #. type: textblock
12789 #: ../fish/guestfish-actions.pod:2786
12790 msgid ""
12791 "This command runs other libguestfs commands, which might include L</mount> "
12792 "and L</umount>, and therefore you should use this soon after launch and only "
12793 "when nothing is mounted."
12794 msgstr ""
12795
12796 #. type: textblock
12797 #: ../fish/guestfish-actions.pod:2790
12798 msgid ""
12799 "Not all of the filesystems returned will be mountable.  In particular, swap "
12800 "partitions are returned in the list.  Also this command does not check that "
12801 "each filesystem found is valid and mountable, and some filesystems might be "
12802 "mountable but require special options.  Filesystems may not all belong to a "
12803 "single logical operating system (use L</inspect-os> to look for OSes)."
12804 msgstr ""
12805
12806 #. type: =head2
12807 #: ../fish/guestfish-actions.pod:2798
12808 msgid "list-partitions"
12809 msgstr "list-partitions"
12810
12811 #. type: verbatim
12812 #: ../fish/guestfish-actions.pod:2800
12813 #, no-wrap
12814 msgid ""
12815 " list-partitions\n"
12816 "\n"
12817 msgstr ""
12818 " list-partitions\n"
12819 "\n"
12820
12821 #. type: textblock
12822 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
12823 msgid "List all the partitions detected on all block devices."
12824 msgstr ""
12825
12826 #. type: textblock
12827 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
12828 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:2806
12833 msgid ""
12834 "This does not return logical volumes.  For that you will need to call L</"
12835 "lvs>."
12836 msgstr ""
12837
12838 #. type: =head2
12839 #: ../fish/guestfish-actions.pod:2811
12840 msgid "ll"
12841 msgstr "ll"
12842
12843 #. type: verbatim
12844 #: ../fish/guestfish-actions.pod:2813
12845 #, no-wrap
12846 msgid ""
12847 " ll directory\n"
12848 "\n"
12849 msgstr ""
12850 " ll каталог\n"
12851 "\n"
12852
12853 #. type: textblock
12854 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
12855 msgid ""
12856 "List the files in C<directory> (relative to the root directory, there is no "
12857 "cwd) in the format of 'ls -la'."
12858 msgstr ""
12859
12860 #. type: textblock
12861 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
12862 msgid ""
12863 "This command is mostly useful for interactive sessions.  It is I<not> "
12864 "intended that you try to parse the output string."
12865 msgstr ""
12866
12867 #. type: =head2
12868 #: ../fish/guestfish-actions.pod:2821
12869 msgid "ln"
12870 msgstr "ln"
12871
12872 #. type: verbatim
12873 #: ../fish/guestfish-actions.pod:2823
12874 #, no-wrap
12875 msgid ""
12876 " ln target linkname\n"
12877 "\n"
12878 msgstr ""
12879 " ln призначення назва_посилання\n"
12880 "\n"
12881
12882 #. type: textblock
12883 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
12884 msgid "This command creates a hard link using the C<ln> command."
12885 msgstr ""
12886
12887 #. type: =head2
12888 #: ../fish/guestfish-actions.pod:2827
12889 msgid "ln-f"
12890 msgstr "ln-f"
12891
12892 #. type: verbatim
12893 #: ../fish/guestfish-actions.pod:2829
12894 #, no-wrap
12895 msgid ""
12896 " ln-f target linkname\n"
12897 "\n"
12898 msgstr ""
12899 " ln-f призначення назва_посилання\n"
12900 "\n"
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
12904 msgid ""
12905 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12906 "option removes the link (C<linkname>) if it exists already."
12907 msgstr ""
12908
12909 #. type: =head2
12910 #: ../fish/guestfish-actions.pod:2834
12911 msgid "ln-s"
12912 msgstr "ln-s"
12913
12914 #. type: verbatim
12915 #: ../fish/guestfish-actions.pod:2836
12916 #, no-wrap
12917 msgid ""
12918 " ln-s target linkname\n"
12919 "\n"
12920 msgstr ""
12921 " ln-s призначення назва_посилання\n"
12922 "\n"
12923
12924 #. type: textblock
12925 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
12926 msgid "This command creates a symbolic link using the C<ln -s> command."
12927 msgstr ""
12928
12929 #. type: =head2
12930 #: ../fish/guestfish-actions.pod:2840
12931 msgid "ln-sf"
12932 msgstr "ln-sf"
12933
12934 #. type: verbatim
12935 #: ../fish/guestfish-actions.pod:2842
12936 #, no-wrap
12937 msgid ""
12938 " ln-sf target linkname\n"
12939 "\n"
12940 msgstr ""
12941 " ln-sf призначення назва_посилання\n"
12942 "\n"
12943
12944 #. type: textblock
12945 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
12946 msgid ""
12947 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12948 "option removes the link (C<linkname>) if it exists already."
12949 msgstr ""
12950
12951 #. type: =head2
12952 #: ../fish/guestfish-actions.pod:2847
12953 msgid "lremovexattr"
12954 msgstr "lremovexattr"
12955
12956 #. type: verbatim
12957 #: ../fish/guestfish-actions.pod:2849
12958 #, no-wrap
12959 msgid ""
12960 " lremovexattr xattr path\n"
12961 "\n"
12962 msgstr ""
12963
12964 #. type: textblock
12965 #: ../fish/guestfish-actions.pod:2851
12966 msgid ""
12967 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12968 "it removes an extended attribute of the link itself."
12969 msgstr ""
12970
12971 #. type: =head2
12972 #: ../fish/guestfish-actions.pod:2855
12973 msgid "ls"
12974 msgstr "ls"
12975
12976 #. type: verbatim
12977 #: ../fish/guestfish-actions.pod:2857
12978 #, no-wrap
12979 msgid ""
12980 " ls directory\n"
12981 "\n"
12982 msgstr ""
12983 " ls каталог\n"
12984 "\n"
12985
12986 #. type: textblock
12987 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
12988 msgid ""
12989 "List the files in C<directory> (relative to the root directory, there is no "
12990 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12991 msgstr ""
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:2863
12995 msgid ""
12996 "This command is mostly useful for interactive sessions.  Programs should "
12997 "probably use L</readdir> instead."
12998 msgstr ""
12999
13000 #. type: =head2
13001 #: ../fish/guestfish-actions.pod:2866
13002 msgid "lsetxattr"
13003 msgstr "lsetxattr"
13004
13005 #. type: verbatim
13006 #: ../fish/guestfish-actions.pod:2868
13007 #, no-wrap
13008 msgid ""
13009 " lsetxattr xattr val vallen path\n"
13010 "\n"
13011 msgstr ""
13012
13013 #. type: textblock
13014 #: ../fish/guestfish-actions.pod:2870
13015 msgid ""
13016 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
13017 "sets an extended attribute of the link itself."
13018 msgstr ""
13019
13020 #. type: =head2
13021 #: ../fish/guestfish-actions.pod:2874
13022 msgid "lstat"
13023 msgstr "lstat"
13024
13025 #. type: verbatim
13026 #: ../fish/guestfish-actions.pod:2876
13027 #, no-wrap
13028 msgid ""
13029 " lstat path\n"
13030 "\n"
13031 msgstr ""
13032 " lstat шлях\n"
13033 "\n"
13034
13035 #. type: textblock
13036 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678
13037 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
13038 msgid "Returns file information for the given C<path>."
13039 msgstr ""
13040
13041 #. type: textblock
13042 #: ../fish/guestfish-actions.pod:2880
13043 msgid ""
13044 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
13045 "the link is stat-ed, not the file it refers to."
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
13050 msgid "This is the same as the C<lstat(2)> system call."
13051 msgstr ""
13052
13053 #. type: =head2
13054 #: ../fish/guestfish-actions.pod:2886
13055 msgid "lstatlist"
13056 msgstr "lstatlist"
13057
13058 #. type: verbatim
13059 #: ../fish/guestfish-actions.pod:2888
13060 #, no-wrap
13061 msgid ""
13062 " lstatlist path 'names ...'\n"
13063 "\n"
13064 msgstr ""
13065
13066 #. type: textblock
13067 #: ../fish/guestfish-actions.pod:2890
13068 msgid ""
13069 "This call allows you to perform the L</lstat> operation on multiple files, "
13070 "where all files are in the directory C<path>.  C<names> is the list of files "
13071 "from this directory."
13072 msgstr ""
13073
13074 #. type: textblock
13075 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
13076 msgid ""
13077 "On return you get a list of stat structs, with a one-to-one correspondence "
13078 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13079 "then the C<ino> field of that structure is set to C<-1>."
13080 msgstr ""
13081
13082 #. type: textblock
13083 #: ../fish/guestfish-actions.pod:2899
13084 msgid ""
13085 "This call is intended for programs that want to efficiently list a directory "
13086 "contents without making many round-trips.  See also L</lxattrlist> for a "
13087 "similarly efficient call for getting extended attributes.  Very long "
13088 "directory listings might cause the protocol message size to be exceeded, "
13089 "causing this call to fail.  The caller must split up such requests into "
13090 "smaller groups of names."
13091 msgstr ""
13092
13093 #. type: =head2
13094 #: ../fish/guestfish-actions.pod:2907
13095 msgid "luks-add-key"
13096 msgstr "luks-add-key"
13097
13098 #. type: verbatim
13099 #: ../fish/guestfish-actions.pod:2909
13100 #, no-wrap
13101 msgid ""
13102 " luks-add-key device keyslot\n"
13103 "\n"
13104 msgstr ""
13105
13106 #. type: textblock
13107 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
13108 msgid ""
13109 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13110 "existing key, and is used to access the device.  C<newkey> is the new key to "
13111 "add.  C<keyslot> is the key slot that will be replaced."
13112 msgstr ""
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:2916
13116 msgid ""
13117 "Note that if C<keyslot> already contains a key, then this command will "
13118 "fail.  You have to use L</luks-kill-slot> first to remove that key."
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
13123 #: ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963
13124 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
13125 msgid ""
13126 "This command has one or more key or passphrase parameters.  Guestfish will "
13127 "prompt for these separately."
13128 msgstr ""
13129
13130 #. type: =head2
13131 #: ../fish/guestfish-actions.pod:2923
13132 msgid "luks-close"
13133 msgstr "luks-close"
13134
13135 #. type: verbatim
13136 #: ../fish/guestfish-actions.pod:2925
13137 #, no-wrap
13138 msgid ""
13139 " luks-close device\n"
13140 "\n"
13141 msgstr ""
13142 " luks-close пристрій\n"
13143 "\n"
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:2927
13147 msgid ""
13148 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
13149 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
13150 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
13151 "block device."
13152 msgstr ""
13153
13154 #. type: =head2
13155 #: ../fish/guestfish-actions.pod:2933
13156 msgid "luks-format"
13157 msgstr "luks-format"
13158
13159 #. type: verbatim
13160 #: ../fish/guestfish-actions.pod:2935
13161 #, no-wrap
13162 msgid ""
13163 " luks-format device keyslot\n"
13164 "\n"
13165 msgstr ""
13166
13167 #. type: textblock
13168 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
13169 msgid ""
13170 "This command erases existing data on C<device> and formats the device as a "
13171 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13172 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13173 msgstr ""
13174
13175 #. type: =head2
13176 #: ../fish/guestfish-actions.pod:2945
13177 msgid "luks-format-cipher"
13178 msgstr "luks-format-cipher"
13179
13180 #. type: verbatim
13181 #: ../fish/guestfish-actions.pod:2947
13182 #, no-wrap
13183 msgid ""
13184 " luks-format-cipher device keyslot cipher\n"
13185 "\n"
13186 msgstr ""
13187
13188 #. type: textblock
13189 #: ../fish/guestfish-actions.pod:2949
13190 msgid ""
13191 "This command is the same as L</luks-format> but it also allows you to set "
13192 "the C<cipher> used."
13193 msgstr ""
13194
13195 #. type: =head2
13196 #: ../fish/guestfish-actions.pod:2955
13197 msgid "luks-kill-slot"
13198 msgstr "luks-kill-slot"
13199
13200 #. type: verbatim
13201 #: ../fish/guestfish-actions.pod:2957
13202 #, no-wrap
13203 msgid ""
13204 " luks-kill-slot device keyslot\n"
13205 "\n"
13206 msgstr ""
13207
13208 #. type: textblock
13209 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
13210 msgid ""
13211 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13212 "device C<device>.  C<key> must be one of the I<other> keys."
13213 msgstr ""
13214
13215 #. type: =head2
13216 #: ../fish/guestfish-actions.pod:2966
13217 msgid "luks-open"
13218 msgstr "luks-open"
13219
13220 #. type: verbatim
13221 #: ../fish/guestfish-actions.pod:2968
13222 #, no-wrap
13223 msgid ""
13224 " luks-open device mapname\n"
13225 "\n"
13226 msgstr ""
13227
13228 #. type: textblock
13229 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
13230 msgid ""
13231 "This command opens a block device which has been encrypted according to the "
13232 "Linux Unified Key Setup (LUKS) standard."
13233 msgstr ""
13234
13235 #. type: textblock
13236 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
13237 msgid "C<device> is the encrypted block device or partition."
13238 msgstr ""
13239
13240 #. type: textblock
13241 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
13242 msgid ""
13243 "The caller must supply one of the keys associated with the LUKS block "
13244 "device, in the C<key> parameter."
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
13249 msgid ""
13250 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13251 "writes to this block device are decrypted from and encrypted to the "
13252 "underlying C<device> respectively."
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:2982
13257 msgid ""
13258 "If this block device contains LVM volume groups, then calling L</vgscan> "
13259 "followed by L</vg-activate-all> will make them visible."
13260 msgstr ""
13261
13262 #. type: textblock
13263 #: ../fish/guestfish-actions.pod:2986
13264 msgid "Use L</list-dm-devices> to list all device mapper devices."
13265 msgstr ""
13266
13267 #. type: =head2
13268 #: ../fish/guestfish-actions.pod:2992
13269 msgid "luks-open-ro"
13270 msgstr "luks-open-ro"
13271
13272 #. type: verbatim
13273 #: ../fish/guestfish-actions.pod:2994
13274 #, no-wrap
13275 msgid ""
13276 " luks-open-ro device mapname\n"
13277 "\n"
13278 msgstr ""
13279
13280 #. type: textblock
13281 #: ../fish/guestfish-actions.pod:2996
13282 msgid ""
13283 "This is the same as L</luks-open> except that a read-only mapping is created."
13284 msgstr ""
13285
13286 #. type: =head2
13287 #: ../fish/guestfish-actions.pod:3002
13288 msgid "lvcreate"
13289 msgstr "lvcreate"
13290
13291 #. type: verbatim
13292 #: ../fish/guestfish-actions.pod:3004
13293 #, no-wrap
13294 msgid ""
13295 " lvcreate logvol volgroup mbytes\n"
13296 "\n"
13297 msgstr ""
13298
13299 #. type: textblock
13300 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
13301 msgid ""
13302 "This creates an LVM logical volume called C<logvol> on the volume group "
13303 "C<volgroup>, with C<size> megabytes."
13304 msgstr ""
13305
13306 #. type: =head2
13307 #: ../fish/guestfish-actions.pod:3009
13308 msgid "lvm-canonical-lv-name"
13309 msgstr "lvm-canonical-lv-name"
13310
13311 #. type: verbatim
13312 #: ../fish/guestfish-actions.pod:3011
13313 #, no-wrap
13314 msgid ""
13315 " lvm-canonical-lv-name lvname\n"
13316 "\n"
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
13321 msgid ""
13322 "This converts alternative naming schemes for LVs that you might find to the "
13323 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13324 "LV>."
13325 msgstr ""
13326
13327 #. type: textblock
13328 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
13329 msgid ""
13330 "This command returns an error if the C<lvname> parameter does not refer to a "
13331 "logical volume."
13332 msgstr ""
13333
13334 #. type: textblock
13335 #: ../fish/guestfish-actions.pod:3020
13336 msgid "See also L</is-lv>."
13337 msgstr "Див. також L</is-lv>."
13338
13339 #. type: =head2
13340 #: ../fish/guestfish-actions.pod:3022
13341 msgid "lvm-clear-filter"
13342 msgstr "lvm-clear-filter"
13343
13344 #. type: verbatim
13345 #: ../fish/guestfish-actions.pod:3024
13346 #, no-wrap
13347 msgid ""
13348 " lvm-clear-filter\n"
13349 "\n"
13350 msgstr ""
13351 " lvm-clear-filter\n"
13352 "\n"
13353
13354 #. type: textblock
13355 #: ../fish/guestfish-actions.pod:3026
13356 msgid ""
13357 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
13358 "block device."
13359 msgstr ""
13360
13361 #. type: textblock
13362 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057
13363 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
13364 msgid ""
13365 "This command also clears the LVM cache and performs a volume group scan."
13366 msgstr ""
13367
13368 #. type: =head2
13369 #: ../fish/guestfish-actions.pod:3032
13370 msgid "lvm-remove-all"
13371 msgstr "lvm-remove-all"
13372
13373 #. type: verbatim
13374 #: ../fish/guestfish-actions.pod:3034
13375 #, no-wrap
13376 msgid ""
13377 " lvm-remove-all\n"
13378 "\n"
13379 msgstr ""
13380 " lvm-remove-all\n"
13381 "\n"
13382
13383 #. type: textblock
13384 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
13385 msgid ""
13386 "This command removes all LVM logical volumes, volume groups and physical "
13387 "volumes."
13388 msgstr ""
13389
13390 #. type: =head2
13391 #: ../fish/guestfish-actions.pod:3039
13392 msgid "lvm-set-filter"
13393 msgstr "lvm-set-filter"
13394
13395 #. type: verbatim
13396 #: ../fish/guestfish-actions.pod:3041
13397 #, no-wrap
13398 msgid ""
13399 " lvm-set-filter 'devices ...'\n"
13400 "\n"
13401 msgstr ""
13402 " lvm-set-filter 'пристрої...'\n"
13403 "\n"
13404
13405 #. type: textblock
13406 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
13407 msgid ""
13408 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13409 "block devices in the list C<devices>, and will ignore all other attached "
13410 "block devices."
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
13415 msgid ""
13416 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13417 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13418 "there are two types of duplication possible: either cloned PVs/VGs which "
13419 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13420 "same name.  In normal operation you cannot create this situation, but you "
13421 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13422 "inside the LVM metadata."
13423 msgstr ""
13424
13425 #. type: textblock
13426 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
13427 msgid "You can filter whole block devices or individual partitions."
13428 msgstr ""
13429
13430 #. type: textblock
13431 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
13432 msgid ""
13433 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13434 "filesystem), even if you are not filtering out that VG."
13435 msgstr ""
13436
13437 #. type: =head2
13438 #: ../fish/guestfish-actions.pod:3066
13439 msgid "lvremove"
13440 msgstr "lvremove"
13441
13442 #. type: verbatim
13443 #: ../fish/guestfish-actions.pod:3068
13444 #, no-wrap
13445 msgid ""
13446 " lvremove device\n"
13447 "\n"
13448 msgstr ""
13449 " lvremove пристрій\n"
13450 "\n"
13451
13452 #. type: textblock
13453 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
13454 msgid ""
13455 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13456 "LV, such as C</dev/VG/LV>."
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
13461 msgid ""
13462 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13463 "dev/VG>."
13464 msgstr ""
13465
13466 #. type: =head2
13467 #: ../fish/guestfish-actions.pod:3076
13468 msgid "lvrename"
13469 msgstr "lvrename"
13470
13471 #. type: verbatim
13472 #: ../fish/guestfish-actions.pod:3078
13473 #, no-wrap
13474 msgid ""
13475 " lvrename logvol newlogvol\n"
13476 "\n"
13477 msgstr ""
13478
13479 #. type: textblock
13480 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
13481 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13482 msgstr ""
13483
13484 #. type: =head2
13485 #: ../fish/guestfish-actions.pod:3082
13486 msgid "lvresize"
13487 msgstr "lvresize"
13488
13489 #. type: verbatim
13490 #: ../fish/guestfish-actions.pod:3084
13491 #, no-wrap
13492 msgid ""
13493 " lvresize device mbytes\n"
13494 "\n"
13495 msgstr ""
13496
13497 #. type: textblock
13498 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
13499 msgid ""
13500 "This resizes (expands or shrinks) an existing LVM logical volume to "
13501 "C<mbytes>.  When reducing, data in the reduced part is lost."
13502 msgstr ""
13503
13504 #. type: =head2
13505 #: ../fish/guestfish-actions.pod:3090
13506 msgid "lvresize-free"
13507 msgstr "lvresize-free"
13508
13509 #. type: verbatim
13510 #: ../fish/guestfish-actions.pod:3092
13511 #, no-wrap
13512 msgid ""
13513 " lvresize-free lv percent\n"
13514 "\n"
13515 msgstr ""
13516
13517 #. type: textblock
13518 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
13519 msgid ""
13520 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13521 "remaining free space in the volume group.  Commonly you would call this with "
13522 "pc = 100 which expands the logical volume as much as possible, using all "
13523 "remaining free space in the volume group."
13524 msgstr ""
13525
13526 #. type: =head2
13527 #: ../fish/guestfish-actions.pod:3100
13528 msgid "lvs"
13529 msgstr "lvs"
13530
13531 #. type: verbatim
13532 #: ../fish/guestfish-actions.pod:3102
13533 #, no-wrap
13534 msgid ""
13535 " lvs\n"
13536 "\n"
13537 msgstr ""
13538 " lvs\n"
13539 "\n"
13540
13541 #. type: textblock
13542 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
13543 msgid ""
13544 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13545 "(8)> command."
13546 msgstr ""
13547
13548 #. type: textblock
13549 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
13550 msgid ""
13551 "This returns a list of the logical volume device names (eg. C</dev/"
13552 "VolGroup00/LogVol00>)."
13553 msgstr ""
13554
13555 #. type: textblock
13556 #: ../fish/guestfish-actions.pod:3110
13557 msgid "See also L</lvs-full>, L</list-filesystems>."
13558 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
13559
13560 #. type: =head2
13561 #: ../fish/guestfish-actions.pod:3112
13562 msgid "lvs-full"
13563 msgstr "lvs-full"
13564
13565 #. type: verbatim
13566 #: ../fish/guestfish-actions.pod:3114
13567 #, no-wrap
13568 msgid ""
13569 " lvs-full\n"
13570 "\n"
13571 msgstr ""
13572 " lvs-full\n"
13573 "\n"
13574
13575 #. type: textblock
13576 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
13577 msgid ""
13578 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13579 "(8)> command.  The \"full\" version includes all fields."
13580 msgstr ""
13581
13582 #. type: =head2
13583 #: ../fish/guestfish-actions.pod:3119
13584 msgid "lvuuid"
13585 msgstr "lvuuid"
13586
13587 #. type: verbatim
13588 #: ../fish/guestfish-actions.pod:3121
13589 #, no-wrap
13590 msgid ""
13591 " lvuuid device\n"
13592 "\n"
13593 msgstr ""
13594 " lvuuid пристрій\n"
13595 "\n"
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
13599 msgid "This command returns the UUID of the LVM LV C<device>."
13600 msgstr ""
13601
13602 #. type: =head2
13603 #: ../fish/guestfish-actions.pod:3125
13604 msgid "lxattrlist"
13605 msgstr "lxattrlist"
13606
13607 #. type: verbatim
13608 #: ../fish/guestfish-actions.pod:3127
13609 #, no-wrap
13610 msgid ""
13611 " lxattrlist path 'names ...'\n"
13612 "\n"
13613 msgstr ""
13614
13615 #. type: textblock
13616 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
13617 msgid ""
13618 "This call allows you to get the extended attributes of multiple files, where "
13619 "all files are in the directory C<path>.  C<names> is the list of files from "
13620 "this directory."
13621 msgstr ""
13622
13623 #. type: textblock
13624 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
13625 msgid ""
13626 "On return you get a flat list of xattr structs which must be interpreted "
13627 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13628 "C<attrval> in this struct is zero-length to indicate there was an error "
13629 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13630 "number (the number of following attributes for this file, which could be C<"
13631 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13632 "for the first named file.  This repeats for the second and subsequent files."
13633 msgstr ""
13634
13635 #. type: textblock
13636 #: ../fish/guestfish-actions.pod:3143
13637 msgid ""
13638 "This call is intended for programs that want to efficiently list a directory "
13639 "contents without making many round-trips.  See also L</lstatlist> for a "
13640 "similarly efficient call for getting standard stats.  Very long directory "
13641 "listings might cause the protocol message size to be exceeded, causing this "
13642 "call to fail.  The caller must split up such requests into smaller groups of "
13643 "names."
13644 msgstr ""
13645
13646 #. type: =head2
13647 #: ../fish/guestfish-actions.pod:3151
13648 msgid "mkdir"
13649 msgstr "mkdir"
13650
13651 #. type: verbatim
13652 #: ../fish/guestfish-actions.pod:3153
13653 #, no-wrap
13654 msgid ""
13655 " mkdir path\n"
13656 "\n"
13657 msgstr ""
13658 " mkdir шлях\n"
13659 "\n"
13660
13661 #. type: textblock
13662 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
13663 msgid "Create a directory named C<path>."
13664 msgstr ""
13665
13666 #. type: =head2
13667 #: ../fish/guestfish-actions.pod:3157
13668 msgid "mkdir-mode"
13669 msgstr "mkdir-mode"
13670
13671 #. type: verbatim
13672 #: ../fish/guestfish-actions.pod:3159
13673 #, no-wrap
13674 msgid ""
13675 " mkdir-mode path mode\n"
13676 "\n"
13677 msgstr ""
13678 " mkdir-mode шлях режим\n"
13679 "\n"
13680
13681 #. type: textblock
13682 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
13683 msgid ""
13684 "This command creates a directory, setting the initial permissions of the "
13685 "directory to C<mode>."
13686 msgstr ""
13687
13688 #. type: textblock
13689 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
13690 msgid ""
13691 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13692 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13693 "other ways."
13694 msgstr ""
13695
13696 #. type: textblock
13697 #: ../fish/guestfish-actions.pod:3168
13698 msgid "See also L</mkdir>, L</umask>"
13699 msgstr "Див. також L</mkdir>, L</umask>"
13700
13701 #. type: =head2
13702 #: ../fish/guestfish-actions.pod:3170
13703 msgid "mkdir-p"
13704 msgstr "mkdir-p"
13705
13706 #. type: verbatim
13707 #: ../fish/guestfish-actions.pod:3172
13708 #, no-wrap
13709 msgid ""
13710 " mkdir-p path\n"
13711 "\n"
13712 msgstr ""
13713 " mkdir-p шлях\n"
13714 "\n"
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
13718 msgid ""
13719 "Create a directory named C<path>, creating any parent directories as "
13720 "necessary.  This is like the C<mkdir -p> shell command."
13721 msgstr ""
13722
13723 #. type: =head2
13724 #: ../fish/guestfish-actions.pod:3177
13725 msgid "mkdtemp"
13726 msgstr "mkdtemp"
13727
13728 #. type: verbatim
13729 #: ../fish/guestfish-actions.pod:3179
13730 #, no-wrap
13731 msgid ""
13732 " mkdtemp template\n"
13733 "\n"
13734 msgstr ""
13735 " mkdtemp шаблон\n"
13736 "\n"
13737
13738 #. type: textblock
13739 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
13740 msgid ""
13741 "This command creates a temporary directory.  The C<template> parameter "
13742 "should be a full pathname for the temporary directory name with the final "
13743 "six characters being \"XXXXXX\"."
13744 msgstr ""
13745
13746 #. type: textblock
13747 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
13748 msgid ""
13749 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13750 "being suitable for Windows filesystems."
13751 msgstr ""
13752
13753 #. type: textblock
13754 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
13755 msgid "The name of the temporary directory that was created is returned."
13756 msgstr ""
13757
13758 #. type: textblock
13759 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
13760 msgid "The temporary directory is created with mode 0700 and is owned by root."
13761 msgstr ""
13762
13763 #. type: textblock
13764 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
13765 msgid ""
13766 "The caller is responsible for deleting the temporary directory and its "
13767 "contents after use."
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
13772 msgid "See also: L<mkdtemp(3)>"
13773 msgstr "Див. також L<mkdtemp(3)>"
13774
13775 #. type: =head2
13776 #: ../fish/guestfish-actions.pod:3200
13777 msgid "mke2fs-J"
13778 msgstr "mke2fs-J"
13779
13780 #. type: verbatim
13781 #: ../fish/guestfish-actions.pod:3202
13782 #, no-wrap
13783 msgid ""
13784 " mke2fs-J fstype blocksize device journal\n"
13785 "\n"
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
13790 msgid ""
13791 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13792 "C<journal>.  It is equivalent to the command:"
13793 msgstr ""
13794
13795 #. type: verbatim
13796 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
13797 #, no-wrap
13798 msgid ""
13799 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13800 "\n"
13801 msgstr ""
13802 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
13803 "\n"
13804
13805 #. type: textblock
13806 #: ../fish/guestfish-actions.pod:3210
13807 msgid "See also L</mke2journal>."
13808 msgstr "Див. також L</mke2journal>."
13809
13810 #. type: =head2
13811 #: ../fish/guestfish-actions.pod:3212
13812 msgid "mke2fs-JL"
13813 msgstr "mke2fs-JL"
13814
13815 #. type: verbatim
13816 #: ../fish/guestfish-actions.pod:3214
13817 #, no-wrap
13818 msgid ""
13819 " mke2fs-JL fstype blocksize device label\n"
13820 "\n"
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
13825 msgid ""
13826 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13827 "the journal labeled C<label>."
13828 msgstr ""
13829
13830 #. type: textblock
13831 #: ../fish/guestfish-actions.pod:3219
13832 msgid "See also L</mke2journal-L>."
13833 msgstr "Див. також L</mke2journal-L>."
13834
13835 #. type: =head2
13836 #: ../fish/guestfish-actions.pod:3221
13837 msgid "mke2fs-JU"
13838 msgstr "mke2fs-JU"
13839
13840 #. type: verbatim
13841 #: ../fish/guestfish-actions.pod:3223
13842 #, no-wrap
13843 msgid ""
13844 " mke2fs-JU fstype blocksize device uuid\n"
13845 "\n"
13846 msgstr ""
13847
13848 #. type: textblock
13849 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
13850 msgid ""
13851 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13852 "the journal with UUID C<uuid>."
13853 msgstr ""
13854
13855 #. type: textblock
13856 #: ../fish/guestfish-actions.pod:3228
13857 msgid "See also L</mke2journal-U>."
13858 msgstr "Див. також L</mke2journal-U>."
13859
13860 #. type: =head2
13861 #: ../fish/guestfish-actions.pod:3230
13862 msgid "mke2journal"
13863 msgstr "mke2journal"
13864
13865 #. type: verbatim
13866 #: ../fish/guestfish-actions.pod:3232
13867 #, no-wrap
13868 msgid ""
13869 " mke2journal blocksize device\n"
13870 "\n"
13871 msgstr ""
13872
13873 #. type: textblock
13874 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
13875 msgid ""
13876 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13877 "command:"
13878 msgstr ""
13879
13880 #. type: verbatim
13881 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
13882 #, no-wrap
13883 msgid ""
13884 " mke2fs -O journal_dev -b blocksize device\n"
13885 "\n"
13886 msgstr ""
13887
13888 #. type: =head2
13889 #: ../fish/guestfish-actions.pod:3239
13890 msgid "mke2journal-L"
13891 msgstr "mke2journal-L"
13892
13893 #. type: verbatim
13894 #: ../fish/guestfish-actions.pod:3241
13895 #, no-wrap
13896 msgid ""
13897 " mke2journal-L blocksize label device\n"
13898 "\n"
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
13903 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13904 msgstr ""
13905
13906 #. type: =head2
13907 #: ../fish/guestfish-actions.pod:3245
13908 msgid "mke2journal-U"
13909 msgstr "mke2journal-U"
13910
13911 #. type: verbatim
13912 #: ../fish/guestfish-actions.pod:3247
13913 #, no-wrap
13914 msgid ""
13915 " mke2journal-U blocksize uuid device\n"
13916 "\n"
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
13921 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13922 msgstr ""
13923
13924 #. type: =head2
13925 #: ../fish/guestfish-actions.pod:3251
13926 msgid "mkfifo"
13927 msgstr "mkfifo"
13928
13929 #. type: verbatim
13930 #: ../fish/guestfish-actions.pod:3253
13931 #, no-wrap
13932 msgid ""
13933 " mkfifo mode path\n"
13934 "\n"
13935 msgstr ""
13936 " mkfifo режим шлях\n"
13937 "\n"
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:3255
13941 msgid ""
13942 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13943 "is just a convenient wrapper around L</mknod>."
13944 msgstr ""
13945
13946 #. type: =head2
13947 #: ../fish/guestfish-actions.pod:3261
13948 msgid "mkfs"
13949 msgstr "mkfs"
13950
13951 #. type: verbatim
13952 #: ../fish/guestfish-actions.pod:3263
13953 #, no-wrap
13954 msgid ""
13955 " mkfs fstype device\n"
13956 "\n"
13957 msgstr ""
13958 " mkfs тип_файлової_системи пристрій\n"
13959 "\n"
13960
13961 #. type: textblock
13962 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
13963 msgid ""
13964 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13965 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13966 msgstr ""
13967
13968 #. type: =head2
13969 #: ../fish/guestfish-actions.pod:3269
13970 msgid "mkfs-b"
13971 msgstr "mkfs-b"
13972
13973 #. type: verbatim
13974 #: ../fish/guestfish-actions.pod:3271
13975 #, no-wrap
13976 msgid ""
13977 " mkfs-b fstype blocksize device\n"
13978 "\n"
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:3273
13983 msgid ""
13984 "This call is similar to L</mkfs>, but it allows you to control the block "
13985 "size of the resulting filesystem.  Supported block sizes depend on the "
13986 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13987 msgstr ""
13988
13989 #. type: textblock
13990 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305
13991 #: ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
13992 msgid ""
13993 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13994 "cluster size."
13995 msgstr ""
13996
13997 #. type: textblock
13998 #: ../fish/guestfish-actions.pod:3281
13999 msgid ""
14000 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
14001 "instead."
14002 msgstr ""
14003
14004 #. type: =head2
14005 #: ../fish/guestfish-actions.pod:3288
14006 msgid "mkfs-opts"
14007 msgstr "mkfs-opts"
14008
14009 #. type: verbatim
14010 #: ../fish/guestfish-actions.pod:3290
14011 #, no-wrap
14012 msgid ""
14013 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
14014 "\n"
14015 msgstr ""
14016
14017 #. type: textblock
14018 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
14019 msgid ""
14020 "This function creates a filesystem on C<device>.  The filesystem type is "
14021 "C<fstype>, for example C<ext3>."
14022 msgstr ""
14023
14024 #. type: =item
14025 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
14026 msgid "C<blocksize>"
14027 msgstr "C<blocksize>"
14028
14029 #. type: textblock
14030 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
14031 msgid ""
14032 "The filesystem block size.  Supported block sizes depend on the filesystem "
14033 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14034 "filesystems."
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
14039 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14040 msgstr ""
14041
14042 #. type: =item
14043 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
14044 msgid "C<features>"
14045 msgstr "C<features>"
14046
14047 #. type: textblock
14048 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
14049 msgid "This passes the I<-O> parameter to the external mkfs program."
14050 msgstr ""
14051
14052 #. type: textblock
14053 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
14054 msgid ""
14055 "For certain filesystem types, this allows extra filesystem features to be "
14056 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14057 msgstr ""
14058
14059 #. type: textblock
14060 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
14061 msgid ""
14062 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14063 "type."
14064 msgstr ""
14065
14066 #. type: =item
14067 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
14068 msgid "C<inode>"
14069 msgstr "C<inode>"
14070
14071 #. type: textblock
14072 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
14073 msgid ""
14074 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
14075 "sets the inode size (only for ext2/3/4 filesystems at present)."
14076 msgstr ""
14077
14078 #. type: =item
14079 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
14080 msgid "C<sectorsize>"
14081 msgstr "C<sectorsize>"
14082
14083 #. type: textblock
14084 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
14085 msgid ""
14086 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14087 "sets sector size for ufs filesystem."
14088 msgstr ""
14089
14090 #. type: =head2
14091 #: ../fish/guestfish-actions.pod:3335
14092 msgid "mkmountpoint"
14093 msgstr "mkmountpoint"
14094
14095 #. type: verbatim
14096 #: ../fish/guestfish-actions.pod:3337
14097 #, no-wrap
14098 msgid ""
14099 " mkmountpoint exemptpath\n"
14100 "\n"
14101 msgstr ""
14102
14103 #. type: textblock
14104 #: ../fish/guestfish-actions.pod:3339
14105 msgid ""
14106 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
14107 "to create extra mountpoints before mounting the first filesystem."
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
14112 msgid ""
14113 "These calls are I<only> necessary in some very limited circumstances, mainly "
14114 "the case where you want to mount a mix of unrelated and/or read-only "
14115 "filesystems together."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
14120 msgid ""
14121 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14122 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14123 "inside that.  You can unpack this as follows in guestfish:"
14124 msgstr ""
14125
14126 #. type: verbatim
14127 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
14128 #, no-wrap
14129 msgid ""
14130 " add-ro Fedora-11-i686-Live.iso\n"
14131 " run\n"
14132 " mkmountpoint /cd\n"
14133 " mkmountpoint /sqsh\n"
14134 " mkmountpoint /ext3fs\n"
14135 " mount /dev/sda /cd\n"
14136 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14137 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14138 "\n"
14139 msgstr ""
14140 " add-ro Fedora-11-i686-Live.iso\n"
14141 " run\n"
14142 " mkmountpoint /cd\n"
14143 " mkmountpoint /sqsh\n"
14144 " mkmountpoint /ext3fs\n"
14145 " mount /dev/sda /cd\n"
14146 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14147 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14148 "\n"
14149
14150 #. type: textblock
14151 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
14152 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:3363
14157 msgid ""
14158 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
14159 "unexpected errors if you try to mix these calls.  It is safest to manually "
14160 "unmount filesystems and remove mountpoints after use."
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3367
14165 msgid ""
14166 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
14167 "for this to work for manual mountpoints, you must ensure that the innermost "
14168 "mountpoints have the longest pathnames, as in the example code above."
14169 msgstr ""
14170
14171 #. type: textblock
14172 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
14173 msgid ""
14174 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14175 msgstr ""
14176
14177 #. type: textblock
14178 #: ../fish/guestfish-actions.pod:3374
14179 msgid ""
14180 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
14181 "L</umount-all> to be called when the handle is closed which can also trigger "
14182 "these issues."
14183 msgstr ""
14184
14185 #. type: =head2
14186 #: ../fish/guestfish-actions.pod:3378
14187 msgid "mknod"
14188 msgstr "mknod"
14189
14190 #. type: verbatim
14191 #: ../fish/guestfish-actions.pod:3380
14192 #, no-wrap
14193 msgid ""
14194 " mknod mode devmajor devminor path\n"
14195 "\n"
14196 msgstr ""
14197
14198 #. type: textblock
14199 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
14200 msgid ""
14201 "This call creates block or character special devices, or named pipes (FIFOs)."
14202 msgstr ""
14203
14204 #. type: textblock
14205 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
14206 msgid ""
14207 "The C<mode> parameter should be the mode, using the standard constants.  "
14208 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14209 "used when creating block and character special devices."
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../fish/guestfish-actions.pod:3390
14214 msgid ""
14215 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14216 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14217 "regular file).  These constants are available in the standard Linux header "
14218 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14219 "wrappers around this command which bitwise OR in the appropriate constant "
14220 "for you."
14221 msgstr ""
14222
14223 #. type: =head2
14224 #: ../fish/guestfish-actions.pod:3400
14225 msgid "mknod-b"
14226 msgstr "mknod-b"
14227
14228 #. type: verbatim
14229 #: ../fish/guestfish-actions.pod:3402
14230 #, no-wrap
14231 msgid ""
14232 " mknod-b mode devmajor devminor path\n"
14233 "\n"
14234 msgstr ""
14235
14236 #. type: textblock
14237 #: ../fish/guestfish-actions.pod:3404
14238 msgid ""
14239 "This call creates a block device node called C<path> with mode C<mode> and "
14240 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14241 "wrapper around L</mknod>."
14242 msgstr ""
14243
14244 #. type: =head2
14245 #: ../fish/guestfish-actions.pod:3410
14246 msgid "mknod-c"
14247 msgstr "mknod-c"
14248
14249 #. type: verbatim
14250 #: ../fish/guestfish-actions.pod:3412
14251 #, no-wrap
14252 msgid ""
14253 " mknod-c mode devmajor devminor path\n"
14254 "\n"
14255 msgstr ""
14256
14257 #. type: textblock
14258 #: ../fish/guestfish-actions.pod:3414
14259 msgid ""
14260 "This call creates a char device node called C<path> with mode C<mode> and "
14261 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14262 "wrapper around L</mknod>."
14263 msgstr ""
14264
14265 #. type: =head2
14266 #: ../fish/guestfish-actions.pod:3420
14267 msgid "mkswap"
14268 msgstr "mkswap"
14269
14270 #. type: verbatim
14271 #: ../fish/guestfish-actions.pod:3422
14272 #, no-wrap
14273 msgid ""
14274 " mkswap device\n"
14275 "\n"
14276 msgstr ""
14277 " mkswap пристрій\n"
14278 "\n"
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
14282 msgid "Create a swap partition on C<device>."
14283 msgstr ""
14284
14285 #. type: =head2
14286 #: ../fish/guestfish-actions.pod:3426
14287 msgid "mkswap-L"
14288 msgstr "mkswap-L"
14289
14290 #. type: verbatim
14291 #: ../fish/guestfish-actions.pod:3428
14292 #, no-wrap
14293 msgid ""
14294 " mkswap-L label device\n"
14295 "\n"
14296 msgstr ""
14297 " mkswap-L мітка пристрій\n"
14298 "\n"
14299
14300 #. type: textblock
14301 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
14302 msgid "Create a swap partition on C<device> with label C<label>."
14303 msgstr ""
14304
14305 #. type: textblock
14306 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
14307 msgid ""
14308 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14309 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14310 "or swap tools."
14311 msgstr ""
14312
14313 #. type: =head2
14314 #: ../fish/guestfish-actions.pod:3436
14315 msgid "mkswap-U"
14316 msgstr "mkswap-U"
14317
14318 #. type: verbatim
14319 #: ../fish/guestfish-actions.pod:3438
14320 #, no-wrap
14321 msgid ""
14322 " mkswap-U uuid device\n"
14323 "\n"
14324 msgstr ""
14325 " mkswap-U uuid пристрій\n"
14326 "\n"
14327
14328 #. type: textblock
14329 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
14330 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14331 msgstr ""
14332
14333 #. type: =head2
14334 #: ../fish/guestfish-actions.pod:3442
14335 msgid "mkswap-file"
14336 msgstr "mkswap-file"
14337
14338 #. type: verbatim
14339 #: ../fish/guestfish-actions.pod:3444
14340 #, no-wrap
14341 msgid ""
14342 " mkswap-file path\n"
14343 "\n"
14344 msgstr ""
14345 " mkswap-file шлях\n"
14346 "\n"
14347
14348 #. type: textblock
14349 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
14350 msgid "Create a swap file."
14351 msgstr "Створити файл резервної пам’яті."
14352
14353 #. type: textblock
14354 #: ../fish/guestfish-actions.pod:3448
14355 msgid ""
14356 "This command just writes a swap file signature to an existing file.  To "
14357 "create the file itself, use something like L</fallocate>."
14358 msgstr ""
14359
14360 #. type: =head2
14361 #: ../fish/guestfish-actions.pod:3451
14362 msgid "modprobe"
14363 msgstr "modprobe"
14364
14365 #. type: verbatim
14366 #: ../fish/guestfish-actions.pod:3453
14367 #, no-wrap
14368 msgid ""
14369 " modprobe modulename\n"
14370 "\n"
14371 msgstr ""
14372 " modprobe назва_модуля\n"
14373 "\n"
14374
14375 #. type: textblock
14376 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
14377 msgid "This loads a kernel module in the appliance."
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
14382 msgid ""
14383 "The kernel module must have been whitelisted when libguestfs was built (see "
14384 "C<appliance/kmod.whitelist.in> in the source)."
14385 msgstr ""
14386
14387 #. type: =head2
14388 #: ../fish/guestfish-actions.pod:3460
14389 msgid "mount"
14390 msgstr "mount"
14391
14392 #. type: verbatim
14393 #: ../fish/guestfish-actions.pod:3462
14394 #, no-wrap
14395 msgid ""
14396 " mount device mountpoint\n"
14397 "\n"
14398 msgstr ""
14399 " mount пристрій точка_монтування\n"
14400 "\n"
14401
14402 #. type: textblock
14403 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
14404 msgid ""
14405 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14406 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14407 "those block devices contain partitions, they will have the usual names (eg. "
14408 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14409 msgstr ""
14410
14411 #. type: textblock
14412 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
14413 msgid ""
14414 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14415 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14416 "mounted on directories which already exist."
14417 msgstr ""
14418
14419 #. type: textblock
14420 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
14421 msgid ""
14422 "The mounted filesystem is writable, if we have sufficient permissions on the "
14423 "underlying device."
14424 msgstr ""
14425
14426 #. type: textblock
14427 #: ../fish/guestfish-actions.pod:3478
14428 msgid ""
14429 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14430 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
14431 "problems for users.  If your program might need to work with older versions "
14432 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14433 "first parameter if you don't want any options)."
14434 msgstr ""
14435
14436 #. type: =head2
14437 #: ../fish/guestfish-actions.pod:3485
14438 msgid "mount-9p"
14439 msgstr ""
14440
14441 #. type: verbatim
14442 #: ../fish/guestfish-actions.pod:3487
14443 #, no-wrap
14444 msgid ""
14445 " mount-9p mounttag mountpoint [options:..]\n"
14446 "\n"
14447 msgstr ""
14448
14449 #. type: textblock
14450 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
14451 msgid ""
14452 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14453 "C<mountpoint>."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
14458 msgid ""
14459 "If required, C<trans=virtio> will be automatically added to the options.  "
14460 "Any other options required can be passed in the optional C<options> "
14461 "parameter."
14462 msgstr ""
14463
14464 #. type: =head2
14465 #: ../fish/guestfish-actions.pod:3498
14466 msgid "mount-loop"
14467 msgstr "mount-loop"
14468
14469 #. type: verbatim
14470 #: ../fish/guestfish-actions.pod:3500
14471 #, no-wrap
14472 msgid ""
14473 " mount-loop file mountpoint\n"
14474 "\n"
14475 msgstr ""
14476
14477 #. type: textblock
14478 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
14479 msgid ""
14480 "This command lets you mount C<file> (a filesystem image in a file) on a "
14481 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14482 "mountpoint>."
14483 msgstr ""
14484
14485 #. type: =head2
14486 #: ../fish/guestfish-actions.pod:3506
14487 msgid "mount-options"
14488 msgstr "mount-options"
14489
14490 #. type: verbatim
14491 #: ../fish/guestfish-actions.pod:3508
14492 #, no-wrap
14493 msgid ""
14494 " mount-options options device mountpoint\n"
14495 "\n"
14496 msgstr ""
14497
14498 #. type: textblock
14499 #: ../fish/guestfish-actions.pod:3510
14500 msgid ""
14501 "This is the same as the L</mount> command, but it allows you to set the "
14502 "mount options as for the L<mount(8)> I<-o> flag."
14503 msgstr ""
14504
14505 #. type: textblock
14506 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
14507 msgid ""
14508 "If the C<options> parameter is an empty string, then no options are passed "
14509 "(all options default to whatever the filesystem uses)."
14510 msgstr ""
14511
14512 #. type: =head2
14513 #: ../fish/guestfish-actions.pod:3518
14514 msgid "mount-ro"
14515 msgstr "mount-ro"
14516
14517 #. type: verbatim
14518 #: ../fish/guestfish-actions.pod:3520
14519 #, no-wrap
14520 msgid ""
14521 " mount-ro device mountpoint\n"
14522 "\n"
14523 msgstr ""
14524 " mount-ro пристрій точка_монтування\n"
14525 "\n"
14526
14527 #. type: textblock
14528 #: ../fish/guestfish-actions.pod:3522
14529 msgid ""
14530 "This is the same as the L</mount> command, but it mounts the filesystem with "
14531 "the read-only (I<-o ro>) flag."
14532 msgstr ""
14533
14534 #. type: =head2
14535 #: ../fish/guestfish-actions.pod:3525
14536 msgid "mount-vfs"
14537 msgstr "mount-vfs"
14538
14539 #. type: verbatim
14540 #: ../fish/guestfish-actions.pod:3527
14541 #, no-wrap
14542 msgid ""
14543 " mount-vfs options vfstype device mountpoint\n"
14544 "\n"
14545 msgstr ""
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:3529
14549 msgid ""
14550 "This is the same as the L</mount> command, but it allows you to set both the "
14551 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14552 msgstr ""
14553
14554 #. type: =head2
14555 #: ../fish/guestfish-actions.pod:3533
14556 msgid "mountpoints"
14557 msgstr "mountpoints"
14558
14559 #. type: verbatim
14560 #: ../fish/guestfish-actions.pod:3535
14561 #, no-wrap
14562 msgid ""
14563 " mountpoints\n"
14564 "\n"
14565 msgstr ""
14566 " mountpoints\n"
14567 "\n"
14568
14569 #. type: textblock
14570 #: ../fish/guestfish-actions.pod:3537
14571 msgid ""
14572 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14573 "This one returns a hash table (map) of device name to directory where the "
14574 "device is mounted."
14575 msgstr ""
14576
14577 #. type: =head2
14578 #: ../fish/guestfish-actions.pod:3541
14579 msgid "mounts"
14580 msgstr "mounts"
14581
14582 #. type: verbatim
14583 #: ../fish/guestfish-actions.pod:3543
14584 #, no-wrap
14585 msgid ""
14586 " mounts\n"
14587 "\n"
14588 msgstr ""
14589 " mounts\n"
14590 "\n"
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
14594 msgid ""
14595 "This returns the list of currently mounted filesystems.  It returns the list "
14596 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
14601 msgid "Some internal mounts are not shown."
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:3550
14606 msgid "See also: L</mountpoints>"
14607 msgstr "Див. також L</mountpoints>"
14608
14609 #. type: =head2
14610 #: ../fish/guestfish-actions.pod:3552
14611 msgid "mv"
14612 msgstr "mv"
14613
14614 #. type: verbatim
14615 #: ../fish/guestfish-actions.pod:3554
14616 #, no-wrap
14617 msgid ""
14618 " mv src dest\n"
14619 "\n"
14620 msgstr ""
14621 " mv джерело призначення\n"
14622 "\n"
14623
14624 #. type: textblock
14625 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
14626 msgid ""
14627 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14628 "destination filename or destination directory."
14629 msgstr ""
14630
14631 #. type: =head2
14632 #: ../fish/guestfish-actions.pod:3559
14633 msgid "ntfs-3g-probe"
14634 msgstr "ntfs-3g-probe"
14635
14636 #. type: verbatim
14637 #: ../fish/guestfish-actions.pod:3561
14638 #, no-wrap
14639 msgid ""
14640 " ntfs-3g-probe true|false device\n"
14641 "\n"
14642 msgstr ""
14643
14644 #. type: textblock
14645 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
14646 msgid ""
14647 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14648 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14649 "write, and some cannot be mounted at all)."
14650 msgstr ""
14651
14652 #. type: textblock
14653 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
14654 msgid ""
14655 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14656 "can be mounted read-write.  Set it to false if you want to test if the "
14657 "volume can be mounted read-only."
14658 msgstr ""
14659
14660 #. type: textblock
14661 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
14662 msgid ""
14663 "The return value is an integer which C<0> if the operation would succeed, or "
14664 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14665 msgstr ""
14666
14667 #. type: =head2
14668 #: ../fish/guestfish-actions.pod:3575
14669 msgid "ntfsresize"
14670 msgstr "ntfsresize"
14671
14672 #. type: verbatim
14673 #: ../fish/guestfish-actions.pod:3577
14674 #, no-wrap
14675 msgid ""
14676 " ntfsresize device\n"
14677 "\n"
14678 msgstr ""
14679 " ntfsresize пристрій\n"
14680 "\n"
14681
14682 #. type: textblock
14683 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603
14684 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
14685 msgid ""
14686 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14687 "size of the underlying device."
14688 msgstr ""
14689
14690 #. type: textblock
14691 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
14692 msgid ""
14693 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14694 "consistency check (for safety).  You have to boot into Windows to perform "
14695 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14696 "resize filesystems which have been marked in this way.  So in effect it is "
14697 "not possible to call ntfsresize multiple times on a single filesystem "
14698 "without booting into Windows between each resize."
14699 msgstr ""
14700
14701 #. type: textblock
14702 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629
14703 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
14704 msgid "See also L<ntfsresize(8)>."
14705 msgstr "Див. також L<ntfsresize(8)>."
14706
14707 #. type: textblock
14708 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
14709 msgid ""
14710 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14711 "call instead."
14712 msgstr ""
14713
14714 #. type: =head2
14715 #: ../fish/guestfish-actions.pod:3599
14716 msgid "ntfsresize-opts"
14717 msgstr ""
14718
14719 #. type: verbatim
14720 #: ../fish/guestfish-actions.pod:3601
14721 #, no-wrap
14722 msgid ""
14723 " ntfsresize-opts device [size:N] [force:true|false]\n"
14724 "\n"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
14729 msgid ""
14730 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14731 "resized to fit the container (eg. partition)."
14732 msgstr ""
14733
14734 #. type: =item
14735 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
14736 msgid "C<force>"
14737 msgstr "C<force>"
14738
14739 #. type: textblock
14740 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
14741 msgid ""
14742 "If this option is true, then force the resize of the filesystem even if the "
14743 "filesystem is marked as requiring a consistency check."
14744 msgstr ""
14745
14746 #. type: textblock
14747 #: ../fish/guestfish-actions.pod:3620
14748 msgid ""
14749 "After the resize operation, the filesystem is always marked as requiring a "
14750 "consistency check (for safety).  You have to boot into Windows to perform "
14751 "this check and clear this condition.  If you I<don't> set the C<force> "
14752 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14753 "a single filesystem without booting into Windows between each resize."
14754 msgstr ""
14755
14756 #. type: =head2
14757 #: ../fish/guestfish-actions.pod:3633
14758 msgid "ntfsresize-size"
14759 msgstr "ntfsresize-size"
14760
14761 #. type: verbatim
14762 #: ../fish/guestfish-actions.pod:3635
14763 #, no-wrap
14764 msgid ""
14765 " ntfsresize-size device size\n"
14766 "\n"
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:3637
14771 msgid ""
14772 "This command is the same as L</ntfsresize> except that it allows you to "
14773 "specify the new size (in bytes) explicitly."
14774 msgstr ""
14775
14776 #. type: =head2
14777 #: ../fish/guestfish-actions.pod:3647
14778 msgid "part-add"
14779 msgstr "part-add"
14780
14781 #. type: verbatim
14782 #: ../fish/guestfish-actions.pod:3649
14783 #, no-wrap
14784 msgid ""
14785 " part-add device prlogex startsect endsect\n"
14786 "\n"
14787 msgstr ""
14788
14789 #. type: textblock
14790 #: ../fish/guestfish-actions.pod:3651
14791 msgid ""
14792 "This command adds a partition to C<device>.  If there is no partition table "
14793 "on the device, call L</part-init> first."
14794 msgstr ""
14795
14796 #. type: textblock
14797 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
14798 msgid ""
14799 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14800 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14801 "C<logical>) and C<e> (or C<extended>) partition types."
14802 msgstr ""
14803
14804 #. type: textblock
14805 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
14806 msgid ""
14807 "C<startsect> and C<endsect> are the start and end of the partition in "
14808 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14809 "from the end of the disk (C<-1> is the last sector)."
14810 msgstr ""
14811
14812 #. type: textblock
14813 #: ../fish/guestfish-actions.pod:3663
14814 msgid ""
14815 "Creating a partition which covers the whole disk is not so easy.  Use L</"
14816 "part-disk> to do that."
14817 msgstr ""
14818
14819 #. type: =head2
14820 #: ../fish/guestfish-actions.pod:3666
14821 msgid "part-del"
14822 msgstr "part-del"
14823
14824 #. type: verbatim
14825 #: ../fish/guestfish-actions.pod:3668
14826 #, no-wrap
14827 msgid ""
14828 " part-del device partnum\n"
14829 "\n"
14830 msgstr ""
14831
14832 #. type: textblock
14833 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
14834 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14835 msgstr ""
14836
14837 #. type: textblock
14838 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
14839 msgid ""
14840 "Note that in the case of MBR partitioning, deleting an extended partition "
14841 "also deletes any logical partitions it contains."
14842 msgstr ""
14843
14844 #. type: =head2
14845 #: ../fish/guestfish-actions.pod:3676
14846 msgid "part-disk"
14847 msgstr "part-disk"
14848
14849 #. type: verbatim
14850 #: ../fish/guestfish-actions.pod:3678
14851 #, no-wrap
14852 msgid ""
14853 " part-disk device parttype\n"
14854 "\n"
14855 msgstr ""
14856 " part-disk пристрій тип_розділу\n"
14857 "\n"
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:3680
14861 msgid ""
14862 "This command is simply a combination of L</part-init> followed by L</part-"
14863 "add> to create a single primary partition covering the whole disk."
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:3684
14868 msgid ""
14869 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14870 "possible values are described in L</part-init>."
14871 msgstr ""
14872
14873 #. type: =head2
14874 #: ../fish/guestfish-actions.pod:3687
14875 msgid "part-get-bootable"
14876 msgstr "part-get-bootable"
14877
14878 #. type: verbatim
14879 #: ../fish/guestfish-actions.pod:3689
14880 #, no-wrap
14881 msgid ""
14882 " part-get-bootable device partnum\n"
14883 "\n"
14884 msgstr ""
14885
14886 #. type: textblock
14887 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
14888 msgid ""
14889 "This command returns true if the partition C<partnum> on C<device> has the "
14890 "bootable flag set."
14891 msgstr ""
14892
14893 #. type: textblock
14894 #: ../fish/guestfish-actions.pod:3694
14895 msgid "See also L</part-set-bootable>."
14896 msgstr "Див. також L</part-set-bootable>."
14897
14898 #. type: =head2
14899 #: ../fish/guestfish-actions.pod:3696
14900 msgid "part-get-mbr-id"
14901 msgstr "part-get-mbr-id"
14902
14903 #. type: verbatim
14904 #: ../fish/guestfish-actions.pod:3698
14905 #, no-wrap
14906 msgid ""
14907 " part-get-mbr-id device partnum\n"
14908 "\n"
14909 msgstr ""
14910
14911 #. type: textblock
14912 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
14913 msgid ""
14914 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14915 "partition C<partnum>."
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
14920 msgid ""
14921 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14922 "undefined results for other partition table types (see L</part-get-"
14923 "parttype>)."
14924 msgstr ""
14925
14926 #. type: =head2
14927 #: ../fish/guestfish-actions.pod:3707
14928 msgid "part-get-parttype"
14929 msgstr "part-get-parttype"
14930
14931 #. type: verbatim
14932 #: ../fish/guestfish-actions.pod:3709
14933 #, no-wrap
14934 msgid ""
14935 " part-get-parttype device\n"
14936 "\n"
14937 msgstr ""
14938 " part-get-parttype пристрій\n"
14939 "\n"
14940
14941 #. type: textblock
14942 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
14943 msgid ""
14944 "This command examines the partition table on C<device> and returns the "
14945 "partition table type (format) being used."
14946 msgstr ""
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-actions.pod:3714
14950 msgid ""
14951 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14952 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14953 "possible, although unusual.  See L</part-init> for a full list."
14954 msgstr ""
14955
14956 #. type: =head2
14957 #: ../fish/guestfish-actions.pod:3719
14958 msgid "part-init"
14959 msgstr "part-init"
14960
14961 #. type: verbatim
14962 #: ../fish/guestfish-actions.pod:3721
14963 #, no-wrap
14964 msgid ""
14965 " part-init device parttype\n"
14966 "\n"
14967 msgstr ""
14968
14969 #. type: textblock
14970 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
14971 msgid ""
14972 "This creates an empty partition table on C<device> of one of the partition "
14973 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14974 "(for large disks)."
14975 msgstr ""
14976
14977 #. type: textblock
14978 #: ../fish/guestfish-actions.pod:3727
14979 msgid ""
14980 "Initially there are no partitions.  Following this, you should call L</part-"
14981 "add> for each partition required."
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
14986 msgid "Possible values for C<parttype> are:"
14987 msgstr ""
14988
14989 #. type: =item
14990 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
14991 msgid "B<efi>"
14992 msgstr "B<efi>"
14993
14994 #. type: =item
14995 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
14996 msgid "B<gpt>"
14997 msgstr "B<gpt>"
14998
14999 #. type: textblock
15000 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
15001 msgid "Intel EFI / GPT partition table."
15002 msgstr ""
15003
15004 #. type: textblock
15005 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
15006 msgid ""
15007 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15008 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15009 "the C<mbr> format."
15010 msgstr ""
15011
15012 #. type: =item
15013 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
15014 msgid "B<mbr>"
15015 msgstr "B<mbr>"
15016
15017 #. type: =item
15018 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
15019 msgid "B<msdos>"
15020 msgstr "B<msdos>"
15021
15022 #. type: textblock
15023 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
15024 msgid ""
15025 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15026 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15027 "TB.  For large disks we recommend using C<gpt>."
15028 msgstr ""
15029
15030 #. type: textblock
15031 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
15032 msgid ""
15033 "Other partition table types that may work but are not supported include:"
15034 msgstr ""
15035
15036 #. type: =item
15037 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
15038 msgid "B<aix>"
15039 msgstr "B<aix>"
15040
15041 #. type: textblock
15042 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
15043 msgid "AIX disk labels."
15044 msgstr "Мітки дисків AIX."
15045
15046 #. type: =item
15047 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
15048 msgid "B<amiga>"
15049 msgstr "B<amiga>"
15050
15051 #. type: =item
15052 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
15053 msgid "B<rdb>"
15054 msgstr "B<rdb>"
15055
15056 #. type: textblock
15057 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
15058 msgid "Amiga \"Rigid Disk Block\" format."
15059 msgstr "Формат \"Rigid Disk Block\" Amiga."
15060
15061 #. type: =item
15062 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
15063 msgid "B<bsd>"
15064 msgstr "B<bsd>"
15065
15066 #. type: textblock
15067 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
15068 msgid "BSD disk labels."
15069 msgstr "Мітки дисків BSD."
15070
15071 #. type: =item
15072 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
15073 msgid "B<dasd>"
15074 msgstr "B<dasd>"
15075
15076 #. type: textblock
15077 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
15078 msgid "DASD, used on IBM mainframes."
15079 msgstr "DASD, використовувалися у мейнфреймах IBM."
15080
15081 #. type: =item
15082 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
15083 msgid "B<dvh>"
15084 msgstr "B<dvh>"
15085
15086 #. type: textblock
15087 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
15088 msgid "MIPS/SGI volumes."
15089 msgstr "Томи MIPS/SGI."
15090
15091 #. type: =item
15092 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
15093 msgid "B<mac>"
15094 msgstr "B<mac>"
15095
15096 #. type: textblock
15097 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
15098 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15099 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15100
15101 #. type: =item
15102 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
15103 msgid "B<pc98>"
15104 msgstr "B<pc98>"
15105
15106 #. type: textblock
15107 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
15108 msgid "NEC PC-98 format, common in Japan apparently."
15109 msgstr "Формат NEC PC-98, поширений у Японії."
15110
15111 #. type: =item
15112 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
15113 msgid "B<sun>"
15114 msgstr "B<sun>"
15115
15116 #. type: textblock
15117 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
15118 msgid "Sun disk labels."
15119 msgstr "Мітки дисків Sun."
15120
15121 #. type: =head2
15122 #: ../fish/guestfish-actions.pod:3796
15123 msgid "part-list"
15124 msgstr "part-list"
15125
15126 #. type: verbatim
15127 #: ../fish/guestfish-actions.pod:3798
15128 #, no-wrap
15129 msgid ""
15130 " part-list device\n"
15131 "\n"
15132 msgstr ""
15133 " part-list device\n"
15134 "\n"
15135
15136 #. type: textblock
15137 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
15138 msgid ""
15139 "This command parses the partition table on C<device> and returns the list of "
15140 "partitions found."
15141 msgstr ""
15142
15143 #. type: textblock
15144 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
15145 msgid "The fields in the returned structure are:"
15146 msgstr ""
15147
15148 #. type: =item
15149 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
15150 msgid "B<part_num>"
15151 msgstr "B<part_num>"
15152
15153 #. type: textblock
15154 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
15155 msgid "Partition number, counting from 1."
15156 msgstr ""
15157
15158 #. type: =item
15159 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
15160 msgid "B<part_start>"
15161 msgstr "B<part_start>"
15162
15163 #. type: textblock
15164 #: ../fish/guestfish-actions.pod:3813
15165 msgid ""
15166 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15167 "the device's sector size, see L</blockdev-getss>."
15168 msgstr ""
15169
15170 #. type: =item
15171 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
15172 msgid "B<part_end>"
15173 msgstr "B<part_end>"
15174
15175 #. type: textblock
15176 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
15177 msgid "End of the partition in bytes."
15178 msgstr ""
15179
15180 #. type: =item
15181 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
15182 msgid "B<part_size>"
15183 msgstr "B<part_size>"
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
15187 msgid "Size of the partition in bytes."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../fish/guestfish-actions.pod:3826
15192 msgid "part-set-bootable"
15193 msgstr "part-set-bootable"
15194
15195 #. type: verbatim
15196 #: ../fish/guestfish-actions.pod:3828
15197 #, no-wrap
15198 msgid ""
15199 " part-set-bootable device partnum true|false\n"
15200 "\n"
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
15205 msgid ""
15206 "This sets the bootable flag on partition numbered C<partnum> on device "
15207 "C<device>.  Note that partitions are numbered from 1."
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
15212 msgid ""
15213 "The bootable flag is used by some operating systems (notably Windows) to "
15214 "determine which partition to boot from.  It is by no means universally "
15215 "recognized."
15216 msgstr ""
15217
15218 #. type: =head2
15219 #: ../fish/guestfish-actions.pod:3837
15220 msgid "part-set-mbr-id"
15221 msgstr "part-set-mbr-id"
15222
15223 #. type: verbatim
15224 #: ../fish/guestfish-actions.pod:3839
15225 #, no-wrap
15226 msgid ""
15227 " part-set-mbr-id device partnum idbyte\n"
15228 "\n"
15229 msgstr ""
15230
15231 #. type: textblock
15232 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
15233 msgid ""
15234 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15235 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15236 "documentation are in fact hexadecimal numbers, but usually documented "
15237 "without any leading \"0x\" which might be confusing."
15238 msgstr ""
15239
15240 #. type: =head2
15241 #: ../fish/guestfish-actions.pod:3851
15242 msgid "part-set-name"
15243 msgstr "part-set-name"
15244
15245 #. type: verbatim
15246 #: ../fish/guestfish-actions.pod:3853
15247 #, no-wrap
15248 msgid ""
15249 " part-set-name device partnum name\n"
15250 "\n"
15251 msgstr ""
15252
15253 #. type: textblock
15254 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
15255 msgid ""
15256 "This sets the partition name on partition numbered C<partnum> on device "
15257 "C<device>.  Note that partitions are numbered from 1."
15258 msgstr ""
15259
15260 #. type: textblock
15261 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
15262 msgid ""
15263 "The partition name can only be set on certain types of partition table.  "
15264 "This works on C<gpt> but not on C<mbr> partitions."
15265 msgstr ""
15266
15267 #. type: =head2
15268 #: ../fish/guestfish-actions.pod:3861
15269 msgid "part-to-dev"
15270 msgstr "part-to-dev"
15271
15272 #. type: verbatim
15273 #: ../fish/guestfish-actions.pod:3863
15274 #, no-wrap
15275 msgid ""
15276 " part-to-dev partition\n"
15277 "\n"
15278 msgstr ""
15279 " part-to-dev розділ\n"
15280 "\n"
15281
15282 #. type: textblock
15283 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
15284 msgid ""
15285 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15286 "partition number, returning the device name (eg. \"/dev/sdb\")."
15287 msgstr ""
15288
15289 #. type: textblock
15290 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
15291 msgid ""
15292 "The named partition must exist, for example as a string returned from L</"
15293 "list-partitions>."
15294 msgstr ""
15295
15296 #. type: textblock
15297 #: ../fish/guestfish-actions.pod:3872
15298 msgid "See also L</part-to-partnum>."
15299 msgstr ""
15300
15301 #. type: =head2
15302 #: ../fish/guestfish-actions.pod:3874
15303 msgid "part-to-partnum"
15304 msgstr ""
15305
15306 #. type: verbatim
15307 #: ../fish/guestfish-actions.pod:3876
15308 #, no-wrap
15309 msgid ""
15310 " part-to-partnum partition\n"
15311 "\n"
15312 msgstr ""
15313
15314 #. type: textblock
15315 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
15316 msgid ""
15317 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15318 "partition number (eg. C<1>)."
15319 msgstr ""
15320
15321 #. type: textblock
15322 #: ../fish/guestfish-actions.pod:3884
15323 msgid "See also L</part-to-dev>."
15324 msgstr ""
15325
15326 #. type: =head2
15327 #: ../fish/guestfish-actions.pod:3886
15328 msgid "ping-daemon"
15329 msgstr "ping-daemon"
15330
15331 #. type: verbatim
15332 #: ../fish/guestfish-actions.pod:3888
15333 #, no-wrap
15334 msgid ""
15335 " ping-daemon\n"
15336 "\n"
15337 msgstr ""
15338 " ping-daemon\n"
15339 "\n"
15340
15341 #. type: textblock
15342 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
15343 msgid ""
15344 "This is a test probe into the guestfs daemon running inside the qemu "
15345 "subprocess.  Calling this function checks that the daemon responds to the "
15346 "ping message, without affecting the daemon or attached block device(s) in "
15347 "any other way."
15348 msgstr ""
15349
15350 #. type: =head2
15351 #: ../fish/guestfish-actions.pod:3895
15352 msgid "pread"
15353 msgstr "pread"
15354
15355 #. type: verbatim
15356 #: ../fish/guestfish-actions.pod:3897
15357 #, no-wrap
15358 msgid ""
15359 " pread path count offset\n"
15360 "\n"
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
15365 msgid ""
15366 "This command lets you read part of a file.  It reads C<count> bytes of the "
15367 "file, starting at C<offset>, from file C<path>."
15368 msgstr ""
15369
15370 #. type: textblock
15371 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917
15372 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
15373 msgid ""
15374 "This may read fewer bytes than requested.  For further details see the "
15375 "L<pread(2)> system call."
15376 msgstr ""
15377
15378 #. type: textblock
15379 #: ../fish/guestfish-actions.pod:3905
15380 msgid "See also L</pwrite>, L</pread-device>."
15381 msgstr "Див. також L</pwrite>, L</pread-device>."
15382
15383 #. type: =head2
15384 #: ../fish/guestfish-actions.pod:3910
15385 msgid "pread-device"
15386 msgstr "pread-device"
15387
15388 #. type: verbatim
15389 #: ../fish/guestfish-actions.pod:3912
15390 #, no-wrap
15391 msgid ""
15392 " pread-device device count offset\n"
15393 "\n"
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
15398 msgid ""
15399 "This command lets you read part of a file.  It reads C<count> bytes of "
15400 "C<device>, starting at C<offset>."
15401 msgstr ""
15402
15403 #. type: textblock
15404 #: ../fish/guestfish-actions.pod:3920
15405 msgid "See also L</pread>."
15406 msgstr "Див. також L</pread>."
15407
15408 #. type: =head2
15409 #: ../fish/guestfish-actions.pod:3925
15410 msgid "pvcreate"
15411 msgstr "pvcreate"
15412
15413 #. type: verbatim
15414 #: ../fish/guestfish-actions.pod:3927
15415 #, no-wrap
15416 msgid ""
15417 " pvcreate device\n"
15418 "\n"
15419 msgstr ""
15420 " pvcreate пристрій\n"
15421 "\n"
15422
15423 #. type: textblock
15424 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
15425 msgid ""
15426 "This creates an LVM physical volume on the named C<device>, where C<device> "
15427 "should usually be a partition name such as C</dev/sda1>."
15428 msgstr ""
15429
15430 #. type: =head2
15431 #: ../fish/guestfish-actions.pod:3933
15432 msgid "pvremove"
15433 msgstr "pvremove"
15434
15435 #. type: verbatim
15436 #: ../fish/guestfish-actions.pod:3935
15437 #, no-wrap
15438 msgid ""
15439 " pvremove device\n"
15440 "\n"
15441 msgstr ""
15442 " pvremove пристрій\n"
15443 "\n"
15444
15445 #. type: textblock
15446 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
15447 msgid ""
15448 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15449 "it."
15450 msgstr ""
15451
15452 #. type: textblock
15453 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
15454 msgid ""
15455 "The implementation uses the C<pvremove> command which refuses to wipe "
15456 "physical volumes that contain any volume groups, so you have to remove those "
15457 "first."
15458 msgstr ""
15459
15460 #. type: =head2
15461 #: ../fish/guestfish-actions.pod:3944
15462 msgid "pvresize"
15463 msgstr "pvresize"
15464
15465 #. type: verbatim
15466 #: ../fish/guestfish-actions.pod:3946
15467 #, no-wrap
15468 msgid ""
15469 " pvresize device\n"
15470 "\n"
15471 msgstr ""
15472 " pvresize пристрій\n"
15473 "\n"
15474
15475 #. type: textblock
15476 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
15477 msgid ""
15478 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15479 "the new size of the underlying device."
15480 msgstr ""
15481
15482 #. type: =head2
15483 #: ../fish/guestfish-actions.pod:3951
15484 msgid "pvresize-size"
15485 msgstr "pvresize-size"
15486
15487 #. type: verbatim
15488 #: ../fish/guestfish-actions.pod:3953
15489 #, no-wrap
15490 msgid ""
15491 " pvresize-size device size\n"
15492 "\n"
15493 msgstr ""
15494
15495 #. type: textblock
15496 #: ../fish/guestfish-actions.pod:3955
15497 msgid ""
15498 "This command is the same as L</pvresize> except that it allows you to "
15499 "specify the new size (in bytes) explicitly."
15500 msgstr ""
15501
15502 #. type: =head2
15503 #: ../fish/guestfish-actions.pod:3958
15504 msgid "pvs"
15505 msgstr "pvs"
15506
15507 #. type: verbatim
15508 #: ../fish/guestfish-actions.pod:3960
15509 #, no-wrap
15510 msgid ""
15511 " pvs\n"
15512 "\n"
15513 msgstr ""
15514 " pvs\n"
15515 "\n"
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
15519 msgid ""
15520 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15521 "(8)> command."
15522 msgstr ""
15523
15524 #. type: textblock
15525 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
15526 msgid ""
15527 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15528 "sda2>)."
15529 msgstr ""
15530
15531 #. type: textblock
15532 #: ../fish/guestfish-actions.pod:3968
15533 msgid "See also L</pvs-full>."
15534 msgstr "Див. також L</pvs-full>."
15535
15536 #. type: =head2
15537 #: ../fish/guestfish-actions.pod:3970
15538 msgid "pvs-full"
15539 msgstr "pvs-full"
15540
15541 #. type: verbatim
15542 #: ../fish/guestfish-actions.pod:3972
15543 #, no-wrap
15544 msgid ""
15545 " pvs-full\n"
15546 "\n"
15547 msgstr ""
15548 " pvs-full\n"
15549 "\n"
15550
15551 #. type: textblock
15552 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
15553 msgid ""
15554 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15555 "(8)> command.  The \"full\" version includes all fields."
15556 msgstr ""
15557
15558 #. type: =head2
15559 #: ../fish/guestfish-actions.pod:3977
15560 msgid "pvuuid"
15561 msgstr "pvuuid"
15562
15563 #. type: verbatim
15564 #: ../fish/guestfish-actions.pod:3979
15565 #, no-wrap
15566 msgid ""
15567 " pvuuid device\n"
15568 "\n"
15569 msgstr ""
15570 " pvuuid пристрій\n"
15571 "\n"
15572
15573 #. type: textblock
15574 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
15575 msgid "This command returns the UUID of the LVM PV C<device>."
15576 msgstr ""
15577
15578 #. type: =head2
15579 #: ../fish/guestfish-actions.pod:3983
15580 msgid "pwrite"
15581 msgstr "pwrite"
15582
15583 #. type: verbatim
15584 #: ../fish/guestfish-actions.pod:3985
15585 #, no-wrap
15586 msgid ""
15587 " pwrite path content offset\n"
15588 "\n"
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
15593 msgid ""
15594 "This command writes to part of a file.  It writes the data buffer C<content> "
15595 "to the file C<path> starting at offset C<offset>."
15596 msgstr ""
15597
15598 #. type: textblock
15599 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
15600 msgid ""
15601 "This command implements the L<pwrite(2)> system call, and like that system "
15602 "call it may not write the full data requested.  The return value is the "
15603 "number of bytes that were actually written to the file.  This could even be "
15604 "0, although short writes are unlikely for regular files in ordinary "
15605 "circumstances."
15606 msgstr ""
15607
15608 #. type: textblock
15609 #: ../fish/guestfish-actions.pod:3996
15610 msgid "See also L</pread>, L</pwrite-device>."
15611 msgstr "Див. також L</pread>, L</pwrite-device>."
15612
15613 #. type: =head2
15614 #: ../fish/guestfish-actions.pod:4001
15615 msgid "pwrite-device"
15616 msgstr "pwrite-device"
15617
15618 #. type: verbatim
15619 #: ../fish/guestfish-actions.pod:4003
15620 #, no-wrap
15621 msgid ""
15622 " pwrite-device device content offset\n"
15623 "\n"
15624 msgstr ""
15625
15626 #. type: textblock
15627 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
15628 msgid ""
15629 "This command writes to part of a device.  It writes the data buffer "
15630 "C<content> to C<device> starting at offset C<offset>."
15631 msgstr ""
15632
15633 #. type: textblock
15634 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
15635 msgid ""
15636 "This command implements the L<pwrite(2)> system call, and like that system "
15637 "call it may not write the full data requested (although short writes to disk "
15638 "devices and partitions are probably impossible with standard Linux kernels)."
15639 msgstr ""
15640
15641 #. type: textblock
15642 #: ../fish/guestfish-actions.pod:4013
15643 msgid "See also L</pwrite>."
15644 msgstr "Див. також L</pwrite>."
15645
15646 #. type: =head2
15647 #: ../fish/guestfish-actions.pod:4018
15648 msgid "read-file"
15649 msgstr "read-file"
15650
15651 #. type: verbatim
15652 #: ../fish/guestfish-actions.pod:4020
15653 #, no-wrap
15654 msgid ""
15655 " read-file path\n"
15656 "\n"
15657 msgstr ""
15658 " read-file шлях\n"
15659 "\n"
15660
15661 #. type: textblock
15662 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
15663 msgid "This calls returns the contents of the file C<path> as a buffer."
15664 msgstr ""
15665
15666 #. type: textblock
15667 #: ../fish/guestfish-actions.pod:4025
15668 msgid ""
15669 "Unlike L</cat>, this function can correctly handle files that contain "
15670 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15671 "is limited in the total size of file that can be handled."
15672 msgstr ""
15673
15674 #. type: =head2
15675 #: ../fish/guestfish-actions.pod:4033
15676 msgid "read-lines"
15677 msgstr "read-lines"
15678
15679 #. type: verbatim
15680 #: ../fish/guestfish-actions.pod:4035
15681 #, no-wrap
15682 msgid ""
15683 " read-lines path\n"
15684 "\n"
15685 msgstr ""
15686 " read-lines шлях\n"
15687 "\n"
15688
15689 #. type: textblock
15690 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
15691 msgid ""
15692 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15693 "C<CRLF> character sequences are I<not> returned."
15694 msgstr ""
15695
15696 #. type: textblock
15697 #: ../fish/guestfish-actions.pod:4042
15698 msgid ""
15699 "Note that this function cannot correctly handle binary files (specifically, "
15700 "files containing C<\\0> character which is treated as end of line).  For "
15701 "those you need to use the L</read-file> function which has a more complex "
15702 "interface."
15703 msgstr ""
15704
15705 #. type: =head2
15706 #: ../fish/guestfish-actions.pod:4047
15707 msgid "readdir"
15708 msgstr "readdir"
15709
15710 #. type: verbatim
15711 #: ../fish/guestfish-actions.pod:4049
15712 #, no-wrap
15713 msgid ""
15714 " readdir dir\n"
15715 "\n"
15716 msgstr ""
15717 " readdir каталог\n"
15718 "\n"
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
15722 msgid "This returns the list of directory entries in directory C<dir>."
15723 msgstr ""
15724
15725 #. type: textblock
15726 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
15727 msgid ""
15728 "All entries in the directory are returned, including C<.> and C<..>.  The "
15729 "entries are I<not> sorted, but returned in the same order as the underlying "
15730 "filesystem."
15731 msgstr ""
15732
15733 #. type: textblock
15734 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
15735 msgid ""
15736 "Also this call returns basic file type information about each file.  The "
15737 "C<ftyp> field will contain one of the following characters:"
15738 msgstr ""
15739
15740 #. type: =item
15741 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
15742 msgid "'b'"
15743 msgstr "'b'"
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
15747 msgid "Block special"
15748 msgstr "Блоковий особливий"
15749
15750 #. type: =item
15751 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
15752 msgid "'c'"
15753 msgstr "'c'"
15754
15755 #. type: textblock
15756 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
15757 msgid "Char special"
15758 msgstr "Символьний особливий"
15759
15760 #. type: =item
15761 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
15762 msgid "'d'"
15763 msgstr "'d'"
15764
15765 #. type: textblock
15766 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
15767 msgid "Directory"
15768 msgstr "Каталог"
15769
15770 #. type: =item
15771 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
15772 msgid "'f'"
15773 msgstr "'f'"
15774
15775 #. type: textblock
15776 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
15777 msgid "FIFO (named pipe)"
15778 msgstr "FIFO (іменований канал)"
15779
15780 #. type: =item
15781 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
15782 msgid "'l'"
15783 msgstr "'l'"
15784
15785 #. type: textblock
15786 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
15787 msgid "Symbolic link"
15788 msgstr "Символічне посилання"
15789
15790 #. type: =item
15791 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
15792 msgid "'r'"
15793 msgstr "'r'"
15794
15795 #. type: textblock
15796 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
15797 msgid "Regular file"
15798 msgstr "Звичайний файл"
15799
15800 #. type: =item
15801 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
15802 msgid "'s'"
15803 msgstr "'s'"
15804
15805 #. type: textblock
15806 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
15807 msgid "Socket"
15808 msgstr "Сокет"
15809
15810 #. type: =item
15811 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
15812 msgid "'u'"
15813 msgstr "'u'"
15814
15815 #. type: textblock
15816 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
15817 msgid "Unknown file type"
15818 msgstr "Невідомий тип файла"
15819
15820 #. type: =item
15821 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
15822 msgid "'?'"
15823 msgstr ""
15824
15825 #. type: textblock
15826 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
15827 msgid ""
15828 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15829 msgstr ""
15830
15831 #. type: textblock
15832 #: ../fish/guestfish-actions.pod:4101
15833 msgid ""
15834 "This function is primarily intended for use by programs.  To get a simple "
15835 "list of names, use L</ls>.  To get a printable directory for human "
15836 "consumption, use L</ll>."
15837 msgstr ""
15838
15839 #. type: =head2
15840 #: ../fish/guestfish-actions.pod:4105
15841 msgid "readlink"
15842 msgstr "readlink"
15843
15844 #. type: verbatim
15845 #: ../fish/guestfish-actions.pod:4107
15846 #, no-wrap
15847 msgid ""
15848 " readlink path\n"
15849 "\n"
15850 msgstr ""
15851 " readlink шлях\n"
15852 "\n"
15853
15854 #. type: textblock
15855 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
15856 msgid "This command reads the target of a symbolic link."
15857 msgstr ""
15858
15859 #. type: =head2
15860 #: ../fish/guestfish-actions.pod:4111
15861 msgid "readlinklist"
15862 msgstr "readlinklist"
15863
15864 #. type: verbatim
15865 #: ../fish/guestfish-actions.pod:4113
15866 #, no-wrap
15867 msgid ""
15868 " readlinklist path 'names ...'\n"
15869 "\n"
15870 msgstr ""
15871
15872 #. type: textblock
15873 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
15874 msgid ""
15875 "This call allows you to do a C<readlink> operation on multiple files, where "
15876 "all files are in the directory C<path>.  C<names> is the list of files from "
15877 "this directory."
15878 msgstr ""
15879
15880 #. type: textblock
15881 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
15882 msgid ""
15883 "On return you get a list of strings, with a one-to-one correspondence to the "
15884 "C<names> list.  Each string is the value of the symbolic link."
15885 msgstr ""
15886
15887 #. type: textblock
15888 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
15889 msgid ""
15890 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15891 "result string is the empty string C<\"\">.  However the whole operation is "
15892 "completed even if there were C<readlink(2)> errors, and so you can call this "
15893 "function with names where you don't know if they are symbolic links already "
15894 "(albeit slightly less efficient)."
15895 msgstr ""
15896
15897 #. type: textblock
15898 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
15899 msgid ""
15900 "This call is intended for programs that want to efficiently list a directory "
15901 "contents without making many round-trips.  Very long directory listings "
15902 "might cause the protocol message size to be exceeded, causing this call to "
15903 "fail.  The caller must split up such requests into smaller groups of names."
15904 msgstr ""
15905
15906 #. type: =head2
15907 #: ../fish/guestfish-actions.pod:4137
15908 msgid "realpath"
15909 msgstr "realpath"
15910
15911 #. type: verbatim
15912 #: ../fish/guestfish-actions.pod:4139
15913 #, no-wrap
15914 msgid ""
15915 " realpath path\n"
15916 "\n"
15917 msgstr ""
15918 " realpath шлях\n"
15919 "\n"
15920
15921 #. type: textblock
15922 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
15923 msgid ""
15924 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15925 "has no C<.>, C<..> or symbolic link path elements."
15926 msgstr ""
15927
15928 #. type: =head2
15929 #: ../fish/guestfish-actions.pod:4144
15930 msgid "removexattr"
15931 msgstr "removexattr"
15932
15933 #. type: verbatim
15934 #: ../fish/guestfish-actions.pod:4146
15935 #, no-wrap
15936 msgid ""
15937 " removexattr xattr path\n"
15938 "\n"
15939 msgstr ""
15940
15941 #. type: textblock
15942 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
15943 msgid ""
15944 "This call removes the extended attribute named C<xattr> of the file C<path>."
15945 msgstr ""
15946
15947 #. type: textblock
15948 #: ../fish/guestfish-actions.pod:4151
15949 msgid "See also: L</lremovexattr>, L<attr(5)>."
15950 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15951
15952 #. type: =head2
15953 #: ../fish/guestfish-actions.pod:4153
15954 msgid "resize2fs"
15955 msgstr "resize2fs"
15956
15957 #. type: verbatim
15958 #: ../fish/guestfish-actions.pod:4155
15959 #, no-wrap
15960 msgid ""
15961 " resize2fs device\n"
15962 "\n"
15963 msgstr ""
15964 " resize2fs пристрій\n"
15965 "\n"
15966
15967 #. type: textblock
15968 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
15969 msgid ""
15970 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15971 "underlying device."
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish-actions.pod:4160
15976 msgid ""
15977 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15978 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15979 "gives an error about this and sometimes not.  In any case, it is always safe "
15980 "to call L</e2fsck-f> before calling this function."
15981 msgstr ""
15982
15983 #. type: =head2
15984 #: ../fish/guestfish-actions.pod:4166
15985 msgid "resize2fs-M"
15986 msgstr "resize2fs-M"
15987
15988 #. type: verbatim
15989 #: ../fish/guestfish-actions.pod:4168
15990 #, no-wrap
15991 msgid ""
15992 " resize2fs-M device\n"
15993 "\n"
15994 msgstr ""
15995 " resize2fs-M пристрій\n"
15996 "\n"
15997
15998 #. type: textblock
15999 #: ../fish/guestfish-actions.pod:4170
16000 msgid ""
16001 "This command is the same as L</resize2fs>, but the filesystem is resized to "
16002 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
16003 "command."
16004 msgstr ""
16005
16006 #. type: textblock
16007 #: ../fish/guestfish-actions.pod:4174
16008 msgid ""
16009 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
16010 "and read the C<Block size> and C<Block count> values.  These two numbers, "
16011 "multiplied together, give the resulting size of the minimal filesystem in "
16012 "bytes."
16013 msgstr ""
16014
16015 #. type: =head2
16016 #: ../fish/guestfish-actions.pod:4179
16017 msgid "resize2fs-size"
16018 msgstr "resize2fs-size"
16019
16020 #. type: verbatim
16021 #: ../fish/guestfish-actions.pod:4181
16022 #, no-wrap
16023 msgid ""
16024 " resize2fs-size device size\n"
16025 "\n"
16026 msgstr ""
16027
16028 #. type: textblock
16029 #: ../fish/guestfish-actions.pod:4183
16030 msgid ""
16031 "This command is the same as L</resize2fs> except that it allows you to "
16032 "specify the new size (in bytes) explicitly."
16033 msgstr ""
16034
16035 #. type: =head2
16036 #: ../fish/guestfish-actions.pod:4186
16037 msgid "rm"
16038 msgstr "rm"
16039
16040 #. type: verbatim
16041 #: ../fish/guestfish-actions.pod:4188
16042 #, no-wrap
16043 msgid ""
16044 " rm path\n"
16045 "\n"
16046 msgstr ""
16047 " rm шлях\n"
16048 "\n"
16049
16050 #. type: textblock
16051 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
16052 msgid "Remove the single file C<path>."
16053 msgstr ""
16054
16055 #. type: =head2
16056 #: ../fish/guestfish-actions.pod:4192
16057 msgid "rm-rf"
16058 msgstr "rm-rf"
16059
16060 #. type: verbatim
16061 #: ../fish/guestfish-actions.pod:4194
16062 #, no-wrap
16063 msgid ""
16064 " rm-rf path\n"
16065 "\n"
16066 msgstr ""
16067 " rm-rf шлях\n"
16068 "\n"
16069
16070 #. type: textblock
16071 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
16072 msgid ""
16073 "Remove the file or directory C<path>, recursively removing the contents if "
16074 "its a directory.  This is like the C<rm -rf> shell command."
16075 msgstr ""
16076
16077 #. type: =head2
16078 #: ../fish/guestfish-actions.pod:4200
16079 msgid "rmdir"
16080 msgstr "rmdir"
16081
16082 #. type: verbatim
16083 #: ../fish/guestfish-actions.pod:4202
16084 #, no-wrap
16085 msgid ""
16086 " rmdir path\n"
16087 "\n"
16088 msgstr ""
16089 " rmdir шлях\n"
16090 "\n"
16091
16092 #. type: textblock
16093 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
16094 msgid "Remove the single directory C<path>."
16095 msgstr ""
16096
16097 #. type: =head2
16098 #: ../fish/guestfish-actions.pod:4206
16099 msgid "rmmountpoint"
16100 msgstr "rmmountpoint"
16101
16102 #. type: verbatim
16103 #: ../fish/guestfish-actions.pod:4208
16104 #, no-wrap
16105 msgid ""
16106 " rmmountpoint exemptpath\n"
16107 "\n"
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../fish/guestfish-actions.pod:4210
16112 msgid ""
16113 "This calls removes a mountpoint that was previously created with L</"
16114 "mkmountpoint>.  See L</mkmountpoint> for full details."
16115 msgstr ""
16116
16117 #. type: =head2
16118 #: ../fish/guestfish-actions.pod:4214
16119 msgid "scrub-device"
16120 msgstr "scrub-device"
16121
16122 #. type: verbatim
16123 #: ../fish/guestfish-actions.pod:4216
16124 #, no-wrap
16125 msgid ""
16126 " scrub-device device\n"
16127 "\n"
16128 msgstr ""
16129 " scrub-device пристрій\n"
16130 "\n"
16131
16132 #. type: textblock
16133 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
16134 msgid ""
16135 "This command writes patterns over C<device> to make data retrieval more "
16136 "difficult."
16137 msgstr ""
16138
16139 #. type: textblock
16140 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233
16141 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570
16142 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
16143 msgid ""
16144 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16145 "more details."
16146 msgstr ""
16147
16148 #. type: =head2
16149 #: ../fish/guestfish-actions.pod:4224
16150 msgid "scrub-file"
16151 msgstr "scrub-file"
16152
16153 #. type: verbatim
16154 #: ../fish/guestfish-actions.pod:4226
16155 #, no-wrap
16156 msgid ""
16157 " scrub-file file\n"
16158 "\n"
16159 msgstr ""
16160 " scrub-file файл\n"
16161 "\n"
16162
16163 #. type: textblock
16164 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
16165 msgid ""
16166 "This command writes patterns over a file to make data retrieval more "
16167 "difficult."
16168 msgstr ""
16169
16170 #. type: textblock
16171 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
16172 msgid "The file is I<removed> after scrubbing."
16173 msgstr ""
16174
16175 #. type: =head2
16176 #: ../fish/guestfish-actions.pod:4236
16177 msgid "scrub-freespace"
16178 msgstr "scrub-freespace"
16179
16180 #. type: verbatim
16181 #: ../fish/guestfish-actions.pod:4238
16182 #, no-wrap
16183 msgid ""
16184 " scrub-freespace dir\n"
16185 "\n"
16186 msgstr ""
16187 " scrub-freespace каталог\n"
16188 "\n"
16189
16190 #. type: textblock
16191 #: ../fish/guestfish-actions.pod:4240
16192 msgid ""
16193 "This command creates the directory C<dir> and then fills it with files until "
16194 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
16195 "deletes them.  The intention is to scrub any free space on the partition "
16196 "containing C<dir>."
16197 msgstr ""
16198
16199 #. type: =head2
16200 #: ../fish/guestfish-actions.pod:4249
16201 msgid "set-append"
16202 msgstr "set-append"
16203
16204 #. type: =head2
16205 #: ../fish/guestfish-actions.pod:4251
16206 msgid "append"
16207 msgstr ""
16208
16209 #. type: verbatim
16210 #: ../fish/guestfish-actions.pod:4253
16211 #, no-wrap
16212 msgid ""
16213 " set-append append\n"
16214 "\n"
16215 msgstr ""
16216
16217 #. type: textblock
16218 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
16219 msgid ""
16220 "This function is used to add additional options to the guest kernel command "
16221 "line."
16222 msgstr ""
16223
16224 #. type: textblock
16225 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
16226 msgid ""
16227 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16228 "environment variable."
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
16233 msgid ""
16234 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16235 "(libguestfs always adds a few of its own)."
16236 msgstr ""
16237
16238 #. type: =head2
16239 #: ../fish/guestfish-actions.pod:4264
16240 msgid "set-attach-method"
16241 msgstr "set-attach-method"
16242
16243 #. type: =head2
16244 #: ../fish/guestfish-actions.pod:4266
16245 msgid "attach-method"
16246 msgstr ""
16247
16248 #. type: verbatim
16249 #: ../fish/guestfish-actions.pod:4268
16250 #, no-wrap
16251 msgid ""
16252 " set-attach-method attachmethod\n"
16253 "\n"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
16258 msgid ""
16259 "Set the method that libguestfs uses to connect to the back end guestfsd "
16260 "daemon.  Possible methods are:"
16261 msgstr ""
16262
16263 #. type: =item
16264 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644
16265 #: ../src/guestfs.pod:2916
16266 msgid "C<appliance>"
16267 msgstr "C<appliance>"
16268
16269 #. type: textblock
16270 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
16271 msgid ""
16272 "Launch an appliance and connect to it.  This is the ordinary method and the "
16273 "default."
16274 msgstr ""
16275
16276 #. type: =item
16277 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
16278 msgid "C<unix:I<path>>"
16279 msgstr "C<unix:I<шлях>>"
16280
16281 #. type: textblock
16282 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
16283 msgid "Connect to the Unix domain socket I<path>."
16284 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
16285
16286 #. type: textblock
16287 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
16288 msgid ""
16289 "This method lets you connect to an existing daemon or (using virtio-serial) "
16290 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16291 "RUNNING DAEMONS>."
16292 msgstr ""
16293
16294 #. type: =head2
16295 #: ../fish/guestfish-actions.pod:4290
16296 msgid "set-autosync"
16297 msgstr "set-autosync"
16298
16299 #. type: =head2
16300 #: ../fish/guestfish-actions.pod:4292
16301 msgid "autosync"
16302 msgstr "autosync"
16303
16304 #. type: verbatim
16305 #: ../fish/guestfish-actions.pod:4294
16306 #, no-wrap
16307 msgid ""
16308 " set-autosync true|false\n"
16309 "\n"
16310 msgstr ""
16311 " set-autosync true|false\n"
16312 "\n"
16313
16314 #. type: textblock
16315 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
16316 msgid ""
16317 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16318 "effort attempt to make filesystems consistent and synchronized when the "
16319 "handle is closed (also if the program exits without closing handles)."
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
16324 msgid ""
16325 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16326 "disabled by default)."
16327 msgstr ""
16328
16329 #. type: =head2
16330 #: ../fish/guestfish-actions.pod:4304
16331 msgid "set-direct"
16332 msgstr "set-direct"
16333
16334 #. type: =head2
16335 #: ../fish/guestfish-actions.pod:4306
16336 msgid "direct"
16337 msgstr "direct"
16338
16339 #. type: verbatim
16340 #: ../fish/guestfish-actions.pod:4308
16341 #, no-wrap
16342 msgid ""
16343 " set-direct true|false\n"
16344 "\n"
16345 msgstr ""
16346 " set-direct true|false\n"
16347 "\n"
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
16351 msgid ""
16352 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16353 "passed directly through to the appliance once it is launched."
16354 msgstr ""
16355
16356 #. type: textblock
16357 #: ../fish/guestfish-actions.pod:4314
16358 msgid ""
16359 "One consequence of this is that log messages aren't caught by the library "
16360 "and handled by L</set-log-message-callback>, but go straight to stdout."
16361 msgstr ""
16362
16363 #. type: textblock
16364 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
16365 msgid "You probably don't want to use this unless you know what you are doing."
16366 msgstr ""
16367
16368 #. type: textblock
16369 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
16370 msgid "The default is disabled."
16371 msgstr ""
16372
16373 #. type: =head2
16374 #: ../fish/guestfish-actions.pod:4323
16375 msgid "set-e2label"
16376 msgstr "set-e2label"
16377
16378 #. type: verbatim
16379 #: ../fish/guestfish-actions.pod:4325
16380 #, no-wrap
16381 msgid ""
16382 " set-e2label device label\n"
16383 "\n"
16384 msgstr ""
16385
16386 #. type: textblock
16387 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
16388 msgid ""
16389 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16390 "C<label>.  Filesystem labels are limited to 16 characters."
16391 msgstr ""
16392
16393 #. type: textblock
16394 #: ../fish/guestfish-actions.pod:4331
16395 msgid ""
16396 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16397 "label on a filesystem."
16398 msgstr ""
16399
16400 #. type: =head2
16401 #: ../fish/guestfish-actions.pod:4334
16402 msgid "set-e2uuid"
16403 msgstr "set-e2uuid"
16404
16405 #. type: verbatim
16406 #: ../fish/guestfish-actions.pod:4336
16407 #, no-wrap
16408 msgid ""
16409 " set-e2uuid device uuid\n"
16410 "\n"
16411 msgstr ""
16412
16413 #. type: textblock
16414 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
16415 msgid ""
16416 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16417 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16418 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16419 msgstr ""
16420
16421 #. type: textblock
16422 #: ../fish/guestfish-actions.pod:4343
16423 msgid ""
16424 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16425 "UUID of a filesystem."
16426 msgstr ""
16427
16428 #. type: =head2
16429 #: ../fish/guestfish-actions.pod:4346
16430 msgid "set-memsize"
16431 msgstr "set-memsize"
16432
16433 #. type: =head2
16434 #: ../fish/guestfish-actions.pod:4348
16435 msgid "memsize"
16436 msgstr ""
16437
16438 #. type: verbatim
16439 #: ../fish/guestfish-actions.pod:4350
16440 #, no-wrap
16441 msgid ""
16442 " set-memsize memsize\n"
16443 "\n"
16444 msgstr ""
16445
16446 #. type: textblock
16447 #: ../fish/guestfish-actions.pod:4352
16448 msgid ""
16449 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16450 "This only has any effect if called before L</launch>."
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
16455 msgid ""
16456 "You can also change this by setting the environment variable "
16457 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:4363
16462 msgid "set-network"
16463 msgstr "set-network"
16464
16465 #. type: =head2
16466 #: ../fish/guestfish-actions.pod:4365
16467 msgid "network"
16468 msgstr "network"
16469
16470 #. type: verbatim
16471 #: ../fish/guestfish-actions.pod:4367
16472 #, no-wrap
16473 msgid ""
16474 " set-network true|false\n"
16475 "\n"
16476 msgstr ""
16477 " set-network true|false\n"
16478 "\n"
16479
16480 #. type: textblock
16481 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
16482 msgid ""
16483 "If C<network> is true, then the network is enabled in the libguestfs "
16484 "appliance.  The default is false."
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
16489 msgid ""
16490 "This affects whether commands are able to access the network (see L<guestfs"
16491 "(3)/RUNNING COMMANDS>)."
16492 msgstr ""
16493
16494 #. type: textblock
16495 #: ../fish/guestfish-actions.pod:4375
16496 msgid ""
16497 "You must call this before calling L</launch>, otherwise it has no effect."
16498 msgstr ""
16499
16500 #. type: =head2
16501 #: ../fish/guestfish-actions.pod:4378
16502 msgid "set-path"
16503 msgstr "set-path"
16504
16505 #. type: verbatim
16506 #: ../fish/guestfish-actions.pod:4382
16507 #, no-wrap
16508 msgid ""
16509 " set-path searchpath\n"
16510 "\n"
16511 msgstr ""
16512
16513 #. type: textblock
16514 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
16515 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16516 msgstr ""
16517
16518 #. type: textblock
16519 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
16520 msgid ""
16521 "The default is C<$libdir/guestfs> unless overridden by setting "
16522 "C<LIBGUESTFS_PATH> environment variable."
16523 msgstr ""
16524
16525 #. type: textblock
16526 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
16527 msgid "Setting C<path> to C<NULL> restores the default path."
16528 msgstr ""
16529
16530 #. type: =head2
16531 #: ../fish/guestfish-actions.pod:4391
16532 msgid "set-pgroup"
16533 msgstr ""
16534
16535 #. type: =head2
16536 #: ../fish/guestfish-actions.pod:4393
16537 msgid "pgroup"
16538 msgstr ""
16539
16540 #. type: verbatim
16541 #: ../fish/guestfish-actions.pod:4395
16542 #, no-wrap
16543 msgid ""
16544 " set-pgroup true|false\n"
16545 "\n"
16546 msgstr ""
16547
16548 #. type: textblock
16549 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
16550 msgid ""
16551 "If C<pgroup> is true, child processes are placed into their own process "
16552 "group."
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
16557 msgid ""
16558 "The practical upshot of this is that signals like C<SIGINT> (from users "
16559 "pressing C<^C>) won't be received by the child process."
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
16564 msgid ""
16565 "The default for this flag is false, because usually you want C<^C> to kill "
16566 "the subprocess."
16567 msgstr ""
16568
16569 #. type: =head2
16570 #: ../fish/guestfish-actions.pod:4406
16571 msgid "set-qemu"
16572 msgstr "set-qemu"
16573
16574 #. type: =head2
16575 #: ../fish/guestfish-actions.pod:4408
16576 msgid "qemu"
16577 msgstr "qemu"
16578
16579 #. type: verbatim
16580 #: ../fish/guestfish-actions.pod:4410
16581 #, no-wrap
16582 msgid ""
16583 " set-qemu qemu\n"
16584 "\n"
16585 msgstr ""
16586 " set-qemu qemu\n"
16587 "\n"
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
16591 msgid "Set the qemu binary that we will use."
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
16596 msgid ""
16597 "The default is chosen when the library was compiled by the configure script."
16598 msgstr ""
16599
16600 #. type: textblock
16601 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
16602 msgid ""
16603 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16604 "variable."
16605 msgstr ""
16606
16607 #. type: textblock
16608 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
16609 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16610 msgstr ""
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
16614 msgid ""
16615 "Note that you should call this function as early as possible after creating "
16616 "the handle.  This is because some pre-launch operations depend on testing "
16617 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16618 "don't retest features, and so you might see inconsistent results.  Using the "
16619 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16620 "the qemu binary at the same time as the handle is created."
16621 msgstr ""
16622
16623 #. type: =head2
16624 #: ../fish/guestfish-actions.pod:4430
16625 msgid "set-recovery-proc"
16626 msgstr "set-recovery-proc"
16627
16628 #. type: =head2
16629 #: ../fish/guestfish-actions.pod:4432
16630 msgid "recovery-proc"
16631 msgstr "recovery-proc"
16632
16633 #. type: verbatim
16634 #: ../fish/guestfish-actions.pod:4434
16635 #, no-wrap
16636 msgid ""
16637 " set-recovery-proc true|false\n"
16638 "\n"
16639 msgstr ""
16640 " set-recovery-proc true|false\n"
16641 "\n"
16642
16643 #. type: textblock
16644 #: ../fish/guestfish-actions.pod:4436
16645 msgid ""
16646 "If this is called with the parameter C<false> then L</launch> does not "
16647 "create a recovery process.  The purpose of the recovery process is to stop "
16648 "runaway qemu processes in the case where the main program aborts abruptly."
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish-actions.pod:4441
16653 msgid ""
16654 "This only has any effect if called before L</launch>, and the default is "
16655 "true."
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
16660 msgid ""
16661 "About the only time when you would want to disable this is if the main "
16662 "process will fork itself into the background (\"daemonize\" itself).  In "
16663 "this case the recovery process thinks that the main program has disappeared "
16664 "and so kills qemu, which is not very helpful."
16665 msgstr ""
16666
16667 #. type: =head2
16668 #: ../fish/guestfish-actions.pod:4450
16669 msgid "set-selinux"
16670 msgstr "set-selinux"
16671
16672 #. type: =head2
16673 #: ../fish/guestfish-actions.pod:4452
16674 msgid "selinux"
16675 msgstr "selinux"
16676
16677 #. type: verbatim
16678 #: ../fish/guestfish-actions.pod:4454
16679 #, no-wrap
16680 msgid ""
16681 " set-selinux true|false\n"
16682 "\n"
16683 msgstr ""
16684 " set-selinux true|false\n"
16685 "\n"
16686
16687 #. type: textblock
16688 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
16689 msgid ""
16690 "This sets the selinux flag that is passed to the appliance at boot time.  "
16691 "The default is C<selinux=0> (disabled)."
16692 msgstr ""
16693
16694 #. type: textblock
16695 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
16696 msgid ""
16697 "Note that if SELinux is enabled, it is always in Permissive mode "
16698 "(C<enforcing=0>)."
16699 msgstr ""
16700
16701 #. type: =head2
16702 #: ../fish/guestfish-actions.pod:4465
16703 msgid "set-smp"
16704 msgstr ""
16705
16706 #. type: =head2
16707 #: ../fish/guestfish-actions.pod:4467
16708 msgid "smp"
16709 msgstr ""
16710
16711 #. type: verbatim
16712 #: ../fish/guestfish-actions.pod:4469
16713 #, no-wrap
16714 msgid ""
16715 " set-smp smp\n"
16716 "\n"
16717 msgstr ""
16718
16719 #. type: textblock
16720 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
16721 msgid ""
16722 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16723 "C<1>.  Increasing this may improve performance, though often it has no "
16724 "effect."
16725 msgstr ""
16726
16727 #. type: textblock
16728 #: ../fish/guestfish-actions.pod:4475
16729 msgid "This function must be called before L</launch>."
16730 msgstr ""
16731
16732 #. type: =head2
16733 #: ../fish/guestfish-actions.pod:4477
16734 msgid "set-trace"
16735 msgstr "set-trace"
16736
16737 #. type: =head2
16738 #: ../fish/guestfish-actions.pod:4479
16739 msgid "trace"
16740 msgstr "trace"
16741
16742 #. type: verbatim
16743 #: ../fish/guestfish-actions.pod:4481
16744 #, no-wrap
16745 msgid ""
16746 " set-trace true|false\n"
16747 "\n"
16748 msgstr ""
16749 " set-trace true|false\n"
16750 "\n"
16751
16752 #. type: textblock
16753 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
16754 msgid ""
16755 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16756 "return values are traced."
16757 msgstr ""
16758
16759 #. type: textblock
16760 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
16761 msgid ""
16762 "If you want to trace C API calls into libguestfs (and other libraries) then "
16763 "possibly a better way is to use the external ltrace(1) command."
16764 msgstr ""
16765
16766 #. type: textblock
16767 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
16768 msgid ""
16769 "Command traces are disabled unless the environment variable "
16770 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16771 msgstr ""
16772
16773 #. type: textblock
16774 #: ../fish/guestfish-actions.pod:4493
16775 msgid ""
16776 "Trace messages are normally sent to C<stderr>, unless you register a "
16777 "callback to send them somewhere else (see L</set-event-callback>)."
16778 msgstr ""
16779
16780 #. type: =head2
16781 #: ../fish/guestfish-actions.pod:4497
16782 msgid "set-verbose"
16783 msgstr "set-verbose"
16784
16785 #. type: =head2
16786 #: ../fish/guestfish-actions.pod:4499
16787 msgid "verbose"
16788 msgstr "verbose"
16789
16790 #. type: verbatim
16791 #: ../fish/guestfish-actions.pod:4501
16792 #, no-wrap
16793 msgid ""
16794 " set-verbose true|false\n"
16795 "\n"
16796 msgstr ""
16797 " set-verbose true|false\n"
16798 "\n"
16799
16800 #. type: textblock
16801 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
16802 msgid "If C<verbose> is true, this turns on verbose messages."
16803 msgstr ""
16804
16805 #. type: textblock
16806 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
16807 msgid ""
16808 "Verbose messages are disabled unless the environment variable "
16809 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16810 msgstr ""
16811
16812 #. type: textblock
16813 #: ../fish/guestfish-actions.pod:4508
16814 msgid ""
16815 "Verbose messages are normally sent to C<stderr>, unless you register a "
16816 "callback to send them somewhere else (see L</set-event-callback>)."
16817 msgstr ""
16818
16819 #. type: =head2
16820 #: ../fish/guestfish-actions.pod:4512
16821 msgid "setcon"
16822 msgstr "setcon"
16823
16824 #. type: verbatim
16825 #: ../fish/guestfish-actions.pod:4514
16826 #, no-wrap
16827 msgid ""
16828 " setcon context\n"
16829 "\n"
16830 msgstr ""
16831 " setcon контекст\n"
16832 "\n"
16833
16834 #. type: textblock
16835 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
16836 msgid ""
16837 "This sets the SELinux security context of the daemon to the string "
16838 "C<context>."
16839 msgstr ""
16840
16841 #. type: textblock
16842 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
16843 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16844 msgstr ""
16845
16846 #. type: =head2
16847 #: ../fish/guestfish-actions.pod:4521
16848 msgid "setxattr"
16849 msgstr "setxattr"
16850
16851 #. type: verbatim
16852 #: ../fish/guestfish-actions.pod:4523
16853 #, no-wrap
16854 msgid ""
16855 " setxattr xattr val vallen path\n"
16856 "\n"
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
16861 msgid ""
16862 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16863 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16864 msgstr ""
16865
16866 #. type: textblock
16867 #: ../fish/guestfish-actions.pod:4529
16868 msgid "See also: L</lsetxattr>, L<attr(5)>."
16869 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16870
16871 #. type: =head2
16872 #: ../fish/guestfish-actions.pod:4531
16873 msgid "sfdisk"
16874 msgstr "sfdisk"
16875
16876 #. type: verbatim
16877 #: ../fish/guestfish-actions.pod:4533
16878 #, no-wrap
16879 msgid ""
16880 " sfdisk device cyls heads sectors 'lines ...'\n"
16881 "\n"
16882 msgstr ""
16883
16884 #. type: textblock
16885 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
16886 msgid ""
16887 "This is a direct interface to the L<sfdisk(8)> program for creating "
16888 "partitions on block devices."
16889 msgstr ""
16890
16891 #. type: textblock
16892 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
16893 msgid "C<device> should be a block device, for example C</dev/sda>."
16894 msgstr ""
16895
16896 #. type: textblock
16897 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
16898 msgid ""
16899 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16900 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16901 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16902 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16903 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16904 "the kernel) cannot work out the right geometry and you will need to tell it."
16905 msgstr ""
16906
16907 #. type: textblock
16908 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
16909 msgid ""
16910 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16911 "refer to the L<sfdisk(8)> manpage."
16912 msgstr ""
16913
16914 #. type: textblock
16915 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
16916 msgid ""
16917 "To create a single partition occupying the whole disk, you would pass "
16918 "C<lines> as a single element list, when the single element being the string "
16919 "C<,> (comma)."
16920 msgstr ""
16921
16922 #. type: textblock
16923 #: ../fish/guestfish-actions.pod:4555
16924 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16925 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16926
16927 #. type: textblock
16928 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578
16929 #: ../fish/guestfish-actions.pod:4597
16930 msgid ""
16931 "I<This function is deprecated.> In new code, use the L</part_add> call "
16932 "instead."
16933 msgstr ""
16934
16935 #. type: =head2
16936 #: ../fish/guestfish-actions.pod:4565
16937 msgid "sfdiskM"
16938 msgstr "sfdiskM"
16939
16940 #. type: verbatim
16941 #: ../fish/guestfish-actions.pod:4567
16942 #, no-wrap
16943 msgid ""
16944 " sfdiskM device 'lines ...'\n"
16945 "\n"
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../fish/guestfish-actions.pod:4569
16950 msgid ""
16951 "This is a simplified interface to the L</sfdisk> command, where partition "
16952 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16953 "you don't need to specify the cyls, heads and sectors parameters which were "
16954 "rarely if ever used anyway."
16955 msgstr ""
16956
16957 #. type: textblock
16958 #: ../fish/guestfish-actions.pod:4575
16959 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16960 msgstr ""
16961 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16962
16963 #. type: =head2
16964 #: ../fish/guestfish-actions.pod:4585
16965 msgid "sfdisk-N"
16966 msgstr "sfdisk-N"
16967
16968 #. type: verbatim
16969 #: ../fish/guestfish-actions.pod:4587
16970 #, no-wrap
16971 msgid ""
16972 " sfdisk-N device partnum cyls heads sectors line\n"
16973 "\n"
16974 msgstr ""
16975
16976 #. type: textblock
16977 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
16978 msgid ""
16979 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16980 "(note: C<n> counts from 1)."
16981 msgstr ""
16982
16983 #. type: textblock
16984 #: ../fish/guestfish-actions.pod:4592
16985 msgid ""
16986 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16987 "cyls/heads/sectors parameters."
16988 msgstr ""
16989
16990 #. type: textblock
16991 #: ../fish/guestfish-actions.pod:4595
16992 msgid "See also: L</part-add>"
16993 msgstr "Див. також L</part-add>"
16994
16995 #. type: =head2
16996 #: ../fish/guestfish-actions.pod:4604
16997 msgid "sfdisk-disk-geometry"
16998 msgstr "sfdisk-disk-geometry"
16999
17000 #. type: verbatim
17001 #: ../fish/guestfish-actions.pod:4606
17002 #, no-wrap
17003 msgid ""
17004 " sfdisk-disk-geometry device\n"
17005 "\n"
17006 msgstr ""
17007 " sfdisk-disk-geometry пристрій\n"
17008 "\n"
17009
17010 #. type: textblock
17011 #: ../fish/guestfish-actions.pod:4608
17012 msgid ""
17013 "This displays the disk geometry of C<device> read from the partition table.  "
17014 "Especially in the case where the underlying block device has been resized, "
17015 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
17016 "kernel-geometry>)."
17017 msgstr ""
17018
17019 #. type: textblock
17020 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622
17021 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
17022 msgid "The result is in human-readable format, and not designed to be parsed."
17023 msgstr ""
17024
17025 #. type: =head2
17026 #: ../fish/guestfish-actions.pod:4616
17027 msgid "sfdisk-kernel-geometry"
17028 msgstr "sfdisk-kernel-geometry"
17029
17030 #. type: verbatim
17031 #: ../fish/guestfish-actions.pod:4618
17032 #, no-wrap
17033 msgid ""
17034 " sfdisk-kernel-geometry device\n"
17035 "\n"
17036 msgstr ""
17037 " sfdisk-kernel-geometry пристрій\n"
17038 "\n"
17039
17040 #. type: textblock
17041 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
17042 msgid "This displays the kernel's idea of the geometry of C<device>."
17043 msgstr ""
17044
17045 #. type: =head2
17046 #: ../fish/guestfish-actions.pod:4625
17047 msgid "sfdisk-l"
17048 msgstr "sfdisk-l"
17049
17050 #. type: verbatim
17051 #: ../fish/guestfish-actions.pod:4627
17052 #, no-wrap
17053 msgid ""
17054 " sfdisk-l device\n"
17055 "\n"
17056 msgstr ""
17057 " sfdisk-l пристрій\n"
17058 "\n"
17059
17060 #. type: textblock
17061 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
17062 msgid ""
17063 "This displays the partition table on C<device>, in the human-readable output "
17064 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17065 msgstr ""
17066
17067 #. type: textblock
17068 #: ../fish/guestfish-actions.pod:4633
17069 msgid "See also: L</part-list>"
17070 msgstr "Див. також L</part-list>"
17071
17072 #. type: textblock
17073 #: ../fish/guestfish-actions.pod:4635
17074 msgid ""
17075 "I<This function is deprecated.> In new code, use the L</part_list> call "
17076 "instead."
17077 msgstr ""
17078
17079 #. type: =head2
17080 #: ../fish/guestfish-actions.pod:4642
17081 msgid "sh"
17082 msgstr "sh"
17083
17084 #. type: verbatim
17085 #: ../fish/guestfish-actions.pod:4644
17086 #, no-wrap
17087 msgid ""
17088 " sh command\n"
17089 "\n"
17090 msgstr ""
17091 " sh команда\n"
17092 "\n"
17093
17094 #. type: textblock
17095 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
17096 msgid ""
17097 "This call runs a command from the guest filesystem via the guest's C</bin/"
17098 "sh>."
17099 msgstr ""
17100
17101 #. type: textblock
17102 #: ../fish/guestfish-actions.pod:4649
17103 msgid "This is like L</command>, but passes the command to:"
17104 msgstr ""
17105
17106 #. type: verbatim
17107 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
17108 #, no-wrap
17109 msgid ""
17110 " /bin/sh -c \"command\"\n"
17111 "\n"
17112 msgstr ""
17113
17114 #. type: textblock
17115 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
17116 msgid ""
17117 "Depending on the guest's shell, this usually results in wildcards being "
17118 "expanded, shell expressions being interpolated and so on."
17119 msgstr ""
17120
17121 #. type: textblock
17122 #: ../fish/guestfish-actions.pod:4657
17123 msgid "All the provisos about L</command> apply to this call."
17124 msgstr ""
17125
17126 #. type: =head2
17127 #: ../fish/guestfish-actions.pod:4659
17128 msgid "sh-lines"
17129 msgstr "sh-lines"
17130
17131 #. type: verbatim
17132 #: ../fish/guestfish-actions.pod:4661
17133 #, no-wrap
17134 msgid ""
17135 " sh-lines command\n"
17136 "\n"
17137 msgstr ""
17138 " sh-lines команда\n"
17139 "\n"
17140
17141 #. type: textblock
17142 #: ../fish/guestfish-actions.pod:4663
17143 msgid "This is the same as L</sh>, but splits the result into a list of lines."
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish-actions.pod:4666
17148 msgid "See also: L</command-lines>"
17149 msgstr "Див. також L</command-lines>"
17150
17151 #. type: =head2
17152 #: ../fish/guestfish-actions.pod:4668
17153 msgid "sleep"
17154 msgstr "sleep"
17155
17156 #. type: verbatim
17157 #: ../fish/guestfish-actions.pod:4670
17158 #, no-wrap
17159 msgid ""
17160 " sleep secs\n"
17161 "\n"
17162 msgstr ""
17163 " sleep час_у_секундах\n"
17164 "\n"
17165
17166 #. type: textblock
17167 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
17168 msgid "Sleep for C<secs> seconds."
17169 msgstr ""
17170
17171 #. type: =head2
17172 #: ../fish/guestfish-actions.pod:4674
17173 msgid "stat"
17174 msgstr "stat"
17175
17176 #. type: verbatim
17177 #: ../fish/guestfish-actions.pod:4676
17178 #, no-wrap
17179 msgid ""
17180 " stat path\n"
17181 "\n"
17182 msgstr ""
17183 " stat шлях\n"
17184 "\n"
17185
17186 #. type: textblock
17187 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
17188 msgid "This is the same as the C<stat(2)> system call."
17189 msgstr ""
17190
17191 #. type: =head2
17192 #: ../fish/guestfish-actions.pod:4682
17193 msgid "statvfs"
17194 msgstr "statvfs"
17195
17196 #. type: verbatim
17197 #: ../fish/guestfish-actions.pod:4684
17198 #, no-wrap
17199 msgid ""
17200 " statvfs path\n"
17201 "\n"
17202 msgstr ""
17203 " statvfs шлях\n"
17204 "\n"
17205
17206 #. type: textblock
17207 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
17208 msgid ""
17209 "Returns file system statistics for any mounted file system.  C<path> should "
17210 "be a file or directory in the mounted file system (typically it is the mount "
17211 "point itself, but it doesn't need to be)."
17212 msgstr ""
17213
17214 #. type: textblock
17215 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
17216 msgid "This is the same as the C<statvfs(2)> system call."
17217 msgstr ""
17218
17219 #. type: =head2
17220 #: ../fish/guestfish-actions.pod:4692
17221 msgid "strings"
17222 msgstr "strings"
17223
17224 #. type: verbatim
17225 #: ../fish/guestfish-actions.pod:4694
17226 #, no-wrap
17227 msgid ""
17228 " strings path\n"
17229 "\n"
17230 msgstr ""
17231 " strings шлях\n"
17232 "\n"
17233
17234 #. type: textblock
17235 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
17236 msgid ""
17237 "This runs the L<strings(1)> command on a file and returns the list of "
17238 "printable strings found."
17239 msgstr ""
17240
17241 #. type: =head2
17242 #: ../fish/guestfish-actions.pod:4702
17243 msgid "strings-e"
17244 msgstr "strings-e"
17245
17246 #. type: verbatim
17247 #: ../fish/guestfish-actions.pod:4704
17248 #, no-wrap
17249 msgid ""
17250 " strings-e encoding path\n"
17251 "\n"
17252 msgstr ""
17253 " strings-e кодування шлях\n"
17254 "\n"
17255
17256 #. type: textblock
17257 #: ../fish/guestfish-actions.pod:4706
17258 msgid ""
17259 "This is like the L</strings> command, but allows you to specify the encoding "
17260 "of strings that are looked for in the source file C<path>."
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
17265 msgid "Allowed encodings are:"
17266 msgstr "Можливими кодуваннями є:"
17267
17268 #. type: =item
17269 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
17270 msgid "s"
17271 msgstr "s"
17272
17273 #. type: textblock
17274 #: ../fish/guestfish-actions.pod:4716
17275 msgid ""
17276 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17277 "ISO-8859-X (this is what L</strings> uses)."
17278 msgstr ""
17279
17280 #. type: =item
17281 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
17282 msgid "S"
17283 msgstr "S"
17284
17285 #. type: textblock
17286 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
17287 msgid "Single 8-bit-byte characters."
17288 msgstr "Окремі 8-бітові-байтові символи."
17289
17290 #. type: =item
17291 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
17292 msgid "b"
17293 msgstr "b"
17294
17295 #. type: textblock
17296 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
17297 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17298 msgstr ""
17299
17300 #. type: =item
17301 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
17302 msgid "l (lower case letter L)"
17303 msgstr ""
17304
17305 #. type: textblock
17306 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
17307 msgid ""
17308 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17309 "examining binaries in Windows guests."
17310 msgstr ""
17311
17312 #. type: =item
17313 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
17314 msgid "B"
17315 msgstr "B"
17316
17317 #. type: textblock
17318 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
17319 msgid "32-bit big endian such as UCS-4BE."
17320 msgstr ""
17321
17322 #. type: =item
17323 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
17324 msgid "L"
17325 msgstr "L"
17326
17327 #. type: textblock
17328 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
17329 msgid "32-bit little endian such as UCS-4LE."
17330 msgstr ""
17331
17332 #. type: textblock
17333 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
17334 msgid "The returned strings are transcoded to UTF-8."
17335 msgstr ""
17336
17337 #. type: =head2
17338 #: ../fish/guestfish-actions.pod:4748
17339 msgid "swapoff-device"
17340 msgstr "swapoff-device"
17341
17342 #. type: verbatim
17343 #: ../fish/guestfish-actions.pod:4750
17344 #, no-wrap
17345 msgid ""
17346 " swapoff-device device\n"
17347 "\n"
17348 msgstr ""
17349 " swapoff-device пристрій\n"
17350 "\n"
17351
17352 #. type: textblock
17353 #: ../fish/guestfish-actions.pod:4752
17354 msgid ""
17355 "This command disables the libguestfs appliance swap device or partition "
17356 "named C<device>.  See L</swapon-device>."
17357 msgstr ""
17358
17359 #. type: =head2
17360 #: ../fish/guestfish-actions.pod:4756
17361 msgid "swapoff-file"
17362 msgstr "swapoff-file"
17363
17364 #. type: verbatim
17365 #: ../fish/guestfish-actions.pod:4758
17366 #, no-wrap
17367 msgid ""
17368 " swapoff-file file\n"
17369 "\n"
17370 msgstr ""
17371 " swapoff-file файл\n"
17372 "\n"
17373
17374 #. type: textblock
17375 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
17376 msgid "This command disables the libguestfs appliance swap on file."
17377 msgstr ""
17378
17379 #. type: =head2
17380 #: ../fish/guestfish-actions.pod:4762
17381 msgid "swapoff-label"
17382 msgstr "swapoff-label"
17383
17384 #. type: verbatim
17385 #: ../fish/guestfish-actions.pod:4764
17386 #, no-wrap
17387 msgid ""
17388 " swapoff-label label\n"
17389 "\n"
17390 msgstr ""
17391 " swapoff-label мітка\n"
17392 "\n"
17393
17394 #. type: textblock
17395 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
17396 msgid ""
17397 "This command disables the libguestfs appliance swap on labeled swap "
17398 "partition."
17399 msgstr ""
17400
17401 #. type: =head2
17402 #: ../fish/guestfish-actions.pod:4769
17403 msgid "swapoff-uuid"
17404 msgstr "swapoff-uuid"
17405
17406 #. type: verbatim
17407 #: ../fish/guestfish-actions.pod:4771
17408 #, no-wrap
17409 msgid ""
17410 " swapoff-uuid uuid\n"
17411 "\n"
17412 msgstr ""
17413 " swapoff-uuid uuid\n"
17414 "\n"
17415
17416 #. type: textblock
17417 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
17418 msgid ""
17419 "This command disables the libguestfs appliance swap partition with the given "
17420 "UUID."
17421 msgstr ""
17422
17423 #. type: =head2
17424 #: ../fish/guestfish-actions.pod:4776
17425 msgid "swapon-device"
17426 msgstr "swapon-device"
17427
17428 #. type: verbatim
17429 #: ../fish/guestfish-actions.pod:4778
17430 #, no-wrap
17431 msgid ""
17432 " swapon-device device\n"
17433 "\n"
17434 msgstr ""
17435 " swapon-device пристрій\n"
17436 "\n"
17437
17438 #. type: textblock
17439 #: ../fish/guestfish-actions.pod:4780
17440 msgid ""
17441 "This command enables the libguestfs appliance to use the swap device or "
17442 "partition named C<device>.  The increased memory is made available for all "
17443 "commands, for example those run using L</command> or L</sh>."
17444 msgstr ""
17445
17446 #. type: textblock
17447 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
17448 msgid ""
17449 "Note that you should not swap to existing guest swap partitions unless you "
17450 "know what you are doing.  They may contain hibernation information, or other "
17451 "information that the guest doesn't want you to trash.  You also risk leaking "
17452 "information about the host to the guest this way.  Instead, attach a new "
17453 "host device to the guest and swap on that."
17454 msgstr ""
17455
17456 #. type: =head2
17457 #: ../fish/guestfish-actions.pod:4792
17458 msgid "swapon-file"
17459 msgstr "swapon-file"
17460
17461 #. type: verbatim
17462 #: ../fish/guestfish-actions.pod:4794
17463 #, no-wrap
17464 msgid ""
17465 " swapon-file file\n"
17466 "\n"
17467 msgstr ""
17468 " swapon-file файл\n"
17469 "\n"
17470
17471 #. type: textblock
17472 #: ../fish/guestfish-actions.pod:4796
17473 msgid ""
17474 "This command enables swap to a file.  See L</swapon-device> for other notes."
17475 msgstr ""
17476
17477 #. type: =head2
17478 #: ../fish/guestfish-actions.pod:4799
17479 msgid "swapon-label"
17480 msgstr "swapon-label"
17481
17482 #. type: verbatim
17483 #: ../fish/guestfish-actions.pod:4801
17484 #, no-wrap
17485 msgid ""
17486 " swapon-label label\n"
17487 "\n"
17488 msgstr ""
17489 " swapon-label мітка\n"
17490 "\n"
17491
17492 #. type: textblock
17493 #: ../fish/guestfish-actions.pod:4803
17494 msgid ""
17495 "This command enables swap to a labeled swap partition.  See L</swapon-"
17496 "device> for other notes."
17497 msgstr ""
17498
17499 #. type: =head2
17500 #: ../fish/guestfish-actions.pod:4806
17501 msgid "swapon-uuid"
17502 msgstr "swapon-uuid"
17503
17504 #. type: verbatim
17505 #: ../fish/guestfish-actions.pod:4808
17506 #, no-wrap
17507 msgid ""
17508 " swapon-uuid uuid\n"
17509 "\n"
17510 msgstr ""
17511 " swapon-uuid uuid\n"
17512 "\n"
17513
17514 #. type: textblock
17515 #: ../fish/guestfish-actions.pod:4810
17516 msgid ""
17517 "This command enables swap to a swap partition with the given UUID.  See L</"
17518 "swapon-device> for other notes."
17519 msgstr ""
17520
17521 #. type: =head2
17522 #: ../fish/guestfish-actions.pod:4813
17523 msgid "sync"
17524 msgstr "sync"
17525
17526 #. type: verbatim
17527 #: ../fish/guestfish-actions.pod:4815
17528 #, no-wrap
17529 msgid ""
17530 " sync\n"
17531 "\n"
17532 msgstr ""
17533 " sync\n"
17534 "\n"
17535
17536 #. type: textblock
17537 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
17538 msgid ""
17539 "This syncs the disk, so that any writes are flushed through to the "
17540 "underlying disk image."
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
17545 msgid ""
17546 "You should always call this if you have modified a disk image, before "
17547 "closing the handle."
17548 msgstr ""
17549
17550 #. type: =head2
17551 #: ../fish/guestfish-actions.pod:4823
17552 msgid "tail"
17553 msgstr "tail"
17554
17555 #. type: verbatim
17556 #: ../fish/guestfish-actions.pod:4825
17557 #, no-wrap
17558 msgid ""
17559 " tail path\n"
17560 "\n"
17561 msgstr ""
17562 " tail шлях\n"
17563 "\n"
17564
17565 #. type: textblock
17566 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
17567 msgid ""
17568 "This command returns up to the last 10 lines of a file as a list of strings."
17569 msgstr ""
17570
17571 #. type: =head2
17572 #: ../fish/guestfish-actions.pod:4833
17573 msgid "tail-n"
17574 msgstr "tail-n"
17575
17576 #. type: verbatim
17577 #: ../fish/guestfish-actions.pod:4835
17578 #, no-wrap
17579 msgid ""
17580 " tail-n nrlines path\n"
17581 "\n"
17582 msgstr ""
17583
17584 #. type: textblock
17585 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
17586 msgid ""
17587 "If the parameter C<nrlines> is a positive number, this returns the last "
17588 "C<nrlines> lines of the file C<path>."
17589 msgstr ""
17590
17591 #. type: textblock
17592 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
17593 msgid ""
17594 "If the parameter C<nrlines> is a negative number, this returns lines from "
17595 "the file C<path>, starting with the C<-nrlines>th line."
17596 msgstr ""
17597
17598 #. type: =head2
17599 #: ../fish/guestfish-actions.pod:4848
17600 msgid "tar-in"
17601 msgstr "tar-in"
17602
17603 #. type: verbatim
17604 #: ../fish/guestfish-actions.pod:4850
17605 #, no-wrap
17606 msgid ""
17607 " tar-in (tarfile|-) directory\n"
17608 "\n"
17609 msgstr ""
17610 " tar-in (файл_tar|-) каталог\n"
17611 "\n"
17612
17613 #. type: textblock
17614 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
17615 msgid ""
17616 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17617 "tar file) into C<directory>."
17618 msgstr ""
17619
17620 #. type: textblock
17621 #: ../fish/guestfish-actions.pod:4855
17622 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17623 msgstr ""
17624
17625 #. type: =head2
17626 #: ../fish/guestfish-actions.pod:4860
17627 msgid "tar-out"
17628 msgstr "tar-out"
17629
17630 #. type: verbatim
17631 #: ../fish/guestfish-actions.pod:4862
17632 #, no-wrap
17633 msgid ""
17634 " tar-out directory (tarfile|-)\n"
17635 "\n"
17636 msgstr ""
17637 " tar-out каталог (файл tar|-)\n"
17638 "\n"
17639
17640 #. type: textblock
17641 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
17642 msgid ""
17643 "This command packs the contents of C<directory> and downloads it to local "
17644 "file C<tarfile>."
17645 msgstr ""
17646
17647 #. type: textblock
17648 #: ../fish/guestfish-actions.pod:4867
17649 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17650 msgstr ""
17651
17652 #. type: =head2
17653 #: ../fish/guestfish-actions.pod:4872
17654 msgid "tgz-in"
17655 msgstr "tgz-in"
17656
17657 #. type: verbatim
17658 #: ../fish/guestfish-actions.pod:4874
17659 #, no-wrap
17660 msgid ""
17661 " tgz-in (tarball|-) directory\n"
17662 "\n"
17663 msgstr ""
17664 " tgz-in (архів tar|-) каталог\n"
17665 "\n"
17666
17667 #. type: textblock
17668 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
17669 msgid ""
17670 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17671 "tar file) into C<directory>."
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish-actions.pod:4879
17676 msgid "To upload an uncompressed tarball, use L</tar-in>."
17677 msgstr ""
17678
17679 #. type: =head2
17680 #: ../fish/guestfish-actions.pod:4883
17681 msgid "tgz-out"
17682 msgstr "tgz-out"
17683
17684 #. type: verbatim
17685 #: ../fish/guestfish-actions.pod:4885
17686 #, no-wrap
17687 msgid ""
17688 " tgz-out directory (tarball|-)\n"
17689 "\n"
17690 msgstr ""
17691 " tgz-out каталог (архів tar|-)\n"
17692 "\n"
17693
17694 #. type: textblock
17695 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
17696 msgid ""
17697 "This command packs the contents of C<directory> and downloads it to local "
17698 "file C<tarball>."
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish-actions.pod:4890
17703 msgid "To download an uncompressed tarball, use L</tar-out>."
17704 msgstr ""
17705
17706 #. type: =head2
17707 #: ../fish/guestfish-actions.pod:4894
17708 msgid "touch"
17709 msgstr "touch"
17710
17711 #. type: verbatim
17712 #: ../fish/guestfish-actions.pod:4896
17713 #, no-wrap
17714 msgid ""
17715 " touch path\n"
17716 "\n"
17717 msgstr ""
17718 " touch шлях\n"
17719 "\n"
17720
17721 #. type: textblock
17722 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
17723 msgid ""
17724 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17725 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17726 "length file."
17727 msgstr ""
17728
17729 #. type: textblock
17730 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
17731 msgid ""
17732 "This command only works on regular files, and will fail on other file types "
17733 "such as directories, symbolic links, block special etc."
17734 msgstr ""
17735
17736 #. type: =head2
17737 #: ../fish/guestfish-actions.pod:4905
17738 msgid "truncate"
17739 msgstr "truncate"
17740
17741 #. type: verbatim
17742 #: ../fish/guestfish-actions.pod:4907
17743 #, no-wrap
17744 msgid ""
17745 " truncate path\n"
17746 "\n"
17747 msgstr ""
17748 " truncate шлях\n"
17749 "\n"
17750
17751 #. type: textblock
17752 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
17753 msgid ""
17754 "This command truncates C<path> to a zero-length file.  The file must exist "
17755 "already."
17756 msgstr ""
17757
17758 #. type: =head2
17759 #: ../fish/guestfish-actions.pod:4912
17760 msgid "truncate-size"
17761 msgstr "truncate-size"
17762
17763 #. type: verbatim
17764 #: ../fish/guestfish-actions.pod:4914
17765 #, no-wrap
17766 msgid ""
17767 " truncate-size path size\n"
17768 "\n"
17769 msgstr ""
17770 " truncate-size шлях розмір\n"
17771 "\n"
17772
17773 #. type: textblock
17774 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
17775 msgid ""
17776 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17777 "already."
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../fish/guestfish-actions.pod:4919
17782 msgid ""
17783 "If the current file size is less than C<size> then the file is extended to "
17784 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17785 "blocks are not allocated for the file until you write to it).  To create a "
17786 "non-sparse file of zeroes, use L</fallocate64> instead."
17787 msgstr ""
17788
17789 #. type: =head2
17790 #: ../fish/guestfish-actions.pod:4925
17791 msgid "tune2fs-l"
17792 msgstr "tune2fs-l"
17793
17794 #. type: verbatim
17795 #: ../fish/guestfish-actions.pod:4927
17796 #, no-wrap
17797 msgid ""
17798 " tune2fs-l device\n"
17799 "\n"
17800 msgstr ""
17801 " tune2fs-l пристрій\n"
17802 "\n"
17803
17804 #. type: textblock
17805 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
17806 msgid ""
17807 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17808 "C<device>."
17809 msgstr ""
17810
17811 #. type: textblock
17812 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
17813 msgid ""
17814 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17815 "for more details.  The list of fields returned isn't clearly defined, and "
17816 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17817 "and the filesystem itself."
17818 msgstr ""
17819
17820 #. type: =head2
17821 #: ../fish/guestfish-actions.pod:4937
17822 msgid "txz-in"
17823 msgstr "txz-in"
17824
17825 #. type: verbatim
17826 #: ../fish/guestfish-actions.pod:4939
17827 #, no-wrap
17828 msgid ""
17829 " txz-in (tarball|-) directory\n"
17830 "\n"
17831 msgstr ""
17832 " txz-in (архів tar|-) каталог\n"
17833 "\n"
17834
17835 #. type: textblock
17836 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
17837 msgid ""
17838 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17839 "tar file) into C<directory>."
17840 msgstr ""
17841
17842 #. type: =head2
17843 #: ../fish/guestfish-actions.pod:4946
17844 msgid "txz-out"
17845 msgstr "txz-out"
17846
17847 #. type: verbatim
17848 #: ../fish/guestfish-actions.pod:4948
17849 #, no-wrap
17850 msgid ""
17851 " txz-out directory (tarball|-)\n"
17852 "\n"
17853 msgstr ""
17854 " txz-out каталог (архів tar|-)\n"
17855 "\n"
17856
17857 #. type: textblock
17858 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
17859 msgid ""
17860 "This command packs the contents of C<directory> and downloads it to local "
17861 "file C<tarball> (as an xz compressed tar archive)."
17862 msgstr ""
17863
17864 #. type: =head2
17865 #: ../fish/guestfish-actions.pod:4955
17866 msgid "umask"
17867 msgstr "umask"
17868
17869 #. type: verbatim
17870 #: ../fish/guestfish-actions.pod:4957
17871 #, no-wrap
17872 msgid ""
17873 " umask mask\n"
17874 "\n"
17875 msgstr ""
17876 " umask маска\n"
17877 "\n"
17878
17879 #. type: textblock
17880 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
17881 msgid ""
17882 "This function sets the mask used for creating new files and device nodes to "
17883 "C<mask & 0777>."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
17888 msgid ""
17889 "Typical umask values would be C<022> which creates new files with "
17890 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17891 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
17896 msgid ""
17897 "The default umask is C<022>.  This is important because it means that "
17898 "directories and device nodes will be created with C<0644> or C<0755> mode "
17899 "even if you specify C<0777>."
17900 msgstr ""
17901
17902 #. type: textblock
17903 #: ../fish/guestfish-actions.pod:4971
17904 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17905 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17906
17907 #. type: textblock
17908 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
17909 msgid "This call returns the previous umask."
17910 msgstr ""
17911
17912 #. type: =head2
17913 #: ../fish/guestfish-actions.pod:4976
17914 msgid "umount"
17915 msgstr "umount"
17916
17917 #. type: =head2
17918 #: ../fish/guestfish-actions.pod:4978
17919 msgid "unmount"
17920 msgstr "unmount"
17921
17922 #. type: verbatim
17923 #: ../fish/guestfish-actions.pod:4980
17924 #, no-wrap
17925 msgid ""
17926 " umount pathordevice\n"
17927 "\n"
17928 msgstr ""
17929 " umount шлях_або_пристрій\n"
17930 "\n"
17931
17932 #. type: textblock
17933 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
17934 msgid ""
17935 "This unmounts the given filesystem.  The filesystem may be specified either "
17936 "by its mountpoint (path) or the device which contains the filesystem."
17937 msgstr ""
17938
17939 #. type: =head2
17940 #: ../fish/guestfish-actions.pod:4986
17941 msgid "umount-all"
17942 msgstr "umount-all"
17943
17944 #. type: =head2
17945 #: ../fish/guestfish-actions.pod:4988
17946 msgid "unmount-all"
17947 msgstr "unmount-all"
17948
17949 #. type: verbatim
17950 #: ../fish/guestfish-actions.pod:4990
17951 #, no-wrap
17952 msgid ""
17953 " umount-all\n"
17954 "\n"
17955 msgstr ""
17956 " umount-all\n"
17957 "\n"
17958
17959 #. type: textblock
17960 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
17961 msgid "This unmounts all mounted filesystems."
17962 msgstr ""
17963
17964 #. type: textblock
17965 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
17966 msgid "Some internal mounts are not unmounted by this call."
17967 msgstr ""
17968
17969 #. type: =head2
17970 #: ../fish/guestfish-actions.pod:4996
17971 msgid "upload"
17972 msgstr "upload"
17973
17974 #. type: verbatim
17975 #: ../fish/guestfish-actions.pod:4998
17976 #, no-wrap
17977 msgid ""
17978 " upload (filename|-) remotefilename\n"
17979 "\n"
17980 msgstr ""
17981 " upload (назва_файла|-) назва_віддаленого_файла\n"
17982 "\n"
17983
17984 #. type: textblock
17985 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013
17986 #: ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
17987 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17988 msgstr ""
17989
17990 #. type: textblock
17991 #: ../fish/guestfish-actions.pod:5005
17992 msgid "See also L</download>."
17993 msgstr "Див. також L</download>."
17994
17995 #. type: =head2
17996 #: ../fish/guestfish-actions.pod:5009
17997 msgid "upload-offset"
17998 msgstr "upload-offset"
17999
18000 #. type: verbatim
18001 #: ../fish/guestfish-actions.pod:5011
18002 #, no-wrap
18003 msgid ""
18004 " upload-offset (filename|-) remotefilename offset\n"
18005 "\n"
18006 msgstr ""
18007 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
18008 "\n"
18009
18010 #. type: textblock
18011 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
18012 msgid ""
18013 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18014 "The intention is to overwrite parts of existing files or devices, although "
18015 "if a non-existant file is specified then it is created with a \"hole\" "
18016 "before C<offset>.  The size of the data written is implicit in the size of "
18017 "the source C<filename>."
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish-actions.pod:5023
18022 msgid ""
18023 "Note that there is no limit on the amount of data that can be uploaded with "
18024 "this call, unlike with L</pwrite>, and this call always writes the full "
18025 "amount unless an error occurs."
18026 msgstr ""
18027
18028 #. type: textblock
18029 #: ../fish/guestfish-actions.pod:5028
18030 msgid "See also L</upload>, L</pwrite>."
18031 msgstr "Див. також L</upload>, L</pwrite>."
18032
18033 #. type: =head2
18034 #: ../fish/guestfish-actions.pod:5032
18035 msgid "utimens"
18036 msgstr "utimens"
18037
18038 #. type: verbatim
18039 #: ../fish/guestfish-actions.pod:5034
18040 #, no-wrap
18041 msgid ""
18042 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
18043 "\n"
18044 msgstr ""
18045
18046 #. type: textblock
18047 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
18048 msgid "This command sets the timestamps of a file with nanosecond precision."
18049 msgstr ""
18050
18051 #. type: textblock
18052 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
18053 msgid ""
18054 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18055 "from the epoch."
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
18060 msgid ""
18061 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18062 "nanoseconds from the epoch."
18063 msgstr ""
18064
18065 #. type: textblock
18066 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
18067 msgid ""
18068 "If the C<*nsecs> field contains the special value C<-1> then the "
18069 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18070 "ignored in this case)."
18071 msgstr ""
18072
18073 #. type: textblock
18074 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
18075 msgid ""
18076 "If the C<*nsecs> field contains the special value C<-2> then the "
18077 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18078 "in this case)."
18079 msgstr ""
18080
18081 #. type: =head2
18082 #: ../fish/guestfish-actions.pod:5053
18083 msgid "version"
18084 msgstr "version"
18085
18086 #. type: verbatim
18087 #: ../fish/guestfish-actions.pod:5055
18088 #, no-wrap
18089 msgid ""
18090 " version\n"
18091 "\n"
18092 msgstr ""
18093 " version\n"
18094 "\n"
18095
18096 #. type: textblock
18097 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
18098 msgid ""
18099 "Return the libguestfs version number that the program is linked against."
18100 msgstr ""
18101
18102 #. type: textblock
18103 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
18104 msgid ""
18105 "Note that because of dynamic linking this is not necessarily the version of "
18106 "libguestfs that you compiled against.  You can compile the program, and then "
18107 "at runtime dynamically link against a completely different C<libguestfs.so> "
18108 "library."
18109 msgstr ""
18110
18111 #. type: textblock
18112 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
18113 msgid ""
18114 "This call was added in version C<1.0.58>.  In previous versions of "
18115 "libguestfs there was no way to get the version number.  From C code you can "
18116 "use dynamic linker functions to find out if this symbol exists (if it "
18117 "doesn't, then it's an earlier version)."
18118 msgstr ""
18119
18120 #. type: textblock
18121 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
18122 msgid ""
18123 "The call returns a structure with four elements.  The first three (C<major>, "
18124 "C<minor> and C<release>) are numbers and correspond to the usual version "
18125 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18126 "but may be used for distro-specific information."
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
18131 msgid ""
18132 "To construct the original version string: C<$major.$minor.$release$extra>"
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
18137 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18138 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18139
18140 #. type: textblock
18141 #: ../fish/guestfish-actions.pod:5082
18142 msgid ""
18143 "I<Note:> Don't use this call to test for availability of features.  In "
18144 "enterprise distributions we backport features from later versions into "
18145 "earlier versions, making this an unreliable way to test for features.  Use "
18146 "L</available> instead."
18147 msgstr ""
18148
18149 #. type: =head2
18150 #: ../fish/guestfish-actions.pod:5088
18151 msgid "vfs-label"
18152 msgstr "vfs-label"
18153
18154 #. type: verbatim
18155 #: ../fish/guestfish-actions.pod:5090
18156 #, no-wrap
18157 msgid ""
18158 " vfs-label device\n"
18159 "\n"
18160 msgstr ""
18161 " vfs-label пристрій\n"
18162 "\n"
18163
18164 #. type: textblock
18165 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
18166 msgid "This returns the filesystem label of the filesystem on C<device>."
18167 msgstr ""
18168
18169 #. type: textblock
18170 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
18171 msgid "If the filesystem is unlabeled, this returns the empty string."
18172 msgstr ""
18173
18174 #. type: textblock
18175 #: ../fish/guestfish-actions.pod:5097
18176 msgid "To find a filesystem from the label, use L</findfs-label>."
18177 msgstr ""
18178
18179 #. type: =head2
18180 #: ../fish/guestfish-actions.pod:5099
18181 msgid "vfs-type"
18182 msgstr "vfs-type"
18183
18184 #. type: verbatim
18185 #: ../fish/guestfish-actions.pod:5101
18186 #, no-wrap
18187 msgid ""
18188 " vfs-type device\n"
18189 "\n"
18190 msgstr ""
18191 " vfs-type пристрій\n"
18192 "\n"
18193
18194 #. type: textblock
18195 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
18196 msgid ""
18197 "This command gets the filesystem type corresponding to the filesystem on "
18198 "C<device>."
18199 msgstr ""
18200
18201 #. type: textblock
18202 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
18203 msgid ""
18204 "For most filesystems, the result is the name of the Linux VFS module which "
18205 "would be used to mount this filesystem if you mounted it without specifying "
18206 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18207 msgstr ""
18208
18209 #. type: =head2
18210 #: ../fish/guestfish-actions.pod:5111
18211 msgid "vfs-uuid"
18212 msgstr "vfs-uuid"
18213
18214 #. type: verbatim
18215 #: ../fish/guestfish-actions.pod:5113
18216 #, no-wrap
18217 msgid ""
18218 " vfs-uuid device\n"
18219 "\n"
18220 msgstr ""
18221 " vfs-uuid пристрій\n"
18222 "\n"
18223
18224 #. type: textblock
18225 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
18226 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18227 msgstr ""
18228
18229 #. type: textblock
18230 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
18231 msgid "If the filesystem does not have a UUID, this returns the empty string."
18232 msgstr ""
18233
18234 #. type: textblock
18235 #: ../fish/guestfish-actions.pod:5120
18236 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18237 msgstr ""
18238
18239 #. type: =head2
18240 #: ../fish/guestfish-actions.pod:5122
18241 msgid "vg-activate"
18242 msgstr "vg-activate"
18243
18244 #. type: verbatim
18245 #: ../fish/guestfish-actions.pod:5124
18246 #, no-wrap
18247 msgid ""
18248 " vg-activate true|false 'volgroups ...'\n"
18249 "\n"
18250 msgstr ""
18251
18252 #. type: textblock
18253 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
18254 msgid ""
18255 "This command activates or (if C<activate> is false) deactivates all logical "
18256 "volumes in the listed volume groups C<volgroups>."
18257 msgstr ""
18258
18259 #. type: textblock
18260 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
18261 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18262 msgstr ""
18263
18264 #. type: textblock
18265 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
18266 msgid ""
18267 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18268 "activated or deactivated."
18269 msgstr ""
18270
18271 #. type: =head2
18272 #: ../fish/guestfish-actions.pod:5134
18273 msgid "vg-activate-all"
18274 msgstr "vg-activate-all"
18275
18276 #. type: verbatim
18277 #: ../fish/guestfish-actions.pod:5136
18278 #, no-wrap
18279 msgid ""
18280 " vg-activate-all true|false\n"
18281 "\n"
18282 msgstr ""
18283 " vg-activate-all true|false\n"
18284 "\n"
18285
18286 #. type: textblock
18287 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
18288 msgid ""
18289 "This command activates or (if C<activate> is false) deactivates all logical "
18290 "volumes in all volume groups."
18291 msgstr ""
18292
18293 #. type: textblock
18294 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
18295 msgid "This command is the same as running C<vgchange -a y|n>"
18296 msgstr ""
18297
18298 #. type: =head2
18299 #: ../fish/guestfish-actions.pod:5143
18300 msgid "vgcreate"
18301 msgstr "vgcreate"
18302
18303 #. type: verbatim
18304 #: ../fish/guestfish-actions.pod:5145
18305 #, no-wrap
18306 msgid ""
18307 " vgcreate volgroup 'physvols ...'\n"
18308 "\n"
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
18313 msgid ""
18314 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18315 "of physical volumes C<physvols>."
18316 msgstr ""
18317
18318 #. type: =head2
18319 #: ../fish/guestfish-actions.pod:5150
18320 msgid "vglvuuids"
18321 msgstr "vglvuuids"
18322
18323 #. type: verbatim
18324 #: ../fish/guestfish-actions.pod:5152
18325 #, no-wrap
18326 msgid ""
18327 " vglvuuids vgname\n"
18328 "\n"
18329 msgstr ""
18330
18331 #. type: textblock
18332 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
18333 msgid ""
18334 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18335 "volumes created in this volume group."
18336 msgstr ""
18337
18338 #. type: textblock
18339 #: ../fish/guestfish-actions.pod:5157
18340 msgid ""
18341 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18342 "logical volumes and volume groups."
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish-actions.pod:5160
18347 msgid "See also L</vgpvuuids>."
18348 msgstr "Див. також L</vgpvuuids>."
18349
18350 #. type: =head2
18351 #: ../fish/guestfish-actions.pod:5162
18352 msgid "vgpvuuids"
18353 msgstr "vgpvuuids"
18354
18355 #. type: verbatim
18356 #: ../fish/guestfish-actions.pod:5164
18357 #, no-wrap
18358 msgid ""
18359 " vgpvuuids vgname\n"
18360 "\n"
18361 msgstr ""
18362
18363 #. type: textblock
18364 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
18365 msgid ""
18366 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18367 "volumes that this volume group resides on."
18368 msgstr ""
18369
18370 #. type: textblock
18371 #: ../fish/guestfish-actions.pod:5169
18372 msgid ""
18373 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18374 "physical volumes and volume groups."
18375 msgstr ""
18376
18377 #. type: textblock
18378 #: ../fish/guestfish-actions.pod:5172
18379 msgid "See also L</vglvuuids>."
18380 msgstr "Див. також L</vglvuuids>."
18381
18382 #. type: =head2
18383 #: ../fish/guestfish-actions.pod:5174
18384 msgid "vgremove"
18385 msgstr "vgremove"
18386
18387 #. type: verbatim
18388 #: ../fish/guestfish-actions.pod:5176
18389 #, no-wrap
18390 msgid ""
18391 " vgremove vgname\n"
18392 "\n"
18393 msgstr ""
18394
18395 #. type: textblock
18396 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
18397 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18398 msgstr ""
18399
18400 #. type: textblock
18401 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
18402 msgid ""
18403 "This also forcibly removes all logical volumes in the volume group (if any)."
18404 msgstr ""
18405
18406 #. type: =head2
18407 #: ../fish/guestfish-actions.pod:5183
18408 msgid "vgrename"
18409 msgstr "vgrename"
18410
18411 #. type: verbatim
18412 #: ../fish/guestfish-actions.pod:5185
18413 #, no-wrap
18414 msgid ""
18415 " vgrename volgroup newvolgroup\n"
18416 "\n"
18417 msgstr ""
18418
18419 #. type: textblock
18420 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
18421 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18422 msgstr ""
18423
18424 #. type: =head2
18425 #: ../fish/guestfish-actions.pod:5189
18426 msgid "vgs"
18427 msgstr "vgs"
18428
18429 #. type: verbatim
18430 #: ../fish/guestfish-actions.pod:5191
18431 #, no-wrap
18432 msgid ""
18433 " vgs\n"
18434 "\n"
18435 msgstr ""
18436 " vgs\n"
18437 "\n"
18438
18439 #. type: textblock
18440 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
18441 msgid ""
18442 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18443 "> command."
18444 msgstr ""
18445
18446 #. type: textblock
18447 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
18448 msgid ""
18449 "This returns a list of just the volume group names that were detected (eg. "
18450 "C<VolGroup00>)."
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/guestfish-actions.pod:5199
18455 msgid "See also L</vgs-full>."
18456 msgstr "Див. також L</vgs-full>."
18457
18458 #. type: =head2
18459 #: ../fish/guestfish-actions.pod:5201
18460 msgid "vgs-full"
18461 msgstr "vgs-full"
18462
18463 #. type: verbatim
18464 #: ../fish/guestfish-actions.pod:5203
18465 #, no-wrap
18466 msgid ""
18467 " vgs-full\n"
18468 "\n"
18469 msgstr ""
18470 " vgs-full\n"
18471 "\n"
18472
18473 #. type: textblock
18474 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
18475 msgid ""
18476 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18477 "> command.  The \"full\" version includes all fields."
18478 msgstr ""
18479
18480 #. type: =head2
18481 #: ../fish/guestfish-actions.pod:5208
18482 msgid "vgscan"
18483 msgstr "vgscan"
18484
18485 #. type: verbatim
18486 #: ../fish/guestfish-actions.pod:5210
18487 #, no-wrap
18488 msgid ""
18489 " vgscan\n"
18490 "\n"
18491 msgstr ""
18492 " vgscan\n"
18493 "\n"
18494
18495 #. type: textblock
18496 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
18497 msgid ""
18498 "This rescans all block devices and rebuilds the list of LVM physical "
18499 "volumes, volume groups and logical volumes."
18500 msgstr ""
18501
18502 #. type: =head2
18503 #: ../fish/guestfish-actions.pod:5215
18504 msgid "vguuid"
18505 msgstr "vguuid"
18506
18507 #. type: verbatim
18508 #: ../fish/guestfish-actions.pod:5217
18509 #, no-wrap
18510 msgid ""
18511 " vguuid vgname\n"
18512 "\n"
18513 msgstr ""
18514
18515 #. type: textblock
18516 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
18517 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18518 msgstr ""
18519
18520 #. type: =head2
18521 #: ../fish/guestfish-actions.pod:5221
18522 msgid "wc-c"
18523 msgstr "wc-c"
18524
18525 #. type: verbatim
18526 #: ../fish/guestfish-actions.pod:5223
18527 #, no-wrap
18528 msgid ""
18529 " wc-c path\n"
18530 "\n"
18531 msgstr ""
18532 " wc-c шлях\n"
18533 "\n"
18534
18535 #. type: textblock
18536 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
18537 msgid ""
18538 "This command counts the characters in a file, using the C<wc -c> external "
18539 "command."
18540 msgstr ""
18541
18542 #. type: =head2
18543 #: ../fish/guestfish-actions.pod:5228
18544 msgid "wc-l"
18545 msgstr "wc-l"
18546
18547 #. type: verbatim
18548 #: ../fish/guestfish-actions.pod:5230
18549 #, no-wrap
18550 msgid ""
18551 " wc-l path\n"
18552 "\n"
18553 msgstr ""
18554 " wc-l шлях\n"
18555 "\n"
18556
18557 #. type: textblock
18558 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
18559 msgid ""
18560 "This command counts the lines in a file, using the C<wc -l> external command."
18561 msgstr ""
18562
18563 #. type: =head2
18564 #: ../fish/guestfish-actions.pod:5235
18565 msgid "wc-w"
18566 msgstr "wc-w"
18567
18568 #. type: verbatim
18569 #: ../fish/guestfish-actions.pod:5237
18570 #, no-wrap
18571 msgid ""
18572 " wc-w path\n"
18573 "\n"
18574 msgstr ""
18575 " wc-w шлях\n"
18576 "\n"
18577
18578 #. type: textblock
18579 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
18580 msgid ""
18581 "This command counts the words in a file, using the C<wc -w> external command."
18582 msgstr ""
18583
18584 #. type: =head2
18585 #: ../fish/guestfish-actions.pod:5242
18586 msgid "write"
18587 msgstr "write"
18588
18589 #. type: verbatim
18590 #: ../fish/guestfish-actions.pod:5244
18591 #, no-wrap
18592 msgid ""
18593 " write path content\n"
18594 "\n"
18595 msgstr ""
18596 " write шлях дані\n"
18597 "\n"
18598
18599 #. type: textblock
18600 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
18601 msgid ""
18602 "This call creates a file called C<path>.  The content of the file is the "
18603 "string C<content> (which can contain any 8 bit data)."
18604 msgstr ""
18605
18606 #. type: textblock
18607 #: ../fish/guestfish-actions.pod:5249
18608 msgid "See also L</write-append>."
18609 msgstr "Див. також L</write-append>."
18610
18611 #. type: =head2
18612 #: ../fish/guestfish-actions.pod:5254
18613 msgid "write-append"
18614 msgstr ""
18615
18616 #. type: verbatim
18617 #: ../fish/guestfish-actions.pod:5256
18618 #, no-wrap
18619 msgid ""
18620 " write-append path content\n"
18621 "\n"
18622 msgstr ""
18623
18624 #. type: textblock
18625 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
18626 msgid ""
18627 "This call appends C<content> to the end of file C<path>.  If C<path> does "
18628 "not exist, then a new file is created."
18629 msgstr ""
18630
18631 #. type: textblock
18632 #: ../fish/guestfish-actions.pod:5261
18633 msgid "See also L</write>."
18634 msgstr "Див. також L</write>."
18635
18636 #. type: =head2
18637 #: ../fish/guestfish-actions.pod:5266
18638 msgid "write-file"
18639 msgstr "write-file"
18640
18641 #. type: verbatim
18642 #: ../fish/guestfish-actions.pod:5268
18643 #, no-wrap
18644 msgid ""
18645 " write-file path content size\n"
18646 "\n"
18647 msgstr ""
18648
18649 #. type: textblock
18650 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
18651 msgid ""
18652 "This call creates a file called C<path>.  The contents of the file is the "
18653 "string C<content> (which can contain any 8 bit data), with length C<size>."
18654 msgstr ""
18655
18656 #. type: textblock
18657 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
18658 msgid ""
18659 "As a special case, if C<size> is C<0> then the length is calculated using "
18660 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
18665 msgid ""
18666 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18667 "I<not> work, even if the length is specified."
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish-actions.pod:5284
18672 msgid ""
18673 "I<This function is deprecated.> In new code, use the L</write> call instead."
18674 msgstr ""
18675
18676 #. type: =head2
18677 #: ../fish/guestfish-actions.pod:5291
18678 msgid "zegrep"
18679 msgstr "zegrep"
18680
18681 #. type: verbatim
18682 #: ../fish/guestfish-actions.pod:5293
18683 #, no-wrap
18684 msgid ""
18685 " zegrep regex path\n"
18686 "\n"
18687 msgstr ""
18688 " zegrep формальний_вираз шлях\n"
18689 "\n"
18690
18691 #. type: textblock
18692 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
18693 msgid ""
18694 "This calls the external C<zegrep> program and returns the matching lines."
18695 msgstr ""
18696
18697 #. type: =head2
18698 #: ../fish/guestfish-actions.pod:5301
18699 msgid "zegrepi"
18700 msgstr "zegrepi"
18701
18702 #. type: verbatim
18703 #: ../fish/guestfish-actions.pod:5303
18704 #, no-wrap
18705 msgid ""
18706 " zegrepi regex path\n"
18707 "\n"
18708 msgstr ""
18709
18710 #. type: textblock
18711 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
18712 msgid ""
18713 "This calls the external C<zegrep -i> program and returns the matching lines."
18714 msgstr ""
18715
18716 #. type: =head2
18717 #: ../fish/guestfish-actions.pod:5311
18718 msgid "zero"
18719 msgstr "zero"
18720
18721 #. type: verbatim
18722 #: ../fish/guestfish-actions.pod:5313
18723 #, no-wrap
18724 msgid ""
18725 " zero device\n"
18726 "\n"
18727 msgstr ""
18728 " zero пристрій\n"
18729 "\n"
18730
18731 #. type: textblock
18732 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
18733 msgid "This command writes zeroes over the first few blocks of C<device>."
18734 msgstr ""
18735
18736 #. type: textblock
18737 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
18738 msgid ""
18739 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18740 "securely wipe the device).  It should be sufficient to remove any partition "
18741 "tables, filesystem superblocks and so on."
18742 msgstr ""
18743
18744 #. type: textblock
18745 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336
18746 #: ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
18747 msgid ""
18748 "If blocks are already zero, then this command avoids writing zeroes.  This "
18749 "prevents the underlying device from becoming non-sparse or growing "
18750 "unnecessarily."
18751 msgstr ""
18752
18753 #. type: textblock
18754 #: ../fish/guestfish-actions.pod:5325
18755 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18756 msgstr ""
18757
18758 #. type: =head2
18759 #: ../fish/guestfish-actions.pod:5328
18760 msgid "zero-device"
18761 msgstr "zero-device"
18762
18763 #. type: verbatim
18764 #: ../fish/guestfish-actions.pod:5330
18765 #, no-wrap
18766 msgid ""
18767 " zero-device device\n"
18768 "\n"
18769 msgstr ""
18770 " zero-device пристрій\n"
18771 "\n"
18772
18773 #. type: textblock
18774 #: ../fish/guestfish-actions.pod:5332
18775 msgid ""
18776 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
18777 "which just zeroes the first few blocks of a device."
18778 msgstr ""
18779
18780 #. type: =head2
18781 #: ../fish/guestfish-actions.pod:5340
18782 msgid "zerofree"
18783 msgstr "zerofree"
18784
18785 #. type: verbatim
18786 #: ../fish/guestfish-actions.pod:5342
18787 #, no-wrap
18788 msgid ""
18789 " zerofree device\n"
18790 "\n"
18791 msgstr ""
18792 " zerofree пристрій\n"
18793 "\n"
18794
18795 #. type: textblock
18796 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
18797 msgid ""
18798 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18799 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18800 "possible to compress the filesystem more effectively."
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
18805 msgid "You should B<not> run this program if the filesystem is mounted."
18806 msgstr ""
18807
18808 #. type: textblock
18809 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
18810 msgid ""
18811 "It is possible that using this program can damage the filesystem or data on "
18812 "the filesystem."
18813 msgstr ""
18814
18815 #. type: =head2
18816 #: ../fish/guestfish-actions.pod:5355
18817 msgid "zfgrep"
18818 msgstr "zfgrep"
18819
18820 #. type: verbatim
18821 #: ../fish/guestfish-actions.pod:5357
18822 #, no-wrap
18823 msgid ""
18824 " zfgrep pattern path\n"
18825 "\n"
18826 msgstr ""
18827 " zfgrep шаблон шлях\n"
18828 "\n"
18829
18830 #. type: textblock
18831 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
18832 msgid ""
18833 "This calls the external C<zfgrep> program and returns the matching lines."
18834 msgstr ""
18835
18836 #. type: =head2
18837 #: ../fish/guestfish-actions.pod:5365
18838 msgid "zfgrepi"
18839 msgstr "zfgrepi"
18840
18841 #. type: verbatim
18842 #: ../fish/guestfish-actions.pod:5367
18843 #, no-wrap
18844 msgid ""
18845 " zfgrepi pattern path\n"
18846 "\n"
18847 msgstr ""
18848 " zfgrepi шаблон шлях\n"
18849 "\n"
18850
18851 #. type: textblock
18852 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
18853 msgid ""
18854 "This calls the external C<zfgrep -i> program and returns the matching lines."
18855 msgstr ""
18856
18857 #. type: =head2
18858 #: ../fish/guestfish-actions.pod:5375
18859 msgid "zfile"
18860 msgstr "zfile"
18861
18862 #. type: verbatim
18863 #: ../fish/guestfish-actions.pod:5377
18864 #, no-wrap
18865 msgid ""
18866 " zfile meth path\n"
18867 "\n"
18868 msgstr ""
18869 " zfile метод шлях\n"
18870 "\n"
18871
18872 #. type: textblock
18873 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
18874 msgid ""
18875 "This command runs C<file> after first decompressing C<path> using C<method>."
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
18880 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18881 msgstr ""
18882
18883 #. type: textblock
18884 #: ../fish/guestfish-actions.pod:5384
18885 msgid ""
18886 "Since 1.0.63, use L</file> instead which can now process compressed files."
18887 msgstr ""
18888
18889 #. type: textblock
18890 #: ../fish/guestfish-actions.pod:5387
18891 msgid ""
18892 "I<This function is deprecated.> In new code, use the L</file> call instead."
18893 msgstr ""
18894
18895 #. type: =head2
18896 #: ../fish/guestfish-actions.pod:5394
18897 msgid "zgrep"
18898 msgstr "zgrep"
18899
18900 #. type: verbatim
18901 #: ../fish/guestfish-actions.pod:5396
18902 #, no-wrap
18903 msgid ""
18904 " zgrep regex path\n"
18905 "\n"
18906 msgstr ""
18907 " zgrep формальний_вираз шлях\n"
18908 "\n"
18909
18910 #. type: textblock
18911 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
18912 msgid ""
18913 "This calls the external C<zgrep> program and returns the matching lines."
18914 msgstr ""
18915
18916 #. type: =head2
18917 #: ../fish/guestfish-actions.pod:5404
18918 msgid "zgrepi"
18919 msgstr "zgrepi"
18920
18921 #. type: verbatim
18922 #: ../fish/guestfish-actions.pod:5406
18923 #, no-wrap
18924 msgid ""
18925 " zgrepi regex path\n"
18926 "\n"
18927 msgstr ""
18928 " zgrepi формальний_вираз шлях\n"
18929 "\n"
18930
18931 #. type: textblock
18932 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
18933 msgid ""
18934 "This calls the external C<zgrep -i> program and returns the matching lines."
18935 msgstr ""
18936
18937 #. type: =head2
18938 #: ../fish/guestfish-commands.pod:1
18939 msgid "alloc"
18940 msgstr "alloc"
18941
18942 #. type: =head2
18943 #: ../fish/guestfish-commands.pod:3
18944 msgid "allocate"
18945 msgstr ""
18946
18947 #. type: verbatim
18948 #: ../fish/guestfish-commands.pod:5
18949 #, no-wrap
18950 msgid ""
18951 " alloc filename size\n"
18952 "\n"
18953 msgstr ""
18954
18955 #. type: textblock
18956 #: ../fish/guestfish-commands.pod:7
18957 msgid ""
18958 "This creates an empty (zeroed) file of the given size, and then adds so it "
18959 "can be further examined."
18960 msgstr ""
18961
18962 #. type: textblock
18963 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18964 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18969 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18970 msgstr ""
18971
18972 #. type: textblock
18973 #: ../fish/guestfish-commands.pod:14
18974 msgid ""
18975 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18976 "image, see L</PREPARED DISK IMAGES>."
18977 msgstr ""
18978
18979 #. type: =head2
18980 #: ../fish/guestfish-commands.pod:17
18981 msgid "copy-in"
18982 msgstr "copy-in"
18983
18984 #. type: verbatim
18985 #: ../fish/guestfish-commands.pod:19
18986 #, no-wrap
18987 msgid ""
18988 " copy-in local [local ...] /remotedir\n"
18989 "\n"
18990 msgstr ""
18991
18992 #. type: textblock
18993 #: ../fish/guestfish-commands.pod:21
18994 msgid ""
18995 "C<copy-in> copies local files or directories recursively into the disk "
18996 "image, placing them in the directory called C</remotedir> (which must "
18997 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18998 "other commands as necessary."
18999 msgstr ""
19000
19001 #. type: textblock
19002 #: ../fish/guestfish-commands.pod:26
19003 msgid ""
19004 "Multiple local files and directories can be specified, but the last "
19005 "parameter must always be a remote directory.  Wildcards cannot be used."
19006 msgstr ""
19007
19008 #. type: =head2
19009 #: ../fish/guestfish-commands.pod:30
19010 msgid "copy-out"
19011 msgstr "copy-out"
19012
19013 #. type: verbatim
19014 #: ../fish/guestfish-commands.pod:32
19015 #, no-wrap
19016 msgid ""
19017 " copy-out remote [remote ...] localdir\n"
19018 "\n"
19019 msgstr ""
19020
19021 #. type: textblock
19022 #: ../fish/guestfish-commands.pod:34
19023 msgid ""
19024 "C<copy-out> copies remote files or directories recursively out of the disk "
19025 "image, placing them on the host disk in a local directory called C<localdir> "
19026 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
19027 "download>, L</tar-out> and other commands as necessary."
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../fish/guestfish-commands.pod:40
19032 msgid ""
19033 "Multiple remote files and directories can be specified, but the last "
19034 "parameter must always be a local directory.  To download to the current "
19035 "directory, use C<.> as in:"
19036 msgstr ""
19037
19038 #. type: verbatim
19039 #: ../fish/guestfish-commands.pod:44
19040 #, no-wrap
19041 msgid ""
19042 " copy-out /home .\n"
19043 "\n"
19044 msgstr ""
19045 " copy-out /home .\n"
19046 "\n"
19047
19048 #. type: textblock
19049 #: ../fish/guestfish-commands.pod:46
19050 msgid ""
19051 "Wildcards cannot be used in the ordinary command, but you can use them with "
19052 "the help of L</glob> like this:"
19053 msgstr ""
19054
19055 #. type: verbatim
19056 #: ../fish/guestfish-commands.pod:49
19057 #, no-wrap
19058 msgid ""
19059 " glob copy-out /home/* .\n"
19060 "\n"
19061 msgstr ""
19062 " glob copy-out /home/* .\n"
19063 "\n"
19064
19065 #. type: =head2
19066 #: ../fish/guestfish-commands.pod:51
19067 msgid "display"
19068 msgstr ""
19069
19070 #. type: verbatim
19071 #: ../fish/guestfish-commands.pod:53
19072 #, no-wrap
19073 msgid ""
19074 " display filename\n"
19075 "\n"
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../fish/guestfish-commands.pod:55
19080 msgid ""
19081 "Use C<display> (a graphical display program) to display an image file.  It "
19082 "downloads the file, and runs C<display> on it."
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/guestfish-commands.pod:58
19087 msgid ""
19088 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
19089 "environment variable.  For example to use the GNOME display program:"
19090 msgstr ""
19091
19092 #. type: verbatim
19093 #: ../fish/guestfish-commands.pod:61
19094 #, no-wrap
19095 msgid ""
19096 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
19097 "\n"
19098 msgstr ""
19099
19100 #. type: textblock
19101 #: ../fish/guestfish-commands.pod:63
19102 msgid "See also L<display(1)>."
19103 msgstr "Див. також L<display(1)>."
19104
19105 #. type: =head2
19106 #: ../fish/guestfish-commands.pod:65
19107 msgid "echo"
19108 msgstr "echo"
19109
19110 #. type: verbatim
19111 #: ../fish/guestfish-commands.pod:67
19112 #, no-wrap
19113 msgid ""
19114 " echo [params ...]\n"
19115 "\n"
19116 msgstr ""
19117 " echo [параметри...]\n"
19118 "\n"
19119
19120 #. type: textblock
19121 #: ../fish/guestfish-commands.pod:69
19122 msgid "This echos the parameters to the terminal."
19123 msgstr ""
19124
19125 #. type: =head2
19126 #: ../fish/guestfish-commands.pod:71
19127 msgid "edit"
19128 msgstr "edit"
19129
19130 #. type: =head2
19131 #: ../fish/guestfish-commands.pod:73
19132 msgid "vi"
19133 msgstr "vi"
19134
19135 #. type: =head2
19136 #: ../fish/guestfish-commands.pod:75
19137 msgid "emacs"
19138 msgstr "emacs"
19139
19140 #. type: verbatim
19141 #: ../fish/guestfish-commands.pod:77
19142 #, no-wrap
19143 msgid ""
19144 " edit filename\n"
19145 "\n"
19146 msgstr ""
19147 " edit назва_файла\n"
19148 "\n"
19149
19150 #. type: textblock
19151 #: ../fish/guestfish-commands.pod:79
19152 msgid ""
19153 "This is used to edit a file.  It downloads the file, edits it locally using "
19154 "your editor, then uploads the result."
19155 msgstr ""
19156
19157 #. type: textblock
19158 #: ../fish/guestfish-commands.pod:82
19159 msgid ""
19160 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
19161 "or C<emacs> you will get those corresponding editors."
19162 msgstr ""
19163
19164 #. type: =head2
19165 #: ../fish/guestfish-commands.pod:86
19166 msgid "glob"
19167 msgstr "glob"
19168
19169 #. type: verbatim
19170 #: ../fish/guestfish-commands.pod:88
19171 #, no-wrap
19172 msgid ""
19173 " glob command args...\n"
19174 "\n"
19175 msgstr ""
19176 " glob команда параметри...\n"
19177 "\n"
19178
19179 #. type: textblock
19180 #: ../fish/guestfish-commands.pod:90
19181 msgid ""
19182 "Expand wildcards in any paths in the args list, and run C<command> "
19183 "repeatedly on each matching path."
19184 msgstr ""
19185
19186 #. type: textblock
19187 #: ../fish/guestfish-commands.pod:93
19188 msgid "See L</WILDCARDS AND GLOBBING>."
19189 msgstr "Див. L</WILDCARDS AND GLOBBING>."
19190
19191 #. type: =head2
19192 #: ../fish/guestfish-commands.pod:95
19193 msgid "hexedit"
19194 msgstr "hexedit"
19195
19196 #. type: verbatim
19197 #: ../fish/guestfish-commands.pod:97
19198 #, no-wrap
19199 msgid ""
19200 " hexedit <filename|device>\n"
19201 " hexedit <filename|device> <max>\n"
19202 " hexedit <filename|device> <start> <max>\n"
19203 "\n"
19204 msgstr ""
19205
19206 #. type: textblock
19207 #: ../fish/guestfish-commands.pod:101
19208 msgid ""
19209 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19210 "device."
19211 msgstr ""
19212
19213 #. type: textblock
19214 #: ../fish/guestfish-commands.pod:104
19215 msgid ""
19216 "This command works by downloading potentially the whole file or device, "
19217 "editing it locally, then uploading it.  If the file or device is large, you "
19218 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19219 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
19220 "usual modifiers allowed such as C<1M> (1 megabyte)."
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish-commands.pod:111
19225 msgid "For example to edit the first few sectors of a disk you might do:"
19226 msgstr ""
19227
19228 #. type: verbatim
19229 #: ../fish/guestfish-commands.pod:114
19230 #, no-wrap
19231 msgid ""
19232 " hexedit /dev/sda 1M\n"
19233 "\n"
19234 msgstr ""
19235 " hexedit /dev/sda 1M\n"
19236 "\n"
19237
19238 #. type: textblock
19239 #: ../fish/guestfish-commands.pod:116
19240 msgid ""
19241 "which would allow you to edit anywhere within the first megabyte of the disk."
19242 msgstr ""
19243
19244 #. type: textblock
19245 #: ../fish/guestfish-commands.pod:119
19246 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19247 msgstr ""
19248
19249 #. type: verbatim
19250 #: ../fish/guestfish-commands.pod:121
19251 #, no-wrap
19252 msgid ""
19253 " hexedit /dev/sda1 0x400 0x400\n"
19254 "\n"
19255 msgstr ""
19256 " hexedit /dev/sda1 0x400 0x400\n"
19257 "\n"
19258
19259 #. type: textblock
19260 #: ../fish/guestfish-commands.pod:123
19261 msgid "(assuming the superblock is in the standard location)."
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish-commands.pod:125
19266 msgid ""
19267 "This command requires the external L<hexedit(1)> program.  You can specify "
19268 "another program to use by setting the C<HEXEDITOR> environment variable."
19269 msgstr ""
19270
19271 #. type: textblock
19272 #: ../fish/guestfish-commands.pod:129
19273 msgid "See also L</hexdump>."
19274 msgstr "Див. також L</hexdump>."
19275
19276 #. type: =head2
19277 #: ../fish/guestfish-commands.pod:131
19278 msgid "lcd"
19279 msgstr "lcd"
19280
19281 #. type: verbatim
19282 #: ../fish/guestfish-commands.pod:133
19283 #, no-wrap
19284 msgid ""
19285 " lcd directory\n"
19286 "\n"
19287 msgstr ""
19288
19289 #. type: textblock
19290 #: ../fish/guestfish-commands.pod:135
19291 msgid ""
19292 "Change the local directory, ie. the current directory of guestfish itself."
19293 msgstr ""
19294
19295 #. type: textblock
19296 #: ../fish/guestfish-commands.pod:138
19297 msgid "Note that C<!cd> won't do what you might expect."
19298 msgstr ""
19299
19300 #. type: =head2
19301 #: ../fish/guestfish-commands.pod:140
19302 msgid "man"
19303 msgstr "man"
19304
19305 #. type: =head2
19306 #: ../fish/guestfish-commands.pod:142
19307 msgid "manual"
19308 msgstr "підручник"
19309
19310 #. type: verbatim
19311 #: ../fish/guestfish-commands.pod:144
19312 #, no-wrap
19313 msgid ""
19314 "  man\n"
19315 "\n"
19316 msgstr ""
19317 "  man\n"
19318 "\n"
19319
19320 #. type: textblock
19321 #: ../fish/guestfish-commands.pod:146
19322 msgid "Opens the manual page for guestfish."
19323 msgstr ""
19324
19325 #. type: =head2
19326 #: ../fish/guestfish-commands.pod:148
19327 msgid "more"
19328 msgstr "more"
19329
19330 #. type: =head2
19331 #: ../fish/guestfish-commands.pod:150
19332 msgid "less"
19333 msgstr "less"
19334
19335 #. type: verbatim
19336 #: ../fish/guestfish-commands.pod:152
19337 #, no-wrap
19338 msgid ""
19339 " more filename\n"
19340 "\n"
19341 msgstr ""
19342
19343 #. type: verbatim
19344 #: ../fish/guestfish-commands.pod:154
19345 #, no-wrap
19346 msgid ""
19347 " less filename\n"
19348 "\n"
19349 msgstr ""
19350
19351 #. type: textblock
19352 #: ../fish/guestfish-commands.pod:156
19353 msgid "This is used to view a file."
19354 msgstr ""
19355
19356 #. type: textblock
19357 #: ../fish/guestfish-commands.pod:158
19358 msgid ""
19359 "The default viewer is C<$PAGER>.  However if you use the alternate command "
19360 "C<less> you will get the C<less> command specifically."
19361 msgstr ""
19362
19363 #. type: =head2
19364 #: ../fish/guestfish-commands.pod:161
19365 msgid "reopen"
19366 msgstr "reopen"
19367
19368 #. type: verbatim
19369 #: ../fish/guestfish-commands.pod:163
19370 #, no-wrap
19371 msgid ""
19372 "  reopen\n"
19373 "\n"
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../fish/guestfish-commands.pod:165
19378 msgid ""
19379 "Close and reopen the libguestfs handle.  It is not necessary to use this "
19380 "normally, because the handle is closed properly when guestfish exits.  "
19381 "However this is occasionally useful for testing."
19382 msgstr ""
19383
19384 #. type: =head2
19385 #: ../fish/guestfish-commands.pod:169
19386 msgid "setenv"
19387 msgstr ""
19388
19389 #. type: verbatim
19390 #: ../fish/guestfish-commands.pod:171
19391 #, no-wrap
19392 msgid ""
19393 "  setenv VAR value\n"
19394 "\n"
19395 msgstr ""
19396
19397 #. type: textblock
19398 #: ../fish/guestfish-commands.pod:173
19399 msgid "Set the environment variable C<VAR> to the string C<value>."
19400 msgstr ""
19401
19402 #. type: textblock
19403 #: ../fish/guestfish-commands.pod:175
19404 msgid ""
19405 "To print the value of an environment variable use a shell command such as:"
19406 msgstr ""
19407
19408 #. type: verbatim
19409 #: ../fish/guestfish-commands.pod:178
19410 #, no-wrap
19411 msgid ""
19412 " !echo $VAR\n"
19413 "\n"
19414 msgstr ""
19415
19416 #. type: =head2
19417 #: ../fish/guestfish-commands.pod:180
19418 msgid "sparse"
19419 msgstr "sparse"
19420
19421 #. type: verbatim
19422 #: ../fish/guestfish-commands.pod:182
19423 #, no-wrap
19424 msgid ""
19425 " sparse filename size\n"
19426 "\n"
19427 msgstr ""
19428
19429 #. type: textblock
19430 #: ../fish/guestfish-commands.pod:184
19431 msgid ""
19432 "This creates an empty sparse file of the given size, and then adds so it can "
19433 "be further examined."
19434 msgstr ""
19435
19436 #. type: textblock
19437 #: ../fish/guestfish-commands.pod:187
19438 msgid ""
19439 "In all respects it works the same as the L</alloc> command, except that the "
19440 "image file is allocated sparsely, which means that disk blocks are not "
19441 "assigned to the file until they are needed.  Sparse disk files only use "
19442 "space when written to, but they are slower and there is a danger you could "
19443 "run out of real disk space during a write operation."
19444 msgstr ""
19445
19446 #. type: =head2
19447 #: ../fish/guestfish-commands.pod:197
19448 msgid "supported"
19449 msgstr "supported"
19450
19451 #. type: verbatim
19452 #: ../fish/guestfish-commands.pod:199
19453 #, no-wrap
19454 msgid ""
19455 " supported\n"
19456 "\n"
19457 msgstr ""
19458 " supported\n"
19459 "\n"
19460
19461 #. type: textblock
19462 #: ../fish/guestfish-commands.pod:201
19463 msgid ""
19464 "This command returns a list of the optional groups known to the daemon, and "
19465 "indicates which ones are supported by this build of the libguestfs appliance."
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../fish/guestfish-commands.pod:205
19470 msgid "See also L<guestfs(3)/AVAILABILITY>."
19471 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
19472
19473 #. type: =head2
19474 #: ../fish/guestfish-commands.pod:207
19475 msgid "time"
19476 msgstr "time"
19477
19478 #. type: verbatim
19479 #: ../fish/guestfish-commands.pod:209
19480 #, no-wrap
19481 msgid ""
19482 " time command args...\n"
19483 "\n"
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fish/guestfish-commands.pod:211
19488 msgid ""
19489 "Run the command as usual, but print the elapsed time afterwards.  This can "
19490 "be useful for benchmarking operations."
19491 msgstr ""
19492
19493 #. type: =head2
19494 #: ../fish/guestfish-commands.pod:214
19495 msgid "unsetenv"
19496 msgstr ""
19497
19498 #. type: verbatim
19499 #: ../fish/guestfish-commands.pod:216
19500 #, no-wrap
19501 msgid ""
19502 "  unsetenv VAR\n"
19503 "\n"
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../fish/guestfish-commands.pod:218
19508 msgid "Remove C<VAR> from the environment."
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../fish/guestfish.pod:5
19513 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19514 msgstr ""
19515
19516 #. type: verbatim
19517 #: ../fish/guestfish.pod:9
19518 #, no-wrap
19519 msgid ""
19520 " guestfish [--options] [commands]\n"
19521 "\n"
19522 msgstr ""
19523
19524 #. type: verbatim
19525 #: ../fish/guestfish.pod:11
19526 #, no-wrap
19527 msgid ""
19528 " guestfish\n"
19529 "\n"
19530 msgstr ""
19531
19532 #. type: verbatim
19533 #: ../fish/guestfish.pod:13
19534 #, no-wrap
19535 msgid ""
19536 " guestfish [--ro|--rw] -a disk.img\n"
19537 "\n"
19538 msgstr ""
19539
19540 #. type: verbatim
19541 #: ../fish/guestfish.pod:15
19542 #, no-wrap
19543 msgid ""
19544 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19545 "\n"
19546 msgstr ""
19547
19548 #. type: verbatim
19549 #: ../fish/guestfish.pod:17
19550 #, no-wrap
19551 msgid ""
19552 " guestfish -d libvirt-domain\n"
19553 "\n"
19554 msgstr ""
19555
19556 #. type: verbatim
19557 #: ../fish/guestfish.pod:19
19558 #, no-wrap
19559 msgid ""
19560 " guestfish [--ro|--rw] -a disk.img -i\n"
19561 "\n"
19562 msgstr ""
19563
19564 #. type: verbatim
19565 #: ../fish/guestfish.pod:21
19566 #, no-wrap
19567 msgid ""
19568 " guestfish -d libvirt-domain -i\n"
19569 "\n"
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../fish/guestfish.pod:25
19574 msgid ""
19575 "Using guestfish in read/write mode on live virtual machines can be "
19576 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19577 "option to use guestfish safely if the disk image or virtual machine might be "
19578 "live."
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:32
19583 msgid ""
19584 "Guestfish is a shell and command-line tool for examining and modifying "
19585 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19586 "functionality of the guestfs API, see L<guestfs(3)>."
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../fish/guestfish.pod:36
19591 msgid ""
19592 "Guestfish gives you structured access to the libguestfs API, from shell "
19593 "scripts or the command line or interactively.  If you want to rescue a "
19594 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19595 "command."
19596 msgstr ""
19597
19598 #. type: =head2
19599 #: ../fish/guestfish.pod:43
19600 msgid "As an interactive shell"
19601 msgstr ""
19602
19603 #. type: verbatim
19604 #: ../fish/guestfish.pod:45
19605 #, no-wrap
19606 msgid ""
19607 " $ guestfish\n"
19608 " \n"
19609 msgstr ""
19610
19611 #. type: verbatim
19612 #: ../fish/guestfish.pod:47
19613 #, no-wrap
19614 msgid ""
19615 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19616 " editing virtual machine filesystems.\n"
19617 " \n"
19618 msgstr ""
19619
19620 #. type: verbatim
19621 #: ../fish/guestfish.pod:50
19622 #, no-wrap
19623 msgid ""
19624 " Type: 'help' for a list of commands\n"
19625 "       'man' to read the manual\n"
19626 "       'quit' to quit the shell\n"
19627 " \n"
19628 msgstr ""
19629
19630 #. type: verbatim
19631 #: ../fish/guestfish.pod:54
19632 #, no-wrap
19633 msgid ""
19634 " ><fs> add-ro disk.img\n"
19635 " ><fs> run\n"
19636 " ><fs> list-filesystems\n"
19637 " /dev/sda1: ext4\n"
19638 " /dev/vg_guest/lv_root: ext4\n"
19639 " /dev/vg_guest/lv_swap: swap\n"
19640 " ><fs> mount /dev/vg_guest/lv_root /\n"
19641 " ><fs> cat /etc/fstab\n"
19642 " # /etc/fstab\n"
19643 " # Created by anaconda\n"
19644 " [...]\n"
19645 " ><fs> exit\n"
19646 "\n"
19647 msgstr ""
19648
19649 #. type: =head2
19650 #: ../fish/guestfish.pod:67
19651 msgid "From shell scripts"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../fish/guestfish.pod:69
19656 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19657 msgstr ""
19658
19659 #. type: verbatim
19660 #: ../fish/guestfish.pod:71
19661 #, no-wrap
19662 msgid ""
19663 " guestfish <<_EOF_\n"
19664 " add disk.img\n"
19665 " run\n"
19666 " mount /dev/vg_guest/lv_root /\n"
19667 " write /etc/motd \"Welcome, new users\"\n"
19668 " _EOF_\n"
19669 "\n"
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../fish/guestfish.pod:78
19674 msgid "List the LVM logical volumes in a disk image:"
19675 msgstr ""
19676
19677 #. type: verbatim
19678 #: ../fish/guestfish.pod:80
19679 #, no-wrap
19680 msgid ""
19681 " guestfish -a disk.img --ro <<_EOF_\n"
19682 " run\n"
19683 " lvs\n"
19684 " _EOF_\n"
19685 "\n"
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../fish/guestfish.pod:85
19690 msgid "List all the filesystems in a disk image:"
19691 msgstr ""
19692
19693 #. type: verbatim
19694 #: ../fish/guestfish.pod:87
19695 #, no-wrap
19696 msgid ""
19697 " guestfish -a disk.img --ro <<_EOF_\n"
19698 " run\n"
19699 " list-filesystems\n"
19700 " _EOF_\n"
19701 "\n"
19702 msgstr ""
19703
19704 #. type: =head2
19705 #: ../fish/guestfish.pod:92
19706 msgid "On one command line"
19707 msgstr ""
19708
19709 #. type: textblock
19710 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19711 msgid "Update C</etc/resolv.conf> in a guest:"
19712 msgstr ""
19713
19714 #. type: verbatim
19715 #: ../fish/guestfish.pod:96
19716 #, no-wrap
19717 msgid ""
19718 " guestfish \\\n"
19719 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19720 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19721 "\n"
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../fish/guestfish.pod:100
19726 msgid "Edit C</boot/grub/grub.conf> interactively:"
19727 msgstr ""
19728
19729 #. type: verbatim
19730 #: ../fish/guestfish.pod:102
19731 #, no-wrap
19732 msgid ""
19733 " guestfish --rw --add disk.img \\\n"
19734 "   --mount /dev/vg_guest/lv_root \\\n"
19735 "   --mount /dev/sda1:/boot \\\n"
19736 "   edit /boot/grub/grub.conf\n"
19737 "\n"
19738 msgstr ""
19739
19740 #. type: =head2
19741 #: ../fish/guestfish.pod:107
19742 msgid "Mount disks automatically"
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:109
19747 msgid ""
19748 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19749 msgstr ""
19750
19751 #. type: verbatim
19752 #: ../fish/guestfish.pod:112
19753 #, no-wrap
19754 msgid ""
19755 " guestfish --ro -a disk.img -i cat /etc/group\n"
19756 "\n"
19757 msgstr ""
19758
19759 #. type: verbatim
19760 #: ../fish/guestfish.pod:114
19761 #, no-wrap
19762 msgid ""
19763 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19764 "\n"
19765 msgstr ""
19766
19767 #. type: textblock
19768 #: ../fish/guestfish.pod:116
19769 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19770 msgstr ""
19771
19772 #. type: verbatim
19773 #: ../fish/guestfish.pod:118
19774 #, no-wrap
19775 msgid ""
19776 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19777 "\n"
19778 msgstr ""
19779
19780 #. type: =head2
19781 #: ../fish/guestfish.pod:120
19782 msgid "As a script interpreter"
19783 msgstr ""
19784
19785 #. type: textblock
19786 #: ../fish/guestfish.pod:122
19787 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19788 msgstr ""
19789
19790 #. type: verbatim
19791 #: ../fish/guestfish.pod:124
19792 #, no-wrap
19793 msgid ""
19794 " #!/usr/bin/guestfish -f\n"
19795 " sparse test1.img 100M\n"
19796 " run\n"
19797 " part-disk /dev/sda mbr\n"
19798 " mkfs ext2 /dev/sda1\n"
19799 "\n"
19800 msgstr ""
19801
19802 #. type: =head2
19803 #: ../fish/guestfish.pod:130
19804 msgid "Start with a prepared disk"
19805 msgstr ""
19806
19807 #. type: textblock
19808 #: ../fish/guestfish.pod:132
19809 msgid ""
19810 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19811 "single ext2-formatted partition:"
19812 msgstr ""
19813
19814 #. type: verbatim
19815 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19816 #, no-wrap
19817 msgid ""
19818 " guestfish -N fs\n"
19819 "\n"
19820 msgstr ""
19821
19822 #. type: textblock
19823 #: ../fish/guestfish.pod:137
19824 msgid "To list what is available do:"
19825 msgstr ""
19826
19827 #. type: verbatim
19828 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19829 #, no-wrap
19830 msgid ""
19831 " guestfish -N help | less\n"
19832 "\n"
19833 msgstr ""
19834
19835 #. type: =head2
19836 #: ../fish/guestfish.pod:141
19837 msgid "Remote control"
19838 msgstr "Дистанційне керування"
19839
19840 #. type: verbatim
19841 #: ../fish/guestfish.pod:143
19842 #, no-wrap
19843 msgid ""
19844 " eval \"`guestfish --listen`\"\n"
19845 " guestfish --remote add-ro disk.img\n"
19846 " guestfish --remote run\n"
19847 " guestfish --remote lvs\n"
19848 "\n"
19849 msgstr ""
19850 " eval \"`guestfish --listen`\"\n"
19851 " guestfish --remote add-ro disk.img\n"
19852 " guestfish --remote run\n"
19853 " guestfish --remote lvs\n"
19854 "\n"
19855
19856 #. type: textblock
19857 #: ../fish/guestfish.pod:154
19858 msgid "Displays general help on options."
19859 msgstr ""
19860
19861 #. type: =item
19862 #: ../fish/guestfish.pod:158
19863 msgid "B<--cmd-help>"
19864 msgstr "B<--cmd-help>"
19865
19866 #. type: textblock
19867 #: ../fish/guestfish.pod:160
19868 msgid "Lists all available guestfish commands."
19869 msgstr ""
19870
19871 #. type: =item
19872 #: ../fish/guestfish.pod:162
19873 msgid "B<-h cmd>"
19874 msgstr "B<-h команда>"
19875
19876 #. type: =item
19877 #: ../fish/guestfish.pod:164
19878 msgid "B<--cmd-help cmd>"
19879 msgstr "B<--cmd-help команда>"
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:166
19883 msgid "Displays detailed help on a single command C<cmd>."
19884 msgstr ""
19885
19886 #. type: =item
19887 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19888 msgid "B<-a image>"
19889 msgstr "B<-a образ>"
19890
19891 #. type: =item
19892 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19893 msgid "B<--add image>"
19894 msgstr "B<--add образ>"
19895
19896 #. type: textblock
19897 #: ../fish/guestfish.pod:172
19898 msgid "Add a block device or virtual machine image to the shell."
19899 msgstr ""
19900
19901 #. type: textblock
19902 #: ../fish/guestfish.pod:177
19903 msgid ""
19904 "Using this flag is mostly equivalent to using the C<add> command, with "
19905 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19906 "the I<--format=...> flag was given."
19907 msgstr ""
19908
19909 #. type: textblock
19910 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19911 msgid ""
19912 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19913 "URI to use.  The default is to use the default libvirt connection."
19914 msgstr ""
19915
19916 #. type: =item
19917 #: ../fish/guestfish.pod:189
19918 msgid "B<--csh>"
19919 msgstr "B<--csh>"
19920
19921 #. type: textblock
19922 #: ../fish/guestfish.pod:191
19923 msgid ""
19924 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19925 "section L</REMOTE CONTROL AND CSH> below."
19926 msgstr ""
19927
19928 #. type: =item
19929 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19930 msgid "B<-d libvirt-domain>"
19931 msgstr "B<-d домен-libvirt>"
19932
19933 #. type: =item
19934 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19935 msgid "B<--domain libvirt-domain>"
19936 msgstr "B<--domain домен-libvirt>"
19937
19938 #. type: textblock
19939 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19940 msgid ""
19941 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19942 "used, then any libvirt domain can be used.  However in write mode, only "
19943 "libvirt domains which are shut down can be named here."
19944 msgstr ""
19945
19946 #. type: textblock
19947 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19948 msgid "Domain UUIDs can be used instead of names."
19949 msgstr ""
19950
19951 #. type: textblock
19952 #: ../fish/guestfish.pod:204
19953 msgid ""
19954 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19955 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19956 "if the I<--format:...> flag was given."
19957 msgstr ""
19958
19959 #. type: =item
19960 #: ../fish/guestfish.pod:208
19961 msgid "B<-D>"
19962 msgstr "B<-D>"
19963
19964 #. type: =item
19965 #: ../fish/guestfish.pod:210
19966 msgid "B<--no-dest-paths>"
19967 msgstr "B<--no-dest-paths>"
19968
19969 #. type: textblock
19970 #: ../fish/guestfish.pod:212
19971 msgid ""
19972 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19973 "to hit the tab key to complete paths on the guest filesystem, but this "
19974 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19975 "allow this feature to be disabled."
19976 msgstr ""
19977
19978 #. type: textblock
19979 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19980 msgid ""
19981 "When prompting for keys and passphrases, guestfish normally turns echoing "
19982 "off so you cannot see what you are typing.  If you are not worried about "
19983 "Tempest attacks and there is no one else in the room you can specify this "
19984 "flag to see what you are typing."
19985 msgstr ""
19986
19987 #. type: =item
19988 #: ../fish/guestfish.pod:224
19989 msgid "B<-f file>"
19990 msgstr "B<-f файл>"
19991
19992 #. type: =item
19993 #: ../fish/guestfish.pod:226
19994 msgid "B<--file file>"
19995 msgstr "B<--file файл>"
19996
19997 #. type: textblock
19998 #: ../fish/guestfish.pod:228
19999 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
20000 msgstr ""
20001
20002 #. type: verbatim
20003 #: ../fish/guestfish.pod:231
20004 #, no-wrap
20005 msgid ""
20006 " #!/usr/bin/guestfish -f\n"
20007 "\n"
20008 msgstr ""
20009 " #!/usr/bin/guestfish -f\n"
20010 "\n"
20011
20012 #. type: verbatim
20013 #: ../fish/guestfish.pod:244
20014 #, no-wrap
20015 msgid ""
20016 " guestfish --format=raw -a disk.img\n"
20017 "\n"
20018 msgstr ""
20019 " guestfish --format=raw -a disk.img\n"
20020 "\n"
20021
20022 #. type: verbatim
20023 #: ../fish/guestfish.pod:248
20024 #, no-wrap
20025 msgid ""
20026 " guestfish --format=raw -a disk.img --format -a another.img\n"
20027 "\n"
20028 msgstr ""
20029 " guestfish --format=raw -a disk.img --format -a another.img\n"
20030 "\n"
20031
20032 #. type: textblock
20033 #: ../fish/guestfish.pod:253
20034 msgid ""
20035 "If you have untrusted raw-format guest disk images, you should use this "
20036 "option to specify the disk format.  This avoids a possible security problem "
20037 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
20038 msgstr ""
20039
20040 #. type: =item
20041 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
20042 msgid "B<--inspector>"
20043 msgstr "B<--inspector>"
20044
20045 #. type: textblock
20046 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
20047 msgid ""
20048 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20049 "system and mount filesystems as they would be mounted on the real virtual "
20050 "machine."
20051 msgstr ""
20052
20053 #. type: textblock
20054 #: ../fish/guestfish.pod:266
20055 msgid "Typical usage is either:"
20056 msgstr ""
20057
20058 #. type: verbatim
20059 #: ../fish/guestfish.pod:268
20060 #, no-wrap
20061 msgid ""
20062 " guestfish -d myguest -i\n"
20063 "\n"
20064 msgstr ""
20065 " guestfish -d myguest -i\n"
20066 "\n"
20067
20068 #. type: textblock
20069 #: ../fish/guestfish.pod:270
20070 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20071 msgstr ""
20072
20073 #. type: verbatim
20074 #: ../fish/guestfish.pod:272
20075 #, no-wrap
20076 msgid ""
20077 " guestfish --ro -d myguest -i\n"
20078 "\n"
20079 msgstr ""
20080 " guestfish --ro -d myguest -i\n"
20081 "\n"
20082
20083 #. type: textblock
20084 #: ../fish/guestfish.pod:274
20085 msgid "(for active domains, readonly), or specify the block device directly:"
20086 msgstr ""
20087
20088 #. type: verbatim
20089 #: ../fish/guestfish.pod:276
20090 #, no-wrap
20091 msgid ""
20092 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20093 "\n"
20094 msgstr ""
20095 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20096 "\n"
20097
20098 #. type: textblock
20099 #: ../fish/guestfish.pod:278
20100 msgid ""
20101 "Note that the command line syntax changed slightly over older versions of "
20102 "guestfish.  You can still use the old syntax:"
20103 msgstr ""
20104
20105 #. type: verbatim
20106 #: ../fish/guestfish.pod:281
20107 #, no-wrap
20108 msgid ""
20109 " guestfish [--ro] -i disk.img\n"
20110 "\n"
20111 msgstr ""
20112 " guestfish [--ro] -i disk.img\n"
20113 "\n"
20114
20115 #. type: verbatim
20116 #: ../fish/guestfish.pod:283
20117 #, no-wrap
20118 msgid ""
20119 " guestfish [--ro] -i libvirt-domain\n"
20120 "\n"
20121 msgstr ""
20122
20123 #. type: textblock
20124 #: ../fish/guestfish.pod:285
20125 msgid ""
20126 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20127 "then using other commands to mount the filesystems that were found."
20128 msgstr ""
20129
20130 #. type: =item
20131 #: ../fish/guestfish.pod:294
20132 msgid "B<--listen>"
20133 msgstr "B<--listen>"
20134
20135 #. type: textblock
20136 #: ../fish/guestfish.pod:296
20137 msgid ""
20138 "Fork into the background and listen for remote commands.  See section L</"
20139 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20140 msgstr ""
20141
20142 #. type: =item
20143 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20144 msgid "B<--live>"
20145 msgstr "B<--live>"
20146
20147 #. type: textblock
20148 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20149 msgid ""
20150 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
20151 "ATTACHING TO RUNNING DAEMONS>)."
20152 msgstr ""
20153
20154 #. type: =item
20155 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20156 msgid "B<-m dev[:mountpoint[:options]]>"
20157 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
20158
20159 #. type: =item
20160 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20161 msgid "B<--mount dev[:mountpoint[:options]]>"
20162 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
20163
20164 #. type: textblock
20165 #: ../fish/guestfish.pod:308
20166 msgid "Mount the named partition or logical volume on the given mountpoint."
20167 msgstr ""
20168
20169 #. type: textblock
20170 #: ../fish/guestfish.pod:310
20171 msgid "If the mountpoint is omitted, it defaults to C</>."
20172 msgstr ""
20173
20174 #. type: textblock
20175 #: ../fish/guestfish.pod:312
20176 msgid "You have to mount something on C</> before most commands will work."
20177 msgstr ""
20178
20179 #. type: textblock
20180 #: ../fish/guestfish.pod:314
20181 msgid ""
20182 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20183 "launched."
20184 msgstr ""
20185
20186 #. type: textblock
20187 #: ../fish/guestfish.pod:317
20188 msgid ""
20189 "If you don't know what filesystems a disk image contains, you can either run "
20190 "guestfish without this option, then list the partitions, filesystems and LVs "
20191 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20192 "commands), or you can use the L<virt-filesystems(1)> program."
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20197 msgid ""
20198 "The third (and rarely used) part of the mount parameter is the list of mount "
20199 "options used to mount the underlying filesystem.  If this is not given, then "
20200 "the mount options are either the empty string or C<ro> (the latter if the "
20201 "I<--ro> flag is used).  By specifying the mount options, you override this "
20202 "default choice.  Probably the only time you would use this is to enable ACLs "
20203 "and/or extended attributes if the filesystem can support them:"
20204 msgstr ""
20205
20206 #. type: verbatim
20207 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20208 #, no-wrap
20209 msgid ""
20210 " -m /dev/sda1:/:acl,user_xattr\n"
20211 "\n"
20212 msgstr ""
20213
20214 #. type: textblock
20215 #: ../fish/guestfish.pod:333
20216 msgid "Using this flag is equivalent to using the C<mount-options> command."
20217 msgstr ""
20218
20219 #. type: =item
20220 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20221 #: ../resize/virt-resize.pod:435
20222 msgid "B<-n>"
20223 msgstr "B<-n>"
20224
20225 #. type: =item
20226 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20227 msgid "B<--no-sync>"
20228 msgstr "B<--no-sync>"
20229
20230 #. type: textblock
20231 #: ../fish/guestfish.pod:339
20232 msgid ""
20233 "Disable autosync.  This is enabled by default.  See the discussion of "
20234 "autosync in the L<guestfs(3)> manpage."
20235 msgstr ""
20236
20237 #. type: =item
20238 #: ../fish/guestfish.pod:342
20239 msgid "B<-N type>"
20240 msgstr "B<-N тип>"
20241
20242 #. type: =item
20243 #: ../fish/guestfish.pod:344
20244 msgid "B<--new type>"
20245 msgstr "B<--new тип>"
20246
20247 #. type: =item
20248 #: ../fish/guestfish.pod:346
20249 msgid "B<-N help>"
20250 msgstr "B<-N help>"
20251
20252 #. type: textblock
20253 #: ../fish/guestfish.pod:348
20254 msgid ""
20255 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20256 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20257 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20258 "IMAGES> below."
20259 msgstr ""
20260
20261 #. type: =item
20262 #: ../fish/guestfish.pod:353
20263 msgid "B<--progress-bars>"
20264 msgstr "B<--progress-bars>"
20265
20266 #. type: textblock
20267 #: ../fish/guestfish.pod:355
20268 msgid "Enable progress bars, even when guestfish is used non-interactively."
20269 msgstr ""
20270
20271 #. type: textblock
20272 #: ../fish/guestfish.pod:357
20273 msgid ""
20274 "Progress bars are enabled by default when guestfish is used as an "
20275 "interactive shell."
20276 msgstr ""
20277
20278 #. type: =item
20279 #: ../fish/guestfish.pod:360
20280 msgid "B<--no-progress-bars>"
20281 msgstr "B<--no-progress-bars>"
20282
20283 #. type: textblock
20284 #: ../fish/guestfish.pod:362
20285 msgid "Disable progress bars."
20286 msgstr ""
20287
20288 #. type: =item
20289 #: ../fish/guestfish.pod:364
20290 msgid "B<--remote[=pid]>"
20291 msgstr "B<--remote[=pid]>"
20292
20293 #. type: textblock
20294 #: ../fish/guestfish.pod:366
20295 msgid ""
20296 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20297 "CONTROL GUESTFISH OVER A SOCKET> below."
20298 msgstr ""
20299
20300 #. type: =item
20301 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20302 #: ../rescue/virt-rescue.pod:161
20303 msgid "B<-r>"
20304 msgstr "B<-r>"
20305
20306 #. type: =item
20307 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20308 #: ../rescue/virt-rescue.pod:163
20309 msgid "B<--ro>"
20310 msgstr "B<--ro>"
20311
20312 #. type: textblock
20313 #: ../fish/guestfish.pod:373
20314 msgid ""
20315 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20316 "mounts are done read-only."
20317 msgstr ""
20318
20319 #. type: textblock
20320 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
20321 msgid ""
20322 "The option must always be used if the disk image or virtual machine might be "
20323 "running, and is generally recommended in cases where you don't need write "
20324 "access to the disk."
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:380
20329 msgid ""
20330 "Note that prepared disk images created with I<-N> are not affected by this "
20331 "option.  Also commands like C<add> are not affected - you have to specify "
20332 "the C<readonly:true> option explicitly if you need it."
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fish/guestfish.pod:384
20337 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20338 msgstr ""
20339
20340 #. type: =item
20341 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20342 #: ../rescue/virt-rescue.pod:173
20343 msgid "B<--selinux>"
20344 msgstr "B<--selinux>"
20345
20346 #. type: textblock
20347 #: ../fish/guestfish.pod:388
20348 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20349 msgstr ""
20350
20351 #. type: textblock
20352 #: ../fish/guestfish.pod:394
20353 msgid ""
20354 "Enable very verbose messages.  This is particularly useful if you find a bug."
20355 msgstr ""
20356
20357 #. type: textblock
20358 #: ../fish/guestfish.pod:401
20359 msgid "Display the guestfish / libguestfs version number and exit."
20360 msgstr ""
20361
20362 #. type: =item
20363 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20364 #: ../rescue/virt-rescue.pod:194
20365 msgid "B<-w>"
20366 msgstr "B<-w>"
20367
20368 #. type: =item
20369 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20370 #: ../rescue/virt-rescue.pod:196
20371 msgid "B<--rw>"
20372 msgstr "B<--rw>"
20373
20374 #. type: textblock
20375 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20376 msgid ""
20377 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20378 "mounts are done read-write."
20379 msgstr ""
20380
20381 #. type: textblock
20382 #: ../fish/guestfish.pod:410
20383 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20384 msgstr ""
20385
20386 #. type: textblock
20387 #: ../fish/guestfish.pod:414
20388 msgid "Echo each command before executing it."
20389 msgstr ""
20390
20391 #. type: =head1
20392 #: ../fish/guestfish.pod:418
20393 msgid "COMMANDS ON COMMAND LINE"
20394 msgstr ""
20395
20396 #. type: textblock
20397 #: ../fish/guestfish.pod:420
20398 msgid ""
20399 "Any additional (non-option) arguments are treated as commands to execute."
20400 msgstr ""
20401
20402 #. type: textblock
20403 #: ../fish/guestfish.pod:423
20404 msgid ""
20405 "Commands to execute should be separated by a colon (C<:>), where the colon "
20406 "is a separate parameter.  Thus:"
20407 msgstr ""
20408
20409 #. type: verbatim
20410 #: ../fish/guestfish.pod:426
20411 #, no-wrap
20412 msgid ""
20413 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20414 "\n"
20415 msgstr ""
20416
20417 #. type: textblock
20418 #: ../fish/guestfish.pod:428
20419 msgid ""
20420 "If there are no additional arguments, then we enter a shell, either an "
20421 "interactive shell with a prompt (if the input is a terminal) or a non-"
20422 "interactive shell."
20423 msgstr ""
20424
20425 #. type: textblock
20426 #: ../fish/guestfish.pod:432
20427 msgid ""
20428 "In either command line mode or non-interactive shell, the first command that "
20429 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20430 "prompt) if a command fails, you can continue to enter commands."
20431 msgstr ""
20432
20433 #. type: =head1
20434 #: ../fish/guestfish.pod:437
20435 msgid "USING launch (OR run)"
20436 msgstr ""
20437
20438 #. type: textblock
20439 #: ../fish/guestfish.pod:439
20440 msgid ""
20441 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20442 "then launch it, then mount any disks you need, and finally issue actions/"
20443 "commands.  So the general order of the day is:"
20444 msgstr ""
20445
20446 #. type: textblock
20447 #: ../fish/guestfish.pod:447
20448 msgid "add or -a/--add"
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../fish/guestfish.pod:451
20453 msgid "launch (aka run)"
20454 msgstr ""
20455
20456 #. type: textblock
20457 #: ../fish/guestfish.pod:455
20458 msgid "mount or -m/--mount"
20459 msgstr ""
20460
20461 #. type: textblock
20462 #: ../fish/guestfish.pod:459
20463 msgid "any other commands"
20464 msgstr ""
20465
20466 #. type: textblock
20467 #: ../fish/guestfish.pod:463
20468 msgid ""
20469 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20470 "guest before mounting or performing any other commands."
20471 msgstr ""
20472
20473 #. type: textblock
20474 #: ../fish/guestfish.pod:466
20475 msgid ""
20476 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20477 "I<--new> options were given then C<run> is done automatically, simply "
20478 "because guestfish can't perform the action you asked for without doing this."
20479 msgstr ""
20480
20481 #. type: =head1
20482 #: ../fish/guestfish.pod:471
20483 msgid "OPENING DISKS FOR READ AND WRITE"
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../fish/guestfish.pod:473
20488 msgid ""
20489 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20490 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20491 "I<-i> and I<-m> open disk images read-only or for writing."
20492 msgstr ""
20493
20494 #. type: textblock
20495 #: ../fish/guestfish.pod:478
20496 msgid ""
20497 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20498 "opening disk images supplied on the command line for write.  To open a disk "
20499 "image read-only you have to do I<-a image --ro>."
20500 msgstr ""
20501
20502 #. type: textblock
20503 #: ../fish/guestfish.pod:482
20504 msgid ""
20505 "This matters: If you accidentally open a live VM disk image writable then "
20506 "you will cause irreversible disk corruption."
20507 msgstr ""
20508
20509 #. type: textblock
20510 #: ../fish/guestfish.pod:485
20511 msgid ""
20512 "In a future libguestfs we intend to change the default the other way.  Disk "
20513 "images will be opened read-only.  You will have to either specify "
20514 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20515 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20516 "access for disk images specified by those other command line options."
20517 msgstr ""
20518
20519 #. type: textblock
20520 #: ../fish/guestfish.pod:492
20521 msgid ""
20522 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20523 "which does nothing (it is already the default).  However it is highly "
20524 "recommended that you use this option to indicate that you need write access, "
20525 "and prepare your scripts for the day when this option will be required for "
20526 "write access."
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../fish/guestfish.pod:498
20531 msgid ""
20532 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20533 "other libguestfs program apart from guestfish and guestmount."
20534 msgstr ""
20535
20536 #. type: =head1
20537 #: ../fish/guestfish.pod:501
20538 msgid "QUOTING"
20539 msgstr ""
20540
20541 #. type: textblock
20542 #: ../fish/guestfish.pod:503
20543 msgid ""
20544 "You can quote ordinary parameters using either single or double quotes.  For "
20545 "example:"
20546 msgstr ""
20547
20548 #. type: verbatim
20549 #: ../fish/guestfish.pod:506
20550 #, no-wrap
20551 msgid ""
20552 " add \"file with a space.img\"\n"
20553 "\n"
20554 msgstr ""
20555
20556 #. type: verbatim
20557 #: ../fish/guestfish.pod:508
20558 #, no-wrap
20559 msgid ""
20560 " rm '/file name'\n"
20561 "\n"
20562 msgstr ""
20563
20564 #. type: verbatim
20565 #: ../fish/guestfish.pod:510
20566 #, no-wrap
20567 msgid ""
20568 " rm '/\"'\n"
20569 "\n"
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../fish/guestfish.pod:512
20574 msgid ""
20575 "A few commands require a list of strings to be passed.  For these, use a "
20576 "whitespace-separated list, enclosed in quotes.  Strings containing "
20577 "whitespace to be passed through must be enclosed in single quotes.  A "
20578 "literal single quote must be escaped with a backslash."
20579 msgstr ""
20580
20581 #. type: verbatim
20582 #: ../fish/guestfish.pod:517
20583 #, no-wrap
20584 msgid ""
20585 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20586 " command \"/bin/echo 'foo      bar'\"\n"
20587 " command \"/bin/echo \\'foo\\'\"\n"
20588 "\n"
20589 msgstr ""
20590
20591 #. type: =head2
20592 #: ../fish/guestfish.pod:521
20593 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20594 msgstr ""
20595
20596 #. type: textblock
20597 #: ../fish/guestfish.pod:523
20598 msgid ""
20599 "In double-quoted arguments (only) use backslash to insert special characters:"
20600 msgstr ""
20601
20602 #. type: =item
20603 #: ../fish/guestfish.pod:528
20604 msgid "C<\\a>"
20605 msgstr "C<\\a>"
20606
20607 #. type: textblock
20608 #: ../fish/guestfish.pod:530
20609 msgid "Alert (bell) character."
20610 msgstr "Символ гудка (дзвінка)."
20611
20612 #. type: =item
20613 #: ../fish/guestfish.pod:532
20614 msgid "C<\\b>"
20615 msgstr "C<\\b>"
20616
20617 #. type: textblock
20618 #: ../fish/guestfish.pod:534
20619 msgid "Backspace character."
20620 msgstr ""
20621
20622 #. type: =item
20623 #: ../fish/guestfish.pod:536
20624 msgid "C<\\f>"
20625 msgstr "C<\\f>"
20626
20627 #. type: textblock
20628 #: ../fish/guestfish.pod:538
20629 msgid "Form feed character."
20630 msgstr ""
20631
20632 #. type: =item
20633 #: ../fish/guestfish.pod:540
20634 msgid "C<\\n>"
20635 msgstr "C<\\n>"
20636
20637 #. type: textblock
20638 #: ../fish/guestfish.pod:542
20639 msgid "Newline character."
20640 msgstr ""
20641
20642 #. type: =item
20643 #: ../fish/guestfish.pod:544
20644 msgid "C<\\r>"
20645 msgstr "C<\\r>"
20646
20647 #. type: textblock
20648 #: ../fish/guestfish.pod:546
20649 msgid "Carriage return character."
20650 msgstr "Символ повернення каретки."
20651
20652 #. type: =item
20653 #: ../fish/guestfish.pod:548
20654 msgid "C<\\t>"
20655 msgstr "C<\\t>"
20656
20657 #. type: textblock
20658 #: ../fish/guestfish.pod:550
20659 msgid "Horizontal tab character."
20660 msgstr "Символ горизонтальної табуляції"
20661
20662 #. type: =item
20663 #: ../fish/guestfish.pod:552
20664 msgid "C<\\v>"
20665 msgstr "C<\\v>"
20666
20667 #. type: textblock
20668 #: ../fish/guestfish.pod:554
20669 msgid "Vertical tab character."
20670 msgstr "Символ вертикальної табуляції."
20671
20672 #. type: =item
20673 #: ../fish/guestfish.pod:556
20674 msgid "C<\\\">"
20675 msgstr "C<\\\">"
20676
20677 #. type: textblock
20678 #: ../fish/guestfish.pod:558
20679 msgid "A literal double quote character."
20680 msgstr ""
20681
20682 #. type: =item
20683 #: ../fish/guestfish.pod:560
20684 msgid "C<\\ooo>"
20685 msgstr "C<\\ooo>"
20686
20687 #. type: textblock
20688 #: ../fish/guestfish.pod:562
20689 msgid ""
20690 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20691 "(unlike C)."
20692 msgstr ""
20693
20694 #. type: =item
20695 #: ../fish/guestfish.pod:565
20696 msgid "C<\\xhh>"
20697 msgstr "C<\\xhh>"
20698
20699 #. type: textblock
20700 #: ../fish/guestfish.pod:567
20701 msgid ""
20702 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20703 msgstr ""
20704
20705 #. type: textblock
20706 #: ../fish/guestfish.pod:570
20707 msgid ""
20708 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20709 "strings."
20710 msgstr ""
20711
20712 #. type: =item
20713 #: ../fish/guestfish.pod:573
20714 msgid "C<\\\\>"
20715 msgstr "C<\\\\>"
20716
20717 #. type: textblock
20718 #: ../fish/guestfish.pod:575
20719 msgid "A literal backslash character."
20720 msgstr ""
20721
20722 #. type: =head1
20723 #: ../fish/guestfish.pod:579
20724 msgid "OPTIONAL ARGUMENTS"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../fish/guestfish.pod:581
20729 msgid ""
20730 "Some commands take optional arguments.  These arguments appear in this "
20731 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20732 msgstr ""
20733
20734 #. type: verbatim
20735 #: ../fish/guestfish.pod:585
20736 #, no-wrap
20737 msgid ""
20738 " add-drive-opts filename\n"
20739 "\n"
20740 msgstr ""
20741
20742 #. type: verbatim
20743 #: ../fish/guestfish.pod:587
20744 #, no-wrap
20745 msgid ""
20746 " add-drive-opts filename readonly:true\n"
20747 "\n"
20748 msgstr ""
20749
20750 #. type: verbatim
20751 #: ../fish/guestfish.pod:589
20752 #, no-wrap
20753 msgid ""
20754 " add-drive-opts filename format:qcow2 readonly:false\n"
20755 "\n"
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../fish/guestfish.pod:591
20760 msgid ""
20761 "Each optional argument can appear at most once.  All optional arguments must "
20762 "appear after the required ones."
20763 msgstr ""
20764
20765 #. type: =head1
20766 #: ../fish/guestfish.pod:594
20767 msgid "NUMBERS"
20768 msgstr "ЧИСЛА"
20769
20770 #. type: textblock
20771 #: ../fish/guestfish.pod:596
20772 msgid ""
20773 "This section applies to all commands which can take integers as parameters."
20774 msgstr ""
20775
20776 #. type: =head2
20777 #: ../fish/guestfish.pod:599
20778 msgid "SIZE SUFFIX"
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../fish/guestfish.pod:601
20783 msgid ""
20784 "When the command takes a parameter measured in bytes, you can use one of the "
20785 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20786 msgstr ""
20787
20788 #. type: =item
20789 #: ../fish/guestfish.pod:607
20790 msgid "B<k> or B<K> or B<KiB>"
20791 msgstr "B<k>, B<K> або B<KiB>"
20792
20793 #. type: textblock
20794 #: ../fish/guestfish.pod:609
20795 msgid "The size in kilobytes (multiplied by 1024)."
20796 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
20797
20798 #. type: =item
20799 #: ../fish/guestfish.pod:611
20800 msgid "B<KB>"
20801 msgstr "B<KB>"
20802
20803 #. type: textblock
20804 #: ../fish/guestfish.pod:613
20805 msgid "The size in SI 1000 byte units."
20806 msgstr "Розмір у одиницях СІ: 1000 байтів."
20807
20808 #. type: =item
20809 #: ../fish/guestfish.pod:615
20810 msgid "B<M> or B<MiB>"
20811 msgstr "B<M> або B<MiB>"
20812
20813 #. type: textblock
20814 #: ../fish/guestfish.pod:617
20815 msgid "The size in megabytes (multiplied by 1048576)."
20816 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
20817
20818 #. type: =item
20819 #: ../fish/guestfish.pod:619
20820 msgid "B<MB>"
20821 msgstr "B<MB>"
20822
20823 #. type: textblock
20824 #: ../fish/guestfish.pod:621
20825 msgid "The size in SI 1000000 byte units."
20826 msgstr "Розмір у одиницях СІ: 1000000 байтів."
20827
20828 #. type: =item
20829 #: ../fish/guestfish.pod:623
20830 msgid "B<G> or B<GiB>"
20831 msgstr "B<G> або B<GiB>"
20832
20833 #. type: textblock
20834 #: ../fish/guestfish.pod:625
20835 msgid "The size in gigabytes (multiplied by 2**30)."
20836 msgstr "Розмір у гігабайтах (з множником 2**30)."
20837
20838 #. type: =item
20839 #: ../fish/guestfish.pod:627
20840 msgid "B<GB>"
20841 msgstr "B<GB>"
20842
20843 #. type: textblock
20844 #: ../fish/guestfish.pod:629
20845 msgid "The size in SI 10**9 byte units."
20846 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20847
20848 #. type: =item
20849 #: ../fish/guestfish.pod:631
20850 msgid "B<T> or B<TiB>"
20851 msgstr "B<T> або B<TiB>"
20852
20853 #. type: textblock
20854 #: ../fish/guestfish.pod:633
20855 msgid "The size in terabytes (multiplied by 2**40)."
20856 msgstr "Розмір у терабайтах (з множником 2**40)."
20857
20858 #. type: =item
20859 #: ../fish/guestfish.pod:635
20860 msgid "B<TB>"
20861 msgstr "B<TB>"
20862
20863 #. type: textblock
20864 #: ../fish/guestfish.pod:637
20865 msgid "The size in SI 10**12 byte units."
20866 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20867
20868 #. type: =item
20869 #: ../fish/guestfish.pod:639
20870 msgid "B<P> or B<PiB>"
20871 msgstr "B<P> або B<PiB>"
20872
20873 #. type: textblock
20874 #: ../fish/guestfish.pod:641
20875 msgid "The size in petabytes (multiplied by 2**50)."
20876 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20877
20878 #. type: =item
20879 #: ../fish/guestfish.pod:643
20880 msgid "B<PB>"
20881 msgstr "B<PB>"
20882
20883 #. type: textblock
20884 #: ../fish/guestfish.pod:645
20885 msgid "The size in SI 10**15 byte units."
20886 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20887
20888 #. type: =item
20889 #: ../fish/guestfish.pod:647
20890 msgid "B<E> or B<EiB>"
20891 msgstr "B<E> або B<EiB>"
20892
20893 #. type: textblock
20894 #: ../fish/guestfish.pod:649
20895 msgid "The size in exabytes (multiplied by 2**60)."
20896 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20897
20898 #. type: =item
20899 #: ../fish/guestfish.pod:651
20900 msgid "B<EB>"
20901 msgstr "B<EB>"
20902
20903 #. type: textblock
20904 #: ../fish/guestfish.pod:653
20905 msgid "The size in SI 10**18 byte units."
20906 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20907
20908 #. type: =item
20909 #: ../fish/guestfish.pod:655
20910 msgid "B<Z> or B<ZiB>"
20911 msgstr "B<Z> або B<ZiB>"
20912
20913 #. type: textblock
20914 #: ../fish/guestfish.pod:657
20915 msgid "The size in zettabytes (multiplied by 2**70)."
20916 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20917
20918 #. type: =item
20919 #: ../fish/guestfish.pod:659
20920 msgid "B<ZB>"
20921 msgstr "B<ZB>"
20922
20923 #. type: textblock
20924 #: ../fish/guestfish.pod:661
20925 msgid "The size in SI 10**21 byte units."
20926 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20927
20928 #. type: =item
20929 #: ../fish/guestfish.pod:663
20930 msgid "B<Y> or B<YiB>"
20931 msgstr "B<Y> або B<YiB>"
20932
20933 #. type: textblock
20934 #: ../fish/guestfish.pod:665
20935 msgid "The size in yottabytes (multiplied by 2**80)."
20936 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20937
20938 #. type: =item
20939 #: ../fish/guestfish.pod:667
20940 msgid "B<YB>"
20941 msgstr "B<YB>"
20942
20943 #. type: textblock
20944 #: ../fish/guestfish.pod:669
20945 msgid "The size in SI 10**24 byte units."
20946 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20947
20948 #. type: verbatim
20949 #: ../fish/guestfish.pod:675
20950 #, no-wrap
20951 msgid ""
20952 " truncate-size /file 1G\n"
20953 "\n"
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../fish/guestfish.pod:677
20958 msgid "would truncate the file to 1 gigabyte."
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../fish/guestfish.pod:679
20963 msgid ""
20964 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20965 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20966 "suffix will probably not do what you expect."
20967 msgstr ""
20968
20969 #. type: =head2
20970 #: ../fish/guestfish.pod:683
20971 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../fish/guestfish.pod:685
20976 msgid ""
20977 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20978 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20979 msgstr ""
20980
20981 #. type: verbatim
20982 #: ../fish/guestfish.pod:688
20983 #, no-wrap
20984 msgid ""
20985 " 1234      decimal number 1234\n"
20986 " 02322     octal number, equivalent to decimal 1234\n"
20987 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20988 "\n"
20989 msgstr ""
20990
20991 #. type: textblock
20992 #: ../fish/guestfish.pod:692
20993 msgid ""
20994 "When using the C<chmod> command, you almost always want to specify an octal "
20995 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20996 "L<chmod(1)> program):"
20997 msgstr ""
20998
20999 #. type: verbatim
21000 #: ../fish/guestfish.pod:696
21001 #, no-wrap
21002 msgid ""
21003 " chmod 0777 /public  # OK\n"
21004 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
21005 "\n"
21006 msgstr ""
21007
21008 #. type: textblock
21009 #: ../fish/guestfish.pod:699
21010 msgid ""
21011 "Commands that return numbers usually print them in decimal, but some "
21012 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21013 "octal, preceeded by C<0>)."
21014 msgstr ""
21015
21016 #. type: =head1
21017 #: ../fish/guestfish.pod:703
21018 msgid "WILDCARDS AND GLOBBING"
21019 msgstr ""
21020
21021 #. type: textblock
21022 #: ../fish/guestfish.pod:705
21023 msgid ""
21024 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21025 "(globbing) by default.  So for example the following will not do what you "
21026 "expect:"
21027 msgstr ""
21028
21029 #. type: verbatim
21030 #: ../fish/guestfish.pod:709
21031 #, no-wrap
21032 msgid ""
21033 " rm-rf /home/*\n"
21034 "\n"
21035 msgstr ""
21036
21037 #. type: textblock
21038 #: ../fish/guestfish.pod:711
21039 msgid ""
21040 "Assuming you don't have a directory called literally C</home/*> then the "
21041 "above command will return an error."
21042 msgstr ""
21043
21044 #. type: textblock
21045 #: ../fish/guestfish.pod:714
21046 msgid "To perform wildcard expansion, use the C<glob> command."
21047 msgstr ""
21048
21049 #. type: verbatim
21050 #: ../fish/guestfish.pod:716
21051 #, no-wrap
21052 msgid ""
21053 " glob rm-rf /home/*\n"
21054 "\n"
21055 msgstr ""
21056
21057 #. type: textblock
21058 #: ../fish/guestfish.pod:718
21059 msgid ""
21060 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21061 "many times), equivalent to:"
21062 msgstr ""
21063
21064 #. type: verbatim
21065 #: ../fish/guestfish.pod:721
21066 #, no-wrap
21067 msgid ""
21068 " rm-rf /home/jim\n"
21069 " rm-rf /home/joe\n"
21070 " rm-rf /home/mary\n"
21071 "\n"
21072 msgstr ""
21073
21074 #. type: textblock
21075 #: ../fish/guestfish.pod:725
21076 msgid "C<glob> only works on simple guest paths and not on device names."
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../fish/guestfish.pod:727
21081 msgid ""
21082 "If you have several parameters, each containing a wildcard, then glob will "
21083 "perform a Cartesian product."
21084 msgstr ""
21085
21086 #. type: =head1
21087 #: ../fish/guestfish.pod:730
21088 msgid "COMMENTS"
21089 msgstr "КОМЕНТАРІ"
21090
21091 #. type: textblock
21092 #: ../fish/guestfish.pod:732
21093 msgid ""
21094 "Any line which starts with a I<#> character is treated as a comment and "
21095 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
21096 "a command.  For example:"
21097 msgstr ""
21098
21099 #. type: verbatim
21100 #: ../fish/guestfish.pod:736
21101 #, no-wrap
21102 msgid ""
21103 " # this is a comment\n"
21104 "         # this is a comment\n"
21105 " foo # NOT a comment\n"
21106 "\n"
21107 msgstr ""
21108
21109 #. type: textblock
21110 #: ../fish/guestfish.pod:740
21111 msgid "Blank lines are also ignored."
21112 msgstr ""
21113
21114 #. type: =head1
21115 #: ../fish/guestfish.pod:742
21116 msgid "RUNNING COMMANDS LOCALLY"
21117 msgstr ""
21118
21119 #. type: textblock
21120 #: ../fish/guestfish.pod:744
21121 msgid ""
21122 "Any line which starts with a I<!> character is treated as a command sent to "
21123 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
21124 msgstr ""
21125
21126 #. type: verbatim
21127 #: ../fish/guestfish.pod:748
21128 #, no-wrap
21129 msgid ""
21130 " !mkdir local\n"
21131 " tgz-out /remote local/remote-data.tar.gz\n"
21132 "\n"
21133 msgstr ""
21134
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:751
21137 msgid ""
21138 "will create a directory C<local> on the host, and then export the contents "
21139 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
21140 "(See C<tgz-out>)."
21141 msgstr ""
21142
21143 #. type: textblock
21144 #: ../fish/guestfish.pod:755
21145 msgid ""
21146 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
21147 "effect, due to the way that subprocesses work in Unix."
21148 msgstr ""
21149
21150 #. type: =head2
21151 #: ../fish/guestfish.pod:758
21152 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21153 msgstr ""
21154
21155 #. type: textblock
21156 #: ../fish/guestfish.pod:760
21157 msgid ""
21158 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21159 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21160 "and executed as guestfish commands."
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../fish/guestfish.pod:764
21165 msgid ""
21166 "Thus you can use shell script to construct arbitrary guestfish commands "
21167 "which are then parsed by guestfish."
21168 msgstr ""
21169
21170 #. type: textblock
21171 #: ../fish/guestfish.pod:767
21172 msgid ""
21173 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21174 "through C</foo.100>) using guestfish commands alone.  However this is simple "
21175 "if we use a shell script to create the guestfish commands for us:"
21176 msgstr ""
21177
21178 #. type: verbatim
21179 #: ../fish/guestfish.pod:772
21180 #, no-wrap
21181 msgid ""
21182 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21183 "\n"
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../fish/guestfish.pod:774
21188 msgid "or with names like C</foo.001>:"
21189 msgstr ""
21190
21191 #. type: verbatim
21192 #: ../fish/guestfish.pod:776
21193 #, no-wrap
21194 msgid ""
21195 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21196 "\n"
21197 msgstr ""
21198
21199 #. type: textblock
21200 #: ../fish/guestfish.pod:778
21201 msgid ""
21202 "When using guestfish interactively it can be helpful to just run the shell "
21203 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21204 "ordinary I<!> local command), see what guestfish commands it would run, and "
21205 "when you are happy with those prepend the C<E<lt>> character to run the "
21206 "guestfish commands for real."
21207 msgstr ""
21208
21209 #. type: =head1
21210 #: ../fish/guestfish.pod:784
21211 msgid "PIPES"
21212 msgstr "КАНАЛИ"
21213
21214 #. type: textblock
21215 #: ../fish/guestfish.pod:786
21216 msgid ""
21217 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21218 "command (a guestfish command) to the second command (any host command).  For "
21219 "example:"
21220 msgstr ""
21221
21222 #. type: verbatim
21223 #: ../fish/guestfish.pod:790
21224 #, no-wrap
21225 msgid ""
21226 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21227 "\n"
21228 msgstr ""
21229
21230 #. type: textblock
21231 #: ../fish/guestfish.pod:792
21232 msgid ""
21233 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21234 "program).  The above command would list all accounts in the guest filesystem "
21235 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21236 msgstr ""
21237
21238 #. type: verbatim
21239 #: ../fish/guestfish.pod:797
21240 #, no-wrap
21241 msgid ""
21242 " hexdump /bin/ls | head\n"
21243 " list-devices | tail -1\n"
21244 " tgz-out / - | tar ztf -\n"
21245 "\n"
21246 msgstr ""
21247
21248 #. type: textblock
21249 #: ../fish/guestfish.pod:801
21250 msgid ""
21251 "The space before the pipe symbol is required, any space after the pipe "
21252 "symbol is optional.  Everything after the pipe symbol is just passed "
21253 "straight to the host shell, so it can contain redirections, globs and "
21254 "anything else that makes sense on the host side."
21255 msgstr ""
21256
21257 #. type: textblock
21258 #: ../fish/guestfish.pod:806
21259 msgid ""
21260 "To use a literal argument which begins with a pipe symbol, you have to quote "
21261 "it, eg:"
21262 msgstr ""
21263
21264 #. type: verbatim
21265 #: ../fish/guestfish.pod:809
21266 #, no-wrap
21267 msgid ""
21268 " echo \"|\"\n"
21269 "\n"
21270 msgstr ""
21271
21272 #. type: =head1
21273 #: ../fish/guestfish.pod:811
21274 msgid "HOME DIRECTORIES"
21275 msgstr ""
21276
21277 #. type: textblock
21278 #: ../fish/guestfish.pod:813
21279 msgid ""
21280 "If a parameter starts with the character C<~> then the tilde may be expanded "
21281 "as a home directory path (either C<~> for the current user's home directory, "
21282 "or C<~user> for another user)."
21283 msgstr ""
21284
21285 #. type: textblock
21286 #: ../fish/guestfish.pod:817
21287 msgid ""
21288 "Note that home directory expansion happens for users known I<on the host>, "
21289 "not in the guest filesystem."
21290 msgstr ""
21291
21292 #. type: textblock
21293 #: ../fish/guestfish.pod:820
21294 msgid ""
21295 "To use a literal argument which begins with a tilde, you have to quote it, "
21296 "eg:"
21297 msgstr ""
21298
21299 #. type: verbatim
21300 #: ../fish/guestfish.pod:823
21301 #, no-wrap
21302 msgid ""
21303 " echo \"~\"\n"
21304 "\n"
21305 msgstr ""
21306
21307 #. type: =head2
21308 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21309 msgid "ENCRYPTED DISKS"
21310 msgstr "ЗАШИФРОВАНІ ДИСКИ"
21311
21312 #. type: textblock
21313 #: ../fish/guestfish.pod:827
21314 msgid ""
21315 "Libguestfs has some support for Linux guests encrypted according to the "
21316 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21317 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21318 "LUKS is supported."
21319 msgstr ""
21320
21321 #. type: textblock
21322 #: ../fish/guestfish.pod:832
21323 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21324 msgstr ""
21325
21326 #. type: verbatim
21327 #: ../fish/guestfish.pod:834
21328 #, no-wrap
21329 msgid ""
21330 " ><fs> vfs-type /dev/sda2\n"
21331 " crypto_LUKS\n"
21332 "\n"
21333 msgstr ""
21334
21335 #. type: textblock
21336 #: ../fish/guestfish.pod:837
21337 msgid ""
21338 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21339 "device called C</dev/mapper/luksdev>."
21340 msgstr ""
21341
21342 #. type: verbatim
21343 #: ../fish/guestfish.pod:840
21344 #, no-wrap
21345 msgid ""
21346 " ><fs> luks-open /dev/sda2 luksdev\n"
21347 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21348 "\n"
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../fish/guestfish.pod:843
21353 msgid ""
21354 "Finally you have to tell LVM to scan for volume groups on the newly created "
21355 "mapper device:"
21356 msgstr ""
21357
21358 #. type: verbatim
21359 #: ../fish/guestfish.pod:846
21360 #, no-wrap
21361 msgid ""
21362 " vgscan\n"
21363 " vg-activate-all true\n"
21364 "\n"
21365 msgstr ""
21366
21367 #. type: textblock
21368 #: ../fish/guestfish.pod:849
21369 msgid "The logical volume(s) can now be mounted in the usual way."
21370 msgstr ""
21371
21372 #. type: textblock
21373 #: ../fish/guestfish.pod:851
21374 msgid ""
21375 "Before closing a LUKS device you must unmount any logical volumes on it and "
21376 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21377 "one.  Then you can close the mapper device:"
21378 msgstr ""
21379
21380 #. type: verbatim
21381 #: ../fish/guestfish.pod:855
21382 #, no-wrap
21383 msgid ""
21384 " vg-activate false /dev/VG\n"
21385 " luks-close /dev/mapper/luksdev\n"
21386 "\n"
21387 msgstr ""
21388
21389 #. type: textblock
21390 #: ../fish/guestfish.pod:860
21391 msgid ""
21392 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21393 "letters and paths (with some limitations).  The following commands are "
21394 "equivalent:"
21395 msgstr ""
21396
21397 #. type: verbatim
21398 #: ../fish/guestfish.pod:864
21399 #, no-wrap
21400 msgid ""
21401 " file /WINDOWS/system32/config/system.LOG\n"
21402 "\n"
21403 msgstr ""
21404
21405 #. type: verbatim
21406 #: ../fish/guestfish.pod:866
21407 #, no-wrap
21408 msgid ""
21409 " file win:\\windows\\system32\\config\\system.log\n"
21410 "\n"
21411 msgstr ""
21412
21413 #. type: verbatim
21414 #: ../fish/guestfish.pod:868
21415 #, no-wrap
21416 msgid ""
21417 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21418 "\n"
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../fish/guestfish.pod:870
21423 msgid ""
21424 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21425 "where the drive is mounted, prepending that to the path, changing all "
21426 "backslash characters to forward slash, then resolving the result using L</"
21427 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21428 "the parameter might be rewritten like this:"
21429 msgstr ""
21430
21431 #. type: verbatim
21432 #: ../fish/guestfish.pod:876
21433 #, no-wrap
21434 msgid ""
21435 " win:e:\\foo\\bar => /e/FOO/bar\n"
21436 "\n"
21437 msgstr ""
21438
21439 #. type: textblock
21440 #: ../fish/guestfish.pod:878
21441 msgid "This only works in argument positions that expect a path."
21442 msgstr ""
21443
21444 #. type: =head1
21445 #: ../fish/guestfish.pod:880
21446 msgid "UPLOADING AND DOWNLOADING FILES"
21447 msgstr ""
21448
21449 #. type: textblock
21450 #: ../fish/guestfish.pod:882
21451 msgid ""
21452 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21453 "others which upload from or download to a local file, you can use the "
21454 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21455 msgstr ""
21456
21457 #. type: verbatim
21458 #: ../fish/guestfish.pod:886
21459 #, no-wrap
21460 msgid ""
21461 " upload - /foo\n"
21462 "\n"
21463 msgstr ""
21464
21465 #. type: textblock
21466 #: ../fish/guestfish.pod:888
21467 msgid ""
21468 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21469 msgstr ""
21470
21471 #. type: verbatim
21472 #: ../fish/guestfish.pod:891
21473 #, no-wrap
21474 msgid ""
21475 " tar-out /etc - | tar tf -\n"
21476 "\n"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../fish/guestfish.pod:893
21481 msgid ""
21482 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21483 "command (see L</PIPES>)."
21484 msgstr ""
21485
21486 #. type: textblock
21487 #: ../fish/guestfish.pod:896
21488 msgid ""
21489 "When using C<-> to read from stdin, the input is read up to the end of "
21490 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21491 "some arbitrary end marker:"
21492 msgstr ""
21493
21494 #. type: verbatim
21495 #: ../fish/guestfish.pod:900
21496 #, no-wrap
21497 msgid ""
21498 " upload -<<END /foo\n"
21499 " input line 1\n"
21500 " input line 2\n"
21501 " input line 3\n"
21502 " END\n"
21503 "\n"
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../fish/guestfish.pod:906
21508 msgid ""
21509 "Any string of characters can be used instead of C<END>.  The end marker must "
21510 "appear on a line of its own, without any preceeding or following characters "
21511 "(not even spaces)."
21512 msgstr ""
21513
21514 #. type: textblock
21515 #: ../fish/guestfish.pod:910
21516 msgid ""
21517 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21518 "upload local files (so-called \"FileIn\" parameters in the generator)."
21519 msgstr ""
21520
21521 #. type: =head1
21522 #: ../fish/guestfish.pod:913
21523 msgid "EXIT ON ERROR BEHAVIOUR"
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../fish/guestfish.pod:915
21528 msgid ""
21529 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21530 "taking commands from a human over a tty), and will exit on the first error "
21531 "in non-interactive mode (scripts, commands given on the command line)."
21532 msgstr ""
21533
21534 #. type: textblock
21535 #: ../fish/guestfish.pod:920
21536 msgid ""
21537 "If you prefix a command with a I<-> character, then that command will not "
21538 "cause guestfish to exit, even if that (one) command returns an error."
21539 msgstr ""
21540
21541 #. type: =head1
21542 #: ../fish/guestfish.pod:924
21543 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21544 msgstr ""
21545
21546 #. type: textblock
21547 #: ../fish/guestfish.pod:926
21548 msgid ""
21549 "Guestfish can be remote-controlled over a socket.  This is useful "
21550 "particularly in shell scripts where you want to make several different "
21551 "changes to a filesystem, but you don't want the overhead of starting up a "
21552 "guestfish process each time."
21553 msgstr ""
21554
21555 #. type: textblock
21556 #: ../fish/guestfish.pod:931
21557 msgid "Start a guestfish server process using:"
21558 msgstr ""
21559
21560 #. type: verbatim
21561 #: ../fish/guestfish.pod:933
21562 #, no-wrap
21563 msgid ""
21564 " eval \"`guestfish --listen`\"\n"
21565 "\n"
21566 msgstr ""
21567
21568 #. type: textblock
21569 #: ../fish/guestfish.pod:935
21570 msgid "and then send it commands by doing:"
21571 msgstr ""
21572
21573 #. type: verbatim
21574 #: ../fish/guestfish.pod:937
21575 #, no-wrap
21576 msgid ""
21577 " guestfish --remote cmd [...]\n"
21578 "\n"
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../fish/guestfish.pod:939
21583 msgid "To cause the server to exit, send it the exit command:"
21584 msgstr ""
21585
21586 #. type: textblock
21587 #: ../fish/guestfish.pod:943
21588 msgid ""
21589 "Note that the server will normally exit if there is an error in a command.  "
21590 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21591 "BEHAVIOUR>."
21592 msgstr ""
21593
21594 #. type: =head2
21595 #: ../fish/guestfish.pod:947
21596 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../fish/guestfish.pod:949
21601 msgid ""
21602 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21603 "is how the I<--remote> option knows where to send the commands.  You can "
21604 "have several guestfish listener processes running using:"
21605 msgstr ""
21606
21607 #. type: verbatim
21608 #: ../fish/guestfish.pod:953
21609 #, no-wrap
21610 msgid ""
21611 " eval \"`guestfish --listen`\"\n"
21612 " pid1=$GUESTFISH_PID\n"
21613 " eval \"`guestfish --listen`\"\n"
21614 " pid2=$GUESTFISH_PID\n"
21615 " ...\n"
21616 " guestfish --remote=$pid1 cmd\n"
21617 " guestfish --remote=$pid2 cmd\n"
21618 "\n"
21619 msgstr ""
21620
21621 #. type: =head2
21622 #: ../fish/guestfish.pod:961
21623 msgid "REMOTE CONTROL AND CSH"
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../fish/guestfish.pod:963
21628 msgid ""
21629 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21630 "option:"
21631 msgstr ""
21632
21633 #. type: verbatim
21634 #: ../fish/guestfish.pod:966
21635 #, no-wrap
21636 msgid ""
21637 " eval \"`guestfish --listen --csh`\"\n"
21638 "\n"
21639 msgstr ""
21640
21641 #. type: =head2
21642 #: ../fish/guestfish.pod:968
21643 msgid "REMOTE CONTROL DETAILS"
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../fish/guestfish.pod:970
21648 msgid ""
21649 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21650 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21651 "and C<$PID> is the process ID of the server."
21652 msgstr ""
21653
21654 #. type: textblock
21655 #: ../fish/guestfish.pod:974
21656 msgid "Guestfish client and server versions must match exactly."
21657 msgstr ""
21658
21659 #. type: =head2
21660 #: ../fish/guestfish.pod:976
21661 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../fish/guestfish.pod:978
21666 msgid ""
21667 "From Bash, you can use the following code which creates a guestfish "
21668 "instance, correctly quotes the command line, handles failure to start, and "
21669 "cleans up guestfish when the script exits:"
21670 msgstr ""
21671
21672 #. type: verbatim
21673 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21674 #, no-wrap
21675 msgid ""
21676 " #!/bin/bash -\n"
21677 " \n"
21678 msgstr ""
21679
21680 #. type: verbatim
21681 #: ../fish/guestfish.pod:986
21682 #, no-wrap
21683 msgid ""
21684 " guestfish[0]=\"guestfish\"\n"
21685 " guestfish[1]=\"--listen\"\n"
21686 " guestfish[2]=\"--ro\"\n"
21687 " guestfish[3]=\"-a\"\n"
21688 " guestfish[4]=\"disk.img\"\n"
21689 " \n"
21690 msgstr ""
21691
21692 #. type: verbatim
21693 #: ../fish/guestfish.pod:992
21694 #, no-wrap
21695 msgid ""
21696 " GUESTFISH_PID=\n"
21697 " eval $(\"${guestfish[@]}\")\n"
21698 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21699 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21700 "     exit 1\n"
21701 " fi\n"
21702 " \n"
21703 msgstr ""
21704
21705 #. type: verbatim
21706 #: ../fish/guestfish.pod:999
21707 #, no-wrap
21708 msgid ""
21709 " cleanup_guestfish ()\n"
21710 " {\n"
21711 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21712 " }\n"
21713 " trap cleanup_guestfish EXIT ERR\n"
21714 " \n"
21715 msgstr ""
21716
21717 #. type: verbatim
21718 #: ../fish/guestfish.pod:1005
21719 #, no-wrap
21720 msgid ""
21721 " guestfish --remote -- run\n"
21722 " \n"
21723 msgstr ""
21724
21725 #. type: verbatim
21726 #: ../fish/guestfish.pod:1007
21727 #, no-wrap
21728 msgid ""
21729 " # ...\n"
21730 "\n"
21731 msgstr ""
21732
21733 #. type: =head2
21734 #: ../fish/guestfish.pod:1009
21735 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21736 msgstr ""
21737
21738 #. type: textblock
21739 #: ../fish/guestfish.pod:1011
21740 msgid ""
21741 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21742 "context hangs, ie. don't do (note the backquotes):"
21743 msgstr ""
21744
21745 #. type: verbatim
21746 #: ../fish/guestfish.pod:1014
21747 #, no-wrap
21748 msgid ""
21749 " a=`guestfish --remote run`\n"
21750 "\n"
21751 msgstr ""
21752
21753 #. type: textblock
21754 #: ../fish/guestfish.pod:1016
21755 msgid ""
21756 "Since the C<run> command produces no output on stdout, this is not useful "
21757 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21758 "cgi?id=592910>."
21759 msgstr ""
21760
21761 #. type: =head1
21762 #: ../fish/guestfish.pod:1020
21763 msgid "PREPARED DISK IMAGES"
21764 msgstr ""
21765
21766 #. type: textblock
21767 #: ../fish/guestfish.pod:1022
21768 msgid ""
21769 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21770 "preformatted disk images that guestfish can make for you to save typing.  "
21771 "This is particularly useful for testing purposes.  This option is used "
21772 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21773 "can be mixed with I<-a>)."
21774 msgstr ""
21775
21776 #. type: textblock
21777 #: ../fish/guestfish.pod:1028
21778 msgid ""
21779 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21780 "the second and so on.  Existing files in the current directory are "
21781 "I<overwritten>."
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../fish/guestfish.pod:1032
21786 msgid ""
21787 "The type briefly describes how the disk should be sized, partitioned, how "
21788 "filesystem(s) should be created, and how content should be added.  "
21789 "Optionally the type can be followed by extra parameters, separated by C<:> "
21790 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21791 "allocated disk, containing a single partition, with the partition formatted "
21792 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21793 "disk instead."
21794 msgstr ""
21795
21796 #. type: textblock
21797 #: ../fish/guestfish.pod:1040
21798 msgid "To list the available types and any extra parameters they take, run:"
21799 msgstr ""
21800
21801 #. type: textblock
21802 #: ../fish/guestfish.pod:1044
21803 msgid ""
21804 "Note that the prepared filesystem is not mounted.  You would usually have to "
21805 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21806 msgstr ""
21807
21808 #. type: textblock
21809 #: ../fish/guestfish.pod:1048
21810 msgid ""
21811 "If any I<-N> or I<--new> options are given, the guest is automatically "
21812 "launched."
21813 msgstr ""
21814
21815 #. type: textblock
21816 #: ../fish/guestfish.pod:1053
21817 msgid "Create a 100MB disk with an ext4-formatted partition:"
21818 msgstr ""
21819
21820 #. type: verbatim
21821 #: ../fish/guestfish.pod:1055
21822 #, no-wrap
21823 msgid ""
21824 " guestfish -N fs:ext4\n"
21825 "\n"
21826 msgstr ""
21827
21828 #. type: textblock
21829 #: ../fish/guestfish.pod:1057
21830 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21831 msgstr ""
21832
21833 #. type: verbatim
21834 #: ../fish/guestfish.pod:1059
21835 #, no-wrap
21836 msgid ""
21837 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21838 "\n"
21839 msgstr ""
21840
21841 #. type: textblock
21842 #: ../fish/guestfish.pod:1061
21843 msgid "Create a blank 200MB disk:"
21844 msgstr ""
21845
21846 #. type: verbatim
21847 #: ../fish/guestfish.pod:1063
21848 #, no-wrap
21849 msgid ""
21850 " guestfish -N disk:200M\n"
21851 "\n"
21852 msgstr ""
21853
21854 #. type: =head1
21855 #: ../fish/guestfish.pod:1065
21856 msgid "PROGRESS BARS"
21857 msgstr ""
21858
21859 #. type: textblock
21860 #: ../fish/guestfish.pod:1067
21861 msgid ""
21862 "Some (not all) long-running commands send progress notification messages as "
21863 "they are running.  Guestfish turns these messages into progress bars."
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../fish/guestfish.pod:1071
21868 msgid ""
21869 "When a command that supports progress bars takes longer than two seconds to "
21870 "run, and if progress bars are enabled, then you will see one appearing below "
21871 "the command:"
21872 msgstr ""
21873
21874 #. type: verbatim
21875 #: ../fish/guestfish.pod:1075
21876 #, no-wrap
21877 msgid ""
21878 " ><fs> copy-size /large-file /another-file 2048M\n"
21879 " / 10% [#####-----------------------------------------] 00:30\n"
21880 "\n"
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../fish/guestfish.pod:1078
21885 msgid ""
21886 "The spinner on the left hand side moves round once for every progress "
21887 "notification received from the backend.  This is a (reasonably) golden "
21888 "assurance that the command is \"doing something\" even if the progress bar "
21889 "is not moving, because the command is able to send the progress "
21890 "notifications.  When the bar reaches 100% and the command finishes, the "
21891 "spinner disappears."
21892 msgstr ""
21893
21894 #. type: textblock
21895 #: ../fish/guestfish.pod:1085
21896 msgid ""
21897 "Progress bars are enabled by default when guestfish is used interactively.  "
21898 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21899 "and you can disable them completely using I<--no-progress-bars>."
21900 msgstr ""
21901
21902 #. type: =head1
21903 #: ../fish/guestfish.pod:1090
21904 msgid "GUESTFISH COMMANDS"
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../fish/guestfish.pod:1092
21909 msgid ""
21910 "The commands in this section are guestfish convenience commands, in other "
21911 "words, they are not part of the L<guestfs(3)> API."
21912 msgstr ""
21913
21914 #. type: =head2
21915 #: ../fish/guestfish.pod:1095
21916 msgid "help"
21917 msgstr "help"
21918
21919 #. type: verbatim
21920 #: ../fish/guestfish.pod:1097
21921 #, no-wrap
21922 msgid ""
21923 " help\n"
21924 " help cmd\n"
21925 "\n"
21926 msgstr ""
21927 " help\n"
21928 " help команда\n"
21929 "\n"
21930
21931 #. type: textblock
21932 #: ../fish/guestfish.pod:1100
21933 msgid "Without any parameter, this provides general help."
21934 msgstr "Без параметра показує загальну довідкову інформацію."
21935
21936 #. type: textblock
21937 #: ../fish/guestfish.pod:1102
21938 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21939 msgstr ""
21940
21941 #. type: =head2
21942 #: ../fish/guestfish.pod:1104
21943 msgid "quit | exit"
21944 msgstr ""
21945
21946 #. type: textblock
21947 #: ../fish/guestfish.pod:1106
21948 msgid "This exits guestfish.  You can also use C<^D> key."
21949 msgstr ""
21950
21951 #. type: textblock
21952 #: ../fish/guestfish.pod:1108
21953 msgid "@FISH_COMMANDS@"
21954 msgstr ""
21955
21956 #. type: =head1
21957 #: ../fish/guestfish.pod:1110
21958 msgid "COMMANDS"
21959 msgstr "КОМАНДИ"
21960
21961 #. type: textblock
21962 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21963 msgid "@ACTIONS@"
21964 msgstr "@ACTIONS@"
21965
21966 #. type: textblock
21967 #: ../fish/guestfish.pod:1116
21968 msgid ""
21969 "guestfish returns 0 if the commands completed without error, or 1 if there "
21970 "was an error."
21971 msgstr ""
21972
21973 #. type: =item
21974 #: ../fish/guestfish.pod:1123
21975 msgid "EDITOR"
21976 msgstr "РЕДАКТОР"
21977
21978 #. type: textblock
21979 #: ../fish/guestfish.pod:1125
21980 msgid ""
21981 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21982 "C<vi>."
21983 msgstr ""
21984
21985 #. type: =item
21986 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
21987 msgid "FEBOOTSTRAP_KERNEL"
21988 msgstr ""
21989
21990 #. type: =item
21991 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
21992 msgid "FEBOOTSTRAP_MODULES"
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
21997 msgid ""
21998 "These two environment variables allow the kernel that libguestfs uses in the "
21999 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
22000 "most recent host kernel is chosen.  For more information about kernel "
22001 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
22002 "available in febootstrap E<ge> 3.8."
22003 msgstr ""
22004
22005 #. type: =item
22006 #: ../fish/guestfish.pod:1138
22007 msgid "GUESTFISH_DISPLAY_IMAGE"
22008 msgstr ""
22009
22010 #. type: textblock
22011 #: ../fish/guestfish.pod:1140
22012 msgid ""
22013 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
22014 "If not set, it uses L<display(1)>."
22015 msgstr ""
22016
22017 #. type: =item
22018 #: ../fish/guestfish.pod:1143
22019 msgid "GUESTFISH_PID"
22020 msgstr ""
22021
22022 #. type: textblock
22023 #: ../fish/guestfish.pod:1145
22024 msgid ""
22025 "Used with the I<--remote> option to specify the remote guestfish process to "
22026 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22027 msgstr ""
22028
22029 #. type: =item
22030 #: ../fish/guestfish.pod:1149
22031 msgid "HEXEDITOR"
22032 msgstr ""
22033
22034 #. type: textblock
22035 #: ../fish/guestfish.pod:1151
22036 msgid ""
22037 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
22038 "not specified, the external L<hexedit(1)> program is used."
22039 msgstr ""
22040
22041 #. type: =item
22042 #: ../fish/guestfish.pod:1155
22043 msgid "HOME"
22044 msgstr "ДОМІВКА"
22045
22046 #. type: textblock
22047 #: ../fish/guestfish.pod:1157
22048 msgid ""
22049 "If compiled with GNU readline support, various files in the home directory "
22050 "can be used.  See L</FILES>."
22051 msgstr ""
22052
22053 #. type: =item
22054 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
22055 msgid "LIBGUESTFS_APPEND"
22056 msgstr ""
22057
22058 #. type: textblock
22059 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
22060 msgid "Pass additional options to the guest kernel."
22061 msgstr ""
22062
22063 #. type: =item
22064 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
22065 msgid "LIBGUESTFS_DEBUG"
22066 msgstr "LIBGUESTFS_DEBUG"
22067
22068 #. type: textblock
22069 #: ../fish/guestfish.pod:1166
22070 msgid ""
22071 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
22072 "effect as using the B<-v> option."
22073 msgstr ""
22074
22075 #. type: =item
22076 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
22077 msgid "LIBGUESTFS_MEMSIZE"
22078 msgstr "LIBGUESTFS_MEMSIZE"
22079
22080 #. type: textblock
22081 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
22082 msgid ""
22083 "Set the memory allocated to the qemu process, in megabytes.  For example:"
22084 msgstr ""
22085
22086 #. type: verbatim
22087 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
22088 #, no-wrap
22089 msgid ""
22090 " LIBGUESTFS_MEMSIZE=700\n"
22091 "\n"
22092 msgstr ""
22093 " LIBGUESTFS_MEMSIZE=700\n"
22094 "\n"
22095
22096 #. type: =item
22097 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
22098 msgid "LIBGUESTFS_PATH"
22099 msgstr ""
22100
22101 #. type: textblock
22102 #: ../fish/guestfish.pod:1178
22103 msgid ""
22104 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
22105 "the discussion of paths in L<guestfs(3)>."
22106 msgstr ""
22107
22108 #. type: =item
22109 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
22110 msgid "LIBGUESTFS_QEMU"
22111 msgstr ""
22112
22113 #. type: textblock
22114 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
22115 msgid ""
22116 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
22117 "which was found at compile time by the configure script is used."
22118 msgstr ""
22119
22120 #. type: =item
22121 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
22122 msgid "LIBGUESTFS_TRACE"
22123 msgstr ""
22124
22125 #. type: textblock
22126 #: ../fish/guestfish.pod:1189
22127 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22128 msgstr ""
22129
22130 #. type: =item
22131 #: ../fish/guestfish.pod:1191
22132 msgid "PAGER"
22133 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
22134
22135 #. type: textblock
22136 #: ../fish/guestfish.pod:1193
22137 msgid ""
22138 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22139 "C<more>."
22140 msgstr ""
22141
22142 #. type: =item
22143 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:235
22144 #: ../src/guestfs.pod:3262
22145 msgid "TMPDIR"
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
22150 msgid ""
22151 "Location of temporary directory, defaults to C</tmp> except for the cached "
22152 "supermin appliance which defaults to C</var/tmp>."
22153 msgstr ""
22154
22155 #. type: textblock
22156 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
22157 msgid ""
22158 "If libguestfs was compiled to use the supermin appliance then the real "
22159 "appliance is cached in this directory, shared between all handles belonging "
22160 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
22161 "use in case C</var/tmp> is not large enough."
22162 msgstr ""
22163
22164 #. type: =head1
22165 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22166 #: ../rescue/virt-rescue.pod:273
22167 msgid "FILES"
22168 msgstr "ФАЙЛИ"
22169
22170 #. type: =item
22171 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22172 #: ../rescue/virt-rescue.pod:277
22173 msgid "$HOME/.libguestfs-tools.rc"
22174 msgstr ""
22175
22176 #. type: =item
22177 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22178 #: ../rescue/virt-rescue.pod:279
22179 msgid "/etc/libguestfs-tools.conf"
22180 msgstr ""
22181
22182 #. type: textblock
22183 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22184 #: ../rescue/virt-rescue.pod:281
22185 msgid ""
22186 "This configuration file controls the default read-only or read-write mode "
22187 "(I<--ro> or I<--rw>)."
22188 msgstr ""
22189
22190 #. type: textblock
22191 #: ../fish/guestfish.pod:1220
22192 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22193 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
22194
22195 #. type: =item
22196 #: ../fish/guestfish.pod:1222
22197 msgid "$HOME/.guestfish"
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../fish/guestfish.pod:1224
22202 msgid ""
22203 "If compiled with GNU readline support, then the command history is saved in "
22204 "this file."
22205 msgstr ""
22206
22207 #. type: =item
22208 #: ../fish/guestfish.pod:1227
22209 msgid "$HOME/.inputrc"
22210 msgstr ""
22211
22212 #. type: =item
22213 #: ../fish/guestfish.pod:1229
22214 msgid "/etc/inputrc"
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../fish/guestfish.pod:1231
22219 msgid ""
22220 "If compiled with GNU readline support, then these files can be used to "
22221 "configure readline.  For further information, please see L<readline(3)/"
22222 "INITIALIZATION FILE>."
22223 msgstr ""
22224
22225 #. type: textblock
22226 #: ../fish/guestfish.pod:1235
22227 msgid "To write rules which only apply to guestfish, use:"
22228 msgstr ""
22229
22230 #. type: verbatim
22231 #: ../fish/guestfish.pod:1237
22232 #, no-wrap
22233 msgid ""
22234 " $if guestfish\n"
22235 " ...\n"
22236 " $endif\n"
22237 "\n"
22238 msgstr ""
22239
22240 #. type: textblock
22241 #: ../fish/guestfish.pod:1241
22242 msgid ""
22243 "Variables that you can set in inputrc that change the behaviour of guestfish "
22244 "in useful ways include:"
22245 msgstr ""
22246
22247 #. type: =item
22248 #: ../fish/guestfish.pod:1246
22249 msgid "completion-ignore-case (default: on)"
22250 msgstr ""
22251
22252 #. type: textblock
22253 #: ../fish/guestfish.pod:1248
22254 msgid ""
22255 "By default, guestfish will ignore case when tab-completing paths on the "
22256 "disk.  Use:"
22257 msgstr ""
22258
22259 #. type: verbatim
22260 #: ../fish/guestfish.pod:1251
22261 #, no-wrap
22262 msgid ""
22263 " set completion-ignore-case off\n"
22264 "\n"
22265 msgstr ""
22266
22267 #. type: textblock
22268 #: ../fish/guestfish.pod:1253
22269 msgid "to make guestfish case sensitive."
22270 msgstr ""
22271
22272 #. type: =item
22273 #: ../fish/guestfish.pod:1257
22274 msgid "test1.img"
22275 msgstr ""
22276
22277 #. type: =item
22278 #: ../fish/guestfish.pod:1259
22279 msgid "test2.img (etc)"
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../fish/guestfish.pod:1261
22284 msgid ""
22285 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22286 "will be created in the file C<test1.img> in the current directory.  The "
22287 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
22288 "the same name will be overwritten."
22289 msgstr ""
22290
22291 #. type: textblock
22292 #: ../fish/guestfish.pod:1270
22293 msgid ""
22294 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22295 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22296 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22297 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22298 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22299 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22300 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22301 msgstr ""
22302
22303 #. type: textblock
22304 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
22305 #: ../test-tool/libguestfs-test-tool.pod:112
22306 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
22307 msgstr ""
22308
22309 #. type: textblock
22310 #: ../fish/virt-copy-in.pod:5
22311 msgid ""
22312 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22313 msgstr ""
22314
22315 #. type: verbatim
22316 #: ../fish/virt-copy-in.pod:9
22317 #, no-wrap
22318 msgid ""
22319 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22320 "\n"
22321 msgstr ""
22322
22323 #. type: verbatim
22324 #: ../fish/virt-copy-in.pod:11
22325 #, no-wrap
22326 msgid ""
22327 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22328 "\n"
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../fish/virt-copy-in.pod:15
22333 msgid ""
22334 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22335 "causing disk corruption.  The virtual machine must be shut down before you "
22336 "use this command."
22337 msgstr ""
22338
22339 #. type: textblock
22340 #: ../fish/virt-copy-in.pod:21
22341 msgid ""
22342 "C<virt-copy-in> copies files and directories from the local disk into a "
22343 "virtual machine disk image or named libvirt domain."
22344 msgstr ""
22345
22346 #. type: textblock
22347 #: ../fish/virt-copy-in.pod:24
22348 msgid ""
22349 "You can give one of more filenames and directories on the command line.  "
22350 "Directories are copied in recursively.  The final parameter must be the "
22351 "destination directory in the disk image which must be an absolute path "
22352 "starting with a C</> character."
22353 msgstr ""
22354
22355 #. type: verbatim
22356 #: ../fish/virt-copy-in.pod:33
22357 #, no-wrap
22358 msgid ""
22359 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22360 "\n"
22361 msgstr ""
22362
22363 #. type: textblock
22364 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22365 msgid "Upload a home directory to a guest:"
22366 msgstr ""
22367
22368 #. type: verbatim
22369 #: ../fish/virt-copy-in.pod:37
22370 #, no-wrap
22371 msgid ""
22372 " virt-copy-in -d MyGuest skel /home\n"
22373 "\n"
22374 msgstr ""
22375
22376 #. type: =head1
22377 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22378 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22379 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22380 msgstr ""
22381
22382 #. type: textblock
22383 #: ../fish/virt-copy-in.pod:41
22384 msgid ""
22385 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22386 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
22387 "are probably better off using guestfish directly."
22388 msgstr ""
22389
22390 #. type: textblock
22391 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22392 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22393 msgid ""
22394 "Since the shell script just passes options straight to guestfish, read "
22395 "L<guestfish(1)> to see the full list of options."
22396 msgstr ""
22397
22398 #. type: textblock
22399 #: ../fish/virt-copy-in.pod:52
22400 msgid ""
22401 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22402 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22403 msgstr ""
22404
22405 #. type: textblock
22406 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22407 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22408 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
22409 msgstr ""
22410
22411 #. type: textblock
22412 #: ../fish/virt-copy-out.pod:5
22413 msgid ""
22414 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22415 "image."
22416 msgstr ""
22417
22418 #. type: verbatim
22419 #: ../fish/virt-copy-out.pod:9
22420 #, no-wrap
22421 msgid ""
22422 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22423 "\n"
22424 msgstr ""
22425
22426 #. type: verbatim
22427 #: ../fish/virt-copy-out.pod:11
22428 #, no-wrap
22429 msgid ""
22430 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22431 "\n"
22432 msgstr ""
22433
22434 #. type: textblock
22435 #: ../fish/virt-copy-out.pod:15
22436 msgid ""
22437 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22438 "image or named libvirt domain."
22439 msgstr ""
22440
22441 #. type: textblock
22442 #: ../fish/virt-copy-out.pod:18
22443 msgid ""
22444 "You can give one of more filenames and directories on the command line.  "
22445 "Directories are copied out recursively."
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../fish/virt-copy-out.pod:23
22450 msgid "Download the home directories from a virtual machine:"
22451 msgstr ""
22452
22453 #. type: verbatim
22454 #: ../fish/virt-copy-out.pod:25
22455 #, no-wrap
22456 msgid ""
22457 " mkdir homes\n"
22458 " virt-copy-out -d MyGuest /home homes\n"
22459 "\n"
22460 msgstr ""
22461
22462 #. type: textblock
22463 #: ../fish/virt-copy-out.pod:30
22464 msgid ""
22465 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22466 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22467 "are probably better off using guestfish directly."
22468 msgstr ""
22469
22470 #. type: textblock
22471 #: ../fish/virt-copy-out.pod:41
22472 msgid ""
22473 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22474 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22475 msgstr ""
22476
22477 #. type: textblock
22478 #: ../fish/virt-tar-in.pod:5
22479 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22480 msgstr ""
22481
22482 #. type: verbatim
22483 #: ../fish/virt-tar-in.pod:9
22484 #, no-wrap
22485 msgid ""
22486 " virt-tar-in -a disk.img data.tar /destination\n"
22487 "\n"
22488 msgstr ""
22489
22490 #. type: verbatim
22491 #: ../fish/virt-tar-in.pod:11
22492 #, no-wrap
22493 msgid ""
22494 " virt-tar-in -d domain data.tar /destination\n"
22495 "\n"
22496 msgstr ""
22497
22498 #. type: verbatim
22499 #: ../fish/virt-tar-in.pod:13
22500 #, no-wrap
22501 msgid ""
22502 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22503 "\n"
22504 msgstr ""
22505
22506 #. type: textblock
22507 #: ../fish/virt-tar-in.pod:17
22508 msgid ""
22509 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22510 "causing disk corruption.  The virtual machine must be shut down before you "
22511 "use this command."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../fish/virt-tar-in.pod:23
22516 msgid ""
22517 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22518 "image or named libvirt domain."
22519 msgstr ""
22520
22521 #. type: textblock
22522 #: ../fish/virt-tar-in.pod:26
22523 msgid ""
22524 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22525 "standard input.  The second parameter is the absolute target directory to "
22526 "unpack into."
22527 msgstr ""
22528
22529 #. type: verbatim
22530 #: ../fish/virt-tar-in.pod:34
22531 #, no-wrap
22532 msgid ""
22533 " virt-tar-in -d MyGuest homes.tar /home\n"
22534 "\n"
22535 msgstr ""
22536
22537 #. type: textblock
22538 #: ../fish/virt-tar-in.pod:38
22539 msgid ""
22540 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22541 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22542 "probably better off using guestfish directly."
22543 msgstr ""
22544
22545 #. type: textblock
22546 #: ../fish/virt-tar-in.pod:49
22547 msgid ""
22548 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22549 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22550 "org/>."
22551 msgstr ""
22552
22553 #. type: textblock
22554 #: ../fish/virt-tar-out.pod:5
22555 msgid ""
22556 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22557 msgstr ""
22558
22559 #. type: verbatim
22560 #: ../fish/virt-tar-out.pod:9
22561 #, no-wrap
22562 msgid ""
22563 " virt-tar-out -a disk.img /dir files.tar\n"
22564 "\n"
22565 msgstr ""
22566
22567 #. type: verbatim
22568 #: ../fish/virt-tar-out.pod:11
22569 #, no-wrap
22570 msgid ""
22571 " virt-tar-out -d domain /dir files.tar\n"
22572 "\n"
22573 msgstr ""
22574
22575 #. type: verbatim
22576 #: ../fish/virt-tar-out.pod:13
22577 #, no-wrap
22578 msgid ""
22579 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22580 "\n"
22581 msgstr ""
22582
22583 #. type: textblock
22584 #: ../fish/virt-tar-out.pod:17
22585 msgid ""
22586 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22587 msgstr ""
22588
22589 #. type: textblock
22590 #: ../fish/virt-tar-out.pod:20
22591 msgid ""
22592 "The first parameter is the absolute path of the virtual machine directory.  "
22593 "The second parameter is the tar file to write.  Use C<-> to write to "
22594 "standard output."
22595 msgstr ""
22596
22597 #. type: textblock
22598 #: ../fish/virt-tar-out.pod:26
22599 msgid "Download the home directories from a guest:"
22600 msgstr ""
22601
22602 #. type: verbatim
22603 #: ../fish/virt-tar-out.pod:28
22604 #, no-wrap
22605 msgid ""
22606 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22607 "\n"
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../fish/virt-tar-out.pod:32
22612 msgid ""
22613 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22614 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
22615 "are probably better off using guestfish directly."
22616 msgstr ""
22617
22618 #. type: textblock
22619 #: ../fish/virt-tar-out.pod:43
22620 msgid ""
22621 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22622 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22623 msgstr ""
22624
22625 #. type: textblock
22626 #: ../fuse/guestmount.pod:5
22627 msgid ""
22628 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22629 msgstr ""
22630
22631 #. type: verbatim
22632 #: ../fuse/guestmount.pod:9
22633 #, no-wrap
22634 msgid ""
22635 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22636 "\n"
22637 msgstr ""
22638
22639 #. type: verbatim
22640 #: ../fuse/guestmount.pod:11
22641 #, no-wrap
22642 msgid ""
22643 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22644 "\n"
22645 msgstr ""
22646
22647 #. type: verbatim
22648 #: ../fuse/guestmount.pod:13
22649 #, no-wrap
22650 msgid ""
22651 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22652 "\n"
22653 msgstr ""
22654
22655 #. type: textblock
22656 #: ../fuse/guestmount.pod:17
22657 msgid ""
22658 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22659 "machines.  If you do this, you risk disk corruption in the VM."
22660 msgstr ""
22661
22662 #. type: textblock
22663 #: ../fuse/guestmount.pod:22
22664 msgid ""
22665 "The guestmount program can be used to mount virtual machine filesystems and "
22666 "other disk images on the host.  It uses libguestfs for access to the guest "
22667 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22668 "a mountable device."
22669 msgstr ""
22670
22671 #. type: textblock
22672 #: ../fuse/guestmount.pod:27
22673 msgid ""
22674 "Along with other options, you have to give at least one device (I<-a> "
22675 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22676 "option) or use the I<-i> inspection option or the I<--live> option.  How "
22677 "this works is better explained in the L<guestfish(1)> manual page, or by "
22678 "looking at the examples below."
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../fuse/guestmount.pod:33
22683 msgid ""
22684 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22685 "by you, and the filesystem will not be visible to any other users unless you "
22686 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22687 "the filesystem, use the C<fusermount -u> command."
22688 msgstr ""
22689
22690 #. type: textblock
22691 #: ../fuse/guestmount.pod:41
22692 msgid ""
22693 "For a typical Windows guest which has its main filesystem on the first "
22694 "partition:"
22695 msgstr ""
22696
22697 #. type: verbatim
22698 #: ../fuse/guestmount.pod:44
22699 #, no-wrap
22700 msgid ""
22701 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22702 "\n"
22703 msgstr ""
22704
22705 #. type: textblock
22706 #: ../fuse/guestmount.pod:46
22707 msgid ""
22708 "For a typical Linux guest which has a /boot filesystem on the first "
22709 "partition, and the root filesystem on a logical volume:"
22710 msgstr ""
22711
22712 #. type: verbatim
22713 #: ../fuse/guestmount.pod:49
22714 #, no-wrap
22715 msgid ""
22716 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22717 "\n"
22718 msgstr ""
22719
22720 #. type: textblock
22721 #: ../fuse/guestmount.pod:51
22722 msgid "To get libguestfs to detect guest mountpoints for you:"
22723 msgstr ""
22724
22725 #. type: verbatim
22726 #: ../fuse/guestmount.pod:53
22727 #, no-wrap
22728 msgid ""
22729 " guestmount -a guest.img -i --ro /mnt\n"
22730 "\n"
22731 msgstr ""
22732
22733 #. type: textblock
22734 #: ../fuse/guestmount.pod:55
22735 msgid "For a libvirt guest called \"Guest\" you could do:"
22736 msgstr ""
22737
22738 #. type: verbatim
22739 #: ../fuse/guestmount.pod:57
22740 #, no-wrap
22741 msgid ""
22742 " guestmount -d Guest -i --ro /mnt\n"
22743 "\n"
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../fuse/guestmount.pod:59
22748 msgid ""
22749 "If you don't know what filesystems are contained in a guest or disk image, "
22750 "use L<virt-filesystems(1)> first:"
22751 msgstr ""
22752
22753 #. type: verbatim
22754 #: ../fuse/guestmount.pod:62
22755 #, no-wrap
22756 msgid ""
22757 " virt-filesystems MyGuest\n"
22758 "\n"
22759 msgstr ""
22760
22761 #. type: textblock
22762 #: ../fuse/guestmount.pod:64
22763 msgid ""
22764 "If you want to trace the libguestfs calls but without excessive debugging "
22765 "information, we recommend:"
22766 msgstr ""
22767
22768 #. type: verbatim
22769 #: ../fuse/guestmount.pod:67
22770 #, no-wrap
22771 msgid ""
22772 " guestmount [...] --trace /mnt\n"
22773 "\n"
22774 msgstr ""
22775
22776 #. type: textblock
22777 #: ../fuse/guestmount.pod:69
22778 msgid "If you want to debug the program, we recommend:"
22779 msgstr ""
22780
22781 #. type: verbatim
22782 #: ../fuse/guestmount.pod:71
22783 #, no-wrap
22784 msgid ""
22785 " guestmount [...] --trace --verbose /mnt\n"
22786 "\n"
22787 msgstr ""
22788
22789 #. type: =head1
22790 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
22791 #: ../resize/virt-resize.pod:621
22792 msgid "NOTES"
22793 msgstr "ПРИМІТКИ"
22794
22795 #. type: =head2
22796 #: ../fuse/guestmount.pod:75
22797 msgid "Other users cannot see the filesystem by default"
22798 msgstr ""
22799
22800 #. type: textblock
22801 #: ../fuse/guestmount.pod:77
22802 msgid ""
22803 "If you mount a filesystem as one user (eg. root), then other users will not "
22804 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22805 "option when mounting:"
22806 msgstr ""
22807
22808 #. type: verbatim
22809 #: ../fuse/guestmount.pod:81
22810 #, no-wrap
22811 msgid ""
22812 " sudo guestmount [...] -o allow_other /mnt\n"
22813 "\n"
22814 msgstr ""
22815
22816 #. type: =head2
22817 #: ../fuse/guestmount.pod:83
22818 msgid "Enabling FUSE"
22819 msgstr ""
22820
22821 #. type: textblock
22822 #: ../fuse/guestmount.pod:85
22823 msgid ""
22824 "On some distros, you may need to add yourself to a special group (eg. "
22825 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22826 "Debian and derivatives."
22827 msgstr ""
22828
22829 #. type: textblock
22830 #: ../fuse/guestmount.pod:89
22831 msgid ""
22832 "On other distros, no special group is required.  It is not necessary on "
22833 "Fedora or Red Hat Enterprise Linux."
22834 msgstr ""
22835
22836 #. type: textblock
22837 #: ../fuse/guestmount.pod:100
22838 msgid "Add a block device or virtual machine image."
22839 msgstr ""
22840
22841 #. type: =item
22842 #: ../fuse/guestmount.pod:123
22843 msgid "B<--dir-cache-timeout N>"
22844 msgstr "B<--dir-cache-timeout N>"
22845
22846 #. type: textblock
22847 #: ../fuse/guestmount.pod:125
22848 msgid ""
22849 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22850 "seconds.  The readdir cache [actually, there are several semi-independent "
22851 "caches] is populated after a readdir(2) call with the stat and extended "
22852 "attributes of the files in the directory, in anticipation that they will be "
22853 "requested soon after."
22854 msgstr ""
22855
22856 #. type: textblock
22857 #: ../fuse/guestmount.pod:131
22858 msgid ""
22859 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22860 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22861 "requests, only cache existing ones."
22862 msgstr ""
22863
22864 #. type: textblock
22865 #: ../fuse/guestmount.pod:151
22866 msgid ""
22867 "If you have untrusted raw-format guest disk images, you should use this "
22868 "option to specify the disk format.  This avoids a possible security problem "
22869 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22870 "guestfs_add_drive_opts>."
22871 msgstr ""
22872
22873 #. type: =item
22874 #: ../fuse/guestmount.pod:156
22875 msgid "B<--fuse-help>"
22876 msgstr "B<--fuse-help>"
22877
22878 #. type: textblock
22879 #: ../fuse/guestmount.pod:158
22880 msgid "Display help on special FUSE options (see I<-o> below)."
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../fuse/guestmount.pod:162
22885 msgid "Display brief help and exit."
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../fuse/guestmount.pod:186
22890 msgid ""
22891 "Mount the named partition or logical volume on the given mountpoint B<in the "
22892 "guest> (this has nothing to do with mountpoints in the host)."
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../fuse/guestmount.pod:189
22897 msgid ""
22898 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22899 "something on C</>."
22900 msgstr ""
22901
22902 #. type: textblock
22903 #: ../fuse/guestmount.pod:206
22904 msgid ""
22905 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22906 "unmounted.  If you specify this option, then we don't attempt to sync the "
22907 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22908 msgstr ""
22909
22910 #. type: =item
22911 #: ../fuse/guestmount.pod:211
22912 msgid "B<-o option>"
22913 msgstr "B<-o параметр>"
22914
22915 #. type: =item
22916 #: ../fuse/guestmount.pod:213
22917 msgid "B<--option option>"
22918 msgstr "B<--option параметр>"
22919
22920 #. type: textblock
22921 #: ../fuse/guestmount.pod:215
22922 msgid "Pass extra options to FUSE."
22923 msgstr ""
22924
22925 #. type: textblock
22926 #: ../fuse/guestmount.pod:217
22927 msgid ""
22928 "To get a list of all the extra options supported by FUSE, use the command "
22929 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22930 "of them are a good idea."
22931 msgstr ""
22932
22933 #. type: verbatim
22934 #: ../fuse/guestmount.pod:221
22935 #, no-wrap
22936 msgid ""
22937 " guestmount --fuse-help\n"
22938 "\n"
22939 msgstr ""
22940
22941 #. type: textblock
22942 #: ../fuse/guestmount.pod:223
22943 msgid "Some potentially useful FUSE options:"
22944 msgstr ""
22945
22946 #. type: =item
22947 #: ../fuse/guestmount.pod:227
22948 msgid "B<-o allow_other>"
22949 msgstr ""
22950
22951 #. type: textblock
22952 #: ../fuse/guestmount.pod:229
22953 msgid "Allow other users to see the filesystem."
22954 msgstr ""
22955
22956 #. type: =item
22957 #: ../fuse/guestmount.pod:231
22958 msgid "B<-o attr_timeout=N>"
22959 msgstr "B<-o attr_timeout=N>"
22960
22961 #. type: textblock
22962 #: ../fuse/guestmount.pod:233
22963 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22964 msgstr ""
22965
22966 #. type: =item
22967 #: ../fuse/guestmount.pod:235
22968 msgid "B<-o kernel_cache>"
22969 msgstr ""
22970
22971 #. type: textblock
22972 #: ../fuse/guestmount.pod:237
22973 msgid ""
22974 "Allow the kernel to cache files (reduces the number of reads that have to go "
22975 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22976 "afford the extra memory usage."
22977 msgstr ""
22978
22979 #. type: =item
22980 #: ../fuse/guestmount.pod:241
22981 msgid "B<-o uid=N> B<-o gid=N>"
22982 msgstr "B<-o uid=N> B<-o gid=N>"
22983
22984 #. type: textblock
22985 #: ../fuse/guestmount.pod:243
22986 msgid ""
22987 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22988 "the chosen values."
22989 msgstr ""
22990
22991 #. type: textblock
22992 #: ../fuse/guestmount.pod:252
22993 msgid ""
22994 "Add devices and mount everything read-only.  Also disallow writes and make "
22995 "the disk appear read-only to FUSE."
22996 msgstr ""
22997
22998 #. type: textblock
22999 #: ../fuse/guestmount.pod:255
23000 msgid ""
23001 "This is highly recommended if you are not going to edit the guest disk.  If "
23002 "the guest is running and this option is I<not> supplied, then there is a "
23003 "strong risk of disk corruption in the guest.  We try to prevent this from "
23004 "happening, but it is not always possible."
23005 msgstr ""
23006
23007 #. type: textblock
23008 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
23009 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23010 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23011
23012 #. type: textblock
23013 #: ../fuse/guestmount.pod:264
23014 msgid "Enable SELinux support for the guest."
23015 msgstr ""
23016
23017 #. type: textblock
23018 #: ../fuse/guestmount.pod:270
23019 msgid "Enable verbose messages from underlying libguestfs."
23020 msgstr ""
23021
23022 #. type: textblock
23023 #: ../fuse/guestmount.pod:276
23024 msgid "Display the program version and exit."
23025 msgstr ""
23026
23027 #. type: textblock
23028 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
23029 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
23030 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23031 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23032
23033 #. type: =item
23034 #: ../fuse/guestmount.pod:289
23035 msgid "B<--trace>"
23036 msgstr "B<--trace>"
23037
23038 #. type: textblock
23039 #: ../fuse/guestmount.pod:291
23040 msgid "Trace libguestfs calls and entry into each FUSE function."
23041 msgstr ""
23042
23043 #. type: textblock
23044 #: ../fuse/guestmount.pod:293
23045 msgid "This also stops the daemon from forking into the background."
23046 msgstr ""
23047
23048 #. type: textblock
23049 #: ../fuse/guestmount.pod:319
23050 msgid ""
23051 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23052 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23053 "net/>."
23054 msgstr ""
23055 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23056 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23057 "net/>."
23058
23059 #. type: textblock
23060 #: ../fuse/guestmount.pod:334
23061 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
23062 msgstr ""
23063
23064 #. type: textblock
23065 #: ../inspector/virt-inspector.pod:5
23066 msgid ""
23067 "virt-inspector - Display operating system version and other information "
23068 "about a virtual machine"
23069 msgstr ""
23070
23071 #. type: verbatim
23072 #: ../inspector/virt-inspector.pod:9
23073 #, no-wrap
23074 msgid ""
23075 " virt-inspector [--options] -d domname\n"
23076 "\n"
23077 msgstr ""
23078
23079 #. type: verbatim
23080 #: ../inspector/virt-inspector.pod:11
23081 #, no-wrap
23082 msgid ""
23083 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
23084 "\n"
23085 msgstr ""
23086
23087 #. type: verbatim
23088 #: ../inspector/virt-inspector.pod:15
23089 #, no-wrap
23090 msgid ""
23091 " virt-inspector domname\n"
23092 "\n"
23093 msgstr ""
23094
23095 #. type: verbatim
23096 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
23097 #, no-wrap
23098 msgid ""
23099 " virt-inspector disk.img [disk.img ...]\n"
23100 "\n"
23101 msgstr ""
23102
23103 #. type: textblock
23104 #: ../inspector/virt-inspector.pod:21
23105 msgid ""
23106 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23107 "determine the version of the operating system and other information about "
23108 "the virtual machine."
23109 msgstr ""
23110
23111 #. type: textblock
23112 #: ../inspector/virt-inspector.pod:25
23113 msgid "Virt-inspector produces XML output for feeding into other programs."
23114 msgstr ""
23115
23116 #. type: textblock
23117 #: ../inspector/virt-inspector.pod:27
23118 msgid ""
23119 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
23120 "the libvirt domain (see: C<virsh list --all>)."
23121 msgstr ""
23122
23123 #. type: textblock
23124 #: ../inspector/virt-inspector.pod:30
23125 msgid ""
23126 "You can also run virt-inspector directly on disk images from a single "
23127 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
23128 "has several block devices, in which case you should list several I<-a> "
23129 "options one after another, with the first corresponding to the guest's C</"
23130 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23131 msgstr ""
23132
23133 #. type: textblock
23134 #: ../inspector/virt-inspector.pod:37
23135 msgid ""
23136 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23137 "keys and similar."
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../inspector/virt-inspector.pod:40
23142 msgid ""
23143 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23144 "inspect several virtual machines, you have to run virt-inspector several "
23145 "times (for example, from a shell script for-loop)."
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../inspector/virt-inspector.pod:45
23150 msgid ""
23151 "Because virt-inspector needs direct access to guest images, it won't "
23152 "normally work over remote libvirt connections."
23153 msgstr ""
23154
23155 #. type: textblock
23156 #: ../inspector/virt-inspector.pod:48
23157 msgid ""
23158 "All of the information available from virt-inspector is also available "
23159 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
23160 "The same information can also be fetched using guestfish or via libguestfs "
23161 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23162 "WITH OTHER PROGRAMMING LANGUAGES>)."
23163 msgstr ""
23164
23165 #. type: textblock
23166 #: ../inspector/virt-inspector.pod:81
23167 msgid ""
23168 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23169 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23170 "at all."
23171 msgstr ""
23172
23173 #. type: textblock
23174 #: ../inspector/virt-inspector.pod:94
23175 msgid ""
23176 "When prompting for keys and passphrases, virt-inspector normally turns "
23177 "echoing off so you cannot see what you are typing.  If you are not worried "
23178 "about Tempest attacks and there is no one else in the room you can specify "
23179 "this flag to see what you are typing."
23180 msgstr ""
23181
23182 #. type: textblock
23183 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23184 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23185 #: ../tools/virt-win-reg.pl:144
23186 msgid ""
23187 "Specify the format of disk images given on the command line.  If this is "
23188 "omitted then the format is autodetected from the content of the disk image."
23189 msgstr ""
23190
23191 #. type: textblock
23192 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23193 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23194 #: ../tools/virt-win-reg.pl:148
23195 msgid ""
23196 "If disk images are requested from libvirt, then this program asks libvirt "
23197 "for this information.  In this case, the value of the format parameter is "
23198 "ignored."
23199 msgstr ""
23200
23201 #. type: textblock
23202 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
23203 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:131
23204 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23205 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23206 msgid ""
23207 "If working with untrusted raw-format guest disk images, you should ensure "
23208 "the format is always specified."
23209 msgstr ""
23210
23211 #. type: =item
23212 #: ../inspector/virt-inspector.pod:135
23213 #, fuzzy
23214 #| msgid "B<--parts>"
23215 msgid "B<--xpath> query"
23216 msgstr "B<--parts>"
23217
23218 #. type: textblock
23219 #: ../inspector/virt-inspector.pod:137
23220 msgid ""
23221 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
23222 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23223 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
23224 msgstr ""
23225
23226 #. type: textblock
23227 #: ../inspector/virt-inspector.pod:146
23228 msgid "Previous versions of virt-inspector allowed you to write either:"
23229 msgstr ""
23230
23231 #. type: verbatim
23232 #: ../inspector/virt-inspector.pod:152
23233 #, no-wrap
23234 msgid ""
23235 " virt-inspector guestname\n"
23236 "\n"
23237 msgstr ""
23238
23239 #. type: =head1
23240 #: ../inspector/virt-inspector.pod:160
23241 msgid "XML FORMAT"
23242 msgstr ""
23243
23244 #. type: textblock
23245 #: ../inspector/virt-inspector.pod:162
23246 msgid ""
23247 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23248 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
23249 "just an overview."
23250 msgstr ""
23251
23252 #. type: textblock
23253 #: ../inspector/virt-inspector.pod:166
23254 msgid ""
23255 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23256 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
23257 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23258 "which is vanishingly rare in real world VMs."
23259 msgstr ""
23260
23261 #. type: =head2
23262 #: ../inspector/virt-inspector.pod:171
23263 msgid "E<lt>operatingsystemE<gt>"
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../inspector/virt-inspector.pod:173
23268 msgid ""
23269 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23270 "describe the operating system, its architecture, the descriptive \"product "
23271 "name\" string, the type of OS and so on, as in this example:"
23272 msgstr ""
23273
23274 #. type: verbatim
23275 #: ../inspector/virt-inspector.pod:177
23276 #, no-wrap
23277 msgid ""
23278 " <operatingsystems>\n"
23279 "   <operatingsystem>\n"
23280 "     <root>/dev/sda2</root>\n"
23281 "     <name>windows</name>\n"
23282 "     <arch>i386</arch>\n"
23283 "     <distro>windows</distro>\n"
23284 "     <product_name>Windows 7 Enterprise</product_name>\n"
23285 "     <product_variant>Client</product_variant>\n"
23286 "     <major_version>6</major_version>\n"
23287 "     <minor_version>1</minor_version>\n"
23288 "     <windows_systemroot>/Windows</windows_systemroot>\n"
23289 "     <format>installed</format>\n"
23290 "\n"
23291 msgstr ""
23292
23293 #. type: textblock
23294 #: ../inspector/virt-inspector.pod:190
23295 msgid ""
23296 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23297 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23298 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23299 "architecture.  The other fields are fairly self-explanatory, but because "
23300 "these fields are taken directly from the libguestfs inspection API you can "
23301 "find precise information from L<guestfs(3)/INSPECTION>."
23302 msgstr ""
23303
23304 #. type: textblock
23305 #: ../inspector/virt-inspector.pod:198
23306 msgid ""
23307 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23308 "of view of libguestfs (block devices may have completely different names "
23309 "inside the VM itself)."
23310 msgstr ""
23311
23312 #. type: =head2
23313 #: ../inspector/virt-inspector.pod:202
23314 msgid "E<lt>mountpointsE<gt>"
23315 msgstr ""
23316
23317 #. type: textblock
23318 #: ../inspector/virt-inspector.pod:204
23319 msgid ""
23320 "Un*x-like guests typically have multiple filesystems which are mounted at "
23321 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23322 "element which looks like this:"
23323 msgstr ""
23324
23325 #. type: verbatim
23326 #: ../inspector/virt-inspector.pod:208
23327 #, no-wrap
23328 msgid ""
23329 " <operatingsystems>\n"
23330 "   <operatingsystem>\n"
23331 "     ...\n"
23332 "     <mountpoints>\n"
23333 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23334 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23335 "     </mountpoints>\n"
23336 "\n"
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../inspector/virt-inspector.pod:216
23341 msgid ""
23342 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23343 "and may have completely different names inside the guest.  Only mountable "
23344 "filesystems appear in this list, not things like swap devices."
23345 msgstr ""
23346
23347 #. type: =head2
23348 #: ../inspector/virt-inspector.pod:221
23349 msgid "E<lt>filesystemsE<gt>"
23350 msgstr ""
23351
23352 #. type: textblock
23353 #: ../inspector/virt-inspector.pod:223
23354 msgid ""
23355 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23356 "filesystems belonging to the guest, including swap and empty partitions.  "
23357 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23358 "this OS or shared with this OS and other OSes)."
23359 msgstr ""
23360
23361 #. type: textblock
23362 #: ../inspector/virt-inspector.pod:229
23363 msgid "You might see something like this:"
23364 msgstr ""
23365
23366 #. type: verbatim
23367 #: ../inspector/virt-inspector.pod:231
23368 #, no-wrap
23369 msgid ""
23370 " <operatingsystems>\n"
23371 "   <operatingsystem>\n"
23372 "     ...\n"
23373 "     <filesystems>\n"
23374 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23375 "         <type>ext4</type>\n"
23376 "         <label>Fedora-13-x86_64</label>\n"
23377 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23378 "       </filesystem>\n"
23379 "\n"
23380 msgstr ""
23381
23382 #. type: textblock
23383 #: ../inspector/virt-inspector.pod:241
23384 msgid ""
23385 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23386 "the label, and the UUID."
23387 msgstr ""
23388
23389 #. type: =head2
23390 #: ../inspector/virt-inspector.pod:244
23391 msgid "E<lt>applicationsE<gt>"
23392 msgstr ""
23393
23394 #. type: textblock
23395 #: ../inspector/virt-inspector.pod:246
23396 msgid ""
23397 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23398 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23399 "machine."
23400 msgstr ""
23401
23402 #. type: textblock
23403 #: ../inspector/virt-inspector.pod:250
23404 msgid ""
23405 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
23406 "Typical values would be C<rpm> and C<deb>."
23407 msgstr ""
23408
23409 #. type: textblock
23410 #: ../inspector/virt-inspector.pod:253
23411 msgid ""
23412 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
23413 "Typical values include C<yum>, C<up2date> and C<apt>"
23414 msgstr ""
23415
23416 #. type: textblock
23417 #: ../inspector/virt-inspector.pod:256
23418 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23419 msgstr ""
23420
23421 #. type: verbatim
23422 #: ../inspector/virt-inspector.pod:259
23423 #, no-wrap
23424 msgid ""
23425 " <operatingsystems>\n"
23426 "   <operatingsystem>\n"
23427 "     ...\n"
23428 "     <applications>\n"
23429 "       <application>\n"
23430 "         <name>coreutils</name>\n"
23431 "         <version>8.5</version>\n"
23432 "         <release>1</release>\n"
23433 "       </application>\n"
23434 "\n"
23435 msgstr ""
23436
23437 #. type: textblock
23438 #: ../inspector/virt-inspector.pod:269
23439 msgid ""
23440 "The version and release fields may not be available for some types guests.  "
23441 "Other fields are possible, see L<guestfs(3)/"
23442 "guestfs_inspect_list_applications>."
23443 msgstr ""
23444
23445 #. type: =head2
23446 #: ../inspector/virt-inspector.pod:273
23447 msgid "E<lt>drive_mappingsE<gt>"
23448 msgstr ""
23449
23450 #. type: textblock
23451 #: ../inspector/virt-inspector.pod:275
23452 msgid ""
23453 "For operating systems like Windows which use drive letters, virt-inspector "
23454 "is able to find out how drive letters map to filesystems."
23455 msgstr ""
23456
23457 #. type: verbatim
23458 #: ../inspector/virt-inspector.pod:279
23459 #, no-wrap
23460 msgid ""
23461 " <operatingsystems>\n"
23462 "   <operatingsystem>\n"
23463 "     ...\n"
23464 "     <drive_mappings>\n"
23465 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23466 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23467 "     </drive_mappings>\n"
23468 "\n"
23469 msgstr ""
23470
23471 #. type: textblock
23472 #: ../inspector/virt-inspector.pod:287
23473 msgid ""
23474 "In the example above, drive C maps to the filesystem on the second partition "
23475 "on the first disk, and drive E maps to the filesystem on the first partition "
23476 "on the second disk."
23477 msgstr ""
23478
23479 #. type: textblock
23480 #: ../inspector/virt-inspector.pod:291
23481 msgid ""
23482 "Note that this only covers permanent local filesystem mappings, not things "
23483 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23484 "here."
23485 msgstr ""
23486
23487 #. type: =head2
23488 #: ../inspector/virt-inspector.pod:295
23489 msgid "E<lt>iconE<gt>"
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../inspector/virt-inspector.pod:297
23494 msgid ""
23495 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23496 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23497 "very large and high quality."
23498 msgstr ""
23499
23500 #. type: verbatim
23501 #: ../inspector/virt-inspector.pod:301
23502 #, no-wrap
23503 msgid ""
23504 " <operatingsystems>\n"
23505 "   <operatingsystem>\n"
23506 "     ...\n"
23507 "     <icon>\n"
23508 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23509 "       [... many lines of base64 data ...]\n"
23510 "     </icon>\n"
23511 "\n"
23512 msgstr ""
23513
23514 #. type: textblock
23515 #: ../inspector/virt-inspector.pod:309
23516 msgid ""
23517 "To display the icon, you have to extract it and convert the base64 data back "
23518 "to a binary file.  Use an XPath query or simply an editor to extract the "
23519 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23520 "to a PNG file:"
23521 msgstr ""
23522
23523 #. type: verbatim
23524 #: ../inspector/virt-inspector.pod:314
23525 #, no-wrap
23526 msgid ""
23527 " base64 -i -d < icon.data > icon.png\n"
23528 "\n"
23529 msgstr ""
23530
23531 #. type: =head2
23532 #: ../inspector/virt-inspector.pod:316
23533 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23534 msgstr ""
23535
23536 #. type: textblock
23537 #: ../inspector/virt-inspector.pod:318
23538 msgid ""
23539 "Virt-inspector can detect some operating system installers on install disks, "
23540 "live CDs, bootable USB keys and more."
23541 msgstr ""
23542
23543 #. type: textblock
23544 #: ../inspector/virt-inspector.pod:321
23545 msgid ""
23546 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23547 "fields may be present to indicate a live CD, network installer, or one part "
23548 "of a multipart CD.  For example:"
23549 msgstr ""
23550
23551 #. type: verbatim
23552 #: ../inspector/virt-inspector.pod:325
23553 #, no-wrap
23554 msgid ""
23555 " <operatingsystems>\n"
23556 "   <operatingsystem>\n"
23557 "     <root>/dev/sda</root>\n"
23558 "     <name>linux</name>\n"
23559 "     <arch>i386</arch>\n"
23560 "     <distro>ubuntu</distro>\n"
23561 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23562 "     <major_version>10</major_version>\n"
23563 "     <minor_version>10</minor_version>\n"
23564 "     <format>installer</format>\n"
23565 "     <live/>\n"
23566 "\n"
23567 msgstr ""
23568
23569 #. type: =head1
23570 #: ../inspector/virt-inspector.pod:337
23571 msgid "XPATH QUERIES"
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../inspector/virt-inspector.pod:339
23576 msgid ""
23577 "Virt-inspector includes built in support for running XPath queries.  The "
23578 "reason for including XPath support directly in virt-inspector is simply that "
23579 "there are no good and widely available command line programs that can do "
23580 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
23581 "available on Red Hat Enterprise Linux."
23582 msgstr ""
23583
23584 #. type: textblock
23585 #: ../inspector/virt-inspector.pod:346
23586 msgid ""
23587 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
23588 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23589 "result on stdout.  All other inspection features are disabled in this mode."
23590 msgstr ""
23591
23592 #. type: verbatim
23593 #: ../inspector/virt-inspector.pod:353
23594 #, no-wrap
23595 msgid ""
23596 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23597 " <filesystems>\n"
23598 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23599 "        <type>ext4</type>\n"
23600 " [...]\n"
23601 "\n"
23602 msgstr ""
23603
23604 #. type: verbatim
23605 #: ../inspector/virt-inspector.pod:359
23606 #, no-wrap
23607 msgid ""
23608 " $ virt-inspector -d Guest | \\\n"
23609 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23610 " ext4\n"
23611 "\n"
23612 msgstr ""
23613
23614 #. type: verbatim
23615 #: ../inspector/virt-inspector.pod:363
23616 #, no-wrap
23617 msgid ""
23618 " $ virt-inspector -d Guest | \\\n"
23619 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23620 " [displays the guest icon, if there is one]\n"
23621 "\n"
23622 msgstr ""
23623
23624 #. type: =head1
23625 #: ../inspector/virt-inspector.pod:374
23626 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../inspector/virt-inspector.pod:376
23631 msgid ""
23632 "Early versions of libguestfs shipped with a different virt-inspector program "
23633 "written in Perl (the current version is written in C).  The XML output of "
23634 "the Perl virt-inspector was different and it could also output in other "
23635 "formats like text."
23636 msgstr ""
23637
23638 #. type: textblock
23639 #: ../inspector/virt-inspector.pod:381
23640 msgid ""
23641 "The old virt-inspector is no longer supported or shipped with libguestfs."
23642 msgstr ""
23643
23644 #. type: textblock
23645 #: ../inspector/virt-inspector.pod:384
23646 msgid ""
23647 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23648 "versions of virt-inspector with different names:"
23649 msgstr ""
23650
23651 #. type: verbatim
23652 #: ../inspector/virt-inspector.pod:387
23653 #, no-wrap
23654 msgid ""
23655 " virt-inspector     Old Perl version.\n"
23656 " virt-inspector2    New C version.\n"
23657 "\n"
23658 msgstr ""
23659
23660 #. type: textblock
23661 #: ../inspector/virt-inspector.pod:397
23662 msgid ""
23663 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23664 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23665 msgstr ""
23666
23667 #. type: textblock
23668 #: ../inspector/virt-inspector.pod:414
23669 msgid "Matthew Booth L<mbooth@redhat.com>"
23670 msgstr ""
23671
23672 #. type: textblock
23673 #: ../java/examples/guestfs-java.pod:5
23674 msgid "guestfs-java - How to use libguestfs from Java"
23675 msgstr ""
23676
23677 #. type: verbatim
23678 #: ../java/examples/guestfs-java.pod:9
23679 #, no-wrap
23680 msgid ""
23681 " import com.redhat.et.libguestfs.*;\n"
23682 " \n"
23683 msgstr ""
23684
23685 #. type: verbatim
23686 #: ../java/examples/guestfs-java.pod:11
23687 #, no-wrap
23688 msgid ""
23689 " GuestFS g = new GuestFS ();\n"
23690 " g.add_drive_opts (\"disk.img\", null);\n"
23691 " g.launch ();\n"
23692 "\n"
23693 msgstr ""
23694
23695 #. type: textblock
23696 #: ../java/examples/guestfs-java.pod:17
23697 msgid ""
23698 "This manual page documents how to call libguestfs from the Java programming "
23699 "language.  This page just documents the differences from the C API and gives "
23700 "some examples.  If you are not familiar with using libguestfs, you also need "
23701 "to read L<guestfs(3)>."
23702 msgstr ""
23703
23704 #. type: =head2
23705 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23706 msgid "CLOSING THE HANDLE"
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../java/examples/guestfs-java.pod:24
23711 msgid ""
23712 "The handle is closed when it is reaped by the garbage collector.  Because "
23713 "libguestfs handles include a lot of state, it is also possible to close (and "
23714 "hence free) them explicitly by calling the C<close> method."
23715 msgstr ""
23716
23717 #. type: =head2
23718 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23719 #: ../python/examples/guestfs-python.pod:21
23720 #: ../ruby/examples/guestfs-ruby.pod:22
23721 msgid "EXCEPTIONS"
23722 msgstr "ВИНЯТКИ"
23723
23724 #. type: textblock
23725 #: ../java/examples/guestfs-java.pod:31
23726 msgid ""
23727 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23728 "exception.  This has a single parameter which is the error message (a "
23729 "C<String>)."
23730 msgstr ""
23731
23732 #. type: textblock
23733 #: ../java/examples/guestfs-java.pod:35
23734 msgid "Calling any method on a closed handle raises the same exception."
23735 msgstr ""
23736
23737 #. type: textblock
23738 #: ../java/examples/guestfs-java.pod:47
23739 msgid ""
23740 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23741 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23742 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../ocaml/examples/guestfs-ocaml.pod:5
23747 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23748 msgstr ""
23749
23750 #. type: textblock
23751 #: ../ocaml/examples/guestfs-ocaml.pod:9
23752 msgid "Module style:"
23753 msgstr ""
23754
23755 #. type: verbatim
23756 #: ../ocaml/examples/guestfs-ocaml.pod:11
23757 #, no-wrap
23758 msgid ""
23759 " let g = Guestfs.create () in\n"
23760 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23761 " Guestfs.launch g;\n"
23762 "\n"
23763 msgstr ""
23764
23765 #. type: textblock
23766 #: ../ocaml/examples/guestfs-ocaml.pod:15
23767 msgid "Object-oriented style:"
23768 msgstr ""
23769
23770 #. type: verbatim
23771 #: ../ocaml/examples/guestfs-ocaml.pod:17
23772 #, no-wrap
23773 msgid ""
23774 " let g = new Guestfs.guestfs () in\n"
23775 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23776 " g#launch ();\n"
23777 "\n"
23778 msgstr ""
23779
23780 #. type: verbatim
23781 #: ../ocaml/examples/guestfs-ocaml.pod:21
23782 #, no-wrap
23783 msgid ""
23784 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23785 "or:\n"
23786 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23787 "\n"
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../ocaml/examples/guestfs-ocaml.pod:27
23792 msgid ""
23793 "This manual page documents how to call libguestfs from the OCaml programming "
23794 "language.  This page just documents the differences from the C API and gives "
23795 "some examples.  If you are not familiar with using libguestfs, you also need "
23796 "to read L<guestfs(3)>."
23797 msgstr ""
23798
23799 #. type: =head2
23800 #: ../ocaml/examples/guestfs-ocaml.pod:32
23801 msgid "PROGRAMMING STYLES"
23802 msgstr ""
23803
23804 #. type: textblock
23805 #: ../ocaml/examples/guestfs-ocaml.pod:34
23806 msgid ""
23807 "There are two different programming styles supported by the OCaml bindings.  "
23808 "You can use a module style, with each C function mapped to an OCaml function:"
23809 msgstr ""
23810
23811 #. type: verbatim
23812 #: ../ocaml/examples/guestfs-ocaml.pod:38
23813 #, no-wrap
23814 msgid ""
23815 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23816 "\n"
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../ocaml/examples/guestfs-ocaml.pod:40
23821 msgid "becomes:"
23822 msgstr ""
23823
23824 #. type: verbatim
23825 #: ../ocaml/examples/guestfs-ocaml.pod:42
23826 #, no-wrap
23827 msgid ""
23828 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23829 "\n"
23830 msgstr ""
23831
23832 #. type: textblock
23833 #: ../ocaml/examples/guestfs-ocaml.pod:44
23834 msgid ""
23835 "Alternately you can use an object-oriented style, calling methods on the "
23836 "class C<Guestfs.guestfs>:"
23837 msgstr ""
23838
23839 #. type: verbatim
23840 #: ../ocaml/examples/guestfs-ocaml.pod:47
23841 #, no-wrap
23842 msgid ""
23843 " method set_verbose : bool -> unit\n"
23844 "\n"
23845 msgstr ""
23846
23847 #. type: textblock
23848 #: ../ocaml/examples/guestfs-ocaml.pod:49
23849 msgid ""
23850 "The object-oriented style is usually briefer, and the minor performance "
23851 "penalty isn't noticable in the general overhead of performing libguestfs "
23852 "functions."
23853 msgstr ""
23854
23855 #. type: textblock
23856 #: ../ocaml/examples/guestfs-ocaml.pod:55
23857 msgid ""
23858 "The handle is closed when it is reaped by the garbage collector.  Because "
23859 "libguestfs handles include a lot of state, it is also possible to close (and "
23860 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23861 "method."
23862 msgstr ""
23863
23864 #. type: textblock
23865 #: ../ocaml/examples/guestfs-ocaml.pod:62
23866 msgid ""
23867 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23868 "exception.  This has a single parameter which is the error message (a "
23869 "string)."
23870 msgstr ""
23871
23872 #. type: textblock
23873 #: ../ocaml/examples/guestfs-ocaml.pod:66
23874 msgid ""
23875 "Calling any function/method on a closed handle raises C<Guestfs."
23876 "Handle_closed>.  The single parameter is the name of the function that you "
23877 "called."
23878 msgstr ""
23879
23880 #. type: textblock
23881 #: ../ocaml/examples/guestfs-ocaml.pod:80
23882 msgid ""
23883 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23884 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23885 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23886 msgstr ""
23887
23888 #. type: textblock
23889 #: ../perl/examples/guestfs-perl.pod:5
23890 msgid "guestfs-perl - How to use libguestfs from Perl"
23891 msgstr ""
23892
23893 #. type: verbatim
23894 #: ../perl/examples/guestfs-perl.pod:9
23895 #, no-wrap
23896 msgid ""
23897 " use Sys::Guestfs;\n"
23898 " \n"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../perl/examples/guestfs-perl.pod:11
23903 #, no-wrap
23904 msgid ""
23905 " my $h = Sys::Guestfs->new ();\n"
23906 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23907 " $h->launch ();\n"
23908 " $h->mount_options ('', '/dev/sda1', '/');\n"
23909 " $h->touch ('/hello');\n"
23910 " $h->sync ();\n"
23911 "\n"
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../perl/examples/guestfs-perl.pod:20
23916 msgid ""
23917 "This manual page documents how to call libguestfs from the Perl programming "
23918 "language.  This page just documents the differences from the C API and gives "
23919 "some examples.  If you are not familiar with using libguestfs, you also need "
23920 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23921 msgstr ""
23922
23923 #. type: =head2
23924 #: ../perl/examples/guestfs-perl.pod:26
23925 msgid "ERRORS"
23926 msgstr "ПОМИЛКИ"
23927
23928 #. type: textblock
23929 #: ../perl/examples/guestfs-perl.pod:28
23930 msgid ""
23931 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23932 ">)."
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../perl/examples/guestfs-perl.pod:41
23937 msgid ""
23938 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23939 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23940 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23941 msgstr ""
23942
23943 #. type: textblock
23944 #: ../python/examples/guestfs-python.pod:5
23945 msgid "guestfs-python - How to use libguestfs from Python"
23946 msgstr ""
23947
23948 #. type: verbatim
23949 #: ../python/examples/guestfs-python.pod:9
23950 #, no-wrap
23951 msgid ""
23952 " import guestfs\n"
23953 " g = guestfs.GuestFS ()\n"
23954 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23955 " g.launch\n"
23956 "\n"
23957 msgstr ""
23958
23959 #. type: textblock
23960 #: ../python/examples/guestfs-python.pod:16
23961 msgid ""
23962 "This manual page documents how to call libguestfs from the Python "
23963 "programming language.  This page just documents the differences from the C "
23964 "API and gives some examples.  If you are not familiar with using libguestfs, "
23965 "you also need to read L<guestfs(3)>."
23966 msgstr ""
23967
23968 #. type: textblock
23969 #: ../python/examples/guestfs-python.pod:23
23970 msgid ""
23971 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23972 "single string argument which is the error message."
23973 msgstr ""
23974
23975 #. type: =head2
23976 #: ../python/examples/guestfs-python.pod:26
23977 msgid "MORE DOCUMENTATION"
23978 msgstr ""
23979
23980 #. type: textblock
23981 #: ../python/examples/guestfs-python.pod:28
23982 msgid "Type:"
23983 msgstr "Тип:"
23984
23985 #. type: verbatim
23986 #: ../python/examples/guestfs-python.pod:30
23987 #, no-wrap
23988 msgid ""
23989 " $ python\n"
23990 " >>> import guestfs\n"
23991 " >>> help (guestfs)\n"
23992 "\n"
23993 msgstr ""
23994
23995 #. type: textblock
23996 #: ../python/examples/guestfs-python.pod:44
23997 msgid ""
23998 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23999 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
24000 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../rescue/virt-rescue.pod:5
24005 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24006 msgstr ""
24007
24008 #. type: verbatim
24009 #: ../rescue/virt-rescue.pod:9
24010 #, no-wrap
24011 msgid ""
24012 " virt-rescue [--options] -d domname\n"
24013 "\n"
24014 msgstr ""
24015
24016 #. type: verbatim
24017 #: ../rescue/virt-rescue.pod:11
24018 #, no-wrap
24019 msgid ""
24020 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
24021 "\n"
24022 msgstr ""
24023
24024 #. type: verbatim
24025 #: ../rescue/virt-rescue.pod:15
24026 #, no-wrap
24027 msgid ""
24028 " virt-rescue [--options] domname\n"
24029 "\n"
24030 msgstr ""
24031
24032 #. type: verbatim
24033 #: ../rescue/virt-rescue.pod:17
24034 #, no-wrap
24035 msgid ""
24036 " virt-rescue [--options] disk.img [disk.img ...]\n"
24037 "\n"
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../rescue/virt-rescue.pod:21
24042 msgid ""
24043 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24044 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24045 "you from doing this, but doesn't catch all cases."
24046 msgstr ""
24047
24048 #. type: textblock
24049 #: ../rescue/virt-rescue.pod:25
24050 msgid ""
24051 "However if you use the I<--ro> (read only) option, then you can attach a "
24052 "shell to a live virtual machine.  The results might be strange or "
24053 "inconsistent at times but you won't get disk corruption."
24054 msgstr ""
24055
24056 #. type: textblock
24057 #: ../rescue/virt-rescue.pod:31
24058 msgid ""
24059 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24060 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24061 "recovery tools which you can use to examine or rescue a virtual machine or "
24062 "disk image."
24063 msgstr ""
24064
24065 #. type: textblock
24066 #: ../rescue/virt-rescue.pod:36
24067 msgid ""
24068 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24069 "on disk image(s):"
24070 msgstr ""
24071
24072 #. type: verbatim
24073 #: ../rescue/virt-rescue.pod:39
24074 #, no-wrap
24075 msgid ""
24076 " virt-rescue -d GuestName\n"
24077 "\n"
24078 msgstr ""
24079
24080 #. type: verbatim
24081 #: ../rescue/virt-rescue.pod:41
24082 #, no-wrap
24083 msgid ""
24084 " virt-rescue --ro -a /path/to/disk.img\n"
24085 "\n"
24086 msgstr ""
24087
24088 #. type: verbatim
24089 #: ../rescue/virt-rescue.pod:43
24090 #, no-wrap
24091 msgid ""
24092 " virt-rescue -a /dev/sdc\n"
24093 "\n"
24094 msgstr ""
24095
24096 #. type: textblock
24097 #: ../rescue/virt-rescue.pod:45
24098 msgid "For live VMs you I<must> use the --ro option."
24099 msgstr ""
24100
24101 #. type: textblock
24102 #: ../rescue/virt-rescue.pod:47
24103 msgid ""
24104 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24105 "in an interactive bash shell where you can use many ordinary Linux "
24106 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24107 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24108 "is an empty directory called C</sysroot> where you can mount filesystems."
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../rescue/virt-rescue.pod:54
24113 msgid ""
24114 "In the example below, we list logical volumes, then choose one to mount "
24115 "under C</sysroot>:"
24116 msgstr ""
24117
24118 #. type: verbatim
24119 #: ../rescue/virt-rescue.pod:57
24120 #, no-wrap
24121 msgid ""
24122 " ><rescue> lvs\n"
24123 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24124 " lv_root vg_f11x64 -wi-a-   8.83G\n"
24125 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
24126 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
24127 " ><rescue> ls /sysroot\n"
24128 "\n"
24129 msgstr ""
24130
24131 #. type: textblock
24132 #: ../rescue/virt-rescue.pod:64
24133 msgid ""
24134 "If you don't know what filesystems are available on the virtual machine then "
24135 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
24136 msgstr ""
24137
24138 #. type: textblock
24139 #: ../rescue/virt-rescue.pod:70
24140 msgid ""
24141 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24142 "virtual machine.  For example you can use it on a blank file if you want to "
24143 "partition that file (although we would recommend using L<guestfish(1)> "
24144 "instead as it is more suitable for this purpose).  You can even use virt-"
24145 "rescue on things like SD cards."
24146 msgstr ""
24147
24148 #. type: textblock
24149 #: ../rescue/virt-rescue.pod:76
24150 msgid ""
24151 "Virt-rescue does not require root.  You only need to run it as root if you "
24152 "need root to open the disk image."
24153 msgstr ""
24154
24155 #. type: textblock
24156 #: ../rescue/virt-rescue.pod:79
24157 msgid ""
24158 "This tool is just designed for quick interactive hacking on a virtual "
24159 "machine.  For more structured access to a virtual machine disk image, you "
24160 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24161 "make scripted changes to guests, use L<guestfish(1)>."
24162 msgstr ""
24163
24164 #. type: =item
24165 #: ../rescue/virt-rescue.pod:103
24166 msgid "B<--append kernelopts>"
24167 msgstr "B<--append параметри_ядра>"
24168
24169 #. type: textblock
24170 #: ../rescue/virt-rescue.pod:105
24171 msgid "Pass additional options to the rescue kernel."
24172 msgstr ""
24173
24174 #. type: verbatim
24175 #: ../rescue/virt-rescue.pod:135
24176 #, no-wrap
24177 msgid ""
24178 " virt-rescue --format=raw -a disk.img\n"
24179 "\n"
24180 msgstr ""
24181
24182 #. type: verbatim
24183 #: ../rescue/virt-rescue.pod:139
24184 #, no-wrap
24185 msgid ""
24186 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24187 "\n"
24188 msgstr ""
24189
24190 #. type: =item
24191 #: ../rescue/virt-rescue.pod:148
24192 msgid "B<-m MB>"
24193 msgstr "B<-m МБ>"
24194
24195 #. type: =item
24196 #: ../rescue/virt-rescue.pod:150
24197 msgid "B<--memsize MB>"
24198 msgstr "B<--memsize МБ>"
24199
24200 #. type: textblock
24201 #: ../rescue/virt-rescue.pod:152
24202 msgid ""
24203 "Change the amount of memory allocated to the rescue system.  The default is "
24204 "set by libguestfs and is small but adequate for running system tools.  The "
24205 "occasional program might need more memory.  The parameter is specified in "
24206 "megabytes."
24207 msgstr ""
24208
24209 #. type: =item
24210 #: ../rescue/virt-rescue.pod:157
24211 msgid "B<--network>"
24212 msgstr "B<--network>"
24213
24214 #. type: textblock
24215 #: ../rescue/virt-rescue.pod:159
24216 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
24217 msgstr ""
24218
24219 #. type: textblock
24220 #: ../rescue/virt-rescue.pod:165
24221 msgid "Open the image read-only."
24222 msgstr ""
24223
24224 #. type: textblock
24225 #: ../rescue/virt-rescue.pod:175
24226 msgid ""
24227 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
24228 "SELINUX> before using this option."
24229 msgstr ""
24230
24231 #. type: =item
24232 #: ../rescue/virt-rescue.pod:178
24233 msgid "B<--smp> N"
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../rescue/virt-rescue.pod:180
24238 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24239 msgstr ""
24240
24241 #. type: textblock
24242 #: ../rescue/virt-rescue.pod:198
24243 msgid ""
24244 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24245 "are done read-write."
24246 msgstr ""
24247
24248 #. type: textblock
24249 #: ../rescue/virt-rescue.pod:211
24250 msgid "Previous versions of virt-rescue allowed you to write either:"
24251 msgstr ""
24252
24253 #. type: verbatim
24254 #: ../rescue/virt-rescue.pod:213
24255 #, no-wrap
24256 msgid ""
24257 " virt-rescue disk.img [disk.img ...]\n"
24258 "\n"
24259 msgstr ""
24260
24261 #. type: verbatim
24262 #: ../rescue/virt-rescue.pod:217
24263 #, no-wrap
24264 msgid ""
24265 " virt-rescue guestname\n"
24266 "\n"
24267 msgstr ""
24268
24269 #. type: =head1
24270 #: ../rescue/virt-rescue.pod:225
24271 msgid "NETWORK"
24272 msgstr "МЕРЕЖА"
24273
24274 #. type: textblock
24275 #: ../rescue/virt-rescue.pod:227
24276 msgid ""
24277 "Adding the I<--network> option enables QEMU user networking in the rescue "
24278 "appliance.  There are some differences between user networking and ordinary "
24279 "networking:"
24280 msgstr ""
24281
24282 #. type: =item
24283 #: ../rescue/virt-rescue.pod:233
24284 msgid "ping does not work"
24285 msgstr ""
24286
24287 #. type: textblock
24288 #: ../rescue/virt-rescue.pod:235
24289 msgid ""
24290 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24291 "send the ping packets, and because virt-rescue must be able to run as non-"
24292 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
24293 "The ping command will appear to resolve addresses but will not be able to "
24294 "send or receive any packets.  This does not mean that the network is not "
24295 "working."
24296 msgstr ""
24297
24298 #. type: =item
24299 #: ../rescue/virt-rescue.pod:242
24300 msgid "cannot receive connections"
24301 msgstr ""
24302
24303 #. type: textblock
24304 #: ../rescue/virt-rescue.pod:244
24305 msgid "QEMU user networking cannot receive incoming connections."
24306 msgstr ""
24307
24308 #. type: =item
24309 #: ../rescue/virt-rescue.pod:246
24310 msgid "making TCP connections"
24311 msgstr ""
24312
24313 #. type: textblock
24314 #: ../rescue/virt-rescue.pod:248
24315 msgid ""
24316 "The virt-rescue appliance needs to be small and so does not include many "
24317 "network tools.  In particular there is no L<telnet(1)> command.  You can "
24318 "make TCP connections from the shell using the magical C</dev/tcp/"
24319 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24320 msgstr ""
24321
24322 #. type: verbatim
24323 #: ../rescue/virt-rescue.pod:253
24324 #, no-wrap
24325 msgid ""
24326 " exec 3<>/dev/tcp/redhat.com/80\n"
24327 " echo \"GET /\" >&3\n"
24328 " cat <&3\n"
24329 "\n"
24330 msgstr ""
24331
24332 #. type: textblock
24333 #: ../rescue/virt-rescue.pod:257
24334 msgid "See L<bash(1)> for more details."
24335 msgstr ""
24336
24337 #. type: textblock
24338 #: ../rescue/virt-rescue.pod:263
24339 msgid ""
24340 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24341 "ENVIRONMENT VARIABLES> for the complete list."
24342 msgstr ""
24343
24344 #. type: textblock
24345 #: ../rescue/virt-rescue.pod:290
24346 msgid ""
24347 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
24348 "libguestfs.org/>."
24349 msgstr ""
24350
24351 #. type: textblock
24352 #: ../resize/virt-resize.pod:5
24353 msgid "virt-resize - Resize a virtual machine disk"
24354 msgstr ""
24355
24356 #. type: verbatim
24357 #: ../resize/virt-resize.pod:9
24358 #, no-wrap
24359 msgid ""
24360 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24361 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24362 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24363 "\n"
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../resize/virt-resize.pod:15
24368 msgid ""
24369 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24370 "larger or smaller overall, and resizing or deleting any partitions contained "
24371 "within."
24372 msgstr ""
24373
24374 #. type: textblock
24375 #: ../resize/virt-resize.pod:19
24376 msgid ""
24377 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24378 "not> be used on live virtual machines - for consistent results, shut the "
24379 "virtual machine down before resizing it."
24380 msgstr ""
24381
24382 #. type: textblock
24383 #: ../resize/virt-resize.pod:23
24384 msgid ""
24385 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24386 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24387 msgstr ""
24388
24389 #. type: =item
24390 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
24391 #: ../sparsify/virt-sparsify.pod:202 ../src/guestfs.pod:484
24392 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24393 msgid "1."
24394 msgstr "1."
24395
24396 #. type: textblock
24397 #: ../resize/virt-resize.pod:33
24398 msgid ""
24399 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24400 "fill the extra 5GB of space."
24401 msgstr ""
24402
24403 #. type: verbatim
24404 #: ../resize/virt-resize.pod:36
24405 #, no-wrap
24406 msgid ""
24407 " virt-filesystems --long -h --all -a olddisk\n"
24408 " \n"
24409 msgstr ""
24410
24411 #. type: verbatim
24412 #: ../resize/virt-resize.pod:38
24413 #, no-wrap
24414 msgid ""
24415 " truncate -r olddisk newdisk\n"
24416 " truncate -s +5G newdisk\n"
24417 " \n"
24418 msgstr ""
24419
24420 #. type: verbatim
24421 #: ../resize/virt-resize.pod:41
24422 #, no-wrap
24423 msgid ""
24424 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24425 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24426 "\n"
24427 msgstr ""
24428
24429 #. type: =item
24430 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
24431 #: ../sparsify/virt-sparsify.pod:209 ../src/guestfs.pod:490
24432 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24433 msgid "2."
24434 msgstr "2."
24435
24436 #. type: textblock
24437 #: ../resize/virt-resize.pod:46
24438 msgid ""
24439 "As above, but make the /boot partition 200MB bigger, while giving the "
24440 "remaining space to /dev/sda2:"
24441 msgstr ""
24442
24443 #. type: verbatim
24444 #: ../resize/virt-resize.pod:49
24445 #, no-wrap
24446 msgid ""
24447 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24448 "   olddisk newdisk\n"
24449 "\n"
24450 msgstr ""
24451
24452 #. type: =item
24453 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
24454 #: ../sparsify/virt-sparsify.pod:215 ../src/guestfs.pod:501
24455 #: ../src/guestfs.pod:1451
24456 msgid "3."
24457 msgstr "3."
24458
24459 #. type: textblock
24460 #: ../resize/virt-resize.pod:54
24461 msgid ""
24462 "As in the first example, but expand a logical volume as the final step.  "
24463 "This is what you would typically use for Linux guests that use LVM:"
24464 msgstr ""
24465
24466 #. type: verbatim
24467 #: ../resize/virt-resize.pod:58
24468 #, no-wrap
24469 msgid ""
24470 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24471 "   olddisk newdisk\n"
24472 "\n"
24473 msgstr ""
24474
24475 #. type: =item
24476 #: ../resize/virt-resize.pod:61
24477 msgid "4."
24478 msgstr ""
24479
24480 #. type: textblock
24481 #: ../resize/virt-resize.pod:63
24482 msgid ""
24483 "As in the first example, but the output format will be qcow2 instead of a "
24484 "raw disk:"
24485 msgstr ""
24486
24487 #. type: verbatim
24488 #: ../resize/virt-resize.pod:66
24489 #, no-wrap
24490 msgid ""
24491 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24492 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24493 "\n"
24494 msgstr ""
24495
24496 #. type: =head1
24497 #: ../resize/virt-resize.pod:71
24498 msgid "DETAILED USAGE"
24499 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
24500
24501 #. type: =head2
24502 #: ../resize/virt-resize.pod:73
24503 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24504 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
24505
24506 #. type: =item
24507 #: ../resize/virt-resize.pod:77
24508 msgid "1. Shut down the virtual machine"
24509 msgstr ""
24510
24511 #. type: =item
24512 #: ../resize/virt-resize.pod:79
24513 msgid "2. Locate input disk image"
24514 msgstr ""
24515
24516 #. type: textblock
24517 #: ../resize/virt-resize.pod:81
24518 msgid ""
24519 "Locate the input disk image (ie. the file or device on the host containing "
24520 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24521 "dumpxml> like this to find the disk image name:"
24522 msgstr ""
24523
24524 #. type: verbatim
24525 #: ../resize/virt-resize.pod:85
24526 #, no-wrap
24527 msgid ""
24528 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24529 " Found 1 nodes:\n"
24530 " -- NODE --\n"
24531 " <source dev=\"/dev/vg/lv_guest\" />\n"
24532 "\n"
24533 msgstr ""
24534
24535 #. type: =item
24536 #: ../resize/virt-resize.pod:90
24537 msgid "3. Look at current sizing"
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../resize/virt-resize.pod:92
24542 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24543 msgstr ""
24544
24545 #. type: verbatim
24546 #: ../resize/virt-resize.pod:95
24547 #, no-wrap
24548 msgid ""
24549 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24550 " Name       Type       Size  Parent\n"
24551 " /dev/sda1  partition  101M  /dev/sda\n"
24552 " /dev/sda2  partition  7.9G  /dev/sda\n"
24553 " /dev/sda   device     8.0G  -\n"
24554 "\n"
24555 msgstr ""
24556
24557 #. type: textblock
24558 #: ../resize/virt-resize.pod:101
24559 msgid ""
24560 "(This example is a virtual machine with an 8 GB disk which we would like to "
24561 "expand up to 10 GB)."
24562 msgstr ""
24563
24564 #. type: =item
24565 #: ../resize/virt-resize.pod:104
24566 msgid "4. Create output disk"
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../resize/virt-resize.pod:106
24571 msgid ""
24572 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24573 "to store the resized output disk."
24574 msgstr ""
24575
24576 #. type: textblock
24577 #: ../resize/virt-resize.pod:109
24578 msgid ""
24579 "To store the resized disk image in a file, create a file of a suitable size:"
24580 msgstr ""
24581
24582 #. type: verbatim
24583 #: ../resize/virt-resize.pod:112
24584 #, no-wrap
24585 msgid ""
24586 " # rm -f outdisk\n"
24587 " # truncate -s 10G outdisk\n"
24588 "\n"
24589 msgstr ""
24590
24591 #. type: textblock
24592 #: ../resize/virt-resize.pod:115
24593 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24594 msgstr ""
24595
24596 #. type: verbatim
24597 #: ../resize/virt-resize.pod:117
24598 #, no-wrap
24599 msgid ""
24600 " # lvcreate -L 10G -n lv_name vg_name\n"
24601 "\n"
24602 msgstr ""
24603
24604 #. type: textblock
24605 #: ../resize/virt-resize.pod:119
24606 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24607 msgstr ""
24608
24609 #. type: verbatim
24610 #: ../resize/virt-resize.pod:121
24611 #, no-wrap
24612 msgid ""
24613 " # virsh pool-list\n"
24614 " # virsh vol-create-as poolname newvol 10G\n"
24615 "\n"
24616 msgstr ""
24617
24618 #. type: =item
24619 #: ../resize/virt-resize.pod:124
24620 msgid "5. Resize"
24621 msgstr "5. Зміна розміру"
24622
24623 #. type: textblock
24624 #: ../resize/virt-resize.pod:126
24625 msgid ""
24626 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24627 "file) and the output disk.  The output disk is the one created in the "
24628 "previous step."
24629 msgstr ""
24630
24631 #. type: verbatim
24632 #: ../resize/virt-resize.pod:130
24633 #, no-wrap
24634 msgid ""
24635 " # virt-resize indisk outdisk\n"
24636 "\n"
24637 msgstr ""
24638
24639 #. type: textblock
24640 #: ../resize/virt-resize.pod:132
24641 msgid ""
24642 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24643 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24644 "larger, then an extra, empty partition is created at the end of the disk "
24645 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24646 "error."
24647 msgstr ""
24648
24649 #. type: textblock
24650 #: ../resize/virt-resize.pod:138
24651 msgid ""
24652 "More realistically you'd want to expand existing partitions in the disk "
24653 "image by passing extra options (for the full list see the L</OPTIONS> "
24654 "section below)."
24655 msgstr ""
24656
24657 #. type: textblock
24658 #: ../resize/virt-resize.pod:142
24659 msgid ""
24660 "L</--expand> is the most useful option.  It expands the named partition "
24661 "within the disk to fill any extra space:"
24662 msgstr ""
24663
24664 #. type: verbatim
24665 #: ../resize/virt-resize.pod:145
24666 #, no-wrap
24667 msgid ""
24668 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24669 "\n"
24670 msgstr ""
24671
24672 #. type: textblock
24673 #: ../resize/virt-resize.pod:147
24674 msgid ""
24675 "(In this case, an extra partition is I<not> created at the end of the disk, "
24676 "because there will be no unused space)."
24677 msgstr ""
24678
24679 #. type: textblock
24680 #: ../resize/virt-resize.pod:150
24681 msgid ""
24682 "L</--resize> is the other commonly used option.  The following would "
24683 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24684 "rest of the available space:"
24685 msgstr ""
24686
24687 #. type: verbatim
24688 #: ../resize/virt-resize.pod:154
24689 #, no-wrap
24690 msgid ""
24691 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24692 "     indisk outdisk\n"
24693 "\n"
24694 msgstr ""
24695
24696 #. type: textblock
24697 #: ../resize/virt-resize.pod:157
24698 msgid ""
24699 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24700 "if virt-resize knows how, it will resize the contents, the equivalent of "
24701 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24702 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24703 "filesystems, so you would have to online resize them after booting the guest."
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../resize/virt-resize.pod:164
24708 msgid "Other options are covered below."
24709 msgstr ""
24710
24711 #. type: =item
24712 #: ../resize/virt-resize.pod:166
24713 msgid "6. Test"
24714 msgstr "6. Перевірка"
24715
24716 #. type: textblock
24717 #: ../resize/virt-resize.pod:168
24718 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24719 msgstr ""
24720
24721 #. type: textblock
24722 #: ../resize/virt-resize.pod:170
24723 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24724 msgstr ""
24725
24726 #. type: verbatim
24727 #: ../resize/virt-resize.pod:172
24728 #, no-wrap
24729 msgid ""
24730 " # virsh edit guestname\n"
24731 "\n"
24732 msgstr ""
24733
24734 #. type: textblock
24735 #: ../resize/virt-resize.pod:174
24736 msgid ""
24737 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24738 "html#elementsDisks>"
24739 msgstr ""
24740
24741 #. type: textblock
24742 #: ../resize/virt-resize.pod:177
24743 msgid "Then start up the domain with the new, resized disk:"
24744 msgstr ""
24745
24746 #. type: verbatim
24747 #: ../resize/virt-resize.pod:179
24748 #, no-wrap
24749 msgid ""
24750 " # virsh start guestname\n"
24751 "\n"
24752 msgstr ""
24753
24754 #. type: textblock
24755 #: ../resize/virt-resize.pod:181
24756 msgid ""
24757 "and check that it still works.  See also the L</NOTES> section below for "
24758 "additional information."
24759 msgstr ""
24760
24761 #. type: =item
24762 #: ../resize/virt-resize.pod:184
24763 msgid "7. Resize LVs etc inside the guest"
24764 msgstr ""
24765
24766 #. type: textblock
24767 #: ../resize/virt-resize.pod:186
24768 msgid "(This can also be done offline using L<guestfish(1)>)"
24769 msgstr ""
24770
24771 #. type: textblock
24772 #: ../resize/virt-resize.pod:188
24773 msgid ""
24774 "Once the guest has booted you should see the new space available, at least "
24775 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24776 "may need to resize LVs inside PVs, and also resize filesystem types that "
24777 "virt-resize does not know how to expand."
24778 msgstr ""
24779
24780 #. type: =head2
24781 #: ../resize/virt-resize.pod:195
24782 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24783 msgstr ""
24784
24785 #. type: textblock
24786 #: ../resize/virt-resize.pod:197
24787 msgid ""
24788 "Shrinking is somewhat more complex than expanding, and only an overview is "
24789 "given here."
24790 msgstr ""
24791
24792 #. type: textblock
24793 #: ../resize/virt-resize.pod:200
24794 msgid ""
24795 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24796 "filesystems).  The user has to shrink content before passing the disk image "
24797 "to virt-resize, and virt-resize will check that the content has been shrunk "
24798 "properly."
24799 msgstr ""
24800
24801 #. type: textblock
24802 #: ../resize/virt-resize.pod:205
24803 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24804 msgstr ""
24805
24806 #. type: textblock
24807 #: ../resize/virt-resize.pod:207
24808 msgid ""
24809 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24810 "steps 3 and 4 above to allocate a new disk image."
24811 msgstr ""
24812
24813 #. type: textblock
24814 #: ../resize/virt-resize.pod:210
24815 msgid ""
24816 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24817 msgstr ""
24818
24819 #. type: =head2
24820 #: ../resize/virt-resize.pod:213
24821 msgid "IGNORING OR DELETING PARTITIONS"
24822 msgstr ""
24823
24824 #. type: textblock
24825 #: ../resize/virt-resize.pod:215
24826 msgid ""
24827 "virt-resize also gives a convenient way to ignore or delete partitions when "
24828 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24829 "up the copy where you don't care about the existing contents of a "
24830 "partition.  Deleting a partition removes it completely, but note that it "
24831 "also renumbers any partitions after the one which is deleted, which can "
24832 "leave some guests unbootable."
24833 msgstr ""
24834
24835 #. type: =head2
24836 #: ../resize/virt-resize.pod:222
24837 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24838 msgstr ""
24839
24840 #. type: textblock
24841 #: ../resize/virt-resize.pod:224
24842 msgid ""
24843 "If the input disk is in qcow2 format, then you may prefer that the output is "
24844 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24845 "the fly.  The output format is simply determined by the format of the empty "
24846 "output container that you provide.  Thus to create qcow2 output, use:"
24847 msgstr ""
24848
24849 #. type: verbatim
24850 #: ../resize/virt-resize.pod:230
24851 #, no-wrap
24852 msgid ""
24853 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24854 "\n"
24855 msgstr ""
24856
24857 #. type: textblock
24858 #: ../resize/virt-resize.pod:232
24859 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24860 msgstr ""
24861
24862 #. type: textblock
24863 #: ../resize/virt-resize.pod:234
24864 msgid "Similarly, to get non-sparse raw output use:"
24865 msgstr ""
24866
24867 #. type: verbatim
24868 #: ../resize/virt-resize.pod:236
24869 #, no-wrap
24870 msgid ""
24871 " fallocate -l size outdisk\n"
24872 "\n"
24873 msgstr ""
24874
24875 #. type: textblock
24876 #: ../resize/virt-resize.pod:238
24877 msgid ""
24878 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24879 "dev/zero of=outdisk bs=1M count=..>)"
24880 msgstr ""
24881
24882 #. type: =head2
24883 #: ../resize/virt-resize.pod:241
24884 msgid "LOGICAL PARTITIONS"
24885 msgstr ""
24886
24887 #. type: textblock
24888 #: ../resize/virt-resize.pod:243
24889 msgid ""
24890 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24891 "tables) cannot be resized."
24892 msgstr ""
24893
24894 #. type: textblock
24895 #: ../resize/virt-resize.pod:246
24896 msgid ""
24897 "To understand what is going on, firstly one of the four partitions C</dev/"
24898 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24899 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24900 "type."
24901 msgstr ""
24902
24903 #. type: textblock
24904 #: ../resize/virt-resize.pod:251
24905 msgid "Logical partitions live inside the extended partition."
24906 msgstr ""
24907
24908 #. type: textblock
24909 #: ../resize/virt-resize.pod:253
24910 msgid ""
24911 "The extended partition can be expanded, but not shrunk (unless you force it, "
24912 "which is not advisable).  When the extended partition is copied across, all "
24913 "the logical partitions contained inside are copied over implicitly.  Virt-"
24914 "resize does not look inside the extended partition, so it copies the logical "
24915 "partitions blindly."
24916 msgstr ""
24917
24918 #. type: textblock
24919 #: ../resize/virt-resize.pod:259
24920 msgid ""
24921 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24922 "line.  Doing so will give an error."
24923 msgstr ""
24924
24925 #. type: textblock
24926 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24927 msgid "Display help."
24928 msgstr ""
24929
24930 #. type: =item
24931 #: ../resize/virt-resize.pod:270
24932 msgid "B<--align-first auto>"
24933 msgstr ""
24934
24935 #. type: =item
24936 #: ../resize/virt-resize.pod:272
24937 msgid "B<--align-first never>"
24938 msgstr ""
24939
24940 #. type: =item
24941 #: ../resize/virt-resize.pod:274
24942 msgid "B<--align-first always>"
24943 msgstr ""
24944
24945 #. type: textblock
24946 #: ../resize/virt-resize.pod:276
24947 msgid ""
24948 "Align the first partition for improved performance (see also the I<--"
24949 "alignment> option)."
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../resize/virt-resize.pod:279
24954 msgid ""
24955 "The default is I<--align-first auto> which only aligns the first partition "
24956 "if it is safe to do so.  That is, only when we know how to fix the "
24957 "bootloader automatically, and at the moment that can only be done for "
24958 "Windows guests."
24959 msgstr ""
24960
24961 #. type: textblock
24962 #: ../resize/virt-resize.pod:284
24963 msgid ""
24964 "I<--align-first never> means we never move the first partition.  This is the "
24965 "safest option.  Try this if the guest does not boot after resizing."
24966 msgstr ""
24967
24968 #. type: textblock
24969 #: ../resize/virt-resize.pod:288
24970 msgid ""
24971 "I<--align-first always> means we always align the first partition (if it "
24972 "needs to be aligned).  For some guests this will break the bootloader, "
24973 "making the guest unbootable."
24974 msgstr ""
24975
24976 #. type: =item
24977 #: ../resize/virt-resize.pod:292
24978 msgid "B<--alignment N>"
24979 msgstr ""
24980
24981 #. type: textblock
24982 #: ../resize/virt-resize.pod:294
24983 msgid ""
24984 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24985 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24986 msgstr ""
24987
24988 #. type: textblock
24989 #: ../resize/virt-resize.pod:298
24990 msgid ""
24991 "Assuming 512 byte sector size inside the guest, here are some suitable "
24992 "values for this:"
24993 msgstr ""
24994
24995 #. type: =item
24996 #: ../resize/virt-resize.pod:303
24997 msgid "I<--alignment 1> (512 bytes)"
24998 msgstr ""
24999
25000 #. type: textblock
25001 #: ../resize/virt-resize.pod:305
25002 msgid ""
25003 "The partitions would be packed together as closely as possible, but would be "
25004 "completely unaligned.  In some cases this can cause very poor performance.  "
25005 "See L<virt-alignment-scan(1)> for further details."
25006 msgstr ""
25007
25008 #. type: =item
25009 #: ../resize/virt-resize.pod:309
25010 msgid "I<--alignment 8> (4K)"
25011 msgstr ""
25012
25013 #. type: textblock
25014 #: ../resize/virt-resize.pod:311
25015 msgid ""
25016 "This would be the minimum acceptable alignment for reasonable performance on "
25017 "modern hosts."
25018 msgstr ""
25019
25020 #. type: =item
25021 #: ../resize/virt-resize.pod:314
25022 msgid "I<--alignment 128> (64K)"
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../resize/virt-resize.pod:316
25027 msgid ""
25028 "This alignment provides good performance when the host is using high end "
25029 "network storage."
25030 msgstr ""
25031
25032 #. type: =item
25033 #: ../resize/virt-resize.pod:319
25034 msgid "I<--alignment 2048> (1M)"
25035 msgstr ""
25036
25037 #. type: textblock
25038 #: ../resize/virt-resize.pod:321
25039 msgid ""
25040 "This is the standard alignment used by all newly installed guests since "
25041 "around 2008."
25042 msgstr ""
25043
25044 #. type: =item
25045 #: ../resize/virt-resize.pod:326
25046 msgid "B<-d>"
25047 msgstr "B<-d>"
25048
25049 #. type: =item
25050 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25051 #: ../tools/virt-win-reg.pl:120
25052 msgid "B<--debug>"
25053 msgstr "B<--debug>"
25054
25055 #. type: textblock
25056 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25057 msgid "Enable debugging messages."
25058 msgstr ""
25059
25060 #. type: =item
25061 #: ../resize/virt-resize.pod:332
25062 msgid "B<--delete part>"
25063 msgstr "B<--delete розділ>"
25064
25065 #. type: textblock
25066 #: ../resize/virt-resize.pod:334
25067 msgid ""
25068 "Delete the named partition.  It would be more accurate to describe this as "
25069 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25070 "the original disk image is left intact."
25071 msgstr ""
25072
25073 #. type: textblock
25074 #: ../resize/virt-resize.pod:338
25075 msgid ""
25076 "Note that when you delete a partition, then anything contained in the "
25077 "partition is also deleted.  Furthermore, this causes any partitions that "
25078 "come after to be I<renumbered>, which can easily make your guest unbootable."
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
25083 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:144
25084 msgid "You can give this option multiple times."
25085 msgstr ""
25086
25087 #. type: =item
25088 #: ../resize/virt-resize.pod:345
25089 msgid "B<--expand part>"
25090 msgstr "B<--expand розділ>"
25091
25092 #. type: textblock
25093 #: ../resize/virt-resize.pod:347
25094 msgid ""
25095 "Expand the named partition so it uses up all extra space (space left over "
25096 "after any other resize changes that you request have been done)."
25097 msgstr ""
25098
25099 #. type: textblock
25100 #: ../resize/virt-resize.pod:350
25101 msgid ""
25102 "If virt-resize knows how, it will expand the direct content of the "
25103 "partition.  For example, if the partition is an LVM PV, it will expand the "
25104 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25105 "content it doesn't know about alone."
25106 msgstr ""
25107
25108 #. type: textblock
25109 #: ../resize/virt-resize.pod:355
25110 msgid "Currently virt-resize can resize:"
25111 msgstr ""
25112
25113 #. type: textblock
25114 #: ../resize/virt-resize.pod:361
25115 msgid "ext2, ext3 and ext4 filesystems."
25116 msgstr ""
25117
25118 #. type: textblock
25119 #: ../resize/virt-resize.pod:365
25120 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25121 msgstr ""
25122
25123 #. type: textblock
25124 #: ../resize/virt-resize.pod:367
25125 msgid ""
25126 "The filesystem must have been shut down consistently last time it was used.  "
25127 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25128 "consistency check, so at the first boot after resizing Windows will check "
25129 "the disk."
25130 msgstr ""
25131
25132 #. type: textblock
25133 #: ../resize/virt-resize.pod:374
25134 msgid ""
25135 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
25136 "inside the PV, but see the I<--LV-expand> option.  The user could also "
25137 "resize LVs as desired after boot."
25138 msgstr ""
25139
25140 #. type: textblock
25141 #: ../resize/virt-resize.pod:380
25142 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25143 msgstr ""
25144
25145 #. type: textblock
25146 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
25147 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25148 msgstr ""
25149
25150 #. type: =item
25151 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:124
25152 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25153 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25154 msgid "B<--format> raw"
25155 msgstr "B<--format> raw"
25156
25157 #. type: textblock
25158 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:128
25159 msgid ""
25160 "Specify the format of the input disk image.  If this flag is not given then "
25161 "it is auto-detected from the image itself."
25162 msgstr ""
25163
25164 #. type: textblock
25165 #: ../resize/virt-resize.pod:394
25166 msgid ""
25167 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25168 "AND NON-SPARSE RAW FORMATS>."
25169 msgstr ""
25170
25171 #. type: =item
25172 #: ../resize/virt-resize.pod:397
25173 msgid "B<--ignore part>"
25174 msgstr "B<--ignore розділ>"
25175
25176 #. type: textblock
25177 #: ../resize/virt-resize.pod:399
25178 msgid ""
25179 "Ignore the named partition.  Effectively this means the partition is "
25180 "allocated on the destination disk, but the content is not copied across from "
25181 "the source disk.  The content of the partition will be blank (all zero "
25182 "bytes)."
25183 msgstr ""
25184
25185 #. type: =item
25186 #: ../resize/virt-resize.pod:406
25187 msgid "B<--LV-expand logvol>"
25188 msgstr "B<--LV-expand логічний_том>"
25189
25190 #. type: textblock
25191 #: ../resize/virt-resize.pod:408
25192 msgid ""
25193 "This takes the logical volume and, as a final step, expands it to fill all "
25194 "the space available in its volume group.  A typical usage, assuming a Linux "
25195 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25196 "lv_root> would be:"
25197 msgstr ""
25198
25199 #. type: verbatim
25200 #: ../resize/virt-resize.pod:413
25201 #, no-wrap
25202 msgid ""
25203 " virt-resize indisk outdisk \\\n"
25204 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25205 "\n"
25206 msgstr ""
25207
25208 #. type: textblock
25209 #: ../resize/virt-resize.pod:416
25210 msgid ""
25211 "This would first expand the partition (and PV), and then expand the root "
25212 "device to fill the extra space in the PV."
25213 msgstr ""
25214
25215 #. type: textblock
25216 #: ../resize/virt-resize.pod:419
25217 msgid ""
25218 "The contents of the LV are also resized if virt-resize knows how to do "
25219 "that.  You can stop virt-resize from trying to expand the content by using "
25220 "the option I<--no-expand-content>."
25221 msgstr ""
25222
25223 #. type: textblock
25224 #: ../resize/virt-resize.pod:423
25225 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25226 msgstr ""
25227
25228 #. type: textblock
25229 #: ../resize/virt-resize.pod:425
25230 msgid ""
25231 "You can give this option multiple times, I<but> it doesn't make sense to do "
25232 "this unless the logical volumes you specify are all in different volume "
25233 "groups."
25234 msgstr ""
25235
25236 #. type: =item
25237 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:146
25238 msgid "B<--machine-readable>"
25239 msgstr ""
25240
25241 #. type: textblock
25242 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:148
25243 msgid ""
25244 "This option is used to make the output more machine friendly when being "
25245 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
25246 msgstr ""
25247
25248 #. type: =item
25249 #: ../resize/virt-resize.pod:437
25250 msgid "B<--dryrun>"
25251 msgstr "B<--dryrun>"
25252
25253 #. type: textblock
25254 #: ../resize/virt-resize.pod:439
25255 msgid "Print a summary of what would be done, but don't do anything."
25256 msgstr ""
25257
25258 #. type: =item
25259 #: ../resize/virt-resize.pod:441
25260 msgid "B<--no-copy-boot-loader>"
25261 msgstr "B<--no-copy-boot-loader>"
25262
25263 #. type: textblock
25264 #: ../resize/virt-resize.pod:443
25265 msgid ""
25266 "By default, virt-resize copies over some sectors at the start of the disk "
25267 "(up to the beginning of the first partition).  Commonly these sectors "
25268 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25269 "in order for the guest to boot correctly."
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../resize/virt-resize.pod:448
25274 msgid ""
25275 "If you specify this flag, then this initial copy is not done.  You may need "
25276 "to reinstall the boot loader in this case."
25277 msgstr ""
25278
25279 #. type: =item
25280 #: ../resize/virt-resize.pod:451
25281 msgid "B<--no-extra-partition>"
25282 msgstr "B<--no-extra-partition>"
25283
25284 #. type: textblock
25285 #: ../resize/virt-resize.pod:453
25286 msgid ""
25287 "By default, virt-resize creates an extra partition if there is any extra, "
25288 "unused space after all resizing has happened.  Use this option to prevent "
25289 "the extra partition from being created.  If you do this then the extra space "
25290 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25291 "tool in the guest."
25292 msgstr ""
25293
25294 #. type: textblock
25295 #: ../resize/virt-resize.pod:459
25296 msgid ""
25297 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25298 "will be created."
25299 msgstr ""
25300
25301 #. type: =item
25302 #: ../resize/virt-resize.pod:462
25303 msgid "B<--no-expand-content>"
25304 msgstr "B<--no-expand-content>"
25305
25306 #. type: textblock
25307 #: ../resize/virt-resize.pod:464
25308 msgid ""
25309 "By default, virt-resize will try to expand the direct contents of "
25310 "partitions, if it knows how (see I<--expand> option above)."
25311 msgstr ""
25312
25313 #. type: textblock
25314 #: ../resize/virt-resize.pod:467
25315 msgid ""
25316 "If you give the I<--no-expand-content> option then virt-resize will not "
25317 "attempt this."
25318 msgstr ""
25319
25320 #. type: =item
25321 #: ../resize/virt-resize.pod:470
25322 msgid "B<--ntfsresize-force>"
25323 msgstr "B<--ntfsresize-force>"
25324
25325 #. type: textblock
25326 #: ../resize/virt-resize.pod:472
25327 msgid ""
25328 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25329 "the NTFS disk is marked as needing a consistency check.  You have to use "
25330 "this option if you want to resize a Windows guest multiple times without "
25331 "booting into Windows between each resize."
25332 msgstr ""
25333
25334 #. type: =item
25335 #: ../resize/virt-resize.pod:478
25336 msgid "B<--output-format> raw"
25337 msgstr "B<--output-format> raw"
25338
25339 #. type: textblock
25340 #: ../resize/virt-resize.pod:480
25341 msgid ""
25342 "Specify the format of the output disk image.  If this flag is not given then "
25343 "it is auto-detected from the image itself."
25344 msgstr ""
25345
25346 #. type: textblock
25347 #: ../resize/virt-resize.pod:486
25348 msgid ""
25349 "Note that this option I<does not create> the output format.  This option "
25350 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25351 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25352 "SPARSE RAW FORMATS>."
25353 msgstr ""
25354
25355 #. type: textblock
25356 #: ../resize/virt-resize.pod:495
25357 msgid "Don't print the summary."
25358 msgstr ""
25359
25360 #. type: =item
25361 #: ../resize/virt-resize.pod:497
25362 msgid "B<--resize part=size>"
25363 msgstr "B<--resize розділ=розмір>"
25364
25365 #. type: textblock
25366 #: ../resize/virt-resize.pod:499
25367 msgid ""
25368 "Resize the named partition (expanding or shrinking it) so that it has the "
25369 "given size."
25370 msgstr ""
25371
25372 #. type: textblock
25373 #: ../resize/virt-resize.pod:502
25374 msgid ""
25375 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25376 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25377 "size; or as a relative number or percentage.  For example:"
25378 msgstr ""
25379
25380 #. type: verbatim
25381 #: ../resize/virt-resize.pod:508
25382 #, no-wrap
25383 msgid ""
25384 " --resize /dev/sda2=10G\n"
25385 "\n"
25386 msgstr ""
25387
25388 #. type: verbatim
25389 #: ../resize/virt-resize.pod:510
25390 #, no-wrap
25391 msgid ""
25392 " --resize /dev/sda4=90%\n"
25393 "\n"
25394 msgstr ""
25395
25396 #. type: verbatim
25397 #: ../resize/virt-resize.pod:512
25398 #, no-wrap
25399 msgid ""
25400 " --resize /dev/sda2=+1G\n"
25401 "\n"
25402 msgstr ""
25403
25404 #. type: verbatim
25405 #: ../resize/virt-resize.pod:514
25406 #, no-wrap
25407 msgid ""
25408 " --resize /dev/sda2=-200M\n"
25409 "\n"
25410 msgstr ""
25411
25412 #. type: verbatim
25413 #: ../resize/virt-resize.pod:516
25414 #, no-wrap
25415 msgid ""
25416 " --resize /dev/sda1=+128K\n"
25417 "\n"
25418 msgstr ""
25419
25420 #. type: verbatim
25421 #: ../resize/virt-resize.pod:518
25422 #, no-wrap
25423 msgid ""
25424 " --resize /dev/sda1=+10%\n"
25425 "\n"
25426 msgstr ""
25427
25428 #. type: verbatim
25429 #: ../resize/virt-resize.pod:520
25430 #, no-wrap
25431 msgid ""
25432 " --resize /dev/sda1=-10%\n"
25433 "\n"
25434 msgstr ""
25435
25436 #. type: textblock
25437 #: ../resize/virt-resize.pod:522
25438 msgid ""
25439 "You can increase the size of any partition.  Virt-resize will expand the "
25440 "direct content of the partition if it knows how (see I<--expand> below)."
25441 msgstr ""
25442
25443 #. type: textblock
25444 #: ../resize/virt-resize.pod:526
25445 msgid ""
25446 "You can only I<decrease> the size of partitions that contain filesystems or "
25447 "PVs which have already been shrunk.  Virt-resize will check this has been "
25448 "done before proceeding, or else will print an error (see also I<--resize-"
25449 "force>)."
25450 msgstr ""
25451
25452 #. type: =item
25453 #: ../resize/virt-resize.pod:533
25454 msgid "B<--resize-force part=size>"
25455 msgstr "B<--resize-force розділ=розмір>"
25456
25457 #. type: textblock
25458 #: ../resize/virt-resize.pod:535
25459 msgid ""
25460 "This is the same as I<--resize> except that it will let you decrease the "
25461 "size of any partition.  Generally this means you will lose any data which "
25462 "was at the end of the partition you shrink, but you may not care about that "
25463 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25464 "as a swap partition)."
25465 msgstr ""
25466
25467 #. type: textblock
25468 #: ../resize/virt-resize.pod:541
25469 msgid "See also the I<--ignore> option."
25470 msgstr ""
25471
25472 #. type: =item
25473 #: ../resize/virt-resize.pod:543
25474 msgid "B<--shrink part>"
25475 msgstr "B<--shrink розділ>"
25476
25477 #. type: textblock
25478 #: ../resize/virt-resize.pod:545
25479 msgid ""
25480 "Shrink the named partition until the overall disk image fits in the "
25481 "destination.  The named partition B<must> contain a filesystem or PV which "
25482 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25483 "online tools).  Virt-resize will check this and give an error if it has not "
25484 "been done."
25485 msgstr ""
25486
25487 #. type: textblock
25488 #: ../resize/virt-resize.pod:551
25489 msgid ""
25490 "The amount by which the overall disk must be shrunk (after carrying out all "
25491 "other operations requested by the user) is called the \"deficit\".  For "
25492 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25493 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25494 "would give an error unless the user specified a partition to shrink and that "
25495 "partition had more than a gigabyte of free space."
25496 msgstr ""
25497
25498 #. type: =head1
25499 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:176
25500 msgid "MACHINE READABLE OUTPUT"
25501 msgstr ""
25502
25503 #. type: textblock
25504 #: ../resize/virt-resize.pod:571
25505 msgid ""
25506 "The I<--machine-readable> option can be used to make the output more machine "
25507 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25508 "etc."
25509 msgstr ""
25510
25511 #. type: textblock
25512 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:182
25513 msgid "There are two ways to use this option."
25514 msgstr ""
25515
25516 #. type: textblock
25517 #: ../resize/virt-resize.pod:577
25518 msgid ""
25519 "Firstly use the option on its own to query the capabilities of the virt-"
25520 "resize binary.  Typical output looks like this:"
25521 msgstr ""
25522
25523 #. type: verbatim
25524 #: ../resize/virt-resize.pod:580
25525 #, no-wrap
25526 msgid ""
25527 " $ virt-resize --machine-readable\n"
25528 " virt-resize\n"
25529 " ntfsresize-force\n"
25530 " 32bitok\n"
25531 " ntfs\n"
25532 " btrfs\n"
25533 "\n"
25534 msgstr ""
25535
25536 #. type: textblock
25537 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:192
25538 msgid ""
25539 "A list of features is printed, one per line, and the program exits with "
25540 "status 0."
25541 msgstr ""
25542
25543 #. type: textblock
25544 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:195
25545 msgid ""
25546 "Secondly use the option in conjunction with other options to make the "
25547 "regular program output more machine friendly."
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:198
25552 msgid "At the moment this means:"
25553 msgstr ""
25554
25555 #. type: textblock
25556 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:204
25557 msgid ""
25558 "Progress bar messages can be parsed from stdout by looking for this regular "
25559 "expression:"
25560 msgstr ""
25561
25562 #. type: verbatim
25563 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:207
25564 #, no-wrap
25565 msgid ""
25566 " ^[0-9]+/[0-9]+$\n"
25567 "\n"
25568 msgstr ""
25569
25570 #. type: textblock
25571 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:211
25572 msgid ""
25573 "The calling program should treat messages sent to stdout (except for "
25574 "progress bar messages) as status messages.  They can be logged and/or "
25575 "displayed to the user."
25576 msgstr ""
25577
25578 #. type: textblock
25579 #: ../resize/virt-resize.pod:612
25580 msgid ""
25581 "The calling program should treat messages sent to stderr as error messages.  "
25582 "In addition, virt-resize exits with a non-zero status code if there was a "
25583 "fatal error."
25584 msgstr ""
25585
25586 #. type: textblock
25587 #: ../resize/virt-resize.pod:618
25588 msgid ""
25589 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25590 "readable> option and will return an error."
25591 msgstr ""
25592
25593 #. type: =head2
25594 #: ../resize/virt-resize.pod:623
25595 msgid "\"Partition 1 does not end on cylinder boundary.\""
25596 msgstr ""
25597
25598 #. type: textblock
25599 #: ../resize/virt-resize.pod:625
25600 msgid ""
25601 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25602 "alignment> parameter).  Usually this means the partitions will not be "
25603 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
25604 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25605 "drives.  Alignment of partitions to cylinders is not required by any modern "
25606 "operating system."
25607 msgstr ""
25608
25609 #. type: =head2
25610 #: ../resize/virt-resize.pod:632
25611 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25612 msgstr ""
25613
25614 #. type: textblock
25615 #: ../resize/virt-resize.pod:634
25616 msgid ""
25617 "In Windows Vista and later versions, Microsoft switched to using a separate "
25618 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25619 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
25620 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
25621 "the second partition (ie. C: drive)  should work."
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../resize/virt-resize.pod:641
25626 msgid ""
25627 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25628 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25629 "it find errors) is nothing to worry about."
25630 msgstr ""
25631
25632 #. type: =head2
25633 #: ../resize/virt-resize.pod:645
25634 msgid "GUEST BOOT STUCK AT \"GRUB\""
25635 msgstr ""
25636
25637 #. type: textblock
25638 #: ../resize/virt-resize.pod:647
25639 msgid ""
25640 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25641 "printing C<GRUB> on the console, try reinstalling grub."
25642 msgstr ""
25643
25644 #. type: verbatim
25645 #: ../resize/virt-resize.pod:650
25646 #, no-wrap
25647 msgid ""
25648 " guestfish -i -a newdisk\n"
25649 " ><fs> cat /boot/grub/device.map\n"
25650 " # check the contents of this file are sensible or\n"
25651 " # edit the file if necessary\n"
25652 " ><fs> grub-install / /dev/vda\n"
25653 " ><fs> exit\n"
25654 "\n"
25655 msgstr ""
25656
25657 #. type: textblock
25658 #: ../resize/virt-resize.pod:657
25659 msgid ""
25660 "For more flexible guest reconfiguration, including if you need to specify "
25661 "other parameters to grub-install, use L<virt-rescue(1)>."
25662 msgstr ""
25663
25664 #. type: =head1
25665 #: ../resize/virt-resize.pod:660
25666 msgid "ALTERNATIVE TOOLS"
25667 msgstr ""
25668
25669 #. type: textblock
25670 #: ../resize/virt-resize.pod:662
25671 msgid ""
25672 "There are several proprietary tools for resizing partitions.  We won't "
25673 "mention any here."
25674 msgstr ""
25675
25676 #. type: textblock
25677 #: ../resize/virt-resize.pod:665
25678 msgid ""
25679 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25680 "operations on disk images.  They can resize and move partitions, but I don't "
25681 "think they can do anything with the contents, and they certainly don't "
25682 "understand LVM."
25683 msgstr ""
25684
25685 #. type: textblock
25686 #: ../resize/virt-resize.pod:670
25687 msgid ""
25688 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25689 "but at a much lower level.  You will probably end up hand-calculating sector "
25690 "offsets, which is something that virt-resize was designed to avoid.  If you "
25691 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25692 "I<--debug> flag."
25693 msgstr ""
25694
25695 #. type: textblock
25696 #: ../resize/virt-resize.pod:690
25697 msgid ""
25698 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25699 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25700 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25701 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25702 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25703 msgstr ""
25704
25705 #. type: textblock
25706 #: ../ruby/examples/guestfs-ruby.pod:5
25707 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25708 msgstr ""
25709
25710 #. type: verbatim
25711 #: ../ruby/examples/guestfs-ruby.pod:9
25712 #, no-wrap
25713 msgid ""
25714 " require 'guestfs'\n"
25715 " g = Guestfs::Guestfs.new()\n"
25716 " g.add_drive_opts(\"disk.img\",\n"
25717 "                  :readonly => 1, :format => \"raw\")\n"
25718 " g.launch()\n"
25719 "\n"
25720 msgstr ""
25721
25722 #. type: textblock
25723 #: ../ruby/examples/guestfs-ruby.pod:17
25724 msgid ""
25725 "This manual page documents how to call libguestfs from the Ruby programming "
25726 "language.  This page just documents the differences from the C API and gives "
25727 "some examples.  If you are not familiar with using libguestfs, you also need "
25728 "to read L<guestfs(3)>."
25729 msgstr ""
25730
25731 #. type: textblock
25732 #: ../ruby/examples/guestfs-ruby.pod:24
25733 msgid ""
25734 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25735 "This has a single parameter which is the error message (a string)."
25736 msgstr ""
25737
25738 #. type: textblock
25739 #: ../ruby/examples/guestfs-ruby.pod:38
25740 msgid ""
25741 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25742 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25743 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25744 msgstr ""
25745
25746 #. type: textblock
25747 #: ../sparsify/virt-sparsify.pod:5
25748 msgid "virt-sparsify - Make a virtual machine disk sparse"
25749 msgstr ""
25750
25751 #. type: verbatim
25752 #: ../sparsify/virt-sparsify.pod:9
25753 #, no-wrap
25754 msgid ""
25755 " virt-sparsify [--options] indisk outdisk\n"
25756 "\n"
25757 msgstr ""
25758
25759 #. type: textblock
25760 #: ../sparsify/virt-sparsify.pod:13
25761 msgid ""
25762 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25763 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25764 "the disk image can be converted back to free space on the host."
25765 msgstr ""
25766
25767 #. type: textblock
25768 #: ../sparsify/virt-sparsify.pod:18
25769 msgid ""
25770 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25771 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25772 msgstr ""
25773
25774 #. type: textblock
25775 #: ../sparsify/virt-sparsify.pod:21
25776 msgid ""
25777 "Virt-sparsify can also convert between some disk formats, for example "
25778 "converting a raw disk image to a thin-provisioned qcow2 image."
25779 msgstr ""
25780
25781 #. type: textblock
25782 #: ../sparsify/virt-sparsify.pod:24
25783 msgid ""
25784 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25785 "machines.  If a virtual machine has more than one attached disk, you must "
25786 "sparsify each one separately."
25787 msgstr ""
25788
25789 #. type: =head2
25790 #: ../sparsify/virt-sparsify.pod:28
25791 msgid "IMPORTANT LIMITATIONS"
25792 msgstr ""
25793
25794 #. type: textblock
25795 #: ../sparsify/virt-sparsify.pod:34
25796 msgid ""
25797 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25798 "image to a destination image, leaving the source unchanged.  I<Check that "
25799 "the sparsification was successful before deleting the source image>."
25800 msgstr ""
25801
25802 #. type: textblock
25803 #: ../sparsify/virt-sparsify.pod:41
25804 msgid "The virtual machine I<must be shut down> before using this tool."
25805 msgstr ""
25806
25807 #. type: textblock
25808 #: ../sparsify/virt-sparsify.pod:45
25809 msgid ""
25810 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25811 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25812 "usually much less space is required."
25813 msgstr ""
25814
25815 #. type: textblock
25816 #: ../sparsify/virt-sparsify.pod:51
25817 msgid ""
25818 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25819 msgstr ""
25820
25821 #. type: textblock
25822 #: ../sparsify/virt-sparsify.pod:56
25823 msgid "Virt-sparsify cannot handle encrypted disks."
25824 msgstr ""
25825
25826 #. type: textblock
25827 #: ../sparsify/virt-sparsify.pod:60
25828 msgid ""
25829 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25830 "this space is often used for critical items like bootloaders so it's not "
25831 "really unused."
25832 msgstr ""
25833
25834 #. type: textblock
25835 #: ../sparsify/virt-sparsify.pod:66
25836 msgid ""
25837 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25838 "to do this unless we can be sure there is no hibernation data, so at the "
25839 "moment swap partitions are ignored."
25840 msgstr ""
25841
25842 #. type: textblock
25843 #: ../sparsify/virt-sparsify.pod:72
25844 msgid ""
25845 "You may also want to read the manual pages for the associated tools L<virt-"
25846 "filesystems(1)> and L<virt-df(1)> before starting."
25847 msgstr ""
25848
25849 #. type: textblock
25850 #: ../sparsify/virt-sparsify.pod:77
25851 msgid "Typical usage is:"
25852 msgstr ""
25853
25854 #. type: verbatim
25855 #: ../sparsify/virt-sparsify.pod:79
25856 #, no-wrap
25857 msgid ""
25858 " virt-sparsify indisk outdisk\n"
25859 "\n"
25860 msgstr ""
25861
25862 #. type: textblock
25863 #: ../sparsify/virt-sparsify.pod:81
25864 msgid ""
25865 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25866 "is created, or overwritten if it already exists.  The format of the input "
25867 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25868 msgstr ""
25869
25870 #. type: textblock
25871 #: ../sparsify/virt-sparsify.pod:86
25872 msgid "To convert between formats, use the I<--convert> option:"
25873 msgstr ""
25874
25875 #. type: verbatim
25876 #: ../sparsify/virt-sparsify.pod:88
25877 #, no-wrap
25878 msgid ""
25879 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25880 "\n"
25881 msgstr ""
25882
25883 #. type: textblock
25884 #: ../sparsify/virt-sparsify.pod:90
25885 msgid ""
25886 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25887 "can find within the source disk image.  You can get it to ignore (don't zero "
25888 "free space on) certain filesystems by doing:"
25889 msgstr ""
25890
25891 #. type: verbatim
25892 #: ../sparsify/virt-sparsify.pod:94
25893 #, no-wrap
25894 msgid ""
25895 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25896 "\n"
25897 msgstr ""
25898
25899 #. type: textblock
25900 #: ../sparsify/virt-sparsify.pod:96
25901 msgid ""
25902 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25903 msgstr ""
25904
25905 #. type: =item
25906 #: ../sparsify/virt-sparsify.pod:107
25907 msgid "B<--convert> raw"
25908 msgstr ""
25909
25910 #. type: =item
25911 #: ../sparsify/virt-sparsify.pod:109
25912 msgid "B<--convert> qcow2"
25913 msgstr ""
25914
25915 #. type: =item
25916 #: ../sparsify/virt-sparsify.pod:111
25917 msgid "B<--convert> [other formats]"
25918 msgstr ""
25919
25920 #. type: textblock
25921 #: ../sparsify/virt-sparsify.pod:113
25922 msgid ""
25923 "Use C<output-format> as the format for the destination image.  If this is "
25924 "not specified, then the input format is used."
25925 msgstr ""
25926
25927 #. type: textblock
25928 #: ../sparsify/virt-sparsify.pod:116
25929 msgid ""
25930 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25931 msgstr ""
25932
25933 #. type: textblock
25934 #: ../sparsify/virt-sparsify.pod:118
25935 msgid ""
25936 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25937 "C<vmdk>, but support for other formats is reliant on qemu."
25938 msgstr ""
25939
25940 #. type: textblock
25941 #: ../sparsify/virt-sparsify.pod:121
25942 msgid ""
25943 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25944 "sparsify doesn't need to try to guess the input format."
25945 msgstr ""
25946
25947 #. type: =item
25948 #: ../sparsify/virt-sparsify.pod:126
25949 msgid "B<--format> qcow2"
25950 msgstr ""
25951
25952 #. type: =item
25953 #: ../sparsify/virt-sparsify.pod:134
25954 msgid "B<--ignore> filesystem"
25955 msgstr ""
25956
25957 #. type: =item
25958 #: ../sparsify/virt-sparsify.pod:136
25959 msgid "B<--ignore> volgroup"
25960 msgstr ""
25961
25962 #. type: textblock
25963 #: ../sparsify/virt-sparsify.pod:138
25964 msgid ""
25965 "Ignore the named filesystem.  Free space on the filesystem will not be "
25966 "zeroed, but existing blocks of zeroes will still be sparsified."
25967 msgstr ""
25968
25969 #. type: textblock
25970 #: ../sparsify/virt-sparsify.pod:141
25971 msgid ""
25972 "In the second form, this ignores the named volume group.  Use the volume "
25973 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25974 msgstr ""
25975
25976 #. type: textblock
25977 #: ../sparsify/virt-sparsify.pod:156
25978 msgid "This disables progress bars and other unnecessary output."
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../sparsify/virt-sparsify.pod:178
25983 msgid ""
25984 "The I<--machine-readable> option can be used to make the output more machine "
25985 "friendly, which is useful when calling virt-sparsify from other programs, "
25986 "GUIs etc."
25987 msgstr ""
25988
25989 #. type: textblock
25990 #: ../sparsify/virt-sparsify.pod:184
25991 msgid ""
25992 "Firstly use the option on its own to query the capabilities of the virt-"
25993 "sparsify binary.  Typical output looks like this:"
25994 msgstr ""
25995
25996 #. type: verbatim
25997 #: ../sparsify/virt-sparsify.pod:187
25998 #, no-wrap
25999 msgid ""
26000 " $ virt-sparsify --machine-readable\n"
26001 " virt-sparsify\n"
26002 " ntfs\n"
26003 " btrfs\n"
26004 "\n"
26005 msgstr ""
26006
26007 #. type: textblock
26008 #: ../sparsify/virt-sparsify.pod:217
26009 msgid ""
26010 "The calling program should treat messages sent to stderr as error messages.  "
26011 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26012 "fatal error."
26013 msgstr ""
26014
26015 #. type: textblock
26016 #: ../sparsify/virt-sparsify.pod:223
26017 msgid ""
26018 "All versions of virt-sparsify have supported the I<--machine-readable> "
26019 "option."
26020 msgstr ""
26021
26022 #. type: textblock
26023 #: ../sparsify/virt-sparsify.pod:237
26024 msgid ""
26025 "Location of the temporary directory used for the potentially large temporary "
26026 "overlay file."
26027 msgstr ""
26028
26029 #. type: textblock
26030 #: ../sparsify/virt-sparsify.pod:240
26031 msgid ""
26032 "You should ensure there is enough free space in the worst case for a full "
26033 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26034 "to another directory that has enough space."
26035 msgstr ""
26036
26037 #. type: textblock
26038 #: ../sparsify/virt-sparsify.pod:244
26039 msgid "This defaults to C</tmp>."
26040 msgstr ""
26041
26042 #. type: textblock
26043 #: ../sparsify/virt-sparsify.pod:248
26044 msgid ""
26045 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../sparsify/virt-sparsify.pod:252
26050 msgid ""
26051 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26052 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26053 "(1)>, L<http://libguestfs.org/>."
26054 msgstr ""
26055
26056 #. type: =head2
26057 #: ../src/guestfs-actions.pod:1
26058 msgid "guestfs_add_cdrom"
26059 msgstr ""
26060
26061 #. type: verbatim
26062 #: ../src/guestfs-actions.pod:3
26063 #, no-wrap
26064 msgid ""
26065 " int\n"
26066 " guestfs_add_cdrom (guestfs_h *g,\n"
26067 "                    const char *filename);\n"
26068 "\n"
26069 msgstr ""
26070
26071 #. type: textblock
26072 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26073 #: ../src/guestfs-actions.pod:323
26074 msgid ""
26075 "I<This function is deprecated.> In new code, use the L</"
26076 "guestfs_add_drive_opts> call instead."
26077 msgstr ""
26078
26079 #. type: textblock
26080 #: ../src/guestfs-actions.pod:24
26081 msgid ""
26082 "This call checks for the existence of C<filename>.  This stops you from "
26083 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26084 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
26085 "instead."
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../src/guestfs-actions.pod:31
26090 msgid ""
26091 "If you just want to add an ISO file (often you use this as an efficient way "
26092 "to transfer large files into the guest), then you should probably use "
26093 "C<guestfs_add_drive_ro> instead."
26094 msgstr ""
26095
26096 #. type: textblock
26097 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26098 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26099 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26100 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26101 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26102 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26103 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26104 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26105 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
26106 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
26107 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
26108 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
26109 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
26110 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
26111 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
26112 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
26113 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
26114 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
26115 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
26116 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
26117 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
26118 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
26119 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
26120 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
26121 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
26122 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
26123 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
26124 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
26125 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
26126 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
26127 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
26128 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
26129 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
26130 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
26131 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
26132 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
26133 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
26134 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
26135 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
26136 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
26137 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
26138 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
26139 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
26140 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
26141 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
26142 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
26143 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
26144 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
26145 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
26146 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
26147 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
26148 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
26149 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
26150 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
26151 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
26152 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
26153 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
26154 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
26155 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
26156 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
26157 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
26158 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
26159 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
26160 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
26161 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
26162 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
26163 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
26164 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
26165 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
26166 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
26167 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
26168 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
26169 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
26170 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
26171 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
26172 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
26173 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
26174 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
26175 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
26176 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
26177 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
26178 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
26179 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
26180 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
26181 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
26182 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
26183 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
26184 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
26185 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
26186 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
26187 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
26188 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
26189 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
26190 #: ../src/guestfs-actions.pod:8295
26191 msgid "This function returns 0 on success or -1 on error."
26192 msgstr ""
26193
26194 #. type: textblock
26195 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26196 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26197 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26198 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
26199 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
26200 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
26201 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
26202 #: ../src/guestfs-actions.pod:8075
26203 msgid "(Added in 0.3)"
26204 msgstr "(Додано у 0.3)"
26205
26206 #. type: =head2
26207 #: ../src/guestfs-actions.pod:41
26208 msgid "guestfs_add_domain"
26209 msgstr ""
26210
26211 #. type: verbatim
26212 #: ../src/guestfs-actions.pod:43
26213 #, no-wrap
26214 msgid ""
26215 " int\n"
26216 " guestfs_add_domain (guestfs_h *g,\n"
26217 "                     const char *dom,\n"
26218 "                     ...);\n"
26219 "\n"
26220 msgstr ""
26221
26222 #. type: textblock
26223 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26224 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26225 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26226 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26227 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26228 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
26229 #: ../src/guestfs-actions.pod:5626
26230 msgid ""
26231 "You may supply a list of optional arguments to this call.  Use zero or more "
26232 "of the following pairs of parameters, and terminate the list with C<-1> on "
26233 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
26234 msgstr ""
26235
26236 #. type: verbatim
26237 #: ../src/guestfs-actions.pod:53
26238 #, no-wrap
26239 msgid ""
26240 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26241 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26242 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26243 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26244 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26245 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26246 "\n"
26247 msgstr ""
26248
26249 #. type: textblock
26250 #: ../src/guestfs-actions.pod:60
26251 msgid ""
26252 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
26253 "It works by connecting to libvirt, requesting the domain and domain XML from "
26254 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26255 "one."
26256 msgstr ""
26257
26258 #. type: textblock
26259 #: ../src/guestfs-actions.pod:141
26260 msgid ""
26261 "The other optional parameters are passed directly through to "
26262 "C<guestfs_add_drive_opts>."
26263 msgstr ""
26264
26265 #. type: textblock
26266 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26267 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26268 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26269 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26270 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26271 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26272 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26273 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26274 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26275 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
26276 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
26277 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
26278 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
26279 #: ../src/guestfs-actions.pod:8112
26280 msgid "On error this function returns -1."
26281 msgstr ""
26282
26283 #. type: textblock
26284 #: ../src/guestfs-actions.pod:146
26285 msgid "(Added in 1.7.4)"
26286 msgstr "(Додано у 1.7.4)"
26287
26288 #. type: =head2
26289 #: ../src/guestfs-actions.pod:148
26290 msgid "guestfs_add_domain_va"
26291 msgstr ""
26292
26293 #. type: verbatim
26294 #: ../src/guestfs-actions.pod:150
26295 #, no-wrap
26296 msgid ""
26297 " int\n"
26298 " guestfs_add_domain_va (guestfs_h *g,\n"
26299 "                        const char *dom,\n"
26300 "                        va_list args);\n"
26301 "\n"
26302 msgstr ""
26303
26304 #. type: textblock
26305 #: ../src/guestfs-actions.pod:155
26306 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26307 msgstr ""
26308
26309 #. type: textblock
26310 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26311 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26312 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26313 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26314 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26315 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26316 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26317 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26318 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26319 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26320 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
26321 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
26322 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
26323 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26324 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
26325
26326 #. type: =head2
26327 #: ../src/guestfs-actions.pod:159
26328 msgid "guestfs_add_domain_argv"
26329 msgstr "guestfs_add_domain_argv"
26330
26331 #. type: verbatim
26332 #: ../src/guestfs-actions.pod:161
26333 #, no-wrap
26334 msgid ""
26335 " int\n"
26336 " guestfs_add_domain_argv (guestfs_h *g,\n"
26337 "                          const char *dom,\n"
26338 "                          const struct guestfs_add_domain_argv *optargs);\n"
26339 "\n"
26340 msgstr ""
26341
26342 #. type: textblock
26343 #: ../src/guestfs-actions.pod:166
26344 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:170
26349 msgid "guestfs_add_drive"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:172
26354 #, no-wrap
26355 msgid ""
26356 " int\n"
26357 " guestfs_add_drive (guestfs_h *g,\n"
26358 "                    const char *filename);\n"
26359 "\n"
26360 msgstr ""
26361
26362 #. type: textblock
26363 #: ../src/guestfs-actions.pod:176
26364 msgid ""
26365 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26366 "optional parameters, so the disk is added writable, with the format being "
26367 "detected automatically."
26368 msgstr ""
26369
26370 #. type: textblock
26371 #: ../src/guestfs-actions.pod:180
26372 msgid ""
26373 "Automatic detection of the format opens you up to a potential security hole "
26374 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26375 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26376 "you should think about replacing calls to this function with calls to "
26377 "C<guestfs_add_drive_opts>, and specifying the format."
26378 msgstr ""
26379
26380 #. type: =head2
26381 #: ../src/guestfs-actions.pod:191
26382 msgid "guestfs_add_drive_opts"
26383 msgstr ""
26384
26385 #. type: verbatim
26386 #: ../src/guestfs-actions.pod:193
26387 #, no-wrap
26388 msgid ""
26389 " int\n"
26390 " guestfs_add_drive_opts (guestfs_h *g,\n"
26391 "                         const char *filename,\n"
26392 "                         ...);\n"
26393 "\n"
26394 msgstr ""
26395
26396 #. type: verbatim
26397 #: ../src/guestfs-actions.pod:203
26398 #, no-wrap
26399 msgid ""
26400 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26401 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26402 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26403 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26404 "\n"
26405 msgstr ""
26406
26407 #. type: textblock
26408 #: ../src/guestfs-actions.pod:233
26409 msgid ""
26410 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
26411 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
26412 "Possible formats include C<raw> and C<qcow2>."
26413 msgstr ""
26414
26415 #. type: textblock
26416 #: ../src/guestfs-actions.pod:244
26417 msgid ""
26418 "This rarely-used option lets you emulate the behaviour of the deprecated "
26419 "C<guestfs_add_drive_with_if> call (q.v.)"
26420 msgstr ""
26421
26422 #. type: textblock
26423 #: ../src/guestfs-actions.pod:256
26424 msgid "(Added in 1.5.23)"
26425 msgstr "(Додано у 1.5.23)"
26426
26427 #. type: =head2
26428 #: ../src/guestfs-actions.pod:258
26429 msgid "guestfs_add_drive_opts_va"
26430 msgstr ""
26431
26432 #. type: verbatim
26433 #: ../src/guestfs-actions.pod:260
26434 #, no-wrap
26435 msgid ""
26436 " int\n"
26437 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26438 "                            const char *filename,\n"
26439 "                            va_list args);\n"
26440 "\n"
26441 msgstr ""
26442
26443 #. type: textblock
26444 #: ../src/guestfs-actions.pod:265
26445 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26446 msgstr ""
26447
26448 #. type: =head2
26449 #: ../src/guestfs-actions.pod:269
26450 msgid "guestfs_add_drive_opts_argv"
26451 msgstr ""
26452
26453 #. type: verbatim
26454 #: ../src/guestfs-actions.pod:271
26455 #, no-wrap
26456 msgid ""
26457 " int\n"
26458 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26459 "                              const char *filename,\n"
26460 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
26461 "\n"
26462 msgstr ""
26463
26464 #. type: textblock
26465 #: ../src/guestfs-actions.pod:276
26466 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26467 msgstr ""
26468
26469 #. type: =head2
26470 #: ../src/guestfs-actions.pod:280
26471 msgid "guestfs_add_drive_ro"
26472 msgstr ""
26473
26474 #. type: verbatim
26475 #: ../src/guestfs-actions.pod:282
26476 #, no-wrap
26477 msgid ""
26478 " int\n"
26479 " guestfs_add_drive_ro (guestfs_h *g,\n"
26480 "                       const char *filename);\n"
26481 "\n"
26482 msgstr ""
26483
26484 #. type: textblock
26485 #: ../src/guestfs-actions.pod:286
26486 msgid ""
26487 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26488 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26489 "disk is added read-only, with the format being detected automatically."
26490 msgstr ""
26491
26492 #. type: textblock
26493 #: ../src/guestfs-actions.pod:293
26494 msgid "(Added in 1.0.38)"
26495 msgstr "(Додано у 1.0.38)"
26496
26497 #. type: =head2
26498 #: ../src/guestfs-actions.pod:295
26499 msgid "guestfs_add_drive_ro_with_if"
26500 msgstr ""
26501
26502 #. type: verbatim
26503 #: ../src/guestfs-actions.pod:297
26504 #, no-wrap
26505 msgid ""
26506 " int\n"
26507 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26508 "                               const char *filename,\n"
26509 "                               const char *iface);\n"
26510 "\n"
26511 msgstr ""
26512
26513 #. type: textblock
26514 #: ../src/guestfs-actions.pod:309
26515 msgid ""
26516 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26517 "QEMU interface emulation to use at run time."
26518 msgstr ""
26519
26520 #. type: textblock
26521 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26522 #: ../src/guestfs-actions.pod:2881
26523 msgid "(Added in 1.0.84)"
26524 msgstr "(Додано у 1.0.84)"
26525
26526 #. type: =head2
26527 #: ../src/guestfs-actions.pod:316
26528 msgid "guestfs_add_drive_with_if"
26529 msgstr ""
26530
26531 #. type: verbatim
26532 #: ../src/guestfs-actions.pod:318
26533 #, no-wrap
26534 msgid ""
26535 " int\n"
26536 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26537 "                            const char *filename,\n"
26538 "                            const char *iface);\n"
26539 "\n"
26540 msgstr ""
26541
26542 #. type: textblock
26543 #: ../src/guestfs-actions.pod:330
26544 msgid ""
26545 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26546 "QEMU interface emulation to use at run time."
26547 msgstr ""
26548
26549 #. type: =head2
26550 #: ../src/guestfs-actions.pod:337
26551 msgid "guestfs_aug_clear"
26552 msgstr ""
26553
26554 #. type: verbatim
26555 #: ../src/guestfs-actions.pod:339
26556 #, no-wrap
26557 msgid ""
26558 " int\n"
26559 " guestfs_aug_clear (guestfs_h *g,\n"
26560 "                    const char *augpath);\n"
26561 "\n"
26562 msgstr ""
26563
26564 #. type: textblock
26565 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
26566 msgid "(Added in 1.3.4)"
26567 msgstr "(Додано у 1.3.4)"
26568
26569 #. type: =head2
26570 #: ../src/guestfs-actions.pod:350
26571 msgid "guestfs_aug_close"
26572 msgstr ""
26573
26574 #. type: verbatim
26575 #: ../src/guestfs-actions.pod:352
26576 #, no-wrap
26577 msgid ""
26578 " int\n"
26579 " guestfs_aug_close (guestfs_h *g);\n"
26580 "\n"
26581 msgstr ""
26582
26583 #. type: textblock
26584 #: ../src/guestfs-actions.pod:355
26585 msgid ""
26586 "Close the current Augeas handle and free up any resources used by it.  After "
26587 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26588 "any other Augeas functions."
26589 msgstr ""
26590
26591 #. type: textblock
26592 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26593 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26594 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26595 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26596 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26597 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26598 #: ../src/guestfs-actions.pod:6311
26599 msgid "(Added in 0.7)"
26600 msgstr "(Додано у 0.7)"
26601
26602 #. type: =head2
26603 #: ../src/guestfs-actions.pod:364
26604 msgid "guestfs_aug_defnode"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../src/guestfs-actions.pod:366
26609 #, no-wrap
26610 msgid ""
26611 " struct guestfs_int_bool *\n"
26612 " guestfs_aug_defnode (guestfs_h *g,\n"
26613 "                      const char *name,\n"
26614 "                      const char *expr,\n"
26615 "                      const char *val);\n"
26616 "\n"
26617 msgstr ""
26618
26619 #. type: textblock
26620 #: ../src/guestfs-actions.pod:375
26621 msgid ""
26622 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26623 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26624 "containing that single node."
26625 msgstr ""
26626
26627 #. type: textblock
26628 #: ../src/guestfs-actions.pod:383
26629 msgid ""
26630 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26631 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26632 msgstr ""
26633
26634 #. type: =head2
26635 #: ../src/guestfs-actions.pod:389
26636 msgid "guestfs_aug_defvar"
26637 msgstr ""
26638
26639 #. type: verbatim
26640 #: ../src/guestfs-actions.pod:391
26641 #, no-wrap
26642 msgid ""
26643 " int\n"
26644 " guestfs_aug_defvar (guestfs_h *g,\n"
26645 "                     const char *name,\n"
26646 "                     const char *expr);\n"
26647 "\n"
26648 msgstr ""
26649
26650 #. type: =head2
26651 #: ../src/guestfs-actions.pod:407
26652 msgid "guestfs_aug_get"
26653 msgstr "guestfs_aug_get"
26654
26655 #. type: verbatim
26656 #: ../src/guestfs-actions.pod:409
26657 #, no-wrap
26658 msgid ""
26659 " char *\n"
26660 " guestfs_aug_get (guestfs_h *g,\n"
26661 "                  const char *augpath);\n"
26662 "\n"
26663 msgstr ""
26664 " char *\n"
26665 " guestfs_aug_get (guestfs_h *g,\n"
26666 "                  const char *augpath);\n"
26667 "\n"
26668
26669 #. type: textblock
26670 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
26671 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
26672 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
26673 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
26674 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
26675 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
26676 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
26677 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
26678 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
26679 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
26680 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
26681 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
26682 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
26683 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
26684 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
26685 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
26686 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
26687 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
26688 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
26689 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
26690 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
26691 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
26692 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
26693 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
26694 msgid ""
26695 "This function returns a string, or NULL on error.  I<The caller must free "
26696 "the returned string after use>."
26697 msgstr ""
26698
26699 #. type: =head2
26700 #: ../src/guestfs-actions.pod:421
26701 msgid "guestfs_aug_init"
26702 msgstr "guestfs_aug_init"
26703
26704 #. type: verbatim
26705 #: ../src/guestfs-actions.pod:423
26706 #, no-wrap
26707 msgid ""
26708 " int\n"
26709 " guestfs_aug_init (guestfs_h *g,\n"
26710 "                   const char *root,\n"
26711 "                   int flags);\n"
26712 "\n"
26713 msgstr ""
26714 " int\n"
26715 " guestfs_aug_init (guestfs_h *g,\n"
26716 "                   const char *root,\n"
26717 "                   int flags);\n"
26718 "\n"
26719
26720 #. type: textblock
26721 #: ../src/guestfs-actions.pod:432
26722 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26723 msgstr ""
26724
26725 #. type: textblock
26726 #: ../src/guestfs-actions.pod:457
26727 msgid ""
26728 "This option is only useful when debugging Augeas lenses.  Use of this option "
26729 "may require additional memory for the libguestfs appliance.  You may need to "
26730 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26731 "C<guestfs_set_memsize>."
26732 msgstr ""
26733
26734 #. type: textblock
26735 #: ../src/guestfs-actions.pod:472
26736 msgid "Do not load the tree in C<guestfs_aug_init>."
26737 msgstr ""
26738
26739 #. type: textblock
26740 #: ../src/guestfs-actions.pod:476
26741 msgid "To close the handle, you can call C<guestfs_aug_close>."
26742 msgstr ""
26743
26744 #. type: =head2
26745 #: ../src/guestfs-actions.pod:484
26746 msgid "guestfs_aug_insert"
26747 msgstr "guestfs_aug_insert"
26748
26749 #. type: verbatim
26750 #: ../src/guestfs-actions.pod:486
26751 #, no-wrap
26752 msgid ""
26753 " int\n"
26754 " guestfs_aug_insert (guestfs_h *g,\n"
26755 "                     const char *augpath,\n"
26756 "                     const char *label,\n"
26757 "                     int before);\n"
26758 "\n"
26759 msgstr ""
26760 " int\n"
26761 " guestfs_aug_insert (guestfs_h *g,\n"
26762 "                     const char *augpath,\n"
26763 "                     const char *label,\n"
26764 "                     int before);\n"
26765 "\n"
26766
26767 #. type: =head2
26768 #: ../src/guestfs-actions.pod:504
26769 msgid "guestfs_aug_load"
26770 msgstr "guestfs_aug_load"
26771
26772 #. type: verbatim
26773 #: ../src/guestfs-actions.pod:506
26774 #, no-wrap
26775 msgid ""
26776 " int\n"
26777 " guestfs_aug_load (guestfs_h *g);\n"
26778 "\n"
26779 msgstr ""
26780 " int\n"
26781 " guestfs_aug_load (guestfs_h *g);\n"
26782 "\n"
26783
26784 #. type: =head2
26785 #: ../src/guestfs-actions.pod:518
26786 msgid "guestfs_aug_ls"
26787 msgstr "guestfs_aug_ls"
26788
26789 #. type: verbatim
26790 #: ../src/guestfs-actions.pod:520
26791 #, no-wrap
26792 msgid ""
26793 " char **\n"
26794 " guestfs_aug_ls (guestfs_h *g,\n"
26795 "                 const char *augpath);\n"
26796 "\n"
26797 msgstr ""
26798 " char **\n"
26799 " guestfs_aug_ls (guestfs_h *g,\n"
26800 "                 const char *augpath);\n"
26801 "\n"
26802
26803 #. type: textblock
26804 #: ../src/guestfs-actions.pod:524
26805 msgid ""
26806 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26807 "sorting the resulting nodes into alphabetical order."
26808 msgstr ""
26809
26810 #. type: textblock
26811 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26812 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26813 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26814 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26815 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26816 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26817 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26818 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26819 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26820 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26821 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26822 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
26823 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
26824 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
26825 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
26826 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
26827 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
26828 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
26829 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
26830 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
26831 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
26832 #: ../src/guestfs-actions.pod:8393
26833 msgid ""
26834 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26835 ">), or NULL if there was an error.  I<The caller must free the strings and "
26836 "the array after use>."
26837 msgstr ""
26838
26839 #. type: textblock
26840 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26841 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26842 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26843 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
26844 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
26845 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
26846 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
26847 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
26848 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
26849 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
26850 #: ../src/guestfs-actions.pod:8187
26851 msgid "(Added in 0.8)"
26852 msgstr "(Додано у 0.8)"
26853
26854 #. type: =head2
26855 #: ../src/guestfs-actions.pod:533
26856 msgid "guestfs_aug_match"
26857 msgstr "guestfs_aug_match"
26858
26859 #. type: verbatim
26860 #: ../src/guestfs-actions.pod:535
26861 #, no-wrap
26862 msgid ""
26863 " char **\n"
26864 " guestfs_aug_match (guestfs_h *g,\n"
26865 "                    const char *augpath);\n"
26866 "\n"
26867 msgstr ""
26868 " char **\n"
26869 " guestfs_aug_match (guestfs_h *g,\n"
26870 "                    const char *augpath);\n"
26871 "\n"
26872
26873 #. type: =head2
26874 #: ../src/guestfs-actions.pod:549
26875 msgid "guestfs_aug_mv"
26876 msgstr "guestfs_aug_mv"
26877
26878 #. type: verbatim
26879 #: ../src/guestfs-actions.pod:551
26880 #, no-wrap
26881 msgid ""
26882 " int\n"
26883 " guestfs_aug_mv (guestfs_h *g,\n"
26884 "                 const char *src,\n"
26885 "                 const char *dest);\n"
26886 "\n"
26887 msgstr ""
26888 " int\n"
26889 " guestfs_aug_mv (guestfs_h *g,\n"
26890 "                 const char *src,\n"
26891 "                 const char *dest);\n"
26892 "\n"
26893
26894 #. type: =head2
26895 #: ../src/guestfs-actions.pod:563
26896 msgid "guestfs_aug_rm"
26897 msgstr "guestfs_aug_rm"
26898
26899 #. type: verbatim
26900 #: ../src/guestfs-actions.pod:565
26901 #, no-wrap
26902 msgid ""
26903 " int\n"
26904 " guestfs_aug_rm (guestfs_h *g,\n"
26905 "                 const char *augpath);\n"
26906 "\n"
26907 msgstr ""
26908 " int\n"
26909 " guestfs_aug_rm (guestfs_h *g,\n"
26910 "                 const char *augpath);\n"
26911 "\n"
26912
26913 #. type: =head2
26914 #: ../src/guestfs-actions.pod:577
26915 msgid "guestfs_aug_save"
26916 msgstr "guestfs_aug_save"
26917
26918 #. type: verbatim
26919 #: ../src/guestfs-actions.pod:579
26920 #, no-wrap
26921 msgid ""
26922 " int\n"
26923 " guestfs_aug_save (guestfs_h *g);\n"
26924 "\n"
26925 msgstr ""
26926 " int\n"
26927 " guestfs_aug_save (guestfs_h *g);\n"
26928 "\n"
26929
26930 #. type: textblock
26931 #: ../src/guestfs-actions.pod:584
26932 msgid ""
26933 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26934 "are saved."
26935 msgstr ""
26936
26937 #. type: =head2
26938 #: ../src/guestfs-actions.pod:591
26939 msgid "guestfs_aug_set"
26940 msgstr "guestfs_aug_set"
26941
26942 #. type: verbatim
26943 #: ../src/guestfs-actions.pod:593
26944 #, no-wrap
26945 msgid ""
26946 " int\n"
26947 " guestfs_aug_set (guestfs_h *g,\n"
26948 "                  const char *augpath,\n"
26949 "                  const char *val);\n"
26950 "\n"
26951 msgstr ""
26952 " int\n"
26953 " guestfs_aug_set (guestfs_h *g,\n"
26954 "                  const char *augpath,\n"
26955 "                  const char *val);\n"
26956 "\n"
26957
26958 #. type: textblock
26959 #: ../src/guestfs-actions.pod:600
26960 msgid ""
26961 "In the Augeas API, it is possible to clear a node by setting the value to "
26962 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26963 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26964 msgstr ""
26965
26966 #. type: =head2
26967 #: ../src/guestfs-actions.pod:609
26968 msgid "guestfs_available"
26969 msgstr "guestfs_available"
26970
26971 #. type: verbatim
26972 #: ../src/guestfs-actions.pod:611
26973 #, no-wrap
26974 msgid ""
26975 " int\n"
26976 " guestfs_available (guestfs_h *g,\n"
26977 "                    char *const *groups);\n"
26978 "\n"
26979 msgstr ""
26980 " int\n"
26981 " guestfs_available (guestfs_h *g,\n"
26982 "                    char *const *groups);\n"
26983 "\n"
26984
26985 #. type: textblock
26986 #: ../src/guestfs-actions.pod:619
26987 msgid ""
26988 "The libguestfs groups, and the functions that those groups correspond to, "
26989 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26990 "runtime by calling C<guestfs_available_all_groups>."
26991 msgstr ""
26992
26993 #. type: textblock
26994 #: ../src/guestfs-actions.pod:643
26995 msgid "You must call C<guestfs_launch> before calling this function."
26996 msgstr ""
26997
26998 #. type: textblock
26999 #: ../src/guestfs-actions.pod:665
27000 msgid ""
27001 "This call was added in version C<1.0.80>.  In previous versions of "
27002 "libguestfs all you could do would be to speculatively execute a command to "
27003 "find out if the daemon implemented it.  See also C<guestfs_version>."
27004 msgstr ""
27005
27006 #. type: textblock
27007 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
27008 msgid "(Added in 1.0.80)"
27009 msgstr "(Додано у 1.0.80)"
27010
27011 #. type: =head2
27012 #: ../src/guestfs-actions.pod:676
27013 msgid "guestfs_available_all_groups"
27014 msgstr "guestfs_available_all_groups"
27015
27016 #. type: verbatim
27017 #: ../src/guestfs-actions.pod:678
27018 #, no-wrap
27019 msgid ""
27020 " char **\n"
27021 " guestfs_available_all_groups (guestfs_h *g);\n"
27022 "\n"
27023 msgstr ""
27024 " char **\n"
27025 " guestfs_available_all_groups (guestfs_h *g);\n"
27026 "\n"
27027
27028 #. type: textblock
27029 #: ../src/guestfs-actions.pod:681
27030 msgid ""
27031 "This command returns a list of all optional groups that this daemon knows "
27032 "about.  Note this returns both supported and unsupported groups.  To find "
27033 "out which ones the daemon can actually support you have to call "
27034 "C<guestfs_available> on each member of the returned list."
27035 msgstr ""
27036
27037 #. type: textblock
27038 #: ../src/guestfs-actions.pod:687
27039 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27040 msgstr ""
27041
27042 #. type: textblock
27043 #: ../src/guestfs-actions.pod:693
27044 msgid "(Added in 1.3.15)"
27045 msgstr "(Додано у 1.3.15)"
27046
27047 #. type: =head2
27048 #: ../src/guestfs-actions.pod:695
27049 msgid "guestfs_base64_in"
27050 msgstr "guestfs_base64_in"
27051
27052 #. type: verbatim
27053 #: ../src/guestfs-actions.pod:697
27054 #, no-wrap
27055 msgid ""
27056 " int\n"
27057 " guestfs_base64_in (guestfs_h *g,\n"
27058 "                    const char *base64file,\n"
27059 "                    const char *filename);\n"
27060 "\n"
27061 msgstr ""
27062 " int\n"
27063 " guestfs_base64_in (guestfs_h *g,\n"
27064 "                    const char *base64file,\n"
27065 "                    const char *filename);\n"
27066 "\n"
27067
27068 #. type: textblock
27069 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27070 msgid "(Added in 1.3.5)"
27071 msgstr "(Додано у 1.3.5)"
27072
27073 #. type: =head2
27074 #: ../src/guestfs-actions.pod:709
27075 msgid "guestfs_base64_out"
27076 msgstr "guestfs_base64_out"
27077
27078 #. type: verbatim
27079 #: ../src/guestfs-actions.pod:711
27080 #, no-wrap
27081 msgid ""
27082 " int\n"
27083 " guestfs_base64_out (guestfs_h *g,\n"
27084 "                     const char *filename,\n"
27085 "                     const char *base64file);\n"
27086 "\n"
27087 msgstr ""
27088 " int\n"
27089 " guestfs_base64_out (guestfs_h *g,\n"
27090 "                     const char *filename,\n"
27091 "                     const char *base64file);\n"
27092 "\n"
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:723
27096 msgid "guestfs_blockdev_flushbufs"
27097 msgstr "guestfs_blockdev_flushbufs"
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:725
27101 #, no-wrap
27102 msgid ""
27103 " int\n"
27104 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27105 "                             const char *device);\n"
27106 "\n"
27107 msgstr ""
27108 " int\n"
27109 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27110 "                             const char *device);\n"
27111 "\n"
27112
27113 #. type: textblock
27114 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
27115 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
27116 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
27117 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
27118 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
27119 msgid "(Added in 0.9.3)"
27120 msgstr "(Додано у 0.9.3)"
27121
27122 #. type: =head2
27123 #: ../src/guestfs-actions.pod:738
27124 msgid "guestfs_blockdev_getbsz"
27125 msgstr "guestfs_blockdev_getbsz"
27126
27127 #. type: verbatim
27128 #: ../src/guestfs-actions.pod:740
27129 #, no-wrap
27130 msgid ""
27131 " int\n"
27132 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27133 "                          const char *device);\n"
27134 "\n"
27135 msgstr ""
27136 " int\n"
27137 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27138 "                          const char *device);\n"
27139 "\n"
27140
27141 #. type: =head2
27142 #: ../src/guestfs-actions.pod:755
27143 msgid "guestfs_blockdev_getro"
27144 msgstr "guestfs_blockdev_getro"
27145
27146 #. type: verbatim
27147 #: ../src/guestfs-actions.pod:757
27148 #, no-wrap
27149 msgid ""
27150 " int\n"
27151 " guestfs_blockdev_getro (guestfs_h *g,\n"
27152 "                         const char *device);\n"
27153 "\n"
27154 msgstr ""
27155 " int\n"
27156 " guestfs_blockdev_getro (guestfs_h *g,\n"
27157 "                         const char *device);\n"
27158 "\n"
27159
27160 #. type: textblock
27161 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
27162 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
27163 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
27164 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
27165 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
27166 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
27167 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
27168 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
27169 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
27170 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
27171 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
27172 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
27173 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
27174 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
27175 #: ../src/guestfs-actions.pod:5784
27176 msgid "This function returns a C truth value on success or -1 on error."
27177 msgstr ""
27178
27179 #. type: =head2
27180 #: ../src/guestfs-actions.pod:770
27181 msgid "guestfs_blockdev_getsize64"
27182 msgstr "guestfs_blockdev_getsize64"
27183
27184 #. type: verbatim
27185 #: ../src/guestfs-actions.pod:772
27186 #, no-wrap
27187 msgid ""
27188 " int64_t\n"
27189 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27190 "                             const char *device);\n"
27191 "\n"
27192 msgstr ""
27193 " int64_t\n"
27194 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27195 "                             const char *device);\n"
27196 "\n"
27197
27198 #. type: textblock
27199 #: ../src/guestfs-actions.pod:778
27200 msgid "See also C<guestfs_blockdev_getsz>."
27201 msgstr ""
27202
27203 #. type: =head2
27204 #: ../src/guestfs-actions.pod:786
27205 msgid "guestfs_blockdev_getss"
27206 msgstr "guestfs_blockdev_getss"
27207
27208 #. type: verbatim
27209 #: ../src/guestfs-actions.pod:788
27210 #, no-wrap
27211 msgid ""
27212 " int\n"
27213 " guestfs_blockdev_getss (guestfs_h *g,\n"
27214 "                         const char *device);\n"
27215 "\n"
27216 msgstr ""
27217 " int\n"
27218 " guestfs_blockdev_getss (guestfs_h *g,\n"
27219 "                         const char *device);\n"
27220 "\n"
27221
27222 #. type: textblock
27223 #: ../src/guestfs-actions.pod:795
27224 msgid ""
27225 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27226 "that)."
27227 msgstr ""
27228
27229 #. type: =head2
27230 #: ../src/guestfs-actions.pod:804
27231 msgid "guestfs_blockdev_getsz"
27232 msgstr "guestfs_blockdev_getsz"
27233
27234 #. type: verbatim
27235 #: ../src/guestfs-actions.pod:806
27236 #, no-wrap
27237 msgid ""
27238 " int64_t\n"
27239 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27240 "                         const char *device);\n"
27241 "\n"
27242 msgstr ""
27243 " int64_t\n"
27244 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27245 "                         const char *device);\n"
27246 "\n"
27247
27248 #. type: textblock
27249 #: ../src/guestfs-actions.pod:813
27250 msgid ""
27251 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27252 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27253 msgstr ""
27254
27255 #. type: =head2
27256 #: ../src/guestfs-actions.pod:823
27257 msgid "guestfs_blockdev_rereadpt"
27258 msgstr "guestfs_blockdev_rereadpt"
27259
27260 #. type: verbatim
27261 #: ../src/guestfs-actions.pod:825
27262 #, no-wrap
27263 msgid ""
27264 " int\n"
27265 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27266 "                            const char *device);\n"
27267 "\n"
27268 msgstr ""
27269 " int\n"
27270 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27271 "                            const char *device);\n"
27272 "\n"
27273
27274 #. type: =head2
27275 #: ../src/guestfs-actions.pod:837
27276 msgid "guestfs_blockdev_setbsz"
27277 msgstr "guestfs_blockdev_setbsz"
27278
27279 #. type: verbatim
27280 #: ../src/guestfs-actions.pod:839
27281 #, no-wrap
27282 msgid ""
27283 " int\n"
27284 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27285 "                          const char *device,\n"
27286 "                          int blocksize);\n"
27287 "\n"
27288 msgstr ""
27289 " int\n"
27290 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27291 "                          const char *device,\n"
27292 "                          int blocksize);\n"
27293 "\n"
27294
27295 #. type: =head2
27296 #: ../src/guestfs-actions.pod:855
27297 msgid "guestfs_blockdev_setro"
27298 msgstr "guestfs_blockdev_setro"
27299
27300 #. type: verbatim
27301 #: ../src/guestfs-actions.pod:857
27302 #, no-wrap
27303 msgid ""
27304 " int\n"
27305 " guestfs_blockdev_setro (guestfs_h *g,\n"
27306 "                         const char *device);\n"
27307 "\n"
27308 msgstr ""
27309 " int\n"
27310 " guestfs_blockdev_setro (guestfs_h *g,\n"
27311 "                         const char *device);\n"
27312 "\n"
27313
27314 #. type: =head2
27315 #: ../src/guestfs-actions.pod:869
27316 msgid "guestfs_blockdev_setrw"
27317 msgstr "guestfs_blockdev_setrw"
27318
27319 #. type: verbatim
27320 #: ../src/guestfs-actions.pod:871
27321 #, no-wrap
27322 msgid ""
27323 " int\n"
27324 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27325 "                         const char *device);\n"
27326 "\n"
27327 msgstr ""
27328 " int\n"
27329 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27330 "                         const char *device);\n"
27331 "\n"
27332
27333 #. type: =head2
27334 #: ../src/guestfs-actions.pod:883
27335 msgid "guestfs_btrfs_filesystem_resize"
27336 msgstr "guestfs_btrfs_filesystem_resize"
27337
27338 #. type: verbatim
27339 #: ../src/guestfs-actions.pod:885
27340 #, no-wrap
27341 msgid ""
27342 " int\n"
27343 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27344 "                                  const char *mountpoint,\n"
27345 "                                  ...);\n"
27346 "\n"
27347 msgstr ""
27348 " int\n"
27349 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27350 "                                  const char *mountpoint,\n"
27351 "                                  ...);\n"
27352 "\n"
27353
27354 #. type: verbatim
27355 #: ../src/guestfs-actions.pod:895
27356 #, no-wrap
27357 msgid ""
27358 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27359 "\n"
27360 msgstr ""
27361 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27362 "\n"
27363
27364 #. type: textblock
27365 #: ../src/guestfs-actions.pod:918
27366 msgid "(Added in 1.11.17)"
27367 msgstr "(Додано у 1.11.17)"
27368
27369 #. type: =head2
27370 #: ../src/guestfs-actions.pod:920
27371 msgid "guestfs_btrfs_filesystem_resize_va"
27372 msgstr "guestfs_btrfs_filesystem_resize_va"
27373
27374 #. type: verbatim
27375 #: ../src/guestfs-actions.pod:922
27376 #, no-wrap
27377 msgid ""
27378 " int\n"
27379 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27380 "                                     const char *mountpoint,\n"
27381 "                                     va_list args);\n"
27382 "\n"
27383 msgstr ""
27384 " int\n"
27385 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27386 "                                     const char *mountpoint,\n"
27387 "                                     va_list args);\n"
27388 "\n"
27389
27390 #. type: textblock
27391 #: ../src/guestfs-actions.pod:927
27392 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27393 msgstr ""
27394
27395 #. type: =head2
27396 #: ../src/guestfs-actions.pod:931
27397 msgid "guestfs_btrfs_filesystem_resize_argv"
27398 msgstr "guestfs_btrfs_filesystem_resize_argv"
27399
27400 #. type: verbatim
27401 #: ../src/guestfs-actions.pod:933
27402 #, no-wrap
27403 msgid ""
27404 " int\n"
27405 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27406 "                                       const char *mountpoint,\n"
27407 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27408 "\n"
27409 msgstr ""
27410 " int\n"
27411 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27412 "                                       const char *mountpoint,\n"
27413 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27414 "\n"
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:938
27418 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27419 msgstr ""
27420
27421 #. type: =head2
27422 #: ../src/guestfs-actions.pod:942
27423 msgid "guestfs_case_sensitive_path"
27424 msgstr ""
27425
27426 #. type: verbatim
27427 #: ../src/guestfs-actions.pod:944
27428 #, no-wrap
27429 msgid ""
27430 " char *\n"
27431 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27432 "                              const char *path);\n"
27433 "\n"
27434 msgstr ""
27435
27436 #. type: textblock
27437 #: ../src/guestfs-actions.pod:970
27438 msgid ""
27439 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
27440 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27441 "how the directories were originally created under Windows)."
27442 msgstr ""
27443
27444 #. type: textblock
27445 #: ../src/guestfs-actions.pod:978
27446 msgid "See also C<guestfs_realpath>."
27447 msgstr ""
27448
27449 #. type: textblock
27450 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
27451 msgid "(Added in 1.0.75)"
27452 msgstr "(Додано у 1.0.75)"
27453
27454 #. type: =head2
27455 #: ../src/guestfs-actions.pod:985
27456 msgid "guestfs_cat"
27457 msgstr ""
27458
27459 #. type: verbatim
27460 #: ../src/guestfs-actions.pod:987
27461 #, no-wrap
27462 msgid ""
27463 " char *\n"
27464 " guestfs_cat (guestfs_h *g,\n"
27465 "              const char *path);\n"
27466 "\n"
27467 msgstr ""
27468
27469 #. type: textblock
27470 #: ../src/guestfs-actions.pod:993
27471 msgid ""
27472 "Note that this function cannot correctly handle binary files (specifically, "
27473 "files containing C<\\0> character which is treated as end of string).  For "
27474 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27475 "functions which have a more complex interface."
27476 msgstr ""
27477
27478 #. type: textblock
27479 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
27480 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
27481 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
27482 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
27483 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
27484 #: ../src/guestfs-actions.pod:8023
27485 msgid "(Added in 0.4)"
27486 msgstr "(Додано у 0.4)"
27487
27488 #. type: =head2
27489 #: ../src/guestfs-actions.pod:1006
27490 msgid "guestfs_checksum"
27491 msgstr ""
27492
27493 #. type: verbatim
27494 #: ../src/guestfs-actions.pod:1008
27495 #, no-wrap
27496 msgid ""
27497 " char *\n"
27498 " guestfs_checksum (guestfs_h *g,\n"
27499 "                   const char *csumtype,\n"
27500 "                   const char *path);\n"
27501 "\n"
27502 msgstr ""
27503
27504 #. type: textblock
27505 #: ../src/guestfs-actions.pod:1054
27506 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27507 msgstr ""
27508
27509 #. type: textblock
27510 #: ../src/guestfs-actions.pod:1056
27511 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27512 msgstr ""
27513
27514 #. type: textblock
27515 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
27516 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
27517 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
27518 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
27519 msgid "(Added in 1.0.2)"
27520 msgstr "(Додано у 1.0.2)"
27521
27522 #. type: =head2
27523 #: ../src/guestfs-actions.pod:1063
27524 msgid "guestfs_checksum_device"
27525 msgstr ""
27526
27527 #. type: verbatim
27528 #: ../src/guestfs-actions.pod:1065
27529 #, no-wrap
27530 msgid ""
27531 " char *\n"
27532 " guestfs_checksum_device (guestfs_h *g,\n"
27533 "                          const char *csumtype,\n"
27534 "                          const char *device);\n"
27535 "\n"
27536 msgstr ""
27537
27538 #. type: textblock
27539 #: ../src/guestfs-actions.pod:1070
27540 msgid ""
27541 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27542 "device named C<device>.  For the types of checksums supported see the "
27543 "C<guestfs_checksum> command."
27544 msgstr ""
27545
27546 #. type: textblock
27547 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
27548 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
27549 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
27550 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
27551 #: ../src/guestfs-actions.pod:8035
27552 msgid "(Added in 1.3.2)"
27553 msgstr "(Додано у 1.3.2)"
27554
27555 #. type: =head2
27556 #: ../src/guestfs-actions.pod:1079
27557 msgid "guestfs_checksums_out"
27558 msgstr ""
27559
27560 #. type: verbatim
27561 #: ../src/guestfs-actions.pod:1081
27562 #, no-wrap
27563 msgid ""
27564 " int\n"
27565 " guestfs_checksums_out (guestfs_h *g,\n"
27566 "                        const char *csumtype,\n"
27567 "                        const char *directory,\n"
27568 "                        const char *sumsfile);\n"
27569 "\n"
27570 msgstr ""
27571
27572 #. type: textblock
27573 #: ../src/guestfs-actions.pod:1101
27574 msgid "(Added in 1.3.7)"
27575 msgstr "(Додано у 1.3.7)"
27576
27577 #. type: =head2
27578 #: ../src/guestfs-actions.pod:1103
27579 msgid "guestfs_chmod"
27580 msgstr ""
27581
27582 #. type: verbatim
27583 #: ../src/guestfs-actions.pod:1105
27584 #, no-wrap
27585 msgid ""
27586 " int\n"
27587 " guestfs_chmod (guestfs_h *g,\n"
27588 "                int mode,\n"
27589 "                const char *path);\n"
27590 "\n"
27591 msgstr ""
27592
27593 #. type: =head2
27594 #: ../src/guestfs-actions.pod:1123
27595 msgid "guestfs_chown"
27596 msgstr ""
27597
27598 #. type: verbatim
27599 #: ../src/guestfs-actions.pod:1125
27600 #, no-wrap
27601 msgid ""
27602 " int\n"
27603 " guestfs_chown (guestfs_h *g,\n"
27604 "                int owner,\n"
27605 "                int group,\n"
27606 "                const char *path);\n"
27607 "\n"
27608 msgstr ""
27609
27610 #. type: =head2
27611 #: ../src/guestfs-actions.pod:1141
27612 msgid "guestfs_command"
27613 msgstr ""
27614
27615 #. type: verbatim
27616 #: ../src/guestfs-actions.pod:1143
27617 #, no-wrap
27618 msgid ""
27619 " char *\n"
27620 " guestfs_command (guestfs_h *g,\n"
27621 "                  char *const *arguments);\n"
27622 "\n"
27623 msgstr ""
27624
27625 #. type: textblock
27626 #: ../src/guestfs-actions.pod:1152
27627 msgid ""
27628 "The single parameter is an argv-style list of arguments.  The first element "
27629 "is the name of the program to run.  Subsequent elements are parameters.  The "
27630 "list must be non-empty (ie. must contain a program name).  Note that the "
27631 "command runs directly, and is I<not> invoked via the shell (see "
27632 "C<guestfs_sh>)."
27633 msgstr ""
27634
27635 #. type: textblock
27636 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
27637 #: ../src/guestfs-actions.pod:2027
27638 msgid "(Added in 0.9.1)"
27639 msgstr "(Додано у 0.9.1)"
27640
27641 #. type: =head2
27642 #: ../src/guestfs-actions.pod:1185
27643 msgid "guestfs_command_lines"
27644 msgstr ""
27645
27646 #. type: verbatim
27647 #: ../src/guestfs-actions.pod:1187
27648 #, no-wrap
27649 msgid ""
27650 " char **\n"
27651 " guestfs_command_lines (guestfs_h *g,\n"
27652 "                        char *const *arguments);\n"
27653 "\n"
27654 msgstr ""
27655
27656 #. type: textblock
27657 #: ../src/guestfs-actions.pod:1191
27658 msgid ""
27659 "This is the same as C<guestfs_command>, but splits the result into a list of "
27660 "lines."
27661 msgstr ""
27662
27663 #. type: textblock
27664 #: ../src/guestfs-actions.pod:1194
27665 msgid "See also: C<guestfs_sh_lines>"
27666 msgstr ""
27667
27668 #. type: =head2
27669 #: ../src/guestfs-actions.pod:1205
27670 msgid "guestfs_compress_device_out"
27671 msgstr ""
27672
27673 #. type: verbatim
27674 #: ../src/guestfs-actions.pod:1207
27675 #, no-wrap
27676 msgid ""
27677 " int\n"
27678 " guestfs_compress_device_out (guestfs_h *g,\n"
27679 "                              const char *ctype,\n"
27680 "                              const char *device,\n"
27681 "                              const char *zdevice,\n"
27682 "                              ...);\n"
27683 "\n"
27684 msgstr ""
27685
27686 #. type: verbatim
27687 #: ../src/guestfs-actions.pod:1219
27688 #, no-wrap
27689 msgid ""
27690 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27691 "\n"
27692 msgstr ""
27693
27694 #. type: textblock
27695 #: ../src/guestfs-actions.pod:1224
27696 msgid ""
27697 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27698 "C<guestfs_compress_out>."
27699 msgstr ""
27700
27701 #. type: textblock
27702 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
27703 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
27704 msgid "(Added in 1.13.15)"
27705 msgstr ""
27706
27707 #. type: =head2
27708 #: ../src/guestfs-actions.pod:1231
27709 msgid "guestfs_compress_device_out_va"
27710 msgstr ""
27711
27712 #. type: verbatim
27713 #: ../src/guestfs-actions.pod:1233
27714 #, no-wrap
27715 msgid ""
27716 " int\n"
27717 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27718 "                                 const char *ctype,\n"
27719 "                                 const char *device,\n"
27720 "                                 const char *zdevice,\n"
27721 "                                 va_list args);\n"
27722 "\n"
27723 msgstr ""
27724
27725 #. type: textblock
27726 #: ../src/guestfs-actions.pod:1240
27727 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27728 msgstr ""
27729
27730 #. type: =head2
27731 #: ../src/guestfs-actions.pod:1244
27732 msgid "guestfs_compress_device_out_argv"
27733 msgstr ""
27734
27735 #. type: verbatim
27736 #: ../src/guestfs-actions.pod:1246
27737 #, no-wrap
27738 msgid ""
27739 " int\n"
27740 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27741 "                                   const char *ctype,\n"
27742 "                                   const char *device,\n"
27743 "                                   const char *zdevice,\n"
27744 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27745 "\n"
27746 msgstr ""
27747
27748 #. type: textblock
27749 #: ../src/guestfs-actions.pod:1253
27750 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27751 msgstr ""
27752
27753 #. type: =head2
27754 #: ../src/guestfs-actions.pod:1257
27755 msgid "guestfs_compress_out"
27756 msgstr ""
27757
27758 #. type: verbatim
27759 #: ../src/guestfs-actions.pod:1259
27760 #, no-wrap
27761 msgid ""
27762 " int\n"
27763 " guestfs_compress_out (guestfs_h *g,\n"
27764 "                       const char *ctype,\n"
27765 "                       const char *file,\n"
27766 "                       const char *zfile,\n"
27767 "                       ...);\n"
27768 "\n"
27769 msgstr ""
27770
27771 #. type: verbatim
27772 #: ../src/guestfs-actions.pod:1271
27773 #, no-wrap
27774 msgid ""
27775 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27776 "\n"
27777 msgstr ""
27778
27779 #. type: =head2
27780 #: ../src/guestfs-actions.pod:1290
27781 msgid "guestfs_compress_out_va"
27782 msgstr ""
27783
27784 #. type: verbatim
27785 #: ../src/guestfs-actions.pod:1292
27786 #, no-wrap
27787 msgid ""
27788 " int\n"
27789 " guestfs_compress_out_va (guestfs_h *g,\n"
27790 "                          const char *ctype,\n"
27791 "                          const char *file,\n"
27792 "                          const char *zfile,\n"
27793 "                          va_list args);\n"
27794 "\n"
27795 msgstr ""
27796
27797 #. type: textblock
27798 #: ../src/guestfs-actions.pod:1299
27799 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27800 msgstr ""
27801
27802 #. type: =head2
27803 #: ../src/guestfs-actions.pod:1303
27804 msgid "guestfs_compress_out_argv"
27805 msgstr ""
27806
27807 #. type: verbatim
27808 #: ../src/guestfs-actions.pod:1305
27809 #, no-wrap
27810 msgid ""
27811 " int\n"
27812 " guestfs_compress_out_argv (guestfs_h *g,\n"
27813 "                            const char *ctype,\n"
27814 "                            const char *file,\n"
27815 "                            const char *zfile,\n"
27816 "                            const struct guestfs_compress_out_argv *optargs);\n"
27817 "\n"
27818 msgstr ""
27819
27820 #. type: textblock
27821 #: ../src/guestfs-actions.pod:1312
27822 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27823 msgstr ""
27824
27825 #. type: =head2
27826 #: ../src/guestfs-actions.pod:1316
27827 msgid "guestfs_config"
27828 msgstr ""
27829
27830 #. type: verbatim
27831 #: ../src/guestfs-actions.pod:1318
27832 #, no-wrap
27833 msgid ""
27834 " int\n"
27835 " guestfs_config (guestfs_h *g,\n"
27836 "                 const char *qemuparam,\n"
27837 "                 const char *qemuvalue);\n"
27838 "\n"
27839 msgstr ""
27840
27841 #. type: =head2
27842 #: ../src/guestfs-actions.pod:1336
27843 msgid "guestfs_copy_device_to_device"
27844 msgstr ""
27845
27846 #. type: verbatim
27847 #: ../src/guestfs-actions.pod:1338
27848 #, no-wrap
27849 msgid ""
27850 " int\n"
27851 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27852 "                                const char *src,\n"
27853 "                                const char *dest,\n"
27854 "                                ...);\n"
27855 "\n"
27856 msgstr ""
27857
27858 #. type: verbatim
27859 #: ../src/guestfs-actions.pod:1349
27860 #, no-wrap
27861 msgid ""
27862 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27863 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27864 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27865 "\n"
27866 msgstr ""
27867
27868 #. type: textblock
27869 #: ../src/guestfs-actions.pod:1353
27870 msgid ""
27871 "The four calls C<guestfs_copy_device_to_device>, "
27872 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27873 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27874 "destination (device|file)."
27875 msgstr ""
27876
27877 #. type: textblock
27878 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27879 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27880 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27881 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27882 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27883 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
27884 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
27885 #: ../src/guestfs-actions.pod:8271
27886 msgid ""
27887 "This long-running command can generate progress notification messages so "
27888 "that the caller can display a progress bar or indicator.  To receive these "
27889 "messages, the caller must register a progress event callback.  See L<guestfs"
27890 "(3)/GUESTFS_EVENT_PROGRESS>."
27891 msgstr ""
27892
27893 #. type: textblock
27894 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27895 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27896 #: ../src/guestfs-actions.pod:6042
27897 #, fuzzy
27898 #| msgid "(Added in 1.3.5)"
27899 msgid "(Added in 1.13.25)"
27900 msgstr "(Додано у 1.3.5)"
27901
27902 #. type: =head2
27903 #: ../src/guestfs-actions.pod:1381
27904 msgid "guestfs_copy_device_to_device_va"
27905 msgstr ""
27906
27907 #. type: verbatim
27908 #: ../src/guestfs-actions.pod:1383
27909 #, no-wrap
27910 msgid ""
27911 " int\n"
27912 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27913 "                                   const char *src,\n"
27914 "                                   const char *dest,\n"
27915 "                                   va_list args);\n"
27916 "\n"
27917 msgstr ""
27918
27919 #. type: textblock
27920 #: ../src/guestfs-actions.pod:1389
27921 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27922 msgstr ""
27923
27924 #. type: =head2
27925 #: ../src/guestfs-actions.pod:1393
27926 msgid "guestfs_copy_device_to_device_argv"
27927 msgstr ""
27928
27929 #. type: verbatim
27930 #: ../src/guestfs-actions.pod:1395
27931 #, no-wrap
27932 msgid ""
27933 " int\n"
27934 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27935 "                                     const char *src,\n"
27936 "                                     const char *dest,\n"
27937 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27938 "\n"
27939 msgstr ""
27940
27941 #. type: textblock
27942 #: ../src/guestfs-actions.pod:1401
27943 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27944 msgstr ""
27945
27946 #. type: =head2
27947 #: ../src/guestfs-actions.pod:1405
27948 msgid "guestfs_copy_device_to_file"
27949 msgstr ""
27950
27951 #. type: verbatim
27952 #: ../src/guestfs-actions.pod:1407
27953 #, no-wrap
27954 msgid ""
27955 " int\n"
27956 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27957 "                              const char *src,\n"
27958 "                              const char *dest,\n"
27959 "                              ...);\n"
27960 "\n"
27961 msgstr ""
27962
27963 #. type: verbatim
27964 #: ../src/guestfs-actions.pod:1418
27965 #, no-wrap
27966 msgid ""
27967 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27968 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27969 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27970 "\n"
27971 msgstr ""
27972
27973 #. type: textblock
27974 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27975 #: ../src/guestfs-actions.pod:1528
27976 msgid ""
27977 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27978 msgstr ""
27979
27980 #. type: =head2
27981 #: ../src/guestfs-actions.pod:1434
27982 msgid "guestfs_copy_device_to_file_va"
27983 msgstr ""
27984
27985 #. type: verbatim
27986 #: ../src/guestfs-actions.pod:1436
27987 #, no-wrap
27988 msgid ""
27989 " int\n"
27990 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27991 "                                 const char *src,\n"
27992 "                                 const char *dest,\n"
27993 "                                 va_list args);\n"
27994 "\n"
27995 msgstr ""
27996
27997 #. type: textblock
27998 #: ../src/guestfs-actions.pod:1442
27999 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28000 msgstr ""
28001
28002 #. type: =head2
28003 #: ../src/guestfs-actions.pod:1446
28004 msgid "guestfs_copy_device_to_file_argv"
28005 msgstr ""
28006
28007 #. type: verbatim
28008 #: ../src/guestfs-actions.pod:1448
28009 #, no-wrap
28010 msgid ""
28011 " int\n"
28012 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28013 "                                   const char *src,\n"
28014 "                                   const char *dest,\n"
28015 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
28016 "\n"
28017 msgstr ""
28018
28019 #. type: textblock
28020 #: ../src/guestfs-actions.pod:1454
28021 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28022 msgstr ""
28023
28024 #. type: =head2
28025 #: ../src/guestfs-actions.pod:1458
28026 msgid "guestfs_copy_file_to_device"
28027 msgstr ""
28028
28029 #. type: verbatim
28030 #: ../src/guestfs-actions.pod:1460
28031 #, no-wrap
28032 msgid ""
28033 " int\n"
28034 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28035 "                              const char *src,\n"
28036 "                              const char *dest,\n"
28037 "                              ...);\n"
28038 "\n"
28039 msgstr ""
28040
28041 #. type: verbatim
28042 #: ../src/guestfs-actions.pod:1471
28043 #, no-wrap
28044 msgid ""
28045 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28046 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28047 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28048 "\n"
28049 msgstr ""
28050
28051 #. type: =head2
28052 #: ../src/guestfs-actions.pod:1487
28053 msgid "guestfs_copy_file_to_device_va"
28054 msgstr ""
28055
28056 #. type: verbatim
28057 #: ../src/guestfs-actions.pod:1489
28058 #, no-wrap
28059 msgid ""
28060 " int\n"
28061 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28062 "                                 const char *src,\n"
28063 "                                 const char *dest,\n"
28064 "                                 va_list args);\n"
28065 "\n"
28066 msgstr ""
28067
28068 #. type: textblock
28069 #: ../src/guestfs-actions.pod:1495
28070 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28071 msgstr ""
28072
28073 #. type: =head2
28074 #: ../src/guestfs-actions.pod:1499
28075 msgid "guestfs_copy_file_to_device_argv"
28076 msgstr ""
28077
28078 #. type: verbatim
28079 #: ../src/guestfs-actions.pod:1501
28080 #, no-wrap
28081 msgid ""
28082 " int\n"
28083 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28084 "                                   const char *src,\n"
28085 "                                   const char *dest,\n"
28086 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
28087 "\n"
28088 msgstr ""
28089
28090 #. type: textblock
28091 #: ../src/guestfs-actions.pod:1507
28092 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28093 msgstr ""
28094
28095 #. type: =head2
28096 #: ../src/guestfs-actions.pod:1511
28097 msgid "guestfs_copy_file_to_file"
28098 msgstr ""
28099
28100 #. type: verbatim
28101 #: ../src/guestfs-actions.pod:1513
28102 #, no-wrap
28103 msgid ""
28104 " int\n"
28105 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28106 "                            const char *src,\n"
28107 "                            const char *dest,\n"
28108 "                            ...);\n"
28109 "\n"
28110 msgstr ""
28111
28112 #. type: verbatim
28113 #: ../src/guestfs-actions.pod:1524
28114 #, no-wrap
28115 msgid ""
28116 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28117 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28118 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28119 "\n"
28120 msgstr ""
28121
28122 #. type: textblock
28123 #: ../src/guestfs-actions.pod:1531
28124 msgid ""
28125 "This is B<not> the function you want for copying files.  This is for copying "
28126 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
28127 "C<guestfs_mv> for general file copying and moving functions."
28128 msgstr ""
28129
28130 #. type: =head2
28131 #: ../src/guestfs-actions.pod:1545
28132 msgid "guestfs_copy_file_to_file_va"
28133 msgstr ""
28134
28135 #. type: verbatim
28136 #: ../src/guestfs-actions.pod:1547
28137 #, no-wrap
28138 msgid ""
28139 " int\n"
28140 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28141 "                               const char *src,\n"
28142 "                               const char *dest,\n"
28143 "                               va_list args);\n"
28144 "\n"
28145 msgstr ""
28146
28147 #. type: textblock
28148 #: ../src/guestfs-actions.pod:1553
28149 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28150 msgstr ""
28151
28152 #. type: =head2
28153 #: ../src/guestfs-actions.pod:1557
28154 msgid "guestfs_copy_file_to_file_argv"
28155 msgstr ""
28156
28157 #. type: verbatim
28158 #: ../src/guestfs-actions.pod:1559
28159 #, no-wrap
28160 msgid ""
28161 " int\n"
28162 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28163 "                                 const char *src,\n"
28164 "                                 const char *dest,\n"
28165 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
28166 "\n"
28167 msgstr ""
28168
28169 #. type: textblock
28170 #: ../src/guestfs-actions.pod:1565
28171 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28172 msgstr ""
28173
28174 #. type: =head2
28175 #: ../src/guestfs-actions.pod:1569
28176 msgid "guestfs_copy_size"
28177 msgstr ""
28178
28179 #. type: verbatim
28180 #: ../src/guestfs-actions.pod:1571
28181 #, no-wrap
28182 msgid ""
28183 " int\n"
28184 " guestfs_copy_size (guestfs_h *g,\n"
28185 "                    const char *src,\n"
28186 "                    const char *dest,\n"
28187 "                    int64_t size);\n"
28188 "\n"
28189 msgstr ""
28190
28191 #. type: textblock
28192 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
28193 msgid ""
28194 "I<This function is deprecated.> In new code, use the L</"
28195 "guestfs_copy_device_to_device> call instead."
28196 msgstr ""
28197
28198 #. type: textblock
28199 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
28200 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
28201 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
28202 msgid "(Added in 1.0.87)"
28203 msgstr "(Додано у 1.0.87)"
28204
28205 #. type: =head2
28206 #: ../src/guestfs-actions.pod:1599
28207 msgid "guestfs_cp"
28208 msgstr ""
28209
28210 #. type: verbatim
28211 #: ../src/guestfs-actions.pod:1601
28212 #, no-wrap
28213 msgid ""
28214 " int\n"
28215 " guestfs_cp (guestfs_h *g,\n"
28216 "             const char *src,\n"
28217 "             const char *dest);\n"
28218 "\n"
28219 msgstr ""
28220
28221 #. type: textblock
28222 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
28223 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
28224 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
28225 #: ../src/guestfs-actions.pod:6056
28226 msgid "(Added in 1.0.18)"
28227 msgstr "(Додано у 1.0.18)"
28228
28229 #. type: =head2
28230 #: ../src/guestfs-actions.pod:1613
28231 msgid "guestfs_cp_a"
28232 msgstr ""
28233
28234 #. type: verbatim
28235 #: ../src/guestfs-actions.pod:1615
28236 #, no-wrap
28237 msgid ""
28238 " int\n"
28239 " guestfs_cp_a (guestfs_h *g,\n"
28240 "               const char *src,\n"
28241 "               const char *dest);\n"
28242 "\n"
28243 msgstr ""
28244
28245 #. type: =head2
28246 #: ../src/guestfs-actions.pod:1627
28247 msgid "guestfs_dd"
28248 msgstr ""
28249
28250 #. type: verbatim
28251 #: ../src/guestfs-actions.pod:1629
28252 #, no-wrap
28253 msgid ""
28254 " int\n"
28255 " guestfs_dd (guestfs_h *g,\n"
28256 "             const char *src,\n"
28257 "             const char *dest);\n"
28258 "\n"
28259 msgstr ""
28260
28261 #. type: textblock
28262 #: ../src/guestfs-actions.pod:1646
28263 msgid ""
28264 "If the destination is a device, it must be as large or larger than the "
28265 "source file or device, otherwise the copy will fail.  This command cannot do "
28266 "partial copies (see C<guestfs_copy_device_to_device>)."
28267 msgstr ""
28268
28269 #. type: =head2
28270 #: ../src/guestfs-actions.pod:1655
28271 msgid "guestfs_df"
28272 msgstr ""
28273
28274 #. type: verbatim
28275 #: ../src/guestfs-actions.pod:1657
28276 #, no-wrap
28277 msgid ""
28278 " char *\n"
28279 " guestfs_df (guestfs_h *g);\n"
28280 "\n"
28281 msgstr ""
28282
28283 #. type: textblock
28284 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
28285 msgid ""
28286 "This command is mostly useful for interactive sessions.  It is I<not> "
28287 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
28288 "from programs."
28289 msgstr ""
28290
28291 #. type: textblock
28292 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28293 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28294 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28295 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
28296 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
28297 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
28298 #: ../src/guestfs-actions.pod:8114
28299 msgid "(Added in 1.0.54)"
28300 msgstr "(Додано у 1.0.54)"
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:1671
28304 msgid "guestfs_df_h"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:1673
28309 #, no-wrap
28310 msgid ""
28311 " char *\n"
28312 " guestfs_df_h (guestfs_h *g);\n"
28313 "\n"
28314 msgstr ""
28315
28316 #. type: =head2
28317 #: ../src/guestfs-actions.pod:1688
28318 msgid "guestfs_dmesg"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../src/guestfs-actions.pod:1690
28323 #, no-wrap
28324 msgid ""
28325 " char *\n"
28326 " guestfs_dmesg (guestfs_h *g);\n"
28327 "\n"
28328 msgstr ""
28329
28330 #. type: textblock
28331 #: ../src/guestfs-actions.pod:1697
28332 msgid ""
28333 "Another way to get the same information is to enable verbose messages with "
28334 "C<guestfs_set_verbose> or by setting the environment variable "
28335 "C<LIBGUESTFS_DEBUG=1> before running the program."
28336 msgstr ""
28337
28338 #. type: =head2
28339 #: ../src/guestfs-actions.pod:1707
28340 msgid "guestfs_download"
28341 msgstr ""
28342
28343 #. type: verbatim
28344 #: ../src/guestfs-actions.pod:1709
28345 #, no-wrap
28346 msgid ""
28347 " int\n"
28348 " guestfs_download (guestfs_h *g,\n"
28349 "                   const char *remotefilename,\n"
28350 "                   const char *filename);\n"
28351 "\n"
28352 msgstr ""
28353
28354 #. type: textblock
28355 #: ../src/guestfs-actions.pod:1719
28356 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28357 msgstr ""
28358
28359 #. type: =head2
28360 #: ../src/guestfs-actions.pod:1730
28361 msgid "guestfs_download_offset"
28362 msgstr ""
28363
28364 #. type: verbatim
28365 #: ../src/guestfs-actions.pod:1732
28366 #, no-wrap
28367 msgid ""
28368 " int\n"
28369 " guestfs_download_offset (guestfs_h *g,\n"
28370 "                          const char *remotefilename,\n"
28371 "                          const char *filename,\n"
28372 "                          int64_t offset,\n"
28373 "                          int64_t size);\n"
28374 "\n"
28375 msgstr ""
28376
28377 #. type: textblock
28378 #: ../src/guestfs-actions.pod:1745
28379 msgid ""
28380 "Note that there is no limit on the amount of data that can be downloaded "
28381 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28382 "full amount unless an error occurs."
28383 msgstr ""
28384
28385 #. type: textblock
28386 #: ../src/guestfs-actions.pod:1750
28387 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28388 msgstr ""
28389
28390 #. type: textblock
28391 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
28392 msgid "(Added in 1.5.17)"
28393 msgstr "(Додано у 1.5.17)"
28394
28395 #. type: =head2
28396 #: ../src/guestfs-actions.pod:1761
28397 msgid "guestfs_drop_caches"
28398 msgstr ""
28399
28400 #. type: verbatim
28401 #: ../src/guestfs-actions.pod:1763
28402 #, no-wrap
28403 msgid ""
28404 " int\n"
28405 " guestfs_drop_caches (guestfs_h *g,\n"
28406 "                      int whattodrop);\n"
28407 "\n"
28408 msgstr ""
28409
28410 #. type: =head2
28411 #: ../src/guestfs-actions.pod:1781
28412 msgid "guestfs_du"
28413 msgstr ""
28414
28415 #. type: verbatim
28416 #: ../src/guestfs-actions.pod:1783
28417 #, no-wrap
28418 msgid ""
28419 " int64_t\n"
28420 " guestfs_du (guestfs_h *g,\n"
28421 "             const char *path);\n"
28422 "\n"
28423 msgstr ""
28424
28425 #. type: =head2
28426 #: ../src/guestfs-actions.pod:1806
28427 msgid "guestfs_e2fsck_f"
28428 msgstr ""
28429
28430 #. type: verbatim
28431 #: ../src/guestfs-actions.pod:1808
28432 #, no-wrap
28433 msgid ""
28434 " int\n"
28435 " guestfs_e2fsck_f (guestfs_h *g,\n"
28436 "                   const char *device);\n"
28437 "\n"
28438 msgstr ""
28439
28440 #. type: textblock
28441 #: ../src/guestfs-actions.pod:1816
28442 msgid ""
28443 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
28444 "Normally you should use C<guestfs_fsck>."
28445 msgstr ""
28446
28447 #. type: textblock
28448 #: ../src/guestfs-actions.pod:1821
28449 msgid "(Added in 1.0.29)"
28450 msgstr "(Додано у 1.0.29)"
28451
28452 #. type: =head2
28453 #: ../src/guestfs-actions.pod:1823
28454 msgid "guestfs_echo_daemon"
28455 msgstr "guestfs_echo_daemon"
28456
28457 #. type: verbatim
28458 #: ../src/guestfs-actions.pod:1825
28459 #, no-wrap
28460 msgid ""
28461 " char *\n"
28462 " guestfs_echo_daemon (guestfs_h *g,\n"
28463 "                      char *const *words);\n"
28464 "\n"
28465 msgstr ""
28466 " char *\n"
28467 " guestfs_echo_daemon (guestfs_h *g,\n"
28468 "                      char *const *words);\n"
28469 "\n"
28470
28471 #. type: textblock
28472 #: ../src/guestfs-actions.pod:1834
28473 msgid "See also C<guestfs_ping_daemon>."
28474 msgstr ""
28475
28476 #. type: textblock
28477 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
28478 #: ../src/guestfs-actions.pod:6926
28479 msgid "(Added in 1.0.69)"
28480 msgstr "(Додано у 1.0.69)"
28481
28482 #. type: =head2
28483 #: ../src/guestfs-actions.pod:1841
28484 msgid "guestfs_egrep"
28485 msgstr "guestfs_egrep"
28486
28487 #. type: verbatim
28488 #: ../src/guestfs-actions.pod:1843
28489 #, no-wrap
28490 msgid ""
28491 " char **\n"
28492 " guestfs_egrep (guestfs_h *g,\n"
28493 "                const char *regex,\n"
28494 "                const char *path);\n"
28495 "\n"
28496 msgstr ""
28497 " char **\n"
28498 " guestfs_egrep (guestfs_h *g,\n"
28499 "                const char *regex,\n"
28500 "                const char *path);\n"
28501 "\n"
28502
28503 #. type: textblock
28504 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
28505 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
28506 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
28507 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
28508 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
28509 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
28510 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
28511 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
28512 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
28513 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
28514 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
28515 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
28516 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
28517 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
28518 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
28519 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
28520 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
28521 msgid "(Added in 1.0.66)"
28522 msgstr "(Додано у 1.0.66)"
28523
28524 #. type: =head2
28525 #: ../src/guestfs-actions.pod:1860
28526 msgid "guestfs_egrepi"
28527 msgstr "guestfs_egrepi"
28528
28529 #. type: verbatim
28530 #: ../src/guestfs-actions.pod:1862
28531 #, no-wrap
28532 msgid ""
28533 " char **\n"
28534 " guestfs_egrepi (guestfs_h *g,\n"
28535 "                 const char *regex,\n"
28536 "                 const char *path);\n"
28537 "\n"
28538 msgstr ""
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:1879
28542 msgid "guestfs_equal"
28543 msgstr ""
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:1881
28547 #, no-wrap
28548 msgid ""
28549 " int\n"
28550 " guestfs_equal (guestfs_h *g,\n"
28551 "                const char *file1,\n"
28552 "                const char *file2);\n"
28553 "\n"
28554 msgstr ""
28555
28556 #. type: =head2
28557 #: ../src/guestfs-actions.pod:1895
28558 msgid "guestfs_exists"
28559 msgstr ""
28560
28561 #. type: verbatim
28562 #: ../src/guestfs-actions.pod:1897
28563 #, no-wrap
28564 msgid ""
28565 " int\n"
28566 " guestfs_exists (guestfs_h *g,\n"
28567 "                 const char *path);\n"
28568 "\n"
28569 msgstr ""
28570
28571 #. type: textblock
28572 #: ../src/guestfs-actions.pod:1904
28573 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28574 msgstr ""
28575
28576 #. type: =head2
28577 #: ../src/guestfs-actions.pod:1910
28578 msgid "guestfs_fallocate"
28579 msgstr ""
28580
28581 #. type: verbatim
28582 #: ../src/guestfs-actions.pod:1912
28583 #, no-wrap
28584 msgid ""
28585 " int\n"
28586 " guestfs_fallocate (guestfs_h *g,\n"
28587 "                    const char *path,\n"
28588 "                    int len);\n"
28589 "\n"
28590 msgstr ""
28591
28592 #. type: textblock
28593 #: ../src/guestfs-actions.pod:1917
28594 msgid ""
28595 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28596 "call instead."
28597 msgstr ""
28598
28599 #. type: =head2
28600 #: ../src/guestfs-actions.pod:1936
28601 msgid "guestfs_fallocate64"
28602 msgstr ""
28603
28604 #. type: verbatim
28605 #: ../src/guestfs-actions.pod:1938
28606 #, no-wrap
28607 msgid ""
28608 " int\n"
28609 " guestfs_fallocate64 (guestfs_h *g,\n"
28610 "                      const char *path,\n"
28611 "                      int64_t len);\n"
28612 "\n"
28613 msgstr ""
28614
28615 #. type: textblock
28616 #: ../src/guestfs-actions.pod:1947
28617 msgid ""
28618 "Note that this call allocates disk blocks for the file.  To create a sparse "
28619 "file use C<guestfs_truncate_size> instead."
28620 msgstr ""
28621
28622 #. type: textblock
28623 #: ../src/guestfs-actions.pod:1950
28624 msgid ""
28625 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28626 "oversight it only allowed 30 bit lengths to be specified, effectively "
28627 "limiting the maximum size of files created through that call to 1GB."
28628 msgstr ""
28629
28630 #. type: textblock
28631 #: ../src/guestfs-actions.pod:1961
28632 msgid "(Added in 1.3.17)"
28633 msgstr "(Додано у 1.3.17)"
28634
28635 #. type: =head2
28636 #: ../src/guestfs-actions.pod:1963
28637 msgid "guestfs_fgrep"
28638 msgstr ""
28639
28640 #. type: verbatim
28641 #: ../src/guestfs-actions.pod:1965
28642 #, no-wrap
28643 msgid ""
28644 " char **\n"
28645 " guestfs_fgrep (guestfs_h *g,\n"
28646 "                const char *pattern,\n"
28647 "                const char *path);\n"
28648 "\n"
28649 msgstr ""
28650
28651 #. type: =head2
28652 #: ../src/guestfs-actions.pod:1982
28653 msgid "guestfs_fgrepi"
28654 msgstr ""
28655
28656 #. type: verbatim
28657 #: ../src/guestfs-actions.pod:1984
28658 #, no-wrap
28659 msgid ""
28660 " char **\n"
28661 " guestfs_fgrepi (guestfs_h *g,\n"
28662 "                 const char *pattern,\n"
28663 "                 const char *path);\n"
28664 "\n"
28665 msgstr ""
28666
28667 #. type: =head2
28668 #: ../src/guestfs-actions.pod:2001
28669 msgid "guestfs_file"
28670 msgstr ""
28671
28672 #. type: verbatim
28673 #: ../src/guestfs-actions.pod:2003
28674 #, no-wrap
28675 msgid ""
28676 " char *\n"
28677 " guestfs_file (guestfs_h *g,\n"
28678 "               const char *path);\n"
28679 "\n"
28680 msgstr ""
28681
28682 #. type: textblock
28683 #: ../src/guestfs-actions.pod:2021
28684 msgid ""
28685 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28686 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28687 msgstr ""
28688
28689 #. type: =head2
28690 #: ../src/guestfs-actions.pod:2029
28691 msgid "guestfs_file_architecture"
28692 msgstr ""
28693
28694 #. type: verbatim
28695 #: ../src/guestfs-actions.pod:2031
28696 #, no-wrap
28697 msgid ""
28698 " char *\n"
28699 " guestfs_file_architecture (guestfs_h *g,\n"
28700 "                            const char *filename);\n"
28701 "\n"
28702 msgstr ""
28703
28704 #. type: textblock
28705 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
28706 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
28707 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
28708 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
28709 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
28710 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
28711 #: ../src/guestfs-actions.pod:4008
28712 msgid "(Added in 1.5.3)"
28713 msgstr "(Додано у 1.5.3)"
28714
28715 #. type: =head2
28716 #: ../src/guestfs-actions.pod:2141
28717 msgid "guestfs_filesize"
28718 msgstr ""
28719
28720 #. type: verbatim
28721 #: ../src/guestfs-actions.pod:2143
28722 #, no-wrap
28723 msgid ""
28724 " int64_t\n"
28725 " guestfs_filesize (guestfs_h *g,\n"
28726 "                   const char *file);\n"
28727 "\n"
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../src/guestfs-actions.pod:2149
28732 msgid ""
28733 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28734 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28735 "devices, use C<guestfs_blockdev_getsize64>."
28736 msgstr ""
28737
28738 #. type: textblock
28739 #: ../src/guestfs-actions.pod:2155
28740 msgid "(Added in 1.0.82)"
28741 msgstr "(Додано у 1.0.82)"
28742
28743 #. type: =head2
28744 #: ../src/guestfs-actions.pod:2157
28745 msgid "guestfs_fill"
28746 msgstr ""
28747
28748 #. type: verbatim
28749 #: ../src/guestfs-actions.pod:2159
28750 #, no-wrap
28751 msgid ""
28752 " int\n"
28753 " guestfs_fill (guestfs_h *g,\n"
28754 "               int c,\n"
28755 "               int len,\n"
28756 "               const char *path);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../src/guestfs-actions.pod:2169
28762 msgid ""
28763 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28764 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28765 "bytes use C<guestfs_fill_pattern>."
28766 msgstr ""
28767
28768 #. type: textblock
28769 #: ../src/guestfs-actions.pod:2181
28770 msgid "(Added in 1.0.79)"
28771 msgstr "(Додано у 1.0.79)"
28772
28773 #. type: =head2
28774 #: ../src/guestfs-actions.pod:2183
28775 msgid "guestfs_fill_pattern"
28776 msgstr ""
28777
28778 #. type: verbatim
28779 #: ../src/guestfs-actions.pod:2185
28780 #, no-wrap
28781 msgid ""
28782 " int\n"
28783 " guestfs_fill_pattern (guestfs_h *g,\n"
28784 "                       const char *pattern,\n"
28785 "                       int len,\n"
28786 "                       const char *path);\n"
28787 "\n"
28788 msgstr ""
28789
28790 #. type: textblock
28791 #: ../src/guestfs-actions.pod:2191
28792 msgid ""
28793 "This function is like C<guestfs_fill> except that it creates a new file of "
28794 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28795 "pattern is truncated if necessary to ensure the length of the file is "
28796 "exactly C<len> bytes."
28797 msgstr ""
28798
28799 #. type: textblock
28800 #: ../src/guestfs-actions.pod:2203
28801 msgid "(Added in 1.3.12)"
28802 msgstr "(Додано у 1.3.12)"
28803
28804 #. type: =head2
28805 #: ../src/guestfs-actions.pod:2205
28806 msgid "guestfs_find"
28807 msgstr ""
28808
28809 #. type: verbatim
28810 #: ../src/guestfs-actions.pod:2207
28811 #, no-wrap
28812 msgid ""
28813 " char **\n"
28814 " guestfs_find (guestfs_h *g,\n"
28815 "               const char *directory);\n"
28816 "\n"
28817 msgstr ""
28818
28819 #. type: textblock
28820 #: ../src/guestfs-actions.pod:2223
28821 msgid ""
28822 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28823 msgstr ""
28824
28825 #. type: textblock
28826 #: ../src/guestfs-actions.pod:2236
28827 msgid "See also C<guestfs_find0>."
28828 msgstr ""
28829
28830 #. type: textblock
28831 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
28832 #: ../src/guestfs-actions.pod:6474
28833 msgid "(Added in 1.0.27)"
28834 msgstr "(Додано у 1.0.27)"
28835
28836 #. type: =head2
28837 #: ../src/guestfs-actions.pod:2247
28838 msgid "guestfs_find0"
28839 msgstr ""
28840
28841 #. type: verbatim
28842 #: ../src/guestfs-actions.pod:2249
28843 #, no-wrap
28844 msgid ""
28845 " int\n"
28846 " guestfs_find0 (guestfs_h *g,\n"
28847 "                const char *directory,\n"
28848 "                const char *files);\n"
28849 "\n"
28850 msgstr ""
28851
28852 #. type: textblock
28853 #: ../src/guestfs-actions.pod:2258
28854 msgid ""
28855 "This command works the same way as C<guestfs_find> with the following "
28856 "exceptions:"
28857 msgstr ""
28858
28859 #. type: textblock
28860 #: ../src/guestfs-actions.pod:2285
28861 msgid "(Added in 1.0.74)"
28862 msgstr "(Додано у 1.0.74)"
28863
28864 #. type: =head2
28865 #: ../src/guestfs-actions.pod:2287
28866 msgid "guestfs_findfs_label"
28867 msgstr ""
28868
28869 #. type: verbatim
28870 #: ../src/guestfs-actions.pod:2289
28871 #, no-wrap
28872 msgid ""
28873 " char *\n"
28874 " guestfs_findfs_label (guestfs_h *g,\n"
28875 "                       const char *label);\n"
28876 "\n"
28877 msgstr ""
28878
28879 #. type: textblock
28880 #: ../src/guestfs-actions.pod:2297
28881 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28882 msgstr ""
28883
28884 #. type: =head2
28885 #: ../src/guestfs-actions.pod:2304
28886 msgid "guestfs_findfs_uuid"
28887 msgstr ""
28888
28889 #. type: verbatim
28890 #: ../src/guestfs-actions.pod:2306
28891 #, no-wrap
28892 msgid ""
28893 " char *\n"
28894 " guestfs_findfs_uuid (guestfs_h *g,\n"
28895 "                      const char *uuid);\n"
28896 "\n"
28897 msgstr ""
28898
28899 #. type: textblock
28900 #: ../src/guestfs-actions.pod:2314
28901 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28902 msgstr ""
28903
28904 #. type: =head2
28905 #: ../src/guestfs-actions.pod:2321
28906 msgid "guestfs_fsck"
28907 msgstr ""
28908
28909 #. type: verbatim
28910 #: ../src/guestfs-actions.pod:2323
28911 #, no-wrap
28912 msgid ""
28913 " int\n"
28914 " guestfs_fsck (guestfs_h *g,\n"
28915 "               const char *fstype,\n"
28916 "               const char *device);\n"
28917 "\n"
28918 msgstr ""
28919
28920 #. type: textblock
28921 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
28922 msgid "(Added in 1.0.16)"
28923 msgstr "(Додано у 1.0.16)"
28924
28925 #. type: =head2
28926 #: ../src/guestfs-actions.pod:2360
28927 msgid "guestfs_get_append"
28928 msgstr ""
28929
28930 #. type: verbatim
28931 #: ../src/guestfs-actions.pod:2362
28932 #, no-wrap
28933 msgid ""
28934 " const char *\n"
28935 " guestfs_get_append (guestfs_h *g);\n"
28936 "\n"
28937 msgstr ""
28938
28939 #. type: textblock
28940 #: ../src/guestfs-actions.pod:2370
28941 msgid ""
28942 "This function returns a string which may be NULL.  There is no way to return "
28943 "an error from this function.  The string is owned by the guest handle and "
28944 "must I<not> be freed."
28945 msgstr ""
28946
28947 #. type: textblock
28948 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
28949 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
28950 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
28951 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
28952 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
28953 msgid "(Added in 1.0.26)"
28954 msgstr "(Додано у 1.0.26)"
28955
28956 #. type: =head2
28957 #: ../src/guestfs-actions.pod:2376
28958 msgid "guestfs_get_attach_method"
28959 msgstr ""
28960
28961 #. type: verbatim
28962 #: ../src/guestfs-actions.pod:2378
28963 #, no-wrap
28964 msgid ""
28965 " char *\n"
28966 " guestfs_get_attach_method (guestfs_h *g);\n"
28967 "\n"
28968 msgstr ""
28969
28970 #. type: textblock
28971 #: ../src/guestfs-actions.pod:2381
28972 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28973 msgstr ""
28974
28975 #. type: textblock
28976 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
28977 msgid "(Added in 1.9.8)"
28978 msgstr "(Додано у 1.9.8)"
28979
28980 #. type: =head2
28981 #: ../src/guestfs-actions.pod:2388
28982 msgid "guestfs_get_autosync"
28983 msgstr ""
28984
28985 #. type: verbatim
28986 #: ../src/guestfs-actions.pod:2390
28987 #, no-wrap
28988 msgid ""
28989 " int\n"
28990 " guestfs_get_autosync (guestfs_h *g);\n"
28991 "\n"
28992 msgstr ""
28993
28994 #. type: =head2
28995 #: ../src/guestfs-actions.pod:2399
28996 msgid "guestfs_get_direct"
28997 msgstr ""
28998
28999 #. type: verbatim
29000 #: ../src/guestfs-actions.pod:2401
29001 #, no-wrap
29002 msgid ""
29003 " int\n"
29004 " guestfs_get_direct (guestfs_h *g);\n"
29005 "\n"
29006 msgstr ""
29007
29008 #. type: textblock
29009 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
29010 msgid "(Added in 1.0.72)"
29011 msgstr "(Додано у 1.0.72)"
29012
29013 #. type: =head2
29014 #: ../src/guestfs-actions.pod:2410
29015 msgid "guestfs_get_e2label"
29016 msgstr ""
29017
29018 #. type: verbatim
29019 #: ../src/guestfs-actions.pod:2412
29020 #, no-wrap
29021 msgid ""
29022 " char *\n"
29023 " guestfs_get_e2label (guestfs_h *g,\n"
29024 "                      const char *device);\n"
29025 "\n"
29026 msgstr ""
29027
29028 #. type: textblock
29029 #: ../src/guestfs-actions.pod:2416
29030 msgid ""
29031 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29032 "call instead."
29033 msgstr ""
29034
29035 #. type: textblock
29036 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
29037 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
29038 msgid "(Added in 1.0.15)"
29039 msgstr "(Додано у 1.0.15)"
29040
29041 #. type: =head2
29042 #: ../src/guestfs-actions.pod:2431
29043 msgid "guestfs_get_e2uuid"
29044 msgstr ""
29045
29046 #. type: verbatim
29047 #: ../src/guestfs-actions.pod:2433
29048 #, no-wrap
29049 msgid ""
29050 " char *\n"
29051 " guestfs_get_e2uuid (guestfs_h *g,\n"
29052 "                     const char *device);\n"
29053 "\n"
29054 msgstr ""
29055
29056 #. type: textblock
29057 #: ../src/guestfs-actions.pod:2437
29058 msgid ""
29059 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29060 "call instead."
29061 msgstr ""
29062
29063 #. type: =head2
29064 #: ../src/guestfs-actions.pod:2452
29065 msgid "guestfs_get_memsize"
29066 msgstr ""
29067
29068 #. type: verbatim
29069 #: ../src/guestfs-actions.pod:2454
29070 #, no-wrap
29071 msgid ""
29072 " int\n"
29073 " guestfs_get_memsize (guestfs_h *g);\n"
29074 "\n"
29075 msgstr ""
29076
29077 #. type: textblock
29078 #: ../src/guestfs-actions.pod:2460
29079 msgid ""
29080 "If C<guestfs_set_memsize> was not called on this handle, and if "
29081 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29082 "value for memsize."
29083 msgstr ""
29084
29085 #. type: textblock
29086 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
29087 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
29088 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
29089 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
29090 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
29091 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
29092 msgid "(Added in 1.0.55)"
29093 msgstr "(Додано у 1.0.55)"
29094
29095 #. type: =head2
29096 #: ../src/guestfs-actions.pod:2471
29097 msgid "guestfs_get_network"
29098 msgstr ""
29099
29100 #. type: verbatim
29101 #: ../src/guestfs-actions.pod:2473
29102 #, no-wrap
29103 msgid ""
29104 " int\n"
29105 " guestfs_get_network (guestfs_h *g);\n"
29106 "\n"
29107 msgstr ""
29108
29109 #. type: textblock
29110 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
29111 msgid "(Added in 1.5.4)"
29112 msgstr "(Додано у 1.5.4)"
29113
29114 #. type: =head2
29115 #: ../src/guestfs-actions.pod:2482
29116 msgid "guestfs_get_path"
29117 msgstr ""
29118
29119 #. type: verbatim
29120 #: ../src/guestfs-actions.pod:2484
29121 #, no-wrap
29122 msgid ""
29123 " const char *\n"
29124 " guestfs_get_path (guestfs_h *g);\n"
29125 "\n"
29126 msgstr ""
29127
29128 #. type: textblock
29129 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
29130 msgid ""
29131 "This function returns a string, or NULL on error.  The string is owned by "
29132 "the guest handle and must I<not> be freed."
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:2497
29137 msgid "guestfs_get_pgroup"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:2499
29142 #, no-wrap
29143 msgid ""
29144 " int\n"
29145 " guestfs_get_pgroup (guestfs_h *g);\n"
29146 "\n"
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
29151 #: ../src/guestfs-actions.pod:8154
29152 msgid "(Added in 1.11.18)"
29153 msgstr "(Додано у 1.11.18)"
29154
29155 #. type: =head2
29156 #: ../src/guestfs-actions.pod:2508
29157 msgid "guestfs_get_pid"
29158 msgstr ""
29159
29160 #. type: verbatim
29161 #: ../src/guestfs-actions.pod:2510
29162 #, no-wrap
29163 msgid ""
29164 " int\n"
29165 " guestfs_get_pid (guestfs_h *g);\n"
29166 "\n"
29167 msgstr ""
29168
29169 #. type: textblock
29170 #: ../src/guestfs-actions.pod:2520
29171 msgid "(Added in 1.0.56)"
29172 msgstr "(Додано у 1.0.56)"
29173
29174 #. type: =head2
29175 #: ../src/guestfs-actions.pod:2522
29176 msgid "guestfs_get_qemu"
29177 msgstr ""
29178
29179 #. type: verbatim
29180 #: ../src/guestfs-actions.pod:2524
29181 #, no-wrap
29182 msgid ""
29183 " const char *\n"
29184 " guestfs_get_qemu (guestfs_h *g);\n"
29185 "\n"
29186 msgstr ""
29187
29188 #. type: textblock
29189 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
29190 msgid "(Added in 1.0.6)"
29191 msgstr "(Додано у 1.0.6)"
29192
29193 #. type: =head2
29194 #: ../src/guestfs-actions.pod:2537
29195 msgid "guestfs_get_recovery_proc"
29196 msgstr ""
29197
29198 #. type: verbatim
29199 #: ../src/guestfs-actions.pod:2539
29200 #, no-wrap
29201 msgid ""
29202 " int\n"
29203 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29204 "\n"
29205 msgstr ""
29206
29207 #. type: textblock
29208 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
29209 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
29210 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
29211 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
29212 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
29213 #: ../src/guestfs-actions.pod:7777
29214 msgid "(Added in 1.0.77)"
29215 msgstr "(Додано у 1.0.77)"
29216
29217 #. type: =head2
29218 #: ../src/guestfs-actions.pod:2548
29219 msgid "guestfs_get_selinux"
29220 msgstr ""
29221
29222 #. type: verbatim
29223 #: ../src/guestfs-actions.pod:2550
29224 #, no-wrap
29225 msgid ""
29226 " int\n"
29227 " guestfs_get_selinux (guestfs_h *g);\n"
29228 "\n"
29229 msgstr ""
29230
29231 #. type: textblock
29232 #: ../src/guestfs-actions.pod:2553
29233 msgid ""
29234 "This returns the current setting of the selinux flag which is passed to the "
29235 "appliance at boot time.  See C<guestfs_set_selinux>."
29236 msgstr ""
29237
29238 #. type: textblock
29239 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
29240 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
29241 msgid "(Added in 1.0.67)"
29242 msgstr "(Додано у 1.0.67)"
29243
29244 #. type: =head2
29245 #: ../src/guestfs-actions.pod:2563
29246 msgid "guestfs_get_smp"
29247 msgstr ""
29248
29249 #. type: verbatim
29250 #: ../src/guestfs-actions.pod:2565
29251 #, no-wrap
29252 msgid ""
29253 " int\n"
29254 " guestfs_get_smp (guestfs_h *g);\n"
29255 "\n"
29256 msgstr ""
29257
29258 #. type: =head2
29259 #: ../src/guestfs-actions.pod:2574
29260 msgid "guestfs_get_state"
29261 msgstr ""
29262
29263 #. type: verbatim
29264 #: ../src/guestfs-actions.pod:2576
29265 #, no-wrap
29266 msgid ""
29267 " int\n"
29268 " guestfs_get_state (guestfs_h *g);\n"
29269 "\n"
29270 msgstr ""
29271
29272 #. type: =head2
29273 #: ../src/guestfs-actions.pod:2588
29274 msgid "guestfs_get_trace"
29275 msgstr ""
29276
29277 #. type: verbatim
29278 #: ../src/guestfs-actions.pod:2590
29279 #, no-wrap
29280 msgid ""
29281 " int\n"
29282 " guestfs_get_trace (guestfs_h *g);\n"
29283 "\n"
29284 msgstr ""
29285
29286 #. type: =head2
29287 #: ../src/guestfs-actions.pod:2599
29288 msgid "guestfs_get_umask"
29289 msgstr ""
29290
29291 #. type: verbatim
29292 #: ../src/guestfs-actions.pod:2601
29293 #, no-wrap
29294 msgid ""
29295 " int\n"
29296 " guestfs_get_umask (guestfs_h *g);\n"
29297 "\n"
29298 msgstr ""
29299
29300 #. type: textblock
29301 #: ../src/guestfs-actions.pod:2604
29302 msgid ""
29303 "Return the current umask.  By default the umask is C<022> unless it has been "
29304 "set by calling C<guestfs_umask>."
29305 msgstr ""
29306
29307 #. type: =head2
29308 #: ../src/guestfs-actions.pod:2611
29309 msgid "guestfs_get_verbose"
29310 msgstr ""
29311
29312 #. type: verbatim
29313 #: ../src/guestfs-actions.pod:2613
29314 #, no-wrap
29315 msgid ""
29316 " int\n"
29317 " guestfs_get_verbose (guestfs_h *g);\n"
29318 "\n"
29319 msgstr ""
29320
29321 #. type: =head2
29322 #: ../src/guestfs-actions.pod:2622
29323 msgid "guestfs_getcon"
29324 msgstr ""
29325
29326 #. type: verbatim
29327 #: ../src/guestfs-actions.pod:2624
29328 #, no-wrap
29329 msgid ""
29330 " char *\n"
29331 " guestfs_getcon (guestfs_h *g);\n"
29332 "\n"
29333 msgstr ""
29334
29335 #. type: textblock
29336 #: ../src/guestfs-actions.pod:2629
29337 msgid ""
29338 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29339 msgstr ""
29340
29341 #. type: =head2
29342 #: ../src/guestfs-actions.pod:2637
29343 msgid "guestfs_getxattr"
29344 msgstr ""
29345
29346 #. type: verbatim
29347 #: ../src/guestfs-actions.pod:2639
29348 #, no-wrap
29349 msgid ""
29350 " char *\n"
29351 " guestfs_getxattr (guestfs_h *g,\n"
29352 "                   const char *path,\n"
29353 "                   const char *name,\n"
29354 "                   size_t *size_r);\n"
29355 "\n"
29356 msgstr ""
29357
29358 #. type: textblock
29359 #: ../src/guestfs-actions.pod:2645
29360 msgid ""
29361 "Get a single extended attribute from file C<path> named C<name>.  This call "
29362 "follows symlinks.  If you want to lookup an extended attribute for the "
29363 "symlink itself, use C<guestfs_lgetxattr>."
29364 msgstr ""
29365
29366 #. type: textblock
29367 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
29368 msgid ""
29369 "Normally it is better to get all extended attributes from a file in one go "
29370 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29371 "implementations are buggy and do not provide a way to list out attributes.  "
29372 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29373 "extended attributes you want in advance and call this function."
29374 msgstr ""
29375
29376 #. type: textblock
29377 #: ../src/guestfs-actions.pod:2659
29378 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29379 msgstr ""
29380
29381 #. type: textblock
29382 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29383 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
29384 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
29385 #: ../src/guestfs-actions.pod:6282
29386 msgid ""
29387 "This function returns a buffer, or NULL on error.  The size of the returned "
29388 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29389 "after use>."
29390 msgstr ""
29391
29392 #. type: textblock
29393 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
29394 msgid "(Added in 1.7.24)"
29395 msgstr "(Додано у 1.7.24)"
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:2667
29399 msgid "guestfs_getxattrs"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:2669
29404 #, no-wrap
29405 msgid ""
29406 " struct guestfs_xattr_list *\n"
29407 " guestfs_getxattrs (guestfs_h *g,\n"
29408 "                    const char *path);\n"
29409 "\n"
29410 msgstr ""
29411
29412 #. type: textblock
29413 #: ../src/guestfs-actions.pod:2679
29414 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
29419 #: ../src/guestfs-actions.pod:4851
29420 msgid ""
29421 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29422 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
29423 msgstr ""
29424
29425 #. type: textblock
29426 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
29427 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
29428 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
29429 #: ../src/guestfs-actions.pod:8362
29430 msgid "(Added in 1.0.59)"
29431 msgstr "(Додано у 1.0.59)"
29432
29433 #. type: =head2
29434 #: ../src/guestfs-actions.pod:2687
29435 msgid "guestfs_glob_expand"
29436 msgstr ""
29437
29438 #. type: verbatim
29439 #: ../src/guestfs-actions.pod:2689
29440 #, no-wrap
29441 msgid ""
29442 " char **\n"
29443 " guestfs_glob_expand (guestfs_h *g,\n"
29444 "                      const char *pattern);\n"
29445 "\n"
29446 msgstr ""
29447
29448 #. type: textblock
29449 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
29450 #: ../src/guestfs-actions.pod:7180
29451 msgid "(Added in 1.0.50)"
29452 msgstr "(Додано у 1.0.50)"
29453
29454 #. type: =head2
29455 #: ../src/guestfs-actions.pod:2710
29456 msgid "guestfs_grep"
29457 msgstr ""
29458
29459 #. type: verbatim
29460 #: ../src/guestfs-actions.pod:2712
29461 #, no-wrap
29462 msgid ""
29463 " char **\n"
29464 " guestfs_grep (guestfs_h *g,\n"
29465 "               const char *regex,\n"
29466 "               const char *path);\n"
29467 "\n"
29468 msgstr ""
29469
29470 #. type: =head2
29471 #: ../src/guestfs-actions.pod:2729
29472 msgid "guestfs_grepi"
29473 msgstr ""
29474
29475 #. type: verbatim
29476 #: ../src/guestfs-actions.pod:2731
29477 #, no-wrap
29478 msgid ""
29479 " char **\n"
29480 " guestfs_grepi (guestfs_h *g,\n"
29481 "                const char *regex,\n"
29482 "                const char *path);\n"
29483 "\n"
29484 msgstr ""
29485
29486 #. type: =head2
29487 #: ../src/guestfs-actions.pod:2748
29488 msgid "guestfs_grub_install"
29489 msgstr ""
29490
29491 #. type: verbatim
29492 #: ../src/guestfs-actions.pod:2750
29493 #, no-wrap
29494 msgid ""
29495 " int\n"
29496 " guestfs_grub_install (guestfs_h *g,\n"
29497 "                       const char *root,\n"
29498 "                       const char *device);\n"
29499 "\n"
29500 msgstr ""
29501
29502 #. type: textblock
29503 #: ../src/guestfs-actions.pod:2793
29504 msgid "(Added in 1.0.17)"
29505 msgstr "(Додано у 1.0.17)"
29506
29507 #. type: =head2
29508 #: ../src/guestfs-actions.pod:2795
29509 msgid "guestfs_head"
29510 msgstr ""
29511
29512 #. type: verbatim
29513 #: ../src/guestfs-actions.pod:2797
29514 #, no-wrap
29515 msgid ""
29516 " char **\n"
29517 " guestfs_head (guestfs_h *g,\n"
29518 "               const char *path);\n"
29519 "\n"
29520 msgstr ""
29521
29522 #. type: =head2
29523 #: ../src/guestfs-actions.pod:2813
29524 msgid "guestfs_head_n"
29525 msgstr ""
29526
29527 #. type: verbatim
29528 #: ../src/guestfs-actions.pod:2815
29529 #, no-wrap
29530 msgid ""
29531 " char **\n"
29532 " guestfs_head_n (guestfs_h *g,\n"
29533 "                 int nrlines,\n"
29534 "                 const char *path);\n"
29535 "\n"
29536 msgstr ""
29537
29538 #. type: =head2
29539 #: ../src/guestfs-actions.pod:2837
29540 msgid "guestfs_hexdump"
29541 msgstr ""
29542
29543 #. type: verbatim
29544 #: ../src/guestfs-actions.pod:2839
29545 #, no-wrap
29546 msgid ""
29547 " char *\n"
29548 " guestfs_hexdump (guestfs_h *g,\n"
29549 "                  const char *path);\n"
29550 "\n"
29551 msgstr ""
29552
29553 #. type: textblock
29554 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
29555 #: ../src/guestfs-actions.pod:7299
29556 msgid "(Added in 1.0.22)"
29557 msgstr "(Додано у 1.0.22)"
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:2854
29561 msgid "guestfs_initrd_cat"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:2856
29566 #, no-wrap
29567 msgid ""
29568 " char *\n"
29569 " guestfs_initrd_cat (guestfs_h *g,\n"
29570 "                     const char *initrdpath,\n"
29571 "                     const char *filename,\n"
29572 "                     size_t *size_r);\n"
29573 "\n"
29574 msgstr ""
29575
29576 #. type: textblock
29577 #: ../src/guestfs-actions.pod:2872
29578 msgid "See also C<guestfs_initrd_list>."
29579 msgstr ""
29580
29581 #. type: =head2
29582 #: ../src/guestfs-actions.pod:2883
29583 msgid "guestfs_initrd_list"
29584 msgstr ""
29585
29586 #. type: verbatim
29587 #: ../src/guestfs-actions.pod:2885
29588 #, no-wrap
29589 msgid ""
29590 " char **\n"
29591 " guestfs_initrd_list (guestfs_h *g,\n"
29592 "                      const char *path);\n"
29593 "\n"
29594 msgstr ""
29595
29596 #. type: =head2
29597 #: ../src/guestfs-actions.pod:2905
29598 msgid "guestfs_inotify_add_watch"
29599 msgstr ""
29600
29601 #. type: verbatim
29602 #: ../src/guestfs-actions.pod:2907
29603 #, no-wrap
29604 msgid ""
29605 " int64_t\n"
29606 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29607 "                            const char *path,\n"
29608 "                            int mask);\n"
29609 "\n"
29610 msgstr ""
29611
29612 #. type: =head2
29613 #: ../src/guestfs-actions.pod:2926
29614 msgid "guestfs_inotify_close"
29615 msgstr ""
29616
29617 #. type: verbatim
29618 #: ../src/guestfs-actions.pod:2928
29619 #, no-wrap
29620 msgid ""
29621 " int\n"
29622 " guestfs_inotify_close (guestfs_h *g);\n"
29623 "\n"
29624 msgstr ""
29625
29626 #. type: =head2
29627 #: ../src/guestfs-actions.pod:2939
29628 msgid "guestfs_inotify_files"
29629 msgstr ""
29630
29631 #. type: verbatim
29632 #: ../src/guestfs-actions.pod:2941
29633 #, no-wrap
29634 msgid ""
29635 " char **\n"
29636 " guestfs_inotify_files (guestfs_h *g);\n"
29637 "\n"
29638 msgstr ""
29639
29640 #. type: textblock
29641 #: ../src/guestfs-actions.pod:2944
29642 msgid ""
29643 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29644 "returns a list of pathnames of objects that were touched.  The returned "
29645 "pathnames are sorted and deduplicated."
29646 msgstr ""
29647
29648 #. type: =head2
29649 #: ../src/guestfs-actions.pod:2954
29650 msgid "guestfs_inotify_init"
29651 msgstr ""
29652
29653 #. type: verbatim
29654 #: ../src/guestfs-actions.pod:2956
29655 #, no-wrap
29656 msgid ""
29657 " int\n"
29658 " guestfs_inotify_init (guestfs_h *g,\n"
29659 "                       int maxevents);\n"
29660 "\n"
29661 msgstr ""
29662
29663 #. type: textblock
29664 #: ../src/guestfs-actions.pod:2964
29665 msgid ""
29666 "C<maxevents> is the maximum number of events which will be queued up between "
29667 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
29668 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
29669 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
29670 "throws away events, but records the fact that it threw them away by setting "
29671 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29672 "C<guestfs_inotify_read>)."
29673 msgstr ""
29674
29675 #. type: textblock
29676 #: ../src/guestfs-actions.pod:2974
29677 msgid ""
29678 "Before any events are generated, you have to add some watches to the "
29679 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
29680 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29681 msgstr ""
29682
29683 #. type: textblock
29684 #: ../src/guestfs-actions.pod:2980
29685 msgid ""
29686 "Queued up events should be read periodically by calling "
29687 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29688 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29689 "often enough then you risk the internal queue overflowing."
29690 msgstr ""
29691
29692 #. type: textblock
29693 #: ../src/guestfs-actions.pod:2987
29694 msgid ""
29695 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29696 "This also removes any watches automatically."
29697 msgstr ""
29698
29699 #. type: =head2
29700 #: ../src/guestfs-actions.pod:3000
29701 msgid "guestfs_inotify_read"
29702 msgstr ""
29703
29704 #. type: verbatim
29705 #: ../src/guestfs-actions.pod:3002
29706 #, no-wrap
29707 msgid ""
29708 " struct guestfs_inotify_event_list *\n"
29709 " guestfs_inotify_read (guestfs_h *g);\n"
29710 "\n"
29711 msgstr ""
29712
29713 #. type: textblock
29714 #: ../src/guestfs-actions.pod:3016
29715 msgid ""
29716 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29717 "there was an error.  I<The caller must call "
29718 "C<guestfs_free_inotify_event_list> after use>."
29719 msgstr ""
29720
29721 #. type: =head2
29722 #: ../src/guestfs-actions.pod:3022
29723 msgid "guestfs_inotify_rm_watch"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-actions.pod:3024
29728 #, no-wrap
29729 msgid ""
29730 " int\n"
29731 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29732 "                           int wd);\n"
29733 "\n"
29734 msgstr ""
29735
29736 #. type: textblock
29737 #: ../src/guestfs-actions.pod:3028
29738 msgid ""
29739 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29740 msgstr ""
29741
29742 #. type: =head2
29743 #: ../src/guestfs-actions.pod:3035
29744 msgid "guestfs_inspect_get_arch"
29745 msgstr ""
29746
29747 #. type: verbatim
29748 #: ../src/guestfs-actions.pod:3037
29749 #, no-wrap
29750 msgid ""
29751 " char *\n"
29752 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29753 "                           const char *root);\n"
29754 "\n"
29755 msgstr ""
29756
29757 #. type: textblock
29758 #: ../src/guestfs-actions.pod:3041
29759 msgid ""
29760 "This returns the architecture of the inspected operating system.  The "
29761 "possible return values are listed under C<guestfs_file_architecture>."
29762 msgstr ""
29763
29764 #. type: =head2
29765 #: ../src/guestfs-actions.pod:3055
29766 msgid "guestfs_inspect_get_distro"
29767 msgstr ""
29768
29769 #. type: verbatim
29770 #: ../src/guestfs-actions.pod:3057
29771 #, no-wrap
29772 msgid ""
29773 " char *\n"
29774 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29775 "                             const char *root);\n"
29776 "\n"
29777 msgstr ""
29778
29779 #. type: =head2
29780 #: ../src/guestfs-actions.pod:3157
29781 msgid "guestfs_inspect_get_drive_mappings"
29782 msgstr ""
29783
29784 #. type: verbatim
29785 #: ../src/guestfs-actions.pod:3159
29786 #, no-wrap
29787 msgid ""
29788 " char **\n"
29789 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29790 "                                     const char *root);\n"
29791 "\n"
29792 msgstr ""
29793
29794 #. type: textblock
29795 #: ../src/guestfs-actions.pod:3188
29796 msgid ""
29797 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29798 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29799 msgstr ""
29800
29801 #. type: textblock
29802 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29803 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
29804 #: ../src/guestfs-actions.pod:7601
29805 msgid ""
29806 "This function returns a NULL-terminated array of strings, or NULL if there "
29807 "was an error.  The array of strings will always have length C<2n+1>, where "
29808 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29809 "caller must free the strings and the array after use>."
29810 msgstr ""
29811
29812 #. type: textblock
29813 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29814 msgid "(Added in 1.9.17)"
29815 msgstr "(Додано у 1.9.17)"
29816
29817 #. type: =head2
29818 #: ../src/guestfs-actions.pod:3200
29819 msgid "guestfs_inspect_get_filesystems"
29820 msgstr ""
29821
29822 #. type: verbatim
29823 #: ../src/guestfs-actions.pod:3202
29824 #, no-wrap
29825 msgid ""
29826 " char **\n"
29827 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29828 "                                  const char *root);\n"
29829 "\n"
29830 msgstr ""
29831
29832 #. type: textblock
29833 #: ../src/guestfs-actions.pod:3214
29834 msgid ""
29835 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29836 "C<guestfs_inspect_get_mountpoints>."
29837 msgstr ""
29838
29839 #. type: =head2
29840 #: ../src/guestfs-actions.pod:3223
29841 msgid "guestfs_inspect_get_format"
29842 msgstr ""
29843
29844 #. type: verbatim
29845 #: ../src/guestfs-actions.pod:3225
29846 #, no-wrap
29847 msgid ""
29848 " char *\n"
29849 " guestfs_inspect_get_format (guestfs_h *g,\n"
29850 "                             const char *root);\n"
29851 "\n"
29852 msgstr ""
29853
29854 #. type: textblock
29855 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29856 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29857 #: ../src/guestfs-actions.pod:6493
29858 msgid "(Added in 1.9.4)"
29859 msgstr "(Додано у 1.9.4)"
29860
29861 #. type: =head2
29862 #: ../src/guestfs-actions.pod:3261
29863 msgid "guestfs_inspect_get_hostname"
29864 msgstr ""
29865
29866 #. type: verbatim
29867 #: ../src/guestfs-actions.pod:3263
29868 #, no-wrap
29869 msgid ""
29870 " char *\n"
29871 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29872 "                               const char *root);\n"
29873 "\n"
29874 msgstr ""
29875
29876 #. type: textblock
29877 #: ../src/guestfs-actions.pod:3278
29878 msgid "(Added in 1.7.9)"
29879 msgstr "(Додано у 1.7.9)"
29880
29881 #. type: =head2
29882 #: ../src/guestfs-actions.pod:3280
29883 msgid "guestfs_inspect_get_icon"
29884 msgstr ""
29885
29886 #. type: verbatim
29887 #: ../src/guestfs-actions.pod:3282
29888 #, no-wrap
29889 msgid ""
29890 " char *\n"
29891 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29892 "                           const char *root,\n"
29893 "                           size_t *size_r,\n"
29894 "                           ...);\n"
29895 "\n"
29896 msgstr ""
29897
29898 #. type: verbatim
29899 #: ../src/guestfs-actions.pod:3293
29900 #, no-wrap
29901 msgid ""
29902 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29903 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29904 "\n"
29905 msgstr ""
29906
29907 #. type: textblock
29908 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29909 #: ../src/guestfs-actions.pod:5425
29910 msgid "(Added in 1.11.12)"
29911 msgstr "(Додано у 1.11.12)"
29912
29913 #. type: =head2
29914 #: ../src/guestfs-actions.pod:3362
29915 msgid "guestfs_inspect_get_icon_va"
29916 msgstr ""
29917
29918 #. type: verbatim
29919 #: ../src/guestfs-actions.pod:3364
29920 #, no-wrap
29921 msgid ""
29922 " char *\n"
29923 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29924 "                              const char *root,\n"
29925 "                              size_t *size_r,\n"
29926 "                              va_list args);\n"
29927 "\n"
29928 msgstr ""
29929
29930 #. type: textblock
29931 #: ../src/guestfs-actions.pod:3370
29932 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29933 msgstr ""
29934
29935 #. type: =head2
29936 #: ../src/guestfs-actions.pod:3374
29937 msgid "guestfs_inspect_get_icon_argv"
29938 msgstr ""
29939
29940 #. type: verbatim
29941 #: ../src/guestfs-actions.pod:3376
29942 #, no-wrap
29943 msgid ""
29944 " char *\n"
29945 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29946 "                                const char *root,\n"
29947 "                                size_t *size_r,\n"
29948 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29949 "\n"
29950 msgstr ""
29951
29952 #. type: textblock
29953 #: ../src/guestfs-actions.pod:3382
29954 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29955 msgstr ""
29956
29957 #. type: =head2
29958 #: ../src/guestfs-actions.pod:3386
29959 msgid "guestfs_inspect_get_major_version"
29960 msgstr ""
29961
29962 #. type: verbatim
29963 #: ../src/guestfs-actions.pod:3388
29964 #, no-wrap
29965 msgid ""
29966 " int\n"
29967 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29968 "                                    const char *root);\n"
29969 "\n"
29970 msgstr ""
29971
29972 #. type: =head2
29973 #: ../src/guestfs-actions.pod:3410
29974 msgid "guestfs_inspect_get_minor_version"
29975 msgstr ""
29976
29977 #. type: verbatim
29978 #: ../src/guestfs-actions.pod:3412
29979 #, no-wrap
29980 msgid ""
29981 " int\n"
29982 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29983 "                                    const char *root);\n"
29984 "\n"
29985 msgstr ""
29986
29987 #. type: textblock
29988 #: ../src/guestfs-actions.pod:3421
29989 msgid ""
29990 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29991 "C<guestfs_inspect_get_major_version>."
29992 msgstr ""
29993
29994 #. type: =head2
29995 #: ../src/guestfs-actions.pod:3428
29996 msgid "guestfs_inspect_get_mountpoints"
29997 msgstr ""
29998
29999 #. type: verbatim
30000 #: ../src/guestfs-actions.pod:3430
30001 #, no-wrap
30002 msgid ""
30003 " char **\n"
30004 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30005 "                                  const char *root);\n"
30006 "\n"
30007 msgstr ""
30008
30009 #. type: textblock
30010 #: ../src/guestfs-actions.pod:3451
30011 msgid ""
30012 "For operating systems like Windows which still use drive letters, this call "
30013 "will only return an entry for the first drive \"mounted on\" C</>.  For "
30014 "information about the mapping of drive letters to partitions, see "
30015 "C<guestfs_inspect_get_drive_mappings>."
30016 msgstr ""
30017
30018 #. type: textblock
30019 #: ../src/guestfs-actions.pod:3457
30020 msgid ""
30021 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30022 "C<guestfs_inspect_get_filesystems>."
30023 msgstr ""
30024
30025 #. type: =head2
30026 #: ../src/guestfs-actions.pod:3468
30027 msgid "guestfs_inspect_get_package_format"
30028 msgstr ""
30029
30030 #. type: verbatim
30031 #: ../src/guestfs-actions.pod:3470
30032 #, no-wrap
30033 msgid ""
30034 " char *\n"
30035 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30036 "                                     const char *root);\n"
30037 "\n"
30038 msgstr ""
30039
30040 #. type: textblock
30041 #: ../src/guestfs-actions.pod:3474
30042 msgid ""
30043 "This function and C<guestfs_inspect_get_package_management> return the "
30044 "package format and package management tool used by the inspected operating "
30045 "system.  For example for Fedora these functions would return C<rpm> (package "
30046 "format) and C<yum> (package management)."
30047 msgstr ""
30048
30049 #. type: textblock
30050 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
30051 msgid "(Added in 1.7.5)"
30052 msgstr "(Додано у 1.7.5)"
30053
30054 #. type: =head2
30055 #: ../src/guestfs-actions.pod:3495
30056 msgid "guestfs_inspect_get_package_management"
30057 msgstr ""
30058
30059 #. type: verbatim
30060 #: ../src/guestfs-actions.pod:3497
30061 #, no-wrap
30062 msgid ""
30063 " char *\n"
30064 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30065 "                                         const char *root);\n"
30066 "\n"
30067 msgstr ""
30068
30069 #. type: textblock
30070 #: ../src/guestfs-actions.pod:3501
30071 msgid ""
30072 "C<guestfs_inspect_get_package_format> and this function return the package "
30073 "format and package management tool used by the inspected operating system.  "
30074 "For example for Fedora these functions would return C<rpm> (package format) "
30075 "and C<yum> (package management)."
30076 msgstr ""
30077
30078 #. type: =head2
30079 #: ../src/guestfs-actions.pod:3523
30080 msgid "guestfs_inspect_get_product_name"
30081 msgstr ""
30082
30083 #. type: verbatim
30084 #: ../src/guestfs-actions.pod:3525
30085 #, no-wrap
30086 msgid ""
30087 " char *\n"
30088 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30089 "                                   const char *root);\n"
30090 "\n"
30091 msgstr ""
30092
30093 #. type: =head2
30094 #: ../src/guestfs-actions.pod:3544
30095 msgid "guestfs_inspect_get_product_variant"
30096 msgstr ""
30097
30098 #. type: verbatim
30099 #: ../src/guestfs-actions.pod:3546
30100 #, no-wrap
30101 msgid ""
30102 " char *\n"
30103 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30104 "                                      const char *root);\n"
30105 "\n"
30106 msgstr ""
30107
30108 #. type: textblock
30109 #: ../src/guestfs-actions.pod:3569
30110 msgid ""
30111 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30112 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30113 msgstr ""
30114
30115 #. type: textblock
30116 #: ../src/guestfs-actions.pod:3576
30117 msgid "(Added in 1.9.13)"
30118 msgstr "(Додано у 1.9.13)"
30119
30120 #. type: =head2
30121 #: ../src/guestfs-actions.pod:3578
30122 msgid "guestfs_inspect_get_roots"
30123 msgstr ""
30124
30125 #. type: verbatim
30126 #: ../src/guestfs-actions.pod:3580
30127 #, no-wrap
30128 msgid ""
30129 " char **\n"
30130 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30131 "\n"
30132 msgstr ""
30133
30134 #. type: textblock
30135 #: ../src/guestfs-actions.pod:3583
30136 msgid ""
30137 "This function is a convenient way to get the list of root devices, as "
30138 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30139 "the whole inspection process."
30140 msgstr ""
30141
30142 #. type: textblock
30143 #: ../src/guestfs-actions.pod:3587
30144 msgid ""
30145 "This returns an empty list if either no root devices were found or the "
30146 "caller has not called C<guestfs_inspect_os>."
30147 msgstr ""
30148
30149 #. type: textblock
30150 #: ../src/guestfs-actions.pod:3596
30151 msgid "(Added in 1.7.3)"
30152 msgstr "(Додано у 1.7.3)"
30153
30154 #. type: =head2
30155 #: ../src/guestfs-actions.pod:3598
30156 msgid "guestfs_inspect_get_type"
30157 msgstr ""
30158
30159 #. type: verbatim
30160 #: ../src/guestfs-actions.pod:3600
30161 #, no-wrap
30162 msgid ""
30163 " char *\n"
30164 " guestfs_inspect_get_type (guestfs_h *g,\n"
30165 "                           const char *root);\n"
30166 "\n"
30167 msgstr ""
30168
30169 #. type: =head2
30170 #: ../src/guestfs-actions.pod:3641
30171 msgid "guestfs_inspect_get_windows_current_control_set"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../src/guestfs-actions.pod:3643
30176 #, no-wrap
30177 msgid ""
30178 " char *\n"
30179 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30180 "                                                  const char *root);\n"
30181 "\n"
30182 msgstr ""
30183
30184 #. type: =head2
30185 #: ../src/guestfs-actions.pod:3661
30186 msgid "guestfs_inspect_get_windows_systemroot"
30187 msgstr ""
30188
30189 #. type: verbatim
30190 #: ../src/guestfs-actions.pod:3663
30191 #, no-wrap
30192 msgid ""
30193 " char *\n"
30194 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30195 "                                         const char *root);\n"
30196 "\n"
30197 msgstr ""
30198
30199 #. type: textblock
30200 #: ../src/guestfs-actions.pod:3679
30201 msgid "(Added in 1.5.25)"
30202 msgstr "(Додано у 1.5.25)"
30203
30204 #. type: =head2
30205 #: ../src/guestfs-actions.pod:3681
30206 msgid "guestfs_inspect_is_live"
30207 msgstr ""
30208
30209 #. type: verbatim
30210 #: ../src/guestfs-actions.pod:3683
30211 #, no-wrap
30212 msgid ""
30213 " int\n"
30214 " guestfs_inspect_is_live (guestfs_h *g,\n"
30215 "                          const char *root);\n"
30216 "\n"
30217 msgstr ""
30218
30219 #. type: textblock
30220 #: ../src/guestfs-actions.pod:3687
30221 msgid ""
30222 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30223 "disk), then this returns true if a live image was detected on the disk."
30224 msgstr ""
30225
30226 #. type: =head2
30227 #: ../src/guestfs-actions.pod:3697
30228 msgid "guestfs_inspect_is_multipart"
30229 msgstr ""
30230
30231 #. type: verbatim
30232 #: ../src/guestfs-actions.pod:3699
30233 #, no-wrap
30234 msgid ""
30235 " int\n"
30236 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30237 "                               const char *root);\n"
30238 "\n"
30239 msgstr ""
30240
30241 #. type: textblock
30242 #: ../src/guestfs-actions.pod:3703
30243 msgid ""
30244 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30245 "disk), then this returns true if the disk is part of a set."
30246 msgstr ""
30247
30248 #. type: =head2
30249 #: ../src/guestfs-actions.pod:3713
30250 msgid "guestfs_inspect_is_netinst"
30251 msgstr ""
30252
30253 #. type: verbatim
30254 #: ../src/guestfs-actions.pod:3715
30255 #, no-wrap
30256 msgid ""
30257 " int\n"
30258 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30259 "                             const char *root);\n"
30260 "\n"
30261 msgstr ""
30262
30263 #. type: textblock
30264 #: ../src/guestfs-actions.pod:3719
30265 msgid ""
30266 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30267 "disk), then this returns true if the disk is a network installer, ie. not a "
30268 "self-contained install CD but one which is likely to require network access "
30269 "to complete the install."
30270 msgstr ""
30271
30272 #. type: =head2
30273 #: ../src/guestfs-actions.pod:3731
30274 msgid "guestfs_inspect_list_applications"
30275 msgstr ""
30276
30277 #. type: verbatim
30278 #: ../src/guestfs-actions.pod:3733
30279 #, no-wrap
30280 msgid ""
30281 " struct guestfs_application_list *\n"
30282 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30283 "                                    const char *root);\n"
30284 "\n"
30285 msgstr ""
30286
30287 #. type: textblock
30288 #: ../src/guestfs-actions.pod:3739
30289 msgid ""
30290 "I<Note:> This call works differently from other parts of the inspection "
30291 "API.  You have to call C<guestfs_inspect_os>, then "
30292 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30293 "this.  Listing applications is a significantly more difficult operation "
30294 "which requires access to the full filesystem.  Also note that unlike the "
30295 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30296 "the libguestfs handle, this call actually reads parts of the mounted "
30297 "filesystems during the call."
30298 msgstr ""
30299
30300 #. type: textblock
30301 #: ../src/guestfs-actions.pod:3829
30302 msgid ""
30303 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30304 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
30305 "after use>."
30306 msgstr ""
30307
30308 #. type: textblock
30309 #: ../src/guestfs-actions.pod:3833
30310 msgid "(Added in 1.7.8)"
30311 msgstr "(Додано у 1.7.8)"
30312
30313 #. type: =head2
30314 #: ../src/guestfs-actions.pod:3835
30315 msgid "guestfs_inspect_os"
30316 msgstr ""
30317
30318 #. type: verbatim
30319 #: ../src/guestfs-actions.pod:3837
30320 #, no-wrap
30321 msgid ""
30322 " char **\n"
30323 " guestfs_inspect_os (guestfs_h *g);\n"
30324 "\n"
30325 msgstr ""
30326
30327 #. type: textblock
30328 #: ../src/guestfs-actions.pod:3853
30329 msgid ""
30330 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30331 "functions in order to query further information about each operating system, "
30332 "such as the name and version."
30333 msgstr ""
30334
30335 #. type: textblock
30336 #: ../src/guestfs-actions.pod:3858
30337 msgid ""
30338 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30339 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30340 "the contents.  This should be called with no disks currently mounted.  The "
30341 "function may also use Augeas, so any existing Augeas handle will be closed."
30342 msgstr ""
30343
30344 #. type: textblock
30345 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
30346 #: ../src/guestfs-actions.pod:4283
30347 msgid "See also C<guestfs_list_filesystems>."
30348 msgstr ""
30349
30350 #. type: =head2
30351 #: ../src/guestfs-actions.pod:3878
30352 msgid "guestfs_is_blockdev"
30353 msgstr ""
30354
30355 #. type: verbatim
30356 #: ../src/guestfs-actions.pod:3880
30357 #, no-wrap
30358 msgid ""
30359 " int\n"
30360 " guestfs_is_blockdev (guestfs_h *g,\n"
30361 "                      const char *path);\n"
30362 "\n"
30363 msgstr ""
30364
30365 #. type: textblock
30366 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
30367 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
30368 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
30369 #: ../src/guestfs-actions.pod:4048
30370 msgid "See also C<guestfs_stat>."
30371 msgstr ""
30372
30373 #. type: textblock
30374 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30375 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
30376 #: ../src/guestfs-actions.pod:4052
30377 msgid "(Added in 1.5.10)"
30378 msgstr "(Додано у 1.5.10)"
30379
30380 #. type: =head2
30381 #: ../src/guestfs-actions.pod:3893
30382 msgid "guestfs_is_busy"
30383 msgstr ""
30384
30385 #. type: verbatim
30386 #: ../src/guestfs-actions.pod:3895
30387 #, no-wrap
30388 msgid ""
30389 " int\n"
30390 " guestfs_is_busy (guestfs_h *g);\n"
30391 "\n"
30392 msgstr ""
30393
30394 #. type: =head2
30395 #: ../src/guestfs-actions.pod:3907
30396 msgid "guestfs_is_chardev"
30397 msgstr ""
30398
30399 #. type: verbatim
30400 #: ../src/guestfs-actions.pod:3909
30401 #, no-wrap
30402 msgid ""
30403 " int\n"
30404 " guestfs_is_chardev (guestfs_h *g,\n"
30405 "                     const char *path);\n"
30406 "\n"
30407 msgstr ""
30408
30409 #. type: =head2
30410 #: ../src/guestfs-actions.pod:3922
30411 msgid "guestfs_is_config"
30412 msgstr ""
30413
30414 #. type: verbatim
30415 #: ../src/guestfs-actions.pod:3924
30416 #, no-wrap
30417 msgid ""
30418 " int\n"
30419 " guestfs_is_config (guestfs_h *g);\n"
30420 "\n"
30421 msgstr ""
30422
30423 #. type: =head2
30424 #: ../src/guestfs-actions.pod:3936
30425 msgid "guestfs_is_dir"
30426 msgstr ""
30427
30428 #. type: verbatim
30429 #: ../src/guestfs-actions.pod:3938
30430 #, no-wrap
30431 msgid ""
30432 " int\n"
30433 " guestfs_is_dir (guestfs_h *g,\n"
30434 "                 const char *path);\n"
30435 "\n"
30436 msgstr ""
30437
30438 #. type: =head2
30439 #: ../src/guestfs-actions.pod:3952
30440 msgid "guestfs_is_fifo"
30441 msgstr ""
30442
30443 #. type: verbatim
30444 #: ../src/guestfs-actions.pod:3954
30445 #, no-wrap
30446 msgid ""
30447 " int\n"
30448 " guestfs_is_fifo (guestfs_h *g,\n"
30449 "                  const char *path);\n"
30450 "\n"
30451 msgstr ""
30452
30453 #. type: =head2
30454 #: ../src/guestfs-actions.pod:3967
30455 msgid "guestfs_is_file"
30456 msgstr ""
30457
30458 #. type: verbatim
30459 #: ../src/guestfs-actions.pod:3969
30460 #, no-wrap
30461 msgid ""
30462 " int\n"
30463 " guestfs_is_file (guestfs_h *g,\n"
30464 "                  const char *path);\n"
30465 "\n"
30466 msgstr ""
30467
30468 #. type: =head2
30469 #: ../src/guestfs-actions.pod:3983
30470 msgid "guestfs_is_launching"
30471 msgstr ""
30472
30473 #. type: verbatim
30474 #: ../src/guestfs-actions.pod:3985
30475 #, no-wrap
30476 msgid ""
30477 " int\n"
30478 " guestfs_is_launching (guestfs_h *g);\n"
30479 "\n"
30480 msgstr ""
30481
30482 #. type: =head2
30483 #: ../src/guestfs-actions.pod:3997
30484 msgid "guestfs_is_lv"
30485 msgstr ""
30486
30487 #. type: verbatim
30488 #: ../src/guestfs-actions.pod:3999
30489 #, no-wrap
30490 msgid ""
30491 " int\n"
30492 " guestfs_is_lv (guestfs_h *g,\n"
30493 "                const char *device);\n"
30494 "\n"
30495 msgstr ""
30496
30497 #. type: =head2
30498 #: ../src/guestfs-actions.pod:4010
30499 msgid "guestfs_is_ready"
30500 msgstr ""
30501
30502 #. type: verbatim
30503 #: ../src/guestfs-actions.pod:4012
30504 #, no-wrap
30505 msgid ""
30506 " int\n"
30507 " guestfs_is_ready (guestfs_h *g);\n"
30508 "\n"
30509 msgstr ""
30510
30511 #. type: =head2
30512 #: ../src/guestfs-actions.pod:4024
30513 msgid "guestfs_is_socket"
30514 msgstr ""
30515
30516 #. type: verbatim
30517 #: ../src/guestfs-actions.pod:4026
30518 #, no-wrap
30519 msgid ""
30520 " int\n"
30521 " guestfs_is_socket (guestfs_h *g,\n"
30522 "                    const char *path);\n"
30523 "\n"
30524 msgstr ""
30525
30526 #. type: =head2
30527 #: ../src/guestfs-actions.pod:4039
30528 msgid "guestfs_is_symlink"
30529 msgstr ""
30530
30531 #. type: verbatim
30532 #: ../src/guestfs-actions.pod:4041
30533 #, no-wrap
30534 msgid ""
30535 " int\n"
30536 " guestfs_is_symlink (guestfs_h *g,\n"
30537 "                     const char *path);\n"
30538 "\n"
30539 msgstr ""
30540
30541 #. type: =head2
30542 #: ../src/guestfs-actions.pod:4054
30543 msgid "guestfs_is_zero"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-actions.pod:4056
30548 #, no-wrap
30549 msgid ""
30550 " int\n"
30551 " guestfs_is_zero (guestfs_h *g,\n"
30552 "                  const char *path);\n"
30553 "\n"
30554 msgstr ""
30555
30556 #. type: textblock
30557 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
30558 msgid "(Added in 1.11.8)"
30559 msgstr "(Додано у 1.11.8)"
30560
30561 #. type: =head2
30562 #: ../src/guestfs-actions.pod:4067
30563 msgid "guestfs_is_zero_device"
30564 msgstr ""
30565
30566 #. type: verbatim
30567 #: ../src/guestfs-actions.pod:4069
30568 #, no-wrap
30569 msgid ""
30570 " int\n"
30571 " guestfs_is_zero_device (guestfs_h *g,\n"
30572 "                         const char *device);\n"
30573 "\n"
30574 msgstr ""
30575
30576 #. type: =head2
30577 #: ../src/guestfs-actions.pod:4081
30578 msgid "guestfs_kill_subprocess"
30579 msgstr ""
30580
30581 #. type: verbatim
30582 #: ../src/guestfs-actions.pod:4083
30583 #, no-wrap
30584 msgid ""
30585 " int\n"
30586 " guestfs_kill_subprocess (guestfs_h *g);\n"
30587 "\n"
30588 msgstr ""
30589
30590 #. type: =head2
30591 #: ../src/guestfs-actions.pod:4092
30592 msgid "guestfs_launch"
30593 msgstr ""
30594
30595 #. type: verbatim
30596 #: ../src/guestfs-actions.pod:4094
30597 #, no-wrap
30598 msgid ""
30599 " int\n"
30600 " guestfs_launch (guestfs_h *g);\n"
30601 "\n"
30602 msgstr ""
30603
30604 #. type: =head2
30605 #: ../src/guestfs-actions.pod:4112
30606 msgid "guestfs_lchown"
30607 msgstr ""
30608
30609 #. type: verbatim
30610 #: ../src/guestfs-actions.pod:4114
30611 #, no-wrap
30612 msgid ""
30613 " int\n"
30614 " guestfs_lchown (guestfs_h *g,\n"
30615 "                 int owner,\n"
30616 "                 int group,\n"
30617 "                 const char *path);\n"
30618 "\n"
30619 msgstr ""
30620
30621 #. type: textblock
30622 #: ../src/guestfs-actions.pod:4120
30623 msgid ""
30624 "Change the file owner to C<owner> and group to C<group>.  This is like "
30625 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30626 "changed, not the target."
30627 msgstr ""
30628
30629 #. type: =head2
30630 #: ../src/guestfs-actions.pod:4132
30631 msgid "guestfs_lgetxattr"
30632 msgstr ""
30633
30634 #. type: verbatim
30635 #: ../src/guestfs-actions.pod:4134
30636 #, no-wrap
30637 msgid ""
30638 " char *\n"
30639 " guestfs_lgetxattr (guestfs_h *g,\n"
30640 "                    const char *path,\n"
30641 "                    const char *name,\n"
30642 "                    size_t *size_r);\n"
30643 "\n"
30644 msgstr ""
30645
30646 #. type: textblock
30647 #: ../src/guestfs-actions.pod:4154
30648 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30649 msgstr ""
30650
30651 #. type: =head2
30652 #: ../src/guestfs-actions.pod:4162
30653 msgid "guestfs_lgetxattrs"
30654 msgstr ""
30655
30656 #. type: verbatim
30657 #: ../src/guestfs-actions.pod:4164
30658 #, no-wrap
30659 msgid ""
30660 " struct guestfs_xattr_list *\n"
30661 " guestfs_lgetxattrs (guestfs_h *g,\n"
30662 "                     const char *path);\n"
30663 "\n"
30664 msgstr ""
30665
30666 #. type: textblock
30667 #: ../src/guestfs-actions.pod:4168
30668 msgid ""
30669 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30670 "then it returns the extended attributes of the link itself."
30671 msgstr ""
30672
30673 #. type: =head2
30674 #: ../src/guestfs-actions.pod:4178
30675 msgid "guestfs_list_9p"
30676 msgstr ""
30677
30678 #. type: verbatim
30679 #: ../src/guestfs-actions.pod:4180
30680 #, no-wrap
30681 msgid ""
30682 " char **\n"
30683 " guestfs_list_9p (guestfs_h *g);\n"
30684 "\n"
30685 msgstr ""
30686
30687 #. type: =head2
30688 #: ../src/guestfs-actions.pod:4192
30689 msgid "guestfs_list_devices"
30690 msgstr ""
30691
30692 #. type: verbatim
30693 #: ../src/guestfs-actions.pod:4194
30694 #, no-wrap
30695 msgid ""
30696 " char **\n"
30697 " guestfs_list_devices (guestfs_h *g);\n"
30698 "\n"
30699 msgstr ""
30700
30701 #. type: =head2
30702 #: ../src/guestfs-actions.pod:4209
30703 msgid "guestfs_list_dm_devices"
30704 msgstr ""
30705
30706 #. type: verbatim
30707 #: ../src/guestfs-actions.pod:4211
30708 #, no-wrap
30709 msgid ""
30710 " char **\n"
30711 " guestfs_list_dm_devices (guestfs_h *g);\n"
30712 "\n"
30713 msgstr ""
30714
30715 #. type: textblock
30716 #: ../src/guestfs-actions.pod:4216
30717 msgid ""
30718 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30719 "previous call to C<guestfs_luks_open>."
30720 msgstr ""
30721
30722 #. type: textblock
30723 #: ../src/guestfs-actions.pod:4219
30724 msgid ""
30725 "Device mapper devices which correspond to logical volumes are I<not> "
30726 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30727 "volumes."
30728 msgstr ""
30729
30730 #. type: textblock
30731 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
30732 msgid "(Added in 1.11.15)"
30733 msgstr "(Додано у 1.11.15)"
30734
30735 #. type: =head2
30736 #: ../src/guestfs-actions.pod:4229
30737 msgid "guestfs_list_filesystems"
30738 msgstr ""
30739
30740 #. type: verbatim
30741 #: ../src/guestfs-actions.pod:4231
30742 #, no-wrap
30743 msgid ""
30744 " char **\n"
30745 " guestfs_list_filesystems (guestfs_h *g);\n"
30746 "\n"
30747 msgstr ""
30748
30749 #. type: textblock
30750 #: ../src/guestfs-actions.pod:4251
30751 msgid ""
30752 "This command runs other libguestfs commands, which might include "
30753 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30754 "soon after launch and only when nothing is mounted."
30755 msgstr ""
30756
30757 #. type: textblock
30758 #: ../src/guestfs-actions.pod:4255
30759 msgid ""
30760 "Not all of the filesystems returned will be mountable.  In particular, swap "
30761 "partitions are returned in the list.  Also this command does not check that "
30762 "each filesystem found is valid and mountable, and some filesystems might be "
30763 "mountable but require special options.  Filesystems may not all belong to a "
30764 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30765 msgstr ""
30766
30767 #. type: textblock
30768 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
30769 msgid "(Added in 1.5.15)"
30770 msgstr "(Додано у 1.5.15)"
30771
30772 #. type: =head2
30773 #: ../src/guestfs-actions.pod:4271
30774 msgid "guestfs_list_partitions"
30775 msgstr "guestfs_list_partitions"
30776
30777 #. type: verbatim
30778 #: ../src/guestfs-actions.pod:4273
30779 #, no-wrap
30780 msgid ""
30781 " char **\n"
30782 " guestfs_list_partitions (guestfs_h *g);\n"
30783 "\n"
30784 msgstr ""
30785 " char **\n"
30786 " guestfs_list_partitions (guestfs_h *g);\n"
30787 "\n"
30788
30789 #. type: textblock
30790 #: ../src/guestfs-actions.pod:4280
30791 msgid ""
30792 "This does not return logical volumes.  For that you will need to call "
30793 "C<guestfs_lvs>."
30794 msgstr ""
30795
30796 #. type: =head2
30797 #: ../src/guestfs-actions.pod:4291
30798 msgid "guestfs_ll"
30799 msgstr "guestfs_ll"
30800
30801 #. type: verbatim
30802 #: ../src/guestfs-actions.pod:4293
30803 #, no-wrap
30804 msgid ""
30805 " char *\n"
30806 " guestfs_ll (guestfs_h *g,\n"
30807 "             const char *directory);\n"
30808 "\n"
30809 msgstr ""
30810 " char *\n"
30811 " guestfs_ll (guestfs_h *g,\n"
30812 "             const char *directory);\n"
30813 "\n"
30814
30815 #. type: =head2
30816 #: ../src/guestfs-actions.pod:4308
30817 msgid "guestfs_ln"
30818 msgstr "guestfs_ln"
30819
30820 #. type: verbatim
30821 #: ../src/guestfs-actions.pod:4310
30822 #, no-wrap
30823 msgid ""
30824 " int\n"
30825 " guestfs_ln (guestfs_h *g,\n"
30826 "             const char *target,\n"
30827 "             const char *linkname);\n"
30828 "\n"
30829 msgstr ""
30830 " int\n"
30831 " guestfs_ln (guestfs_h *g,\n"
30832 "             const char *target,\n"
30833 "             const char *linkname);\n"
30834 "\n"
30835
30836 #. type: =head2
30837 #: ../src/guestfs-actions.pod:4321
30838 msgid "guestfs_ln_f"
30839 msgstr "guestfs_ln_f"
30840
30841 #. type: verbatim
30842 #: ../src/guestfs-actions.pod:4323
30843 #, no-wrap
30844 msgid ""
30845 " int\n"
30846 " guestfs_ln_f (guestfs_h *g,\n"
30847 "               const char *target,\n"
30848 "               const char *linkname);\n"
30849 "\n"
30850 msgstr ""
30851 " int\n"
30852 " guestfs_ln_f (guestfs_h *g,\n"
30853 "               const char *target,\n"
30854 "               const char *linkname);\n"
30855 "\n"
30856
30857 #. type: =head2
30858 #: ../src/guestfs-actions.pod:4335
30859 msgid "guestfs_ln_s"
30860 msgstr "guestfs_ln_s"
30861
30862 #. type: verbatim
30863 #: ../src/guestfs-actions.pod:4337
30864 #, no-wrap
30865 msgid ""
30866 " int\n"
30867 " guestfs_ln_s (guestfs_h *g,\n"
30868 "               const char *target,\n"
30869 "               const char *linkname);\n"
30870 "\n"
30871 msgstr ""
30872 " int\n"
30873 " guestfs_ln_s (guestfs_h *g,\n"
30874 "               const char *target,\n"
30875 "               const char *linkname);\n"
30876 "\n"
30877
30878 #. type: =head2
30879 #: ../src/guestfs-actions.pod:4348
30880 msgid "guestfs_ln_sf"
30881 msgstr "guestfs_ln_sf"
30882
30883 #. type: verbatim
30884 #: ../src/guestfs-actions.pod:4350
30885 #, no-wrap
30886 msgid ""
30887 " int\n"
30888 " guestfs_ln_sf (guestfs_h *g,\n"
30889 "                const char *target,\n"
30890 "                const char *linkname);\n"
30891 "\n"
30892 msgstr ""
30893 " int\n"
30894 " guestfs_ln_sf (guestfs_h *g,\n"
30895 "                const char *target,\n"
30896 "                const char *linkname);\n"
30897 "\n"
30898
30899 #. type: =head2
30900 #: ../src/guestfs-actions.pod:4362
30901 msgid "guestfs_lremovexattr"
30902 msgstr "guestfs_lremovexattr"
30903
30904 #. type: verbatim
30905 #: ../src/guestfs-actions.pod:4364
30906 #, no-wrap
30907 msgid ""
30908 " int\n"
30909 " guestfs_lremovexattr (guestfs_h *g,\n"
30910 "                       const char *xattr,\n"
30911 "                       const char *path);\n"
30912 "\n"
30913 msgstr ""
30914 " int\n"
30915 " guestfs_lremovexattr (guestfs_h *g,\n"
30916 "                       const char *xattr,\n"
30917 "                       const char *path);\n"
30918 "\n"
30919
30920 #. type: textblock
30921 #: ../src/guestfs-actions.pod:4369
30922 msgid ""
30923 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30924 "link, then it removes an extended attribute of the link itself."
30925 msgstr ""
30926
30927 #. type: =head2
30928 #: ../src/guestfs-actions.pod:4377
30929 msgid "guestfs_ls"
30930 msgstr "guestfs_ls"
30931
30932 #. type: verbatim
30933 #: ../src/guestfs-actions.pod:4379
30934 #, no-wrap
30935 msgid ""
30936 " char **\n"
30937 " guestfs_ls (guestfs_h *g,\n"
30938 "             const char *directory);\n"
30939 "\n"
30940 msgstr ""
30941 " char **\n"
30942 " guestfs_ls (guestfs_h *g,\n"
30943 "             const char *directory);\n"
30944 "\n"
30945
30946 #. type: textblock
30947 #: ../src/guestfs-actions.pod:4387
30948 msgid ""
30949 "This command is mostly useful for interactive sessions.  Programs should "
30950 "probably use C<guestfs_readdir> instead."
30951 msgstr ""
30952
30953 #. type: =head2
30954 #: ../src/guestfs-actions.pod:4396
30955 msgid "guestfs_lsetxattr"
30956 msgstr "guestfs_lsetxattr"
30957
30958 #. type: verbatim
30959 #: ../src/guestfs-actions.pod:4398
30960 #, no-wrap
30961 msgid ""
30962 " int\n"
30963 " guestfs_lsetxattr (guestfs_h *g,\n"
30964 "                    const char *xattr,\n"
30965 "                    const char *val,\n"
30966 "                    int vallen,\n"
30967 "                    const char *path);\n"
30968 "\n"
30969 msgstr ""
30970 " int\n"
30971 " guestfs_lsetxattr (guestfs_h *g,\n"
30972 "                    const char *xattr,\n"
30973 "                    const char *val,\n"
30974 "                    int vallen,\n"
30975 "                    const char *path);\n"
30976 "\n"
30977
30978 #. type: textblock
30979 #: ../src/guestfs-actions.pod:4405
30980 msgid ""
30981 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30982 "then it sets an extended attribute of the link itself."
30983 msgstr ""
30984
30985 #. type: =head2
30986 #: ../src/guestfs-actions.pod:4413
30987 msgid "guestfs_lstat"
30988 msgstr "guestfs_lstat"
30989
30990 #. type: verbatim
30991 #: ../src/guestfs-actions.pod:4415
30992 #, no-wrap
30993 msgid ""
30994 " struct guestfs_stat *\n"
30995 " guestfs_lstat (guestfs_h *g,\n"
30996 "                const char *path);\n"
30997 "\n"
30998 msgstr ""
30999 " struct guestfs_stat *\n"
31000 " guestfs_lstat (guestfs_h *g,\n"
31001 "                const char *path);\n"
31002 "\n"
31003
31004 #. type: textblock
31005 #: ../src/guestfs-actions.pod:4421
31006 msgid ""
31007 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31008 "link, then the link is stat-ed, not the file it refers to."
31009 msgstr ""
31010
31011 #. type: textblock
31012 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
31013 msgid ""
31014 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31015 "error.  I<The caller must call C<guestfs_free_stat> after use>."
31016 msgstr ""
31017
31018 #. type: textblock
31019 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
31020 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
31021 msgid "(Added in 0.9.2)"
31022 msgstr "(Додано у 0.9.2)"
31023
31024 #. type: =head2
31025 #: ../src/guestfs-actions.pod:4433
31026 msgid "guestfs_lstatlist"
31027 msgstr "guestfs_lstatlist"
31028
31029 #. type: verbatim
31030 #: ../src/guestfs-actions.pod:4435
31031 #, no-wrap
31032 msgid ""
31033 " struct guestfs_stat_list *\n"
31034 " guestfs_lstatlist (guestfs_h *g,\n"
31035 "                    const char *path,\n"
31036 "                    char *const *names);\n"
31037 "\n"
31038 msgstr ""
31039 " struct guestfs_stat_list *\n"
31040 " guestfs_lstatlist (guestfs_h *g,\n"
31041 "                    const char *path,\n"
31042 "                    char *const *names);\n"
31043 "\n"
31044
31045 #. type: textblock
31046 #: ../src/guestfs-actions.pod:4440
31047 msgid ""
31048 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31049 "files, where all files are in the directory C<path>.  C<names> is the list "
31050 "of files from this directory."
31051 msgstr ""
31052
31053 #. type: textblock
31054 #: ../src/guestfs-actions.pod:4449
31055 msgid ""
31056 "This call is intended for programs that want to efficiently list a directory "
31057 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
31058 "for a similarly efficient call for getting extended attributes.  Very long "
31059 "directory listings might cause the protocol message size to be exceeded, "
31060 "causing this call to fail.  The caller must split up such requests into "
31061 "smaller groups of names."
31062 msgstr ""
31063
31064 #. type: textblock
31065 #: ../src/guestfs-actions.pod:4457
31066 msgid ""
31067 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31068 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
31069 msgstr ""
31070
31071 #. type: =head2
31072 #: ../src/guestfs-actions.pod:4463
31073 msgid "guestfs_luks_add_key"
31074 msgstr "guestfs_luks_add_key"
31075
31076 #. type: verbatim
31077 #: ../src/guestfs-actions.pod:4465
31078 #, no-wrap
31079 msgid ""
31080 " int\n"
31081 " guestfs_luks_add_key (guestfs_h *g,\n"
31082 "                       const char *device,\n"
31083 "                       const char *key,\n"
31084 "                       const char *newkey,\n"
31085 "                       int keyslot);\n"
31086 "\n"
31087 msgstr ""
31088 " int\n"
31089 " guestfs_luks_add_key (guestfs_h *g,\n"
31090 "                       const char *device,\n"
31091 "                       const char *key,\n"
31092 "                       const char *newkey,\n"
31093 "                       int keyslot);\n"
31094 "\n"
31095
31096 #. type: textblock
31097 #: ../src/guestfs-actions.pod:4477
31098 msgid ""
31099 "Note that if C<keyslot> already contains a key, then this command will "
31100 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
31101 msgstr ""
31102
31103 #. type: textblock
31104 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
31105 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
31106 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
31107 msgid ""
31108 "This function takes a key or passphrase parameter which could contain "
31109 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
31110 "information."
31111 msgstr ""
31112
31113 #. type: textblock
31114 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
31115 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
31116 msgid "(Added in 1.5.2)"
31117 msgstr "(Додано у 1.5.2)"
31118
31119 #. type: =head2
31120 #: ../src/guestfs-actions.pod:4489
31121 msgid "guestfs_luks_close"
31122 msgstr "guestfs_luks_close"
31123
31124 #. type: verbatim
31125 #: ../src/guestfs-actions.pod:4491
31126 #, no-wrap
31127 msgid ""
31128 " int\n"
31129 " guestfs_luks_close (guestfs_h *g,\n"
31130 "                     const char *device);\n"
31131 "\n"
31132 msgstr ""
31133 " int\n"
31134 " guestfs_luks_close (guestfs_h *g,\n"
31135 "                     const char *device);\n"
31136 "\n"
31137
31138 #. type: textblock
31139 #: ../src/guestfs-actions.pod:4495
31140 msgid ""
31141 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31142 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
31143 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31144 "underlying block device."
31145 msgstr ""
31146
31147 #. type: textblock
31148 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
31149 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
31150 #: ../src/guestfs-actions.pod:4713
31151 msgid "(Added in 1.5.1)"
31152 msgstr "(Додано у 1.5.1)"
31153
31154 #. type: =head2
31155 #: ../src/guestfs-actions.pod:4505
31156 msgid "guestfs_luks_format"
31157 msgstr "guestfs_luks_format"
31158
31159 #. type: verbatim
31160 #: ../src/guestfs-actions.pod:4507
31161 #, no-wrap
31162 msgid ""
31163 " int\n"
31164 " guestfs_luks_format (guestfs_h *g,\n"
31165 "                      const char *device,\n"
31166 "                      const char *key,\n"
31167 "                      int keyslot);\n"
31168 "\n"
31169 msgstr ""
31170 " int\n"
31171 " guestfs_luks_format (guestfs_h *g,\n"
31172 "                      const char *device,\n"
31173 "                      const char *key,\n"
31174 "                      int keyslot);\n"
31175 "\n"
31176
31177 #. type: =head2
31178 #: ../src/guestfs-actions.pod:4526
31179 msgid "guestfs_luks_format_cipher"
31180 msgstr "guestfs_luks_format_cipher"
31181
31182 #. type: verbatim
31183 #: ../src/guestfs-actions.pod:4528
31184 #, no-wrap
31185 msgid ""
31186 " int\n"
31187 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31188 "                             const char *device,\n"
31189 "                             const char *key,\n"
31190 "                             int keyslot,\n"
31191 "                             const char *cipher);\n"
31192 "\n"
31193 msgstr ""
31194 " int\n"
31195 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31196 "                             const char *device,\n"
31197 "                             const char *key,\n"
31198 "                             int keyslot,\n"
31199 "                             const char *cipher);\n"
31200 "\n"
31201
31202 #. type: textblock
31203 #: ../src/guestfs-actions.pod:4535
31204 msgid ""
31205 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31206 "set the C<cipher> used."
31207 msgstr ""
31208
31209 #. type: =head2
31210 #: ../src/guestfs-actions.pod:4546
31211 msgid "guestfs_luks_kill_slot"
31212 msgstr "guestfs_luks_kill_slot"
31213
31214 #. type: verbatim
31215 #: ../src/guestfs-actions.pod:4548
31216 #, no-wrap
31217 msgid ""
31218 " int\n"
31219 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31220 "                         const char *device,\n"
31221 "                         const char *key,\n"
31222 "                         int keyslot);\n"
31223 "\n"
31224 msgstr ""
31225 " int\n"
31226 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31227 "                         const char *device,\n"
31228 "                         const char *key,\n"
31229 "                         int keyslot);\n"
31230 "\n"
31231
31232 #. type: =head2
31233 #: ../src/guestfs-actions.pod:4566
31234 msgid "guestfs_luks_open"
31235 msgstr "guestfs_luks_open"
31236
31237 #. type: verbatim
31238 #: ../src/guestfs-actions.pod:4568
31239 #, no-wrap
31240 msgid ""
31241 " int\n"
31242 " guestfs_luks_open (guestfs_h *g,\n"
31243 "                    const char *device,\n"
31244 "                    const char *key,\n"
31245 "                    const char *mapname);\n"
31246 "\n"
31247 msgstr ""
31248 " int\n"
31249 " guestfs_luks_open (guestfs_h *g,\n"
31250 "                    const char *device,\n"
31251 "                    const char *key,\n"
31252 "                    const char *mapname);\n"
31253 "\n"
31254
31255 #. type: textblock
31256 #: ../src/guestfs-actions.pod:4586
31257 msgid ""
31258 "If this block device contains LVM volume groups, then calling "
31259 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
31260 "visible."
31261 msgstr ""
31262
31263 #. type: textblock
31264 #: ../src/guestfs-actions.pod:4590
31265 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31266 msgstr ""
31267
31268 #. type: =head2
31269 #: ../src/guestfs-actions.pod:4601
31270 msgid "guestfs_luks_open_ro"
31271 msgstr "guestfs_luks_open_ro"
31272
31273 #. type: verbatim
31274 #: ../src/guestfs-actions.pod:4603
31275 #, no-wrap
31276 msgid ""
31277 " int\n"
31278 " guestfs_luks_open_ro (guestfs_h *g,\n"
31279 "                       const char *device,\n"
31280 "                       const char *key,\n"
31281 "                       const char *mapname);\n"
31282 "\n"
31283 msgstr ""
31284 " int\n"
31285 " guestfs_luks_open_ro (guestfs_h *g,\n"
31286 "                       const char *device,\n"
31287 "                       const char *key,\n"
31288 "                       const char *mapname);\n"
31289 "\n"
31290
31291 #. type: textblock
31292 #: ../src/guestfs-actions.pod:4609
31293 msgid ""
31294 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31295 "created."
31296 msgstr ""
31297
31298 #. type: =head2
31299 #: ../src/guestfs-actions.pod:4620
31300 msgid "guestfs_lvcreate"
31301 msgstr "guestfs_lvcreate"
31302
31303 #. type: verbatim
31304 #: ../src/guestfs-actions.pod:4622
31305 #, no-wrap
31306 msgid ""
31307 " int\n"
31308 " guestfs_lvcreate (guestfs_h *g,\n"
31309 "                   const char *logvol,\n"
31310 "                   const char *volgroup,\n"
31311 "                   int mbytes);\n"
31312 "\n"
31313 msgstr ""
31314 " int\n"
31315 " guestfs_lvcreate (guestfs_h *g,\n"
31316 "                   const char *logvol,\n"
31317 "                   const char *volgroup,\n"
31318 "                   int mbytes);\n"
31319 "\n"
31320
31321 #. type: =head2
31322 #: ../src/guestfs-actions.pod:4635
31323 msgid "guestfs_lvm_canonical_lv_name"
31324 msgstr "guestfs_lvm_canonical_lv_name"
31325
31326 #. type: verbatim
31327 #: ../src/guestfs-actions.pod:4637
31328 #, no-wrap
31329 msgid ""
31330 " char *\n"
31331 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31332 "                                const char *lvname);\n"
31333 "\n"
31334 msgstr ""
31335 " char *\n"
31336 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31337 "                                const char *lvname);\n"
31338 "\n"
31339
31340 #. type: textblock
31341 #: ../src/guestfs-actions.pod:4648
31342 msgid "See also C<guestfs_is_lv>."
31343 msgstr ""
31344
31345 #. type: textblock
31346 #: ../src/guestfs-actions.pod:4653
31347 msgid "(Added in 1.5.24)"
31348 msgstr "(Додано у 1.5.24)"
31349
31350 #. type: =head2
31351 #: ../src/guestfs-actions.pod:4655
31352 msgid "guestfs_lvm_clear_filter"
31353 msgstr "guestfs_lvm_clear_filter"
31354
31355 #. type: verbatim
31356 #: ../src/guestfs-actions.pod:4657
31357 #, no-wrap
31358 msgid ""
31359 " int\n"
31360 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31361 "\n"
31362 msgstr ""
31363 " int\n"
31364 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31365 "\n"
31366
31367 #. type: textblock
31368 #: ../src/guestfs-actions.pod:4660
31369 msgid ""
31370 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
31371 "see every block device."
31372 msgstr ""
31373
31374 #. type: =head2
31375 #: ../src/guestfs-actions.pod:4670
31376 msgid "guestfs_lvm_remove_all"
31377 msgstr "guestfs_lvm_remove_all"
31378
31379 #. type: verbatim
31380 #: ../src/guestfs-actions.pod:4672
31381 #, no-wrap
31382 msgid ""
31383 " int\n"
31384 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31385 "\n"
31386 msgstr ""
31387 " int\n"
31388 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31389 "\n"
31390
31391 #. type: =head2
31392 #: ../src/guestfs-actions.pod:4682
31393 msgid "guestfs_lvm_set_filter"
31394 msgstr "guestfs_lvm_set_filter"
31395
31396 #. type: verbatim
31397 #: ../src/guestfs-actions.pod:4684
31398 #, no-wrap
31399 msgid ""
31400 " int\n"
31401 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31402 "                         char *const *devices);\n"
31403 "\n"
31404 msgstr ""
31405 " int\n"
31406 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31407 "                         char *const *devices);\n"
31408 "\n"
31409
31410 #. type: =head2
31411 #: ../src/guestfs-actions.pod:4715
31412 msgid "guestfs_lvremove"
31413 msgstr "guestfs_lvremove"
31414
31415 #. type: verbatim
31416 #: ../src/guestfs-actions.pod:4717
31417 #, no-wrap
31418 msgid ""
31419 " int\n"
31420 " guestfs_lvremove (guestfs_h *g,\n"
31421 "                   const char *device);\n"
31422 "\n"
31423 msgstr ""
31424 " int\n"
31425 " guestfs_lvremove (guestfs_h *g,\n"
31426 "                   const char *device);\n"
31427 "\n"
31428
31429 #. type: textblock
31430 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
31431 #: ../src/guestfs-actions.pod:7977
31432 msgid "(Added in 1.0.13)"
31433 msgstr "(Додано у 1.0.13)"
31434
31435 #. type: =head2
31436 #: ../src/guestfs-actions.pod:4731
31437 msgid "guestfs_lvrename"
31438 msgstr "guestfs_lvrename"
31439
31440 #. type: verbatim
31441 #: ../src/guestfs-actions.pod:4733
31442 #, no-wrap
31443 msgid ""
31444 " int\n"
31445 " guestfs_lvrename (guestfs_h *g,\n"
31446 "                   const char *logvol,\n"
31447 "                   const char *newlogvol);\n"
31448 "\n"
31449 msgstr ""
31450 " int\n"
31451 " guestfs_lvrename (guestfs_h *g,\n"
31452 "                   const char *logvol,\n"
31453 "                   const char *newlogvol);\n"
31454 "\n"
31455
31456 #. type: textblock
31457 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
31458 msgid "(Added in 1.0.83)"
31459 msgstr "(Додано у 1.0.83)"
31460
31461 #. type: =head2
31462 #: ../src/guestfs-actions.pod:4744
31463 msgid "guestfs_lvresize"
31464 msgstr "guestfs_lvresize"
31465
31466 #. type: verbatim
31467 #: ../src/guestfs-actions.pod:4746
31468 #, no-wrap
31469 msgid ""
31470 " int\n"
31471 " guestfs_lvresize (guestfs_h *g,\n"
31472 "                   const char *device,\n"
31473 "                   int mbytes);\n"
31474 "\n"
31475 msgstr ""
31476 " int\n"
31477 " guestfs_lvresize (guestfs_h *g,\n"
31478 "                   const char *device,\n"
31479 "                   int mbytes);\n"
31480 "\n"
31481
31482 #. type: =head2
31483 #: ../src/guestfs-actions.pod:4759
31484 msgid "guestfs_lvresize_free"
31485 msgstr "guestfs_lvresize_free"
31486
31487 #. type: verbatim
31488 #: ../src/guestfs-actions.pod:4761
31489 #, no-wrap
31490 msgid ""
31491 " int\n"
31492 " guestfs_lvresize_free (guestfs_h *g,\n"
31493 "                        const char *lv,\n"
31494 "                        int percent);\n"
31495 "\n"
31496 msgstr ""
31497 " int\n"
31498 " guestfs_lvresize_free (guestfs_h *g,\n"
31499 "                        const char *lv,\n"
31500 "                        int percent);\n"
31501 "\n"
31502
31503 #. type: textblock
31504 #: ../src/guestfs-actions.pod:4774
31505 msgid "(Added in 1.3.3)"
31506 msgstr "(Додано у 1.3.3)"
31507
31508 #. type: =head2
31509 #: ../src/guestfs-actions.pod:4776
31510 msgid "guestfs_lvs"
31511 msgstr "guestfs_lvs"
31512
31513 #. type: verbatim
31514 #: ../src/guestfs-actions.pod:4778
31515 #, no-wrap
31516 msgid ""
31517 " char **\n"
31518 " guestfs_lvs (guestfs_h *g);\n"
31519 "\n"
31520 msgstr ""
31521 " char **\n"
31522 " guestfs_lvs (guestfs_h *g);\n"
31523 "\n"
31524
31525 #. type: textblock
31526 #: ../src/guestfs-actions.pod:4787
31527 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31528 msgstr ""
31529
31530 #. type: =head2
31531 #: ../src/guestfs-actions.pod:4795
31532 msgid "guestfs_lvs_full"
31533 msgstr "guestfs_lvs_full"
31534
31535 #. type: verbatim
31536 #: ../src/guestfs-actions.pod:4797
31537 #, no-wrap
31538 msgid ""
31539 " struct guestfs_lvm_lv_list *\n"
31540 " guestfs_lvs_full (guestfs_h *g);\n"
31541 "\n"
31542 msgstr ""
31543 " struct guestfs_lvm_lv_list *\n"
31544 " guestfs_lvs_full (guestfs_h *g);\n"
31545 "\n"
31546
31547 #. type: textblock
31548 #: ../src/guestfs-actions.pod:4803
31549 msgid ""
31550 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31551 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31552 msgstr ""
31553
31554 #. type: =head2
31555 #: ../src/guestfs-actions.pod:4809
31556 msgid "guestfs_lvuuid"
31557 msgstr "guestfs_lvuuid"
31558
31559 #. type: verbatim
31560 #: ../src/guestfs-actions.pod:4811
31561 #, no-wrap
31562 msgid ""
31563 " char *\n"
31564 " guestfs_lvuuid (guestfs_h *g,\n"
31565 "                 const char *device);\n"
31566 "\n"
31567 msgstr ""
31568 " char *\n"
31569 " guestfs_lvuuid (guestfs_h *g,\n"
31570 "                 const char *device);\n"
31571 "\n"
31572
31573 #. type: =head2
31574 #: ../src/guestfs-actions.pod:4822
31575 msgid "guestfs_lxattrlist"
31576 msgstr "guestfs_lxattrlist"
31577
31578 #. type: verbatim
31579 #: ../src/guestfs-actions.pod:4824
31580 #, no-wrap
31581 msgid ""
31582 " struct guestfs_xattr_list *\n"
31583 " guestfs_lxattrlist (guestfs_h *g,\n"
31584 "                     const char *path,\n"
31585 "                     char *const *names);\n"
31586 "\n"
31587 msgstr ""
31588 " struct guestfs_xattr_list *\n"
31589 " guestfs_lxattrlist (guestfs_h *g,\n"
31590 "                     const char *path,\n"
31591 "                     char *const *names);\n"
31592 "\n"
31593
31594 #. type: textblock
31595 #: ../src/guestfs-actions.pod:4843
31596 msgid ""
31597 "This call is intended for programs that want to efficiently list a directory "
31598 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
31599 "a similarly efficient call for getting standard stats.  Very long directory "
31600 "listings might cause the protocol message size to be exceeded, causing this "
31601 "call to fail.  The caller must split up such requests into smaller groups of "
31602 "names."
31603 msgstr ""
31604
31605 #. type: =head2
31606 #: ../src/guestfs-actions.pod:4857
31607 msgid "guestfs_mkdir"
31608 msgstr "guestfs_mkdir"
31609
31610 #. type: verbatim
31611 #: ../src/guestfs-actions.pod:4859
31612 #, no-wrap
31613 msgid ""
31614 " int\n"
31615 " guestfs_mkdir (guestfs_h *g,\n"
31616 "                const char *path);\n"
31617 "\n"
31618 msgstr ""
31619 " int\n"
31620 " guestfs_mkdir (guestfs_h *g,\n"
31621 "                const char *path);\n"
31622 "\n"
31623
31624 #. type: =head2
31625 #: ../src/guestfs-actions.pod:4869
31626 msgid "guestfs_mkdir_mode"
31627 msgstr "guestfs_mkdir_mode"
31628
31629 #. type: verbatim
31630 #: ../src/guestfs-actions.pod:4871
31631 #, no-wrap
31632 msgid ""
31633 " int\n"
31634 " guestfs_mkdir_mode (guestfs_h *g,\n"
31635 "                     const char *path,\n"
31636 "                     int mode);\n"
31637 "\n"
31638 msgstr ""
31639 " int\n"
31640 " guestfs_mkdir_mode (guestfs_h *g,\n"
31641 "                     const char *path,\n"
31642 "                     int mode);\n"
31643 "\n"
31644
31645 #. type: textblock
31646 #: ../src/guestfs-actions.pod:4883
31647 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31648 msgstr ""
31649
31650 #. type: =head2
31651 #: ../src/guestfs-actions.pod:4889
31652 msgid "guestfs_mkdir_p"
31653 msgstr "guestfs_mkdir_p"
31654
31655 #. type: verbatim
31656 #: ../src/guestfs-actions.pod:4891
31657 #, no-wrap
31658 msgid ""
31659 " int\n"
31660 " guestfs_mkdir_p (guestfs_h *g,\n"
31661 "                  const char *path);\n"
31662 "\n"
31663 msgstr ""
31664 " int\n"
31665 " guestfs_mkdir_p (guestfs_h *g,\n"
31666 "                  const char *path);\n"
31667 "\n"
31668
31669 #. type: =head2
31670 #: ../src/guestfs-actions.pod:4902
31671 msgid "guestfs_mkdtemp"
31672 msgstr "guestfs_mkdtemp"
31673
31674 #. type: verbatim
31675 #: ../src/guestfs-actions.pod:4904
31676 #, no-wrap
31677 msgid ""
31678 " char *\n"
31679 " guestfs_mkdtemp (guestfs_h *g,\n"
31680 "                  const char *template);\n"
31681 "\n"
31682 msgstr ""
31683 " char *\n"
31684 " guestfs_mkdtemp (guestfs_h *g,\n"
31685 "                  const char *template);\n"
31686 "\n"
31687
31688 #. type: =head2
31689 #: ../src/guestfs-actions.pod:4932
31690 msgid "guestfs_mke2fs_J"
31691 msgstr "guestfs_mke2fs_J"
31692
31693 #. type: verbatim
31694 #: ../src/guestfs-actions.pod:4934
31695 #, no-wrap
31696 msgid ""
31697 " int\n"
31698 " guestfs_mke2fs_J (guestfs_h *g,\n"
31699 "                   const char *fstype,\n"
31700 "                   int blocksize,\n"
31701 "                   const char *device,\n"
31702 "                   const char *journal);\n"
31703 "\n"
31704 msgstr ""
31705 " int\n"
31706 " guestfs_mke2fs_J (guestfs_h *g,\n"
31707 "                   const char *fstype,\n"
31708 "                   int blocksize,\n"
31709 "                   const char *device,\n"
31710 "                   const char *journal);\n"
31711 "\n"
31712
31713 #. type: textblock
31714 #: ../src/guestfs-actions.pod:4947
31715 msgid "See also C<guestfs_mke2journal>."
31716 msgstr ""
31717
31718 #. type: textblock
31719 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
31720 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
31721 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
31722 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
31723 msgid "(Added in 1.0.68)"
31724 msgstr "(Додано у 1.0.68)"
31725
31726 #. type: =head2
31727 #: ../src/guestfs-actions.pod:4953
31728 msgid "guestfs_mke2fs_JL"
31729 msgstr "guestfs_mke2fs_JL"
31730
31731 #. type: verbatim
31732 #: ../src/guestfs-actions.pod:4955
31733 #, no-wrap
31734 msgid ""
31735 " int\n"
31736 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31737 "                    const char *fstype,\n"
31738 "                    int blocksize,\n"
31739 "                    const char *device,\n"
31740 "                    const char *label);\n"
31741 "\n"
31742 msgstr ""
31743 " int\n"
31744 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31745 "                    const char *fstype,\n"
31746 "                    int blocksize,\n"
31747 "                    const char *device,\n"
31748 "                    const char *label);\n"
31749 "\n"
31750
31751 #. type: textblock
31752 #: ../src/guestfs-actions.pod:4965
31753 msgid "See also C<guestfs_mke2journal_L>."
31754 msgstr ""
31755
31756 #. type: =head2
31757 #: ../src/guestfs-actions.pod:4971
31758 msgid "guestfs_mke2fs_JU"
31759 msgstr "guestfs_mke2fs_JU"
31760
31761 #. type: verbatim
31762 #: ../src/guestfs-actions.pod:4973
31763 #, no-wrap
31764 msgid ""
31765 " int\n"
31766 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31767 "                    const char *fstype,\n"
31768 "                    int blocksize,\n"
31769 "                    const char *device,\n"
31770 "                    const char *uuid);\n"
31771 "\n"
31772 msgstr ""
31773 " int\n"
31774 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31775 "                    const char *fstype,\n"
31776 "                    int blocksize,\n"
31777 "                    const char *device,\n"
31778 "                    const char *uuid);\n"
31779 "\n"
31780
31781 #. type: textblock
31782 #: ../src/guestfs-actions.pod:4983
31783 msgid "See also C<guestfs_mke2journal_U>."
31784 msgstr ""
31785
31786 #. type: =head2
31787 #: ../src/guestfs-actions.pod:4989
31788 msgid "guestfs_mke2journal"
31789 msgstr "guestfs_mke2journal"
31790
31791 #. type: verbatim
31792 #: ../src/guestfs-actions.pod:4991
31793 #, no-wrap
31794 msgid ""
31795 " int\n"
31796 " guestfs_mke2journal (guestfs_h *g,\n"
31797 "                      int blocksize,\n"
31798 "                      const char *device);\n"
31799 "\n"
31800 msgstr ""
31801 " int\n"
31802 " guestfs_mke2journal (guestfs_h *g,\n"
31803 "                      int blocksize,\n"
31804 "                      const char *device);\n"
31805 "\n"
31806
31807 #. type: =head2
31808 #: ../src/guestfs-actions.pod:5005
31809 msgid "guestfs_mke2journal_L"
31810 msgstr "guestfs_mke2journal_L"
31811
31812 #. type: verbatim
31813 #: ../src/guestfs-actions.pod:5007
31814 #, no-wrap
31815 msgid ""
31816 " int\n"
31817 " guestfs_mke2journal_L (guestfs_h *g,\n"
31818 "                        int blocksize,\n"
31819 "                        const char *label,\n"
31820 "                        const char *device);\n"
31821 "\n"
31822 msgstr ""
31823 " int\n"
31824 " guestfs_mke2journal_L (guestfs_h *g,\n"
31825 "                        int blocksize,\n"
31826 "                        const char *label,\n"
31827 "                        const char *device);\n"
31828 "\n"
31829
31830 #. type: =head2
31831 #: ../src/guestfs-actions.pod:5019
31832 msgid "guestfs_mke2journal_U"
31833 msgstr "guestfs_mke2journal_U"
31834
31835 #. type: verbatim
31836 #: ../src/guestfs-actions.pod:5021
31837 #, no-wrap
31838 msgid ""
31839 " int\n"
31840 " guestfs_mke2journal_U (guestfs_h *g,\n"
31841 "                        int blocksize,\n"
31842 "                        const char *uuid,\n"
31843 "                        const char *device);\n"
31844 "\n"
31845 msgstr ""
31846 " int\n"
31847 " guestfs_mke2journal_U (guestfs_h *g,\n"
31848 "                        int blocksize,\n"
31849 "                        const char *uuid,\n"
31850 "                        const char *device);\n"
31851 "\n"
31852
31853 #. type: =head2
31854 #: ../src/guestfs-actions.pod:5033
31855 msgid "guestfs_mkfifo"
31856 msgstr "guestfs_mkfifo"
31857
31858 #. type: verbatim
31859 #: ../src/guestfs-actions.pod:5035
31860 #, no-wrap
31861 msgid ""
31862 " int\n"
31863 " guestfs_mkfifo (guestfs_h *g,\n"
31864 "                 int mode,\n"
31865 "                 const char *path);\n"
31866 "\n"
31867 msgstr ""
31868 " int\n"
31869 " guestfs_mkfifo (guestfs_h *g,\n"
31870 "                 int mode,\n"
31871 "                 const char *path);\n"
31872 "\n"
31873
31874 #. type: textblock
31875 #: ../src/guestfs-actions.pod:5040
31876 msgid ""
31877 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31878 "is just a convenient wrapper around C<guestfs_mknod>."
31879 msgstr ""
31880
31881 #. type: =head2
31882 #: ../src/guestfs-actions.pod:5050
31883 msgid "guestfs_mkfs"
31884 msgstr "guestfs_mkfs"
31885
31886 #. type: verbatim
31887 #: ../src/guestfs-actions.pod:5052
31888 #, no-wrap
31889 msgid ""
31890 " int\n"
31891 " guestfs_mkfs (guestfs_h *g,\n"
31892 "               const char *fstype,\n"
31893 "               const char *device);\n"
31894 "\n"
31895 msgstr ""
31896 " int\n"
31897 " guestfs_mkfs (guestfs_h *g,\n"
31898 "               const char *fstype,\n"
31899 "               const char *device);\n"
31900 "\n"
31901
31902 #. type: =head2
31903 #: ../src/guestfs-actions.pod:5065
31904 msgid "guestfs_mkfs_b"
31905 msgstr "guestfs_mkfs_b"
31906
31907 #. type: verbatim
31908 #: ../src/guestfs-actions.pod:5067
31909 #, no-wrap
31910 msgid ""
31911 " int\n"
31912 " guestfs_mkfs_b (guestfs_h *g,\n"
31913 "                 const char *fstype,\n"
31914 "                 int blocksize,\n"
31915 "                 const char *device);\n"
31916 "\n"
31917 msgstr ""
31918 " int\n"
31919 " guestfs_mkfs_b (guestfs_h *g,\n"
31920 "                 const char *fstype,\n"
31921 "                 int blocksize,\n"
31922 "                 const char *device);\n"
31923 "\n"
31924
31925 #. type: textblock
31926 #: ../src/guestfs-actions.pod:5073
31927 msgid ""
31928 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31929 "call instead."
31930 msgstr ""
31931
31932 #. type: textblock
31933 #: ../src/guestfs-actions.pod:5080
31934 msgid ""
31935 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31936 "block size of the resulting filesystem.  Supported block sizes depend on the "
31937 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31938 msgstr ""
31939
31940 #. type: =head2
31941 #: ../src/guestfs-actions.pod:5092
31942 msgid "guestfs_mkfs_opts"
31943 msgstr "guestfs_mkfs_opts"
31944
31945 #. type: verbatim
31946 #: ../src/guestfs-actions.pod:5094
31947 #, no-wrap
31948 msgid ""
31949 " int\n"
31950 " guestfs_mkfs_opts (guestfs_h *g,\n"
31951 "                    const char *fstype,\n"
31952 "                    const char *device,\n"
31953 "                    ...);\n"
31954 "\n"
31955 msgstr ""
31956 " int\n"
31957 " guestfs_mkfs_opts (guestfs_h *g,\n"
31958 "                    const char *fstype,\n"
31959 "                    const char *device,\n"
31960 "                    ...);\n"
31961 "\n"
31962
31963 #. type: verbatim
31964 #: ../src/guestfs-actions.pod:5105
31965 #, no-wrap
31966 msgid ""
31967 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31968 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31969 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31970 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31971 "\n"
31972 msgstr ""
31973
31974 #. type: textblock
31975 #: ../src/guestfs-actions.pod:5153
31976 msgid "(Added in 1.7.19)"
31977 msgstr "(Додано у 1.7.19)"
31978
31979 #. type: =head2
31980 #: ../src/guestfs-actions.pod:5155
31981 msgid "guestfs_mkfs_opts_va"
31982 msgstr "guestfs_mkfs_opts_va"
31983
31984 #. type: verbatim
31985 #: ../src/guestfs-actions.pod:5157
31986 #, no-wrap
31987 msgid ""
31988 " int\n"
31989 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31990 "                       const char *fstype,\n"
31991 "                       const char *device,\n"
31992 "                       va_list args);\n"
31993 "\n"
31994 msgstr ""
31995 " int\n"
31996 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31997 "                       const char *fstype,\n"
31998 "                       const char *device,\n"
31999 "                       va_list args);\n"
32000 "\n"
32001
32002 #. type: textblock
32003 #: ../src/guestfs-actions.pod:5163
32004 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
32005 msgstr ""
32006
32007 #. type: =head2
32008 #: ../src/guestfs-actions.pod:5167
32009 msgid "guestfs_mkfs_opts_argv"
32010 msgstr "guestfs_mkfs_opts_argv"
32011
32012 #. type: verbatim
32013 #: ../src/guestfs-actions.pod:5169
32014 #, no-wrap
32015 msgid ""
32016 " int\n"
32017 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32018 "                         const char *fstype,\n"
32019 "                         const char *device,\n"
32020 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32021 "\n"
32022 msgstr ""
32023 " int\n"
32024 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32025 "                         const char *fstype,\n"
32026 "                         const char *device,\n"
32027 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32028 "\n"
32029
32030 #. type: textblock
32031 #: ../src/guestfs-actions.pod:5175
32032 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
32033 msgstr ""
32034
32035 #. type: =head2
32036 #: ../src/guestfs-actions.pod:5179
32037 msgid "guestfs_mkmountpoint"
32038 msgstr "guestfs_mkmountpoint"
32039
32040 #. type: verbatim
32041 #: ../src/guestfs-actions.pod:5181
32042 #, no-wrap
32043 msgid ""
32044 " int\n"
32045 " guestfs_mkmountpoint (guestfs_h *g,\n"
32046 "                       const char *exemptpath);\n"
32047 "\n"
32048 msgstr ""
32049 " int\n"
32050 " guestfs_mkmountpoint (guestfs_h *g,\n"
32051 "                       const char *exemptpath);\n"
32052 "\n"
32053
32054 #. type: textblock
32055 #: ../src/guestfs-actions.pod:5185
32056 msgid ""
32057 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
32058 "that can be used to create extra mountpoints before mounting the first "
32059 "filesystem."
32060 msgstr ""
32061
32062 #. type: textblock
32063 #: ../src/guestfs-actions.pod:5209
32064 msgid ""
32065 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
32066 "may get unexpected errors if you try to mix these calls.  It is safest to "
32067 "manually unmount filesystems and remove mountpoints after use."
32068 msgstr ""
32069
32070 #. type: textblock
32071 #: ../src/guestfs-actions.pod:5213
32072 msgid ""
32073 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
32074 "first, so for this to work for manual mountpoints, you must ensure that the "
32075 "innermost mountpoints have the longest pathnames, as in the example code "
32076 "above."
32077 msgstr ""
32078
32079 #. type: textblock
32080 #: ../src/guestfs-actions.pod:5220
32081 msgid ""
32082 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
32083 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
32084 "can also trigger these issues."
32085 msgstr ""
32086
32087 #. type: textblock
32088 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
32089 #: ../src/guestfs-actions.pod:6559
32090 msgid "(Added in 1.0.62)"
32091 msgstr "(Додано у 1.0.62)"
32092
32093 #. type: =head2
32094 #: ../src/guestfs-actions.pod:5228
32095 msgid "guestfs_mknod"
32096 msgstr ""
32097
32098 #. type: verbatim
32099 #: ../src/guestfs-actions.pod:5230
32100 #, no-wrap
32101 msgid ""
32102 " int\n"
32103 " guestfs_mknod (guestfs_h *g,\n"
32104 "                int mode,\n"
32105 "                int devmajor,\n"
32106 "                int devminor,\n"
32107 "                const char *path);\n"
32108 "\n"
32109 msgstr ""
32110
32111 #. type: textblock
32112 #: ../src/guestfs-actions.pod:5245
32113 msgid ""
32114 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
32115 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
32116 "regular file).  These constants are available in the standard Linux header "
32117 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
32118 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
32119 "the appropriate constant for you."
32120 msgstr ""
32121
32122 #. type: =head2
32123 #: ../src/guestfs-actions.pod:5259
32124 msgid "guestfs_mknod_b"
32125 msgstr ""
32126
32127 #. type: verbatim
32128 #: ../src/guestfs-actions.pod:5261
32129 #, no-wrap
32130 msgid ""
32131 " int\n"
32132 " guestfs_mknod_b (guestfs_h *g,\n"
32133 "                  int mode,\n"
32134 "                  int devmajor,\n"
32135 "                  int devminor,\n"
32136 "                  const char *path);\n"
32137 "\n"
32138 msgstr ""
32139
32140 #. type: textblock
32141 #: ../src/guestfs-actions.pod:5268
32142 msgid ""
32143 "This call creates a block device node called C<path> with mode C<mode> and "
32144 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
32145 "wrapper around C<guestfs_mknod>."
32146 msgstr ""
32147
32148 #. type: =head2
32149 #: ../src/guestfs-actions.pod:5278
32150 msgid "guestfs_mknod_c"
32151 msgstr ""
32152
32153 #. type: verbatim
32154 #: ../src/guestfs-actions.pod:5280
32155 #, no-wrap
32156 msgid ""
32157 " int\n"
32158 " guestfs_mknod_c (guestfs_h *g,\n"
32159 "                  int mode,\n"
32160 "                  int devmajor,\n"
32161 "                  int devminor,\n"
32162 "                  const char *path);\n"
32163 "\n"
32164 msgstr ""
32165
32166 #. type: textblock
32167 #: ../src/guestfs-actions.pod:5287
32168 msgid ""
32169 "This call creates a char device node called C<path> with mode C<mode> and "
32170 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
32171 "wrapper around C<guestfs_mknod>."
32172 msgstr ""
32173
32174 #. type: =head2
32175 #: ../src/guestfs-actions.pod:5297
32176 msgid "guestfs_mkswap"
32177 msgstr ""
32178
32179 #. type: verbatim
32180 #: ../src/guestfs-actions.pod:5299
32181 #, no-wrap
32182 msgid ""
32183 " int\n"
32184 " guestfs_mkswap (guestfs_h *g,\n"
32185 "                 const char *device);\n"
32186 "\n"
32187 msgstr ""
32188
32189 #. type: =head2
32190 #: ../src/guestfs-actions.pod:5309
32191 msgid "guestfs_mkswap_L"
32192 msgstr ""
32193
32194 #. type: verbatim
32195 #: ../src/guestfs-actions.pod:5311
32196 #, no-wrap
32197 msgid ""
32198 " int\n"
32199 " guestfs_mkswap_L (guestfs_h *g,\n"
32200 "                   const char *label,\n"
32201 "                   const char *device);\n"
32202 "\n"
32203 msgstr ""
32204
32205 #. type: =head2
32206 #: ../src/guestfs-actions.pod:5326
32207 msgid "guestfs_mkswap_U"
32208 msgstr ""
32209
32210 #. type: verbatim
32211 #: ../src/guestfs-actions.pod:5328
32212 #, no-wrap
32213 msgid ""
32214 " int\n"
32215 " guestfs_mkswap_U (guestfs_h *g,\n"
32216 "                   const char *uuid,\n"
32217 "                   const char *device);\n"
32218 "\n"
32219 msgstr ""
32220
32221 #. type: =head2
32222 #: ../src/guestfs-actions.pod:5339
32223 msgid "guestfs_mkswap_file"
32224 msgstr ""
32225
32226 #. type: verbatim
32227 #: ../src/guestfs-actions.pod:5341
32228 #, no-wrap
32229 msgid ""
32230 " int\n"
32231 " guestfs_mkswap_file (guestfs_h *g,\n"
32232 "                      const char *path);\n"
32233 "\n"
32234 msgstr ""
32235
32236 #. type: textblock
32237 #: ../src/guestfs-actions.pod:5347
32238 msgid ""
32239 "This command just writes a swap file signature to an existing file.  To "
32240 "create the file itself, use something like C<guestfs_fallocate>."
32241 msgstr ""
32242
32243 #. type: =head2
32244 #: ../src/guestfs-actions.pod:5354
32245 msgid "guestfs_modprobe"
32246 msgstr ""
32247
32248 #. type: verbatim
32249 #: ../src/guestfs-actions.pod:5356
32250 #, no-wrap
32251 msgid ""
32252 " int\n"
32253 " guestfs_modprobe (guestfs_h *g,\n"
32254 "                   const char *modulename);\n"
32255 "\n"
32256 msgstr ""
32257
32258 #. type: =head2
32259 #: ../src/guestfs-actions.pod:5369
32260 msgid "guestfs_mount"
32261 msgstr ""
32262
32263 #. type: verbatim
32264 #: ../src/guestfs-actions.pod:5371
32265 #, no-wrap
32266 msgid ""
32267 " int\n"
32268 " guestfs_mount (guestfs_h *g,\n"
32269 "                const char *device,\n"
32270 "                const char *mountpoint);\n"
32271 "\n"
32272 msgstr ""
32273
32274 #. type: textblock
32275 #: ../src/guestfs-actions.pod:5390
32276 msgid ""
32277 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
32278 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
32279 "problems for users.  If your program might need to work with older versions "
32280 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
32281 "for the first parameter if you don't want any options)."
32282 msgstr ""
32283
32284 #. type: =head2
32285 #: ../src/guestfs-actions.pod:5401
32286 msgid "guestfs_mount_9p"
32287 msgstr ""
32288
32289 #. type: verbatim
32290 #: ../src/guestfs-actions.pod:5403
32291 #, no-wrap
32292 msgid ""
32293 " int\n"
32294 " guestfs_mount_9p (guestfs_h *g,\n"
32295 "                   const char *mounttag,\n"
32296 "                   const char *mountpoint,\n"
32297 "                   ...);\n"
32298 "\n"
32299 msgstr ""
32300
32301 #. type: verbatim
32302 #: ../src/guestfs-actions.pod:5414
32303 #, no-wrap
32304 msgid ""
32305 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
32306 "\n"
32307 msgstr ""
32308
32309 #. type: =head2
32310 #: ../src/guestfs-actions.pod:5427
32311 msgid "guestfs_mount_9p_va"
32312 msgstr ""
32313
32314 #. type: verbatim
32315 #: ../src/guestfs-actions.pod:5429
32316 #, no-wrap
32317 msgid ""
32318 " int\n"
32319 " guestfs_mount_9p_va (guestfs_h *g,\n"
32320 "                      const char *mounttag,\n"
32321 "                      const char *mountpoint,\n"
32322 "                      va_list args);\n"
32323 "\n"
32324 msgstr ""
32325
32326 #. type: textblock
32327 #: ../src/guestfs-actions.pod:5435
32328 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
32329 msgstr ""
32330
32331 #. type: =head2
32332 #: ../src/guestfs-actions.pod:5439
32333 msgid "guestfs_mount_9p_argv"
32334 msgstr ""
32335
32336 #. type: verbatim
32337 #: ../src/guestfs-actions.pod:5441
32338 #, no-wrap
32339 msgid ""
32340 " int\n"
32341 " guestfs_mount_9p_argv (guestfs_h *g,\n"
32342 "                        const char *mounttag,\n"
32343 "                        const char *mountpoint,\n"
32344 "                        const struct guestfs_mount_9p_argv *optargs);\n"
32345 "\n"
32346 msgstr ""
32347
32348 #. type: textblock
32349 #: ../src/guestfs-actions.pod:5447
32350 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
32351 msgstr ""
32352
32353 #. type: =head2
32354 #: ../src/guestfs-actions.pod:5451
32355 msgid "guestfs_mount_loop"
32356 msgstr ""
32357
32358 #. type: verbatim
32359 #: ../src/guestfs-actions.pod:5453
32360 #, no-wrap
32361 msgid ""
32362 " int\n"
32363 " guestfs_mount_loop (guestfs_h *g,\n"
32364 "                     const char *file,\n"
32365 "                     const char *mountpoint);\n"
32366 "\n"
32367 msgstr ""
32368
32369 #. type: =head2
32370 #: ../src/guestfs-actions.pod:5466
32371 msgid "guestfs_mount_options"
32372 msgstr ""
32373
32374 #. type: verbatim
32375 #: ../src/guestfs-actions.pod:5468
32376 #, no-wrap
32377 msgid ""
32378 " int\n"
32379 " guestfs_mount_options (guestfs_h *g,\n"
32380 "                        const char *options,\n"
32381 "                        const char *device,\n"
32382 "                        const char *mountpoint);\n"
32383 "\n"
32384 msgstr ""
32385
32386 #. type: textblock
32387 #: ../src/guestfs-actions.pod:5474
32388 msgid ""
32389 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32390 "the mount options as for the L<mount(8)> I<-o> flag."
32391 msgstr ""
32392
32393 #. type: textblock
32394 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
32395 #: ../src/guestfs-actions.pod:5515
32396 msgid "(Added in 1.0.10)"
32397 msgstr "(Додано у 1.0.10)"
32398
32399 #. type: =head2
32400 #: ../src/guestfs-actions.pod:5486
32401 msgid "guestfs_mount_ro"
32402 msgstr ""
32403
32404 #. type: verbatim
32405 #: ../src/guestfs-actions.pod:5488
32406 #, no-wrap
32407 msgid ""
32408 " int\n"
32409 " guestfs_mount_ro (guestfs_h *g,\n"
32410 "                   const char *device,\n"
32411 "                   const char *mountpoint);\n"
32412 "\n"
32413 msgstr ""
32414
32415 #. type: textblock
32416 #: ../src/guestfs-actions.pod:5493
32417 msgid ""
32418 "This is the same as the C<guestfs_mount> command, but it mounts the "
32419 "filesystem with the read-only (I<-o ro>) flag."
32420 msgstr ""
32421
32422 #. type: =head2
32423 #: ../src/guestfs-actions.pod:5500
32424 msgid "guestfs_mount_vfs"
32425 msgstr ""
32426
32427 #. type: verbatim
32428 #: ../src/guestfs-actions.pod:5502
32429 #, no-wrap
32430 msgid ""
32431 " int\n"
32432 " guestfs_mount_vfs (guestfs_h *g,\n"
32433 "                    const char *options,\n"
32434 "                    const char *vfstype,\n"
32435 "                    const char *device,\n"
32436 "                    const char *mountpoint);\n"
32437 "\n"
32438 msgstr ""
32439
32440 #. type: textblock
32441 #: ../src/guestfs-actions.pod:5509
32442 msgid ""
32443 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32444 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32445 "t> flags."
32446 msgstr ""
32447
32448 #. type: =head2
32449 #: ../src/guestfs-actions.pod:5517
32450 msgid "guestfs_mountpoints"
32451 msgstr ""
32452
32453 #. type: verbatim
32454 #: ../src/guestfs-actions.pod:5519
32455 #, no-wrap
32456 msgid ""
32457 " char **\n"
32458 " guestfs_mountpoints (guestfs_h *g);\n"
32459 "\n"
32460 msgstr ""
32461
32462 #. type: textblock
32463 #: ../src/guestfs-actions.pod:5522
32464 msgid ""
32465 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
32466 "devices.  This one returns a hash table (map) of device name to directory "
32467 "where the device is mounted."
32468 msgstr ""
32469
32470 #. type: =head2
32471 #: ../src/guestfs-actions.pod:5534
32472 msgid "guestfs_mounts"
32473 msgstr ""
32474
32475 #. type: verbatim
32476 #: ../src/guestfs-actions.pod:5536
32477 #, no-wrap
32478 msgid ""
32479 " char **\n"
32480 " guestfs_mounts (guestfs_h *g);\n"
32481 "\n"
32482 msgstr ""
32483
32484 #. type: textblock
32485 #: ../src/guestfs-actions.pod:5544
32486 msgid "See also: C<guestfs_mountpoints>"
32487 msgstr ""
32488
32489 #. type: =head2
32490 #: ../src/guestfs-actions.pod:5552
32491 msgid "guestfs_mv"
32492 msgstr ""
32493
32494 #. type: verbatim
32495 #: ../src/guestfs-actions.pod:5554
32496 #, no-wrap
32497 msgid ""
32498 " int\n"
32499 " guestfs_mv (guestfs_h *g,\n"
32500 "             const char *src,\n"
32501 "             const char *dest);\n"
32502 "\n"
32503 msgstr ""
32504
32505 #. type: =head2
32506 #: ../src/guestfs-actions.pod:5566
32507 msgid "guestfs_ntfs_3g_probe"
32508 msgstr ""
32509
32510 #. type: verbatim
32511 #: ../src/guestfs-actions.pod:5568
32512 #, no-wrap
32513 msgid ""
32514 " int\n"
32515 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32516 "                        int rw,\n"
32517 "                        const char *device);\n"
32518 "\n"
32519 msgstr ""
32520
32521 #. type: textblock
32522 #: ../src/guestfs-actions.pod:5587
32523 msgid "(Added in 1.0.43)"
32524 msgstr "(Додано у 1.0.43)"
32525
32526 #. type: =head2
32527 #: ../src/guestfs-actions.pod:5589
32528 msgid "guestfs_ntfsresize"
32529 msgstr ""
32530
32531 #. type: verbatim
32532 #: ../src/guestfs-actions.pod:5591
32533 #, no-wrap
32534 msgid ""
32535 " int\n"
32536 " guestfs_ntfsresize (guestfs_h *g,\n"
32537 "                     const char *device);\n"
32538 "\n"
32539 msgstr ""
32540
32541 #. type: textblock
32542 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
32543 msgid ""
32544 "I<This function is deprecated.> In new code, use the L</"
32545 "guestfs_ntfsresize_opts> call instead."
32546 msgstr ""
32547
32548 #. type: =head2
32549 #: ../src/guestfs-actions.pod:5619
32550 msgid "guestfs_ntfsresize_opts"
32551 msgstr ""
32552
32553 #. type: verbatim
32554 #: ../src/guestfs-actions.pod:5621
32555 #, no-wrap
32556 msgid ""
32557 " int\n"
32558 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32559 "                          const char *device,\n"
32560 "                          ...);\n"
32561 "\n"
32562 msgstr ""
32563
32564 #. type: verbatim
32565 #: ../src/guestfs-actions.pod:5631
32566 #, no-wrap
32567 msgid ""
32568 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32569 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32570 "\n"
32571 msgstr ""
32572
32573 #. type: textblock
32574 #: ../src/guestfs-actions.pod:5651
32575 msgid ""
32576 "After the resize operation, the filesystem is always marked as requiring a "
32577 "consistency check (for safety).  You have to boot into Windows to perform "
32578 "this check and clear this condition.  If you I<don't> set the C<force> "
32579 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32580 "times on a single filesystem without booting into Windows between each "
32581 "resize."
32582 msgstr ""
32583
32584 #. type: =head2
32585 #: ../src/guestfs-actions.pod:5666
32586 msgid "guestfs_ntfsresize_opts_va"
32587 msgstr ""
32588
32589 #. type: verbatim
32590 #: ../src/guestfs-actions.pod:5668
32591 #, no-wrap
32592 msgid ""
32593 " int\n"
32594 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32595 "                             const char *device,\n"
32596 "                             va_list args);\n"
32597 "\n"
32598 msgstr ""
32599
32600 #. type: textblock
32601 #: ../src/guestfs-actions.pod:5673
32602 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32603 msgstr ""
32604
32605 #. type: =head2
32606 #: ../src/guestfs-actions.pod:5677
32607 msgid "guestfs_ntfsresize_opts_argv"
32608 msgstr ""
32609
32610 #. type: verbatim
32611 #: ../src/guestfs-actions.pod:5679
32612 #, no-wrap
32613 msgid ""
32614 " int\n"
32615 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32616 "                               const char *device,\n"
32617 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32618 "\n"
32619 msgstr ""
32620
32621 #. type: textblock
32622 #: ../src/guestfs-actions.pod:5684
32623 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32624 msgstr ""
32625
32626 #. type: =head2
32627 #: ../src/guestfs-actions.pod:5688
32628 msgid "guestfs_ntfsresize_size"
32629 msgstr ""
32630
32631 #. type: verbatim
32632 #: ../src/guestfs-actions.pod:5690
32633 #, no-wrap
32634 msgid ""
32635 " int\n"
32636 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32637 "                          const char *device,\n"
32638 "                          int64_t size);\n"
32639 "\n"
32640 msgstr ""
32641
32642 #. type: textblock
32643 #: ../src/guestfs-actions.pod:5702
32644 msgid ""
32645 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32646 "to specify the new size (in bytes) explicitly."
32647 msgstr ""
32648
32649 #. type: textblock
32650 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
32651 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
32652 #: ../src/guestfs-actions.pod:8134
32653 msgid "(Added in 1.3.14)"
32654 msgstr "(Додано у 1.3.14)"
32655
32656 #. type: =head2
32657 #: ../src/guestfs-actions.pod:5709
32658 msgid "guestfs_part_add"
32659 msgstr ""
32660
32661 #. type: verbatim
32662 #: ../src/guestfs-actions.pod:5711
32663 #, no-wrap
32664 msgid ""
32665 " int\n"
32666 " guestfs_part_add (guestfs_h *g,\n"
32667 "                   const char *device,\n"
32668 "                   const char *prlogex,\n"
32669 "                   int64_t startsect,\n"
32670 "                   int64_t endsect);\n"
32671 "\n"
32672 msgstr ""
32673
32674 #. type: textblock
32675 #: ../src/guestfs-actions.pod:5718
32676 msgid ""
32677 "This command adds a partition to C<device>.  If there is no partition table "
32678 "on the device, call C<guestfs_part_init> first."
32679 msgstr ""
32680
32681 #. type: textblock
32682 #: ../src/guestfs-actions.pod:5730
32683 msgid ""
32684 "Creating a partition which covers the whole disk is not so easy.  Use "
32685 "C<guestfs_part_disk> to do that."
32686 msgstr ""
32687
32688 #. type: textblock
32689 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
32690 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
32691 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
32692 #: ../src/guestfs-actions.pod:6004
32693 msgid "(Added in 1.0.78)"
32694 msgstr "(Додано у 1.0.78)"
32695
32696 #. type: =head2
32697 #: ../src/guestfs-actions.pod:5737
32698 msgid "guestfs_part_del"
32699 msgstr ""
32700
32701 #. type: verbatim
32702 #: ../src/guestfs-actions.pod:5739
32703 #, no-wrap
32704 msgid ""
32705 " int\n"
32706 " guestfs_part_del (guestfs_h *g,\n"
32707 "                   const char *device,\n"
32708 "                   int partnum);\n"
32709 "\n"
32710 msgstr ""
32711
32712 #. type: =head2
32713 #: ../src/guestfs-actions.pod:5754
32714 msgid "guestfs_part_disk"
32715 msgstr ""
32716
32717 #. type: verbatim
32718 #: ../src/guestfs-actions.pod:5756
32719 #, no-wrap
32720 msgid ""
32721 " int\n"
32722 " guestfs_part_disk (guestfs_h *g,\n"
32723 "                    const char *device,\n"
32724 "                    const char *parttype);\n"
32725 "\n"
32726 msgstr ""
32727
32728 #. type: textblock
32729 #: ../src/guestfs-actions.pod:5761
32730 msgid ""
32731 "This command is simply a combination of C<guestfs_part_init> followed by "
32732 "C<guestfs_part_add> to create a single primary partition covering the whole "
32733 "disk."
32734 msgstr ""
32735
32736 #. type: textblock
32737 #: ../src/guestfs-actions.pod:5765
32738 msgid ""
32739 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32740 "possible values are described in C<guestfs_part_init>."
32741 msgstr ""
32742
32743 #. type: =head2
32744 #: ../src/guestfs-actions.pod:5772
32745 msgid "guestfs_part_get_bootable"
32746 msgstr ""
32747
32748 #. type: verbatim
32749 #: ../src/guestfs-actions.pod:5774
32750 #, no-wrap
32751 msgid ""
32752 " int\n"
32753 " guestfs_part_get_bootable (guestfs_h *g,\n"
32754 "                            const char *device,\n"
32755 "                            int partnum);\n"
32756 "\n"
32757 msgstr ""
32758
32759 #. type: textblock
32760 #: ../src/guestfs-actions.pod:5782
32761 msgid "See also C<guestfs_part_set_bootable>."
32762 msgstr ""
32763
32764 #. type: =head2
32765 #: ../src/guestfs-actions.pod:5788
32766 msgid "guestfs_part_get_mbr_id"
32767 msgstr ""
32768
32769 #. type: verbatim
32770 #: ../src/guestfs-actions.pod:5790
32771 #, no-wrap
32772 msgid ""
32773 " int\n"
32774 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32775 "                          const char *device,\n"
32776 "                          int partnum);\n"
32777 "\n"
32778 msgstr ""
32779
32780 #. type: textblock
32781 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
32782 msgid ""
32783 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32784 "undefined results for other partition table types (see "
32785 "C<guestfs_part_get_parttype>)."
32786 msgstr ""
32787
32788 #. type: =head2
32789 #: ../src/guestfs-actions.pod:5806
32790 msgid "guestfs_part_get_parttype"
32791 msgstr ""
32792
32793 #. type: verbatim
32794 #: ../src/guestfs-actions.pod:5808
32795 #, no-wrap
32796 msgid ""
32797 " char *\n"
32798 " guestfs_part_get_parttype (guestfs_h *g,\n"
32799 "                            const char *device);\n"
32800 "\n"
32801 msgstr ""
32802
32803 #. type: textblock
32804 #: ../src/guestfs-actions.pod:5815
32805 msgid ""
32806 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32807 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32808 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32809 msgstr ""
32810
32811 #. type: =head2
32812 #: ../src/guestfs-actions.pod:5825
32813 msgid "guestfs_part_init"
32814 msgstr ""
32815
32816 #. type: verbatim
32817 #: ../src/guestfs-actions.pod:5827
32818 #, no-wrap
32819 msgid ""
32820 " int\n"
32821 " guestfs_part_init (guestfs_h *g,\n"
32822 "                    const char *device,\n"
32823 "                    const char *parttype);\n"
32824 "\n"
32825 msgstr ""
32826
32827 #. type: textblock
32828 #: ../src/guestfs-actions.pod:5836
32829 msgid ""
32830 "Initially there are no partitions.  Following this, you should call "
32831 "C<guestfs_part_add> for each partition required."
32832 msgstr ""
32833
32834 #. type: =head2
32835 #: ../src/guestfs-actions.pod:5909
32836 msgid "guestfs_part_list"
32837 msgstr "guestfs_part_list"
32838
32839 #. type: verbatim
32840 #: ../src/guestfs-actions.pod:5911
32841 #, no-wrap
32842 msgid ""
32843 " struct guestfs_partition_list *\n"
32844 " guestfs_part_list (guestfs_h *g,\n"
32845 "                    const char *device);\n"
32846 "\n"
32847 msgstr ""
32848 " struct guestfs_partition_list *\n"
32849 " guestfs_part_list (guestfs_h *g,\n"
32850 "                    const char *device);\n"
32851 "\n"
32852
32853 #. type: textblock
32854 #: ../src/guestfs-actions.pod:5928
32855 msgid ""
32856 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32857 "the device's sector size, see C<guestfs_blockdev_getss>."
32858 msgstr ""
32859
32860 #. type: textblock
32861 #: ../src/guestfs-actions.pod:5941
32862 msgid ""
32863 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32864 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32865 "use>."
32866 msgstr ""
32867
32868 #. type: =head2
32869 #: ../src/guestfs-actions.pod:5947
32870 msgid "guestfs_part_set_bootable"
32871 msgstr ""
32872
32873 #. type: verbatim
32874 #: ../src/guestfs-actions.pod:5949
32875 #, no-wrap
32876 msgid ""
32877 " int\n"
32878 " guestfs_part_set_bootable (guestfs_h *g,\n"
32879 "                            const char *device,\n"
32880 "                            int partnum,\n"
32881 "                            int bootable);\n"
32882 "\n"
32883 msgstr ""
32884
32885 #. type: =head2
32886 #: ../src/guestfs-actions.pod:5966
32887 msgid "guestfs_part_set_mbr_id"
32888 msgstr ""
32889
32890 #. type: verbatim
32891 #: ../src/guestfs-actions.pod:5968
32892 #, no-wrap
32893 msgid ""
32894 " int\n"
32895 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32896 "                          const char *device,\n"
32897 "                          int partnum,\n"
32898 "                          int idbyte);\n"
32899 "\n"
32900 msgstr ""
32901
32902 #. type: =head2
32903 #: ../src/guestfs-actions.pod:5988
32904 msgid "guestfs_part_set_name"
32905 msgstr ""
32906
32907 #. type: verbatim
32908 #: ../src/guestfs-actions.pod:5990
32909 #, no-wrap
32910 msgid ""
32911 " int\n"
32912 " guestfs_part_set_name (guestfs_h *g,\n"
32913 "                        const char *device,\n"
32914 "                        int partnum,\n"
32915 "                        const char *name);\n"
32916 "\n"
32917 msgstr ""
32918
32919 #. type: =head2
32920 #: ../src/guestfs-actions.pod:6006
32921 msgid "guestfs_part_to_dev"
32922 msgstr ""
32923
32924 #. type: verbatim
32925 #: ../src/guestfs-actions.pod:6008
32926 #, no-wrap
32927 msgid ""
32928 " char *\n"
32929 " guestfs_part_to_dev (guestfs_h *g,\n"
32930 "                      const char *partition);\n"
32931 "\n"
32932 msgstr ""
32933
32934 #. type: textblock
32935 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
32936 msgid ""
32937 "The named partition must exist, for example as a string returned from "
32938 "C<guestfs_list_partitions>."
32939 msgstr ""
32940
32941 #. type: textblock
32942 #: ../src/guestfs-actions.pod:6019
32943 msgid "See also C<guestfs_part_to_partnum>."
32944 msgstr ""
32945
32946 #. type: =head2
32947 #: ../src/guestfs-actions.pod:6026
32948 msgid "guestfs_part_to_partnum"
32949 msgstr ""
32950
32951 #. type: verbatim
32952 #: ../src/guestfs-actions.pod:6028
32953 #, no-wrap
32954 msgid ""
32955 " int\n"
32956 " guestfs_part_to_partnum (guestfs_h *g,\n"
32957 "                          const char *partition);\n"
32958 "\n"
32959 msgstr ""
32960
32961 #. type: textblock
32962 #: ../src/guestfs-actions.pod:6038
32963 msgid "See also C<guestfs_part_to_dev>."
32964 msgstr ""
32965
32966 #. type: =head2
32967 #: ../src/guestfs-actions.pod:6044
32968 msgid "guestfs_ping_daemon"
32969 msgstr ""
32970
32971 #. type: verbatim
32972 #: ../src/guestfs-actions.pod:6046
32973 #, no-wrap
32974 msgid ""
32975 " int\n"
32976 " guestfs_ping_daemon (guestfs_h *g);\n"
32977 "\n"
32978 msgstr ""
32979
32980 #. type: =head2
32981 #: ../src/guestfs-actions.pod:6058
32982 msgid "guestfs_pread"
32983 msgstr ""
32984
32985 #. type: verbatim
32986 #: ../src/guestfs-actions.pod:6060
32987 #, no-wrap
32988 msgid ""
32989 " char *\n"
32990 " guestfs_pread (guestfs_h *g,\n"
32991 "                const char *path,\n"
32992 "                int count,\n"
32993 "                int64_t offset,\n"
32994 "                size_t *size_r);\n"
32995 "\n"
32996 msgstr ""
32997
32998 #. type: textblock
32999 #: ../src/guestfs-actions.pod:6073
33000 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
33001 msgstr ""
33002
33003 #. type: =head2
33004 #: ../src/guestfs-actions.pod:6084
33005 msgid "guestfs_pread_device"
33006 msgstr ""
33007
33008 #. type: verbatim
33009 #: ../src/guestfs-actions.pod:6086
33010 #, no-wrap
33011 msgid ""
33012 " char *\n"
33013 " guestfs_pread_device (guestfs_h *g,\n"
33014 "                       const char *device,\n"
33015 "                       int count,\n"
33016 "                       int64_t offset,\n"
33017 "                       size_t *size_r);\n"
33018 "\n"
33019 msgstr ""
33020
33021 #. type: textblock
33022 #: ../src/guestfs-actions.pod:6099
33023 msgid "See also C<guestfs_pread>."
33024 msgstr ""
33025
33026 #. type: textblock
33027 #: ../src/guestfs-actions.pod:6108
33028 msgid "(Added in 1.5.21)"
33029 msgstr "(Додано у 1.5.21)"
33030
33031 #. type: =head2
33032 #: ../src/guestfs-actions.pod:6110
33033 msgid "guestfs_pvcreate"
33034 msgstr ""
33035
33036 #. type: verbatim
33037 #: ../src/guestfs-actions.pod:6112
33038 #, no-wrap
33039 msgid ""
33040 " int\n"
33041 " guestfs_pvcreate (guestfs_h *g,\n"
33042 "                   const char *device);\n"
33043 "\n"
33044 msgstr ""
33045
33046 #. type: =head2
33047 #: ../src/guestfs-actions.pod:6124
33048 msgid "guestfs_pvremove"
33049 msgstr ""
33050
33051 #. type: verbatim
33052 #: ../src/guestfs-actions.pod:6126
33053 #, no-wrap
33054 msgid ""
33055 " int\n"
33056 " guestfs_pvremove (guestfs_h *g,\n"
33057 "                   const char *device);\n"
33058 "\n"
33059 msgstr ""
33060
33061 #. type: =head2
33062 #: ../src/guestfs-actions.pod:6141
33063 msgid "guestfs_pvresize"
33064 msgstr ""
33065
33066 #. type: verbatim
33067 #: ../src/guestfs-actions.pod:6143
33068 #, no-wrap
33069 msgid ""
33070 " int\n"
33071 " guestfs_pvresize (guestfs_h *g,\n"
33072 "                   const char *device);\n"
33073 "\n"
33074 msgstr ""
33075
33076 #. type: =head2
33077 #: ../src/guestfs-actions.pod:6154
33078 msgid "guestfs_pvresize_size"
33079 msgstr ""
33080
33081 #. type: verbatim
33082 #: ../src/guestfs-actions.pod:6156
33083 #, no-wrap
33084 msgid ""
33085 " int\n"
33086 " guestfs_pvresize_size (guestfs_h *g,\n"
33087 "                        const char *device,\n"
33088 "                        int64_t size);\n"
33089 "\n"
33090 msgstr ""
33091
33092 #. type: textblock
33093 #: ../src/guestfs-actions.pod:6161
33094 msgid ""
33095 "This command is the same as C<guestfs_pvresize> except that it allows you to "
33096 "specify the new size (in bytes) explicitly."
33097 msgstr ""
33098
33099 #. type: =head2
33100 #: ../src/guestfs-actions.pod:6168
33101 msgid "guestfs_pvs"
33102 msgstr ""
33103
33104 #. type: verbatim
33105 #: ../src/guestfs-actions.pod:6170
33106 #, no-wrap
33107 msgid ""
33108 " char **\n"
33109 " guestfs_pvs (guestfs_h *g);\n"
33110 "\n"
33111 msgstr ""
33112
33113 #. type: textblock
33114 #: ../src/guestfs-actions.pod:6179
33115 msgid "See also C<guestfs_pvs_full>."
33116 msgstr ""
33117
33118 #. type: =head2
33119 #: ../src/guestfs-actions.pod:6187
33120 msgid "guestfs_pvs_full"
33121 msgstr ""
33122
33123 #. type: verbatim
33124 #: ../src/guestfs-actions.pod:6189
33125 #, no-wrap
33126 msgid ""
33127 " struct guestfs_lvm_pv_list *\n"
33128 " guestfs_pvs_full (guestfs_h *g);\n"
33129 "\n"
33130 msgstr ""
33131
33132 #. type: textblock
33133 #: ../src/guestfs-actions.pod:6195
33134 msgid ""
33135 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
33136 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
33137 msgstr ""
33138
33139 #. type: =head2
33140 #: ../src/guestfs-actions.pod:6201
33141 msgid "guestfs_pvuuid"
33142 msgstr ""
33143
33144 #. type: verbatim
33145 #: ../src/guestfs-actions.pod:6203
33146 #, no-wrap
33147 msgid ""
33148 " char *\n"
33149 " guestfs_pvuuid (guestfs_h *g,\n"
33150 "                 const char *device);\n"
33151 "\n"
33152 msgstr ""
33153
33154 #. type: =head2
33155 #: ../src/guestfs-actions.pod:6214
33156 msgid "guestfs_pwrite"
33157 msgstr ""
33158
33159 #. type: verbatim
33160 #: ../src/guestfs-actions.pod:6216
33161 #, no-wrap
33162 msgid ""
33163 " int\n"
33164 " guestfs_pwrite (guestfs_h *g,\n"
33165 "                 const char *path,\n"
33166 "                 const char *content,\n"
33167 "                 size_t content_size,\n"
33168 "                 int64_t offset);\n"
33169 "\n"
33170 msgstr ""
33171
33172 #. type: textblock
33173 #: ../src/guestfs-actions.pod:6232
33174 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
33175 msgstr ""
33176
33177 #. type: =head2
33178 #: ../src/guestfs-actions.pod:6241
33179 msgid "guestfs_pwrite_device"
33180 msgstr ""
33181
33182 #. type: verbatim
33183 #: ../src/guestfs-actions.pod:6243
33184 #, no-wrap
33185 msgid ""
33186 " int\n"
33187 " guestfs_pwrite_device (guestfs_h *g,\n"
33188 "                        const char *device,\n"
33189 "                        const char *content,\n"
33190 "                        size_t content_size,\n"
33191 "                        int64_t offset);\n"
33192 "\n"
33193 msgstr ""
33194
33195 #. type: textblock
33196 #: ../src/guestfs-actions.pod:6258
33197 msgid "See also C<guestfs_pwrite>."
33198 msgstr ""
33199
33200 #. type: textblock
33201 #: ../src/guestfs-actions.pod:6265
33202 msgid "(Added in 1.5.20)"
33203 msgstr "(Додано у 1.5.20)"
33204
33205 #. type: =head2
33206 #: ../src/guestfs-actions.pod:6267
33207 msgid "guestfs_read_file"
33208 msgstr ""
33209
33210 #. type: verbatim
33211 #: ../src/guestfs-actions.pod:6269
33212 #, no-wrap
33213 msgid ""
33214 " char *\n"
33215 " guestfs_read_file (guestfs_h *g,\n"
33216 "                    const char *path,\n"
33217 "                    size_t *size_r);\n"
33218 "\n"
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs-actions.pod:6277
33223 msgid ""
33224 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
33225 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
33226 "function is limited in the total size of file that can be handled."
33227 msgstr ""
33228
33229 #. type: textblock
33230 #: ../src/guestfs-actions.pod:6289
33231 msgid "(Added in 1.0.63)"
33232 msgstr "(Додано у 1.0.63)"
33233
33234 #. type: =head2
33235 #: ../src/guestfs-actions.pod:6291
33236 msgid "guestfs_read_lines"
33237 msgstr ""
33238
33239 #. type: verbatim
33240 #: ../src/guestfs-actions.pod:6293
33241 #, no-wrap
33242 msgid ""
33243 " char **\n"
33244 " guestfs_read_lines (guestfs_h *g,\n"
33245 "                     const char *path);\n"
33246 "\n"
33247 msgstr ""
33248
33249 #. type: textblock
33250 #: ../src/guestfs-actions.pod:6302
33251 msgid ""
33252 "Note that this function cannot correctly handle binary files (specifically, "
33253 "files containing C<\\0> character which is treated as end of line).  For "
33254 "those you need to use the C<guestfs_read_file> function which has a more "
33255 "complex interface."
33256 msgstr ""
33257
33258 #. type: =head2
33259 #: ../src/guestfs-actions.pod:6313
33260 msgid "guestfs_readdir"
33261 msgstr ""
33262
33263 #. type: verbatim
33264 #: ../src/guestfs-actions.pod:6315
33265 #, no-wrap
33266 msgid ""
33267 " struct guestfs_dirent_list *\n"
33268 " guestfs_readdir (guestfs_h *g,\n"
33269 "                  const char *dir);\n"
33270 "\n"
33271 msgstr ""
33272
33273 #. type: textblock
33274 #: ../src/guestfs-actions.pod:6369
33275 msgid ""
33276 "This function is primarily intended for use by programs.  To get a simple "
33277 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
33278 "consumption, use C<guestfs_ll>."
33279 msgstr ""
33280
33281 #. type: textblock
33282 #: ../src/guestfs-actions.pod:6373
33283 msgid ""
33284 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
33285 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
33286 msgstr ""
33287
33288 #. type: =head2
33289 #: ../src/guestfs-actions.pod:6379
33290 msgid "guestfs_readlink"
33291 msgstr ""
33292
33293 #. type: verbatim
33294 #: ../src/guestfs-actions.pod:6381
33295 #, no-wrap
33296 msgid ""
33297 " char *\n"
33298 " guestfs_readlink (guestfs_h *g,\n"
33299 "                   const char *path);\n"
33300 "\n"
33301 msgstr ""
33302
33303 #. type: =head2
33304 #: ../src/guestfs-actions.pod:6392
33305 msgid "guestfs_readlinklist"
33306 msgstr ""
33307
33308 #. type: verbatim
33309 #: ../src/guestfs-actions.pod:6394
33310 #, no-wrap
33311 msgid ""
33312 " char **\n"
33313 " guestfs_readlinklist (guestfs_h *g,\n"
33314 "                       const char *path,\n"
33315 "                       char *const *names);\n"
33316 "\n"
33317 msgstr ""
33318
33319 #. type: =head2
33320 #: ../src/guestfs-actions.pod:6427
33321 msgid "guestfs_realpath"
33322 msgstr ""
33323
33324 #. type: verbatim
33325 #: ../src/guestfs-actions.pod:6429
33326 #, no-wrap
33327 msgid ""
33328 " char *\n"
33329 " guestfs_realpath (guestfs_h *g,\n"
33330 "                   const char *path);\n"
33331 "\n"
33332 msgstr ""
33333
33334 #. type: =head2
33335 #: ../src/guestfs-actions.pod:6441
33336 msgid "guestfs_removexattr"
33337 msgstr ""
33338
33339 #. type: verbatim
33340 #: ../src/guestfs-actions.pod:6443
33341 #, no-wrap
33342 msgid ""
33343 " int\n"
33344 " guestfs_removexattr (guestfs_h *g,\n"
33345 "                      const char *xattr,\n"
33346 "                      const char *path);\n"
33347 "\n"
33348 msgstr ""
33349
33350 #. type: textblock
33351 #: ../src/guestfs-actions.pod:6451
33352 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
33353 msgstr ""
33354
33355 #. type: =head2
33356 #: ../src/guestfs-actions.pod:6457
33357 msgid "guestfs_resize2fs"
33358 msgstr ""
33359
33360 #. type: verbatim
33361 #: ../src/guestfs-actions.pod:6459
33362 #, no-wrap
33363 msgid ""
33364 " int\n"
33365 " guestfs_resize2fs (guestfs_h *g,\n"
33366 "                    const char *device);\n"
33367 "\n"
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs-actions.pod:6466
33372 msgid ""
33373 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
33374 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
33375 "sometimes gives an error about this and sometimes not.  In any case, it is "
33376 "always safe to call C<guestfs_e2fsck_f> before calling this function."
33377 msgstr ""
33378
33379 #. type: =head2
33380 #: ../src/guestfs-actions.pod:6476
33381 msgid "guestfs_resize2fs_M"
33382 msgstr ""
33383
33384 #. type: verbatim
33385 #: ../src/guestfs-actions.pod:6478
33386 #, no-wrap
33387 msgid ""
33388 " int\n"
33389 " guestfs_resize2fs_M (guestfs_h *g,\n"
33390 "                      const char *device);\n"
33391 "\n"
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs-actions.pod:6482
33396 msgid ""
33397 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
33398 "resized to its minimum size.  This works like the I<-M> option to the "
33399 "C<resize2fs> command."
33400 msgstr ""
33401
33402 #. type: textblock
33403 #: ../src/guestfs-actions.pod:6486
33404 msgid ""
33405 "To get the resulting size of the filesystem you should call "
33406 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
33407 "These two numbers, multiplied together, give the resulting size of the "
33408 "minimal filesystem in bytes."
33409 msgstr ""
33410
33411 #. type: =head2
33412 #: ../src/guestfs-actions.pod:6495
33413 msgid "guestfs_resize2fs_size"
33414 msgstr ""
33415
33416 #. type: verbatim
33417 #: ../src/guestfs-actions.pod:6497
33418 #, no-wrap
33419 msgid ""
33420 " int\n"
33421 " guestfs_resize2fs_size (guestfs_h *g,\n"
33422 "                         const char *device,\n"
33423 "                         int64_t size);\n"
33424 "\n"
33425 msgstr ""
33426
33427 #. type: textblock
33428 #: ../src/guestfs-actions.pod:6502
33429 msgid ""
33430 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33431 "to specify the new size (in bytes) explicitly."
33432 msgstr ""
33433
33434 #. type: =head2
33435 #: ../src/guestfs-actions.pod:6509
33436 msgid "guestfs_rm"
33437 msgstr ""
33438
33439 #. type: verbatim
33440 #: ../src/guestfs-actions.pod:6511
33441 #, no-wrap
33442 msgid ""
33443 " int\n"
33444 " guestfs_rm (guestfs_h *g,\n"
33445 "             const char *path);\n"
33446 "\n"
33447 msgstr ""
33448
33449 #. type: =head2
33450 #: ../src/guestfs-actions.pod:6521
33451 msgid "guestfs_rm_rf"
33452 msgstr ""
33453
33454 #. type: verbatim
33455 #: ../src/guestfs-actions.pod:6523
33456 #, no-wrap
33457 msgid ""
33458 " int\n"
33459 " guestfs_rm_rf (guestfs_h *g,\n"
33460 "                const char *path);\n"
33461 "\n"
33462 msgstr ""
33463
33464 #. type: =head2
33465 #: ../src/guestfs-actions.pod:6535
33466 msgid "guestfs_rmdir"
33467 msgstr ""
33468
33469 #. type: verbatim
33470 #: ../src/guestfs-actions.pod:6537
33471 #, no-wrap
33472 msgid ""
33473 " int\n"
33474 " guestfs_rmdir (guestfs_h *g,\n"
33475 "                const char *path);\n"
33476 "\n"
33477 msgstr ""
33478
33479 #. type: =head2
33480 #: ../src/guestfs-actions.pod:6547
33481 msgid "guestfs_rmmountpoint"
33482 msgstr ""
33483
33484 #. type: verbatim
33485 #: ../src/guestfs-actions.pod:6549
33486 #, no-wrap
33487 msgid ""
33488 " int\n"
33489 " guestfs_rmmountpoint (guestfs_h *g,\n"
33490 "                       const char *exemptpath);\n"
33491 "\n"
33492 msgstr ""
33493
33494 #. type: textblock
33495 #: ../src/guestfs-actions.pod:6553
33496 msgid ""
33497 "This calls removes a mountpoint that was previously created with "
33498 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
33499 msgstr ""
33500
33501 #. type: =head2
33502 #: ../src/guestfs-actions.pod:6561
33503 msgid "guestfs_scrub_device"
33504 msgstr ""
33505
33506 #. type: verbatim
33507 #: ../src/guestfs-actions.pod:6563
33508 #, no-wrap
33509 msgid ""
33510 " int\n"
33511 " guestfs_scrub_device (guestfs_h *g,\n"
33512 "                       const char *device);\n"
33513 "\n"
33514 msgstr ""
33515
33516 #. type: textblock
33517 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
33518 #: ../src/guestfs-actions.pod:6612
33519 msgid "(Added in 1.0.52)"
33520 msgstr "(Додано у 1.0.52)"
33521
33522 #. type: =head2
33523 #: ../src/guestfs-actions.pod:6577
33524 msgid "guestfs_scrub_file"
33525 msgstr ""
33526
33527 #. type: verbatim
33528 #: ../src/guestfs-actions.pod:6579
33529 #, no-wrap
33530 msgid ""
33531 " int\n"
33532 " guestfs_scrub_file (guestfs_h *g,\n"
33533 "                     const char *file);\n"
33534 "\n"
33535 msgstr ""
33536
33537 #. type: =head2
33538 #: ../src/guestfs-actions.pod:6595
33539 msgid "guestfs_scrub_freespace"
33540 msgstr ""
33541
33542 #. type: verbatim
33543 #: ../src/guestfs-actions.pod:6597
33544 #, no-wrap
33545 msgid ""
33546 " int\n"
33547 " guestfs_scrub_freespace (guestfs_h *g,\n"
33548 "                          const char *dir);\n"
33549 "\n"
33550 msgstr ""
33551
33552 #. type: textblock
33553 #: ../src/guestfs-actions.pod:6601
33554 msgid ""
33555 "This command creates the directory C<dir> and then fills it with files until "
33556 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33557 "and deletes them.  The intention is to scrub any free space on the partition "
33558 "containing C<dir>."
33559 msgstr ""
33560
33561 #. type: =head2
33562 #: ../src/guestfs-actions.pod:6614
33563 msgid "guestfs_set_append"
33564 msgstr ""
33565
33566 #. type: verbatim
33567 #: ../src/guestfs-actions.pod:6616
33568 #, no-wrap
33569 msgid ""
33570 " int\n"
33571 " guestfs_set_append (guestfs_h *g,\n"
33572 "                     const char *append);\n"
33573 "\n"
33574 msgstr ""
33575
33576 #. type: =head2
33577 #: ../src/guestfs-actions.pod:6633
33578 msgid "guestfs_set_attach_method"
33579 msgstr ""
33580
33581 #. type: verbatim
33582 #: ../src/guestfs-actions.pod:6635
33583 #, no-wrap
33584 msgid ""
33585 " int\n"
33586 " guestfs_set_attach_method (guestfs_h *g,\n"
33587 "                            const char *attachmethod);\n"
33588 "\n"
33589 msgstr ""
33590
33591 #. type: =head2
33592 #: ../src/guestfs-actions.pod:6663
33593 msgid "guestfs_set_autosync"
33594 msgstr ""
33595
33596 #. type: verbatim
33597 #: ../src/guestfs-actions.pod:6665
33598 #, no-wrap
33599 msgid ""
33600 " int\n"
33601 " guestfs_set_autosync (guestfs_h *g,\n"
33602 "                       int autosync);\n"
33603 "\n"
33604 msgstr ""
33605
33606 #. type: =head2
33607 #: ../src/guestfs-actions.pod:6681
33608 msgid "guestfs_set_direct"
33609 msgstr ""
33610
33611 #. type: verbatim
33612 #: ../src/guestfs-actions.pod:6683
33613 #, no-wrap
33614 msgid ""
33615 " int\n"
33616 " guestfs_set_direct (guestfs_h *g,\n"
33617 "                     int direct);\n"
33618 "\n"
33619 msgstr ""
33620
33621 #. type: textblock
33622 #: ../src/guestfs-actions.pod:6691
33623 msgid ""
33624 "One consequence of this is that log messages aren't caught by the library "
33625 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33626 "stdout."
33627 msgstr ""
33628
33629 #. type: =head2
33630 #: ../src/guestfs-actions.pod:6704
33631 msgid "guestfs_set_e2label"
33632 msgstr ""
33633
33634 #. type: verbatim
33635 #: ../src/guestfs-actions.pod:6706
33636 #, no-wrap
33637 msgid ""
33638 " int\n"
33639 " guestfs_set_e2label (guestfs_h *g,\n"
33640 "                      const char *device,\n"
33641 "                      const char *label);\n"
33642 "\n"
33643 msgstr ""
33644
33645 #. type: textblock
33646 #: ../src/guestfs-actions.pod:6715
33647 msgid ""
33648 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33649 "the existing label on a filesystem."
33650 msgstr ""
33651
33652 #. type: =head2
33653 #: ../src/guestfs-actions.pod:6722
33654 msgid "guestfs_set_e2uuid"
33655 msgstr ""
33656
33657 #. type: verbatim
33658 #: ../src/guestfs-actions.pod:6724
33659 #, no-wrap
33660 msgid ""
33661 " int\n"
33662 " guestfs_set_e2uuid (guestfs_h *g,\n"
33663 "                     const char *device,\n"
33664 "                     const char *uuid);\n"
33665 "\n"
33666 msgstr ""
33667
33668 #. type: textblock
33669 #: ../src/guestfs-actions.pod:6734
33670 msgid ""
33671 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33672 "the existing UUID of a filesystem."
33673 msgstr ""
33674
33675 #. type: =head2
33676 #: ../src/guestfs-actions.pod:6741
33677 msgid "guestfs_set_memsize"
33678 msgstr ""
33679
33680 #. type: verbatim
33681 #: ../src/guestfs-actions.pod:6743
33682 #, no-wrap
33683 msgid ""
33684 " int\n"
33685 " guestfs_set_memsize (guestfs_h *g,\n"
33686 "                      int memsize);\n"
33687 "\n"
33688 msgstr ""
33689
33690 #. type: textblock
33691 #: ../src/guestfs-actions.pod:6747
33692 msgid ""
33693 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33694 "This only has any effect if called before C<guestfs_launch>."
33695 msgstr ""
33696
33697 #. type: =head2
33698 #: ../src/guestfs-actions.pod:6762
33699 msgid "guestfs_set_network"
33700 msgstr ""
33701
33702 #. type: verbatim
33703 #: ../src/guestfs-actions.pod:6764
33704 #, no-wrap
33705 msgid ""
33706 " int\n"
33707 " guestfs_set_network (guestfs_h *g,\n"
33708 "                      int network);\n"
33709 "\n"
33710 msgstr ""
33711
33712 #. type: textblock
33713 #: ../src/guestfs-actions.pod:6774
33714 msgid ""
33715 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33716 "effect."
33717 msgstr ""
33718
33719 #. type: =head2
33720 #: ../src/guestfs-actions.pod:6781
33721 msgid "guestfs_set_path"
33722 msgstr ""
33723
33724 #. type: verbatim
33725 #: ../src/guestfs-actions.pod:6783
33726 #, no-wrap
33727 msgid ""
33728 " int\n"
33729 " guestfs_set_path (guestfs_h *g,\n"
33730 "                   const char *searchpath);\n"
33731 "\n"
33732 msgstr ""
33733
33734 #. type: =head2
33735 #: ../src/guestfs-actions.pod:6798
33736 msgid "guestfs_set_pgroup"
33737 msgstr ""
33738
33739 #. type: verbatim
33740 #: ../src/guestfs-actions.pod:6800
33741 #, no-wrap
33742 msgid ""
33743 " int\n"
33744 " guestfs_set_pgroup (guestfs_h *g,\n"
33745 "                     int pgroup);\n"
33746 "\n"
33747 msgstr ""
33748
33749 #. type: =head2
33750 #: ../src/guestfs-actions.pod:6817
33751 msgid "guestfs_set_qemu"
33752 msgstr ""
33753
33754 #. type: verbatim
33755 #: ../src/guestfs-actions.pod:6819
33756 #, no-wrap
33757 msgid ""
33758 " int\n"
33759 " guestfs_set_qemu (guestfs_h *g,\n"
33760 "                   const char *qemu);\n"
33761 "\n"
33762 msgstr ""
33763
33764 #. type: =head2
33765 #: ../src/guestfs-actions.pod:6845
33766 msgid "guestfs_set_recovery_proc"
33767 msgstr ""
33768
33769 #. type: verbatim
33770 #: ../src/guestfs-actions.pod:6847
33771 #, no-wrap
33772 msgid ""
33773 " int\n"
33774 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33775 "                            int recoveryproc);\n"
33776 "\n"
33777 msgstr ""
33778
33779 #. type: textblock
33780 #: ../src/guestfs-actions.pod:6851
33781 msgid ""
33782 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33783 "not create a recovery process.  The purpose of the recovery process is to "
33784 "stop runaway qemu processes in the case where the main program aborts "
33785 "abruptly."
33786 msgstr ""
33787
33788 #. type: textblock
33789 #: ../src/guestfs-actions.pod:6856
33790 msgid ""
33791 "This only has any effect if called before C<guestfs_launch>, and the default "
33792 "is true."
33793 msgstr ""
33794
33795 #. type: =head2
33796 #: ../src/guestfs-actions.pod:6869
33797 msgid "guestfs_set_selinux"
33798 msgstr ""
33799
33800 #. type: verbatim
33801 #: ../src/guestfs-actions.pod:6871
33802 #, no-wrap
33803 msgid ""
33804 " int\n"
33805 " guestfs_set_selinux (guestfs_h *g,\n"
33806 "                      int selinux);\n"
33807 "\n"
33808 msgstr ""
33809
33810 #. type: =head2
33811 #: ../src/guestfs-actions.pod:6888
33812 msgid "guestfs_set_smp"
33813 msgstr ""
33814
33815 #. type: verbatim
33816 #: ../src/guestfs-actions.pod:6890
33817 #, no-wrap
33818 msgid ""
33819 " int\n"
33820 " guestfs_set_smp (guestfs_h *g,\n"
33821 "                  int smp);\n"
33822 "\n"
33823 msgstr ""
33824
33825 #. type: textblock
33826 #: ../src/guestfs-actions.pod:6898
33827 msgid "This function must be called before C<guestfs_launch>."
33828 msgstr ""
33829
33830 #. type: =head2
33831 #: ../src/guestfs-actions.pod:6904
33832 msgid "guestfs_set_trace"
33833 msgstr ""
33834
33835 #. type: verbatim
33836 #: ../src/guestfs-actions.pod:6906
33837 #, no-wrap
33838 msgid ""
33839 " int\n"
33840 " guestfs_set_trace (guestfs_h *g,\n"
33841 "                    int trace);\n"
33842 "\n"
33843 msgstr ""
33844
33845 #. type: textblock
33846 #: ../src/guestfs-actions.pod:6920
33847 msgid ""
33848 "Trace messages are normally sent to C<stderr>, unless you register a "
33849 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33850 msgstr ""
33851
33852 #. type: =head2
33853 #: ../src/guestfs-actions.pod:6928
33854 msgid "guestfs_set_verbose"
33855 msgstr ""
33856
33857 #. type: verbatim
33858 #: ../src/guestfs-actions.pod:6930
33859 #, no-wrap
33860 msgid ""
33861 " int\n"
33862 " guestfs_set_verbose (guestfs_h *g,\n"
33863 "                      int verbose);\n"
33864 "\n"
33865 msgstr ""
33866
33867 #. type: textblock
33868 #: ../src/guestfs-actions.pod:6939
33869 msgid ""
33870 "Verbose messages are normally sent to C<stderr>, unless you register a "
33871 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33872 msgstr ""
33873
33874 #. type: =head2
33875 #: ../src/guestfs-actions.pod:6947
33876 msgid "guestfs_setcon"
33877 msgstr ""
33878
33879 #. type: verbatim
33880 #: ../src/guestfs-actions.pod:6949
33881 #, no-wrap
33882 msgid ""
33883 " int\n"
33884 " guestfs_setcon (guestfs_h *g,\n"
33885 "                 const char *context);\n"
33886 "\n"
33887 msgstr ""
33888
33889 #. type: =head2
33890 #: ../src/guestfs-actions.pod:6962
33891 msgid "guestfs_setxattr"
33892 msgstr ""
33893
33894 #. type: verbatim
33895 #: ../src/guestfs-actions.pod:6964
33896 #, no-wrap
33897 msgid ""
33898 " int\n"
33899 " guestfs_setxattr (guestfs_h *g,\n"
33900 "                   const char *xattr,\n"
33901 "                   const char *val,\n"
33902 "                   int vallen,\n"
33903 "                   const char *path);\n"
33904 "\n"
33905 msgstr ""
33906
33907 #. type: textblock
33908 #: ../src/guestfs-actions.pod:6975
33909 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33910 msgstr ""
33911
33912 #. type: =head2
33913 #: ../src/guestfs-actions.pod:6981
33914 msgid "guestfs_sfdisk"
33915 msgstr ""
33916
33917 #. type: verbatim
33918 #: ../src/guestfs-actions.pod:6983
33919 #, no-wrap
33920 msgid ""
33921 " int\n"
33922 " guestfs_sfdisk (guestfs_h *g,\n"
33923 "                 const char *device,\n"
33924 "                 int cyls,\n"
33925 "                 int heads,\n"
33926 "                 int sectors,\n"
33927 "                 char *const *lines);\n"
33928 "\n"
33929 msgstr ""
33930
33931 #. type: textblock
33932 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
33933 #: ../src/guestfs-actions.pod:7063
33934 msgid ""
33935 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33936 "call instead."
33937 msgstr ""
33938
33939 #. type: textblock
33940 #: ../src/guestfs-actions.pod:7018
33941 msgid ""
33942 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33943 msgstr ""
33944
33945 #. type: =head2
33946 #: ../src/guestfs-actions.pod:7025
33947 msgid "guestfs_sfdiskM"
33948 msgstr ""
33949
33950 #. type: verbatim
33951 #: ../src/guestfs-actions.pod:7027
33952 #, no-wrap
33953 msgid ""
33954 " int\n"
33955 " guestfs_sfdiskM (guestfs_h *g,\n"
33956 "                  const char *device,\n"
33957 "                  char *const *lines);\n"
33958 "\n"
33959 msgstr ""
33960
33961 #. type: textblock
33962 #: ../src/guestfs-actions.pod:7039
33963 msgid ""
33964 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33965 "partition sizes are specified in megabytes only (rounded to the nearest "
33966 "cylinder) and you don't need to specify the cyls, heads and sectors "
33967 "parameters which were rarely if ever used anyway."
33968 msgstr ""
33969
33970 #. type: textblock
33971 #: ../src/guestfs-actions.pod:7045
33972 msgid ""
33973 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33974 "C<guestfs_part_disk>"
33975 msgstr ""
33976
33977 #. type: =head2
33978 #: ../src/guestfs-actions.pod:7052
33979 msgid "guestfs_sfdisk_N"
33980 msgstr ""
33981
33982 #. type: verbatim
33983 #: ../src/guestfs-actions.pod:7054
33984 #, no-wrap
33985 msgid ""
33986 " int\n"
33987 " guestfs_sfdisk_N (guestfs_h *g,\n"
33988 "                   const char *device,\n"
33989 "                   int partnum,\n"
33990 "                   int cyls,\n"
33991 "                   int heads,\n"
33992 "                   int sectors,\n"
33993 "                   const char *line);\n"
33994 "\n"
33995 msgstr ""
33996
33997 #. type: textblock
33998 #: ../src/guestfs-actions.pod:7073
33999 msgid ""
34000 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
34001 "for the cyls/heads/sectors parameters."
34002 msgstr ""
34003
34004 #. type: textblock
34005 #: ../src/guestfs-actions.pod:7076
34006 msgid "See also: C<guestfs_part_add>"
34007 msgstr ""
34008
34009 #. type: =head2
34010 #: ../src/guestfs-actions.pod:7082
34011 msgid "guestfs_sfdisk_disk_geometry"
34012 msgstr ""
34013
34014 #. type: verbatim
34015 #: ../src/guestfs-actions.pod:7084
34016 #, no-wrap
34017 msgid ""
34018 " char *\n"
34019 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
34020 "                               const char *device);\n"
34021 "\n"
34022 msgstr ""
34023
34024 #. type: textblock
34025 #: ../src/guestfs-actions.pod:7088
34026 msgid ""
34027 "This displays the disk geometry of C<device> read from the partition table.  "
34028 "Especially in the case where the underlying block device has been resized, "
34029 "this can be different from the kernel's idea of the geometry (see "
34030 "C<guestfs_sfdisk_kernel_geometry>)."
34031 msgstr ""
34032
34033 #. type: =head2
34034 #: ../src/guestfs-actions.pod:7101
34035 msgid "guestfs_sfdisk_kernel_geometry"
34036 msgstr ""
34037
34038 #. type: verbatim
34039 #: ../src/guestfs-actions.pod:7103
34040 #, no-wrap
34041 msgid ""
34042 " char *\n"
34043 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
34044 "                                 const char *device);\n"
34045 "\n"
34046 msgstr ""
34047
34048 #. type: =head2
34049 #: ../src/guestfs-actions.pod:7117
34050 msgid "guestfs_sfdisk_l"
34051 msgstr ""
34052
34053 #. type: verbatim
34054 #: ../src/guestfs-actions.pod:7119
34055 #, no-wrap
34056 msgid ""
34057 " char *\n"
34058 " guestfs_sfdisk_l (guestfs_h *g,\n"
34059 "                   const char *device);\n"
34060 "\n"
34061 msgstr ""
34062
34063 #. type: textblock
34064 #: ../src/guestfs-actions.pod:7123
34065 msgid ""
34066 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
34067 "call instead."
34068 msgstr ""
34069
34070 #. type: textblock
34071 #: ../src/guestfs-actions.pod:7134
34072 msgid "See also: C<guestfs_part_list>"
34073 msgstr ""
34074
34075 #. type: =head2
34076 #: ../src/guestfs-actions.pod:7141
34077 msgid "guestfs_sh"
34078 msgstr ""
34079
34080 #. type: verbatim
34081 #: ../src/guestfs-actions.pod:7143
34082 #, no-wrap
34083 msgid ""
34084 " char *\n"
34085 " guestfs_sh (guestfs_h *g,\n"
34086 "             const char *command);\n"
34087 "\n"
34088 msgstr ""
34089
34090 #. type: textblock
34091 #: ../src/guestfs-actions.pod:7150
34092 msgid "This is like C<guestfs_command>, but passes the command to:"
34093 msgstr ""
34094
34095 #. type: textblock
34096 #: ../src/guestfs-actions.pod:7158
34097 msgid "All the provisos about C<guestfs_command> apply to this call."
34098 msgstr ""
34099
34100 #. type: =head2
34101 #: ../src/guestfs-actions.pod:7165
34102 msgid "guestfs_sh_lines"
34103 msgstr ""
34104
34105 #. type: verbatim
34106 #: ../src/guestfs-actions.pod:7167
34107 #, no-wrap
34108 msgid ""
34109 " char **\n"
34110 " guestfs_sh_lines (guestfs_h *g,\n"
34111 "                   const char *command);\n"
34112 "\n"
34113 msgstr ""
34114
34115 #. type: textblock
34116 #: ../src/guestfs-actions.pod:7171
34117 msgid ""
34118 "This is the same as C<guestfs_sh>, but splits the result into a list of "
34119 "lines."
34120 msgstr ""
34121
34122 #. type: textblock
34123 #: ../src/guestfs-actions.pod:7174
34124 msgid "See also: C<guestfs_command_lines>"
34125 msgstr ""
34126
34127 #. type: =head2
34128 #: ../src/guestfs-actions.pod:7182
34129 msgid "guestfs_sleep"
34130 msgstr ""
34131
34132 #. type: verbatim
34133 #: ../src/guestfs-actions.pod:7184
34134 #, no-wrap
34135 msgid ""
34136 " int\n"
34137 " guestfs_sleep (guestfs_h *g,\n"
34138 "                int secs);\n"
34139 "\n"
34140 msgstr ""
34141
34142 #. type: textblock
34143 #: ../src/guestfs-actions.pod:7192
34144 msgid "(Added in 1.0.41)"
34145 msgstr "(Додано у 1.0.41)"
34146
34147 #. type: =head2
34148 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
34149 msgid "guestfs_stat"
34150 msgstr ""
34151
34152 #. type: verbatim
34153 #: ../src/guestfs-actions.pod:7196
34154 #, no-wrap
34155 msgid ""
34156 " struct guestfs_stat *\n"
34157 " guestfs_stat (guestfs_h *g,\n"
34158 "               const char *path);\n"
34159 "\n"
34160 msgstr ""
34161
34162 #. type: =head2
34163 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
34164 msgid "guestfs_statvfs"
34165 msgstr ""
34166
34167 #. type: verbatim
34168 #: ../src/guestfs-actions.pod:7212
34169 #, no-wrap
34170 msgid ""
34171 " struct guestfs_statvfs *\n"
34172 " guestfs_statvfs (guestfs_h *g,\n"
34173 "                  const char *path);\n"
34174 "\n"
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs-actions.pod:7222
34179 msgid ""
34180 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
34181 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
34182 msgstr ""
34183
34184 #. type: =head2
34185 #: ../src/guestfs-actions.pod:7228
34186 msgid "guestfs_strings"
34187 msgstr ""
34188
34189 #. type: verbatim
34190 #: ../src/guestfs-actions.pod:7230
34191 #, no-wrap
34192 msgid ""
34193 " char **\n"
34194 " guestfs_strings (guestfs_h *g,\n"
34195 "                  const char *path);\n"
34196 "\n"
34197 msgstr ""
34198
34199 #. type: =head2
34200 #: ../src/guestfs-actions.pod:7246
34201 msgid "guestfs_strings_e"
34202 msgstr ""
34203
34204 #. type: verbatim
34205 #: ../src/guestfs-actions.pod:7248
34206 #, no-wrap
34207 msgid ""
34208 " char **\n"
34209 " guestfs_strings_e (guestfs_h *g,\n"
34210 "                    const char *encoding,\n"
34211 "                    const char *path);\n"
34212 "\n"
34213 msgstr ""
34214
34215 #. type: textblock
34216 #: ../src/guestfs-actions.pod:7253
34217 msgid ""
34218 "This is like the C<guestfs_strings> command, but allows you to specify the "
34219 "encoding of strings that are looked for in the source file C<path>."
34220 msgstr ""
34221
34222 #. type: textblock
34223 #: ../src/guestfs-actions.pod:7263
34224 msgid ""
34225 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
34226 "ISO-8859-X (this is what C<guestfs_strings> uses)."
34227 msgstr ""
34228
34229 #. type: =head2
34230 #: ../src/guestfs-actions.pod:7301
34231 msgid "guestfs_swapoff_device"
34232 msgstr ""
34233
34234 #. type: verbatim
34235 #: ../src/guestfs-actions.pod:7303
34236 #, no-wrap
34237 msgid ""
34238 " int\n"
34239 " guestfs_swapoff_device (guestfs_h *g,\n"
34240 "                         const char *device);\n"
34241 "\n"
34242 msgstr ""
34243
34244 #. type: textblock
34245 #: ../src/guestfs-actions.pod:7307
34246 msgid ""
34247 "This command disables the libguestfs appliance swap device or partition "
34248 "named C<device>.  See C<guestfs_swapon_device>."
34249 msgstr ""
34250
34251 #. type: =head2
34252 #: ../src/guestfs-actions.pod:7315
34253 msgid "guestfs_swapoff_file"
34254 msgstr ""
34255
34256 #. type: verbatim
34257 #: ../src/guestfs-actions.pod:7317
34258 #, no-wrap
34259 msgid ""
34260 " int\n"
34261 " guestfs_swapoff_file (guestfs_h *g,\n"
34262 "                       const char *file);\n"
34263 "\n"
34264 msgstr ""
34265
34266 #. type: =head2
34267 #: ../src/guestfs-actions.pod:7327
34268 msgid "guestfs_swapoff_label"
34269 msgstr ""
34270
34271 #. type: verbatim
34272 #: ../src/guestfs-actions.pod:7329
34273 #, no-wrap
34274 msgid ""
34275 " int\n"
34276 " guestfs_swapoff_label (guestfs_h *g,\n"
34277 "                        const char *label);\n"
34278 "\n"
34279 msgstr ""
34280
34281 #. type: =head2
34282 #: ../src/guestfs-actions.pod:7340
34283 msgid "guestfs_swapoff_uuid"
34284 msgstr ""
34285
34286 #. type: verbatim
34287 #: ../src/guestfs-actions.pod:7342
34288 #, no-wrap
34289 msgid ""
34290 " int\n"
34291 " guestfs_swapoff_uuid (guestfs_h *g,\n"
34292 "                       const char *uuid);\n"
34293 "\n"
34294 msgstr ""
34295
34296 #. type: =head2
34297 #: ../src/guestfs-actions.pod:7353
34298 msgid "guestfs_swapon_device"
34299 msgstr ""
34300
34301 #. type: verbatim
34302 #: ../src/guestfs-actions.pod:7355
34303 #, no-wrap
34304 msgid ""
34305 " int\n"
34306 " guestfs_swapon_device (guestfs_h *g,\n"
34307 "                        const char *device);\n"
34308 "\n"
34309 msgstr ""
34310
34311 #. type: textblock
34312 #: ../src/guestfs-actions.pod:7359
34313 msgid ""
34314 "This command enables the libguestfs appliance to use the swap device or "
34315 "partition named C<device>.  The increased memory is made available for all "
34316 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
34317 msgstr ""
34318
34319 #. type: =head2
34320 #: ../src/guestfs-actions.pod:7375
34321 msgid "guestfs_swapon_file"
34322 msgstr ""
34323
34324 #. type: verbatim
34325 #: ../src/guestfs-actions.pod:7377
34326 #, no-wrap
34327 msgid ""
34328 " int\n"
34329 " guestfs_swapon_file (guestfs_h *g,\n"
34330 "                      const char *file);\n"
34331 "\n"
34332 msgstr ""
34333
34334 #. type: textblock
34335 #: ../src/guestfs-actions.pod:7381
34336 msgid ""
34337 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
34338 "notes."
34339 msgstr ""
34340
34341 #. type: =head2
34342 #: ../src/guestfs-actions.pod:7388
34343 msgid "guestfs_swapon_label"
34344 msgstr ""
34345
34346 #. type: verbatim
34347 #: ../src/guestfs-actions.pod:7390
34348 #, no-wrap
34349 msgid ""
34350 " int\n"
34351 " guestfs_swapon_label (guestfs_h *g,\n"
34352 "                       const char *label);\n"
34353 "\n"
34354 msgstr ""
34355
34356 #. type: textblock
34357 #: ../src/guestfs-actions.pod:7394
34358 msgid ""
34359 "This command enables swap to a labeled swap partition.  See "
34360 "C<guestfs_swapon_device> for other notes."
34361 msgstr ""
34362
34363 #. type: =head2
34364 #: ../src/guestfs-actions.pod:7401
34365 msgid "guestfs_swapon_uuid"
34366 msgstr ""
34367
34368 #. type: verbatim
34369 #: ../src/guestfs-actions.pod:7403
34370 #, no-wrap
34371 msgid ""
34372 " int\n"
34373 " guestfs_swapon_uuid (guestfs_h *g,\n"
34374 "                      const char *uuid);\n"
34375 "\n"
34376 msgstr ""
34377
34378 #. type: textblock
34379 #: ../src/guestfs-actions.pod:7407
34380 msgid ""
34381 "This command enables swap to a swap partition with the given UUID.  See "
34382 "C<guestfs_swapon_device> for other notes."
34383 msgstr ""
34384
34385 #. type: =head2
34386 #: ../src/guestfs-actions.pod:7414
34387 msgid "guestfs_sync"
34388 msgstr ""
34389
34390 #. type: verbatim
34391 #: ../src/guestfs-actions.pod:7416
34392 #, no-wrap
34393 msgid ""
34394 " int\n"
34395 " guestfs_sync (guestfs_h *g);\n"
34396 "\n"
34397 msgstr ""
34398
34399 #. type: =head2
34400 #: ../src/guestfs-actions.pod:7429
34401 msgid "guestfs_tail"
34402 msgstr ""
34403
34404 #. type: verbatim
34405 #: ../src/guestfs-actions.pod:7431
34406 #, no-wrap
34407 msgid ""
34408 " char **\n"
34409 " guestfs_tail (guestfs_h *g,\n"
34410 "               const char *path);\n"
34411 "\n"
34412 msgstr ""
34413
34414 #. type: =head2
34415 #: ../src/guestfs-actions.pod:7447
34416 msgid "guestfs_tail_n"
34417 msgstr ""
34418
34419 #. type: verbatim
34420 #: ../src/guestfs-actions.pod:7449
34421 #, no-wrap
34422 msgid ""
34423 " char **\n"
34424 " guestfs_tail_n (guestfs_h *g,\n"
34425 "                 int nrlines,\n"
34426 "                 const char *path);\n"
34427 "\n"
34428 msgstr ""
34429
34430 #. type: =head2
34431 #: ../src/guestfs-actions.pod:7471
34432 msgid "guestfs_tar_in"
34433 msgstr ""
34434
34435 #. type: verbatim
34436 #: ../src/guestfs-actions.pod:7473
34437 #, no-wrap
34438 msgid ""
34439 " int\n"
34440 " guestfs_tar_in (guestfs_h *g,\n"
34441 "                 const char *tarfile,\n"
34442 "                 const char *directory);\n"
34443 "\n"
34444 msgstr ""
34445
34446 #. type: textblock
34447 #: ../src/guestfs-actions.pod:7481
34448 msgid ""
34449 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34450 msgstr ""
34451
34452 #. type: textblock
34453 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
34454 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
34455 msgid "(Added in 1.0.3)"
34456 msgstr "(Додано у 1.0.3)"
34457
34458 #. type: =head2
34459 #: ../src/guestfs-actions.pod:7488
34460 msgid "guestfs_tar_out"
34461 msgstr ""
34462
34463 #. type: verbatim
34464 #: ../src/guestfs-actions.pod:7490
34465 #, no-wrap
34466 msgid ""
34467 " int\n"
34468 " guestfs_tar_out (guestfs_h *g,\n"
34469 "                  const char *directory,\n"
34470 "                  const char *tarfile);\n"
34471 "\n"
34472 msgstr ""
34473
34474 #. type: textblock
34475 #: ../src/guestfs-actions.pod:7498
34476 msgid ""
34477 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34478 "C<guestfs_txz_out>."
34479 msgstr ""
34480
34481 #. type: =head2
34482 #: ../src/guestfs-actions.pod:7505
34483 msgid "guestfs_tgz_in"
34484 msgstr ""
34485
34486 #. type: verbatim
34487 #: ../src/guestfs-actions.pod:7507
34488 #, no-wrap
34489 msgid ""
34490 " int\n"
34491 " guestfs_tgz_in (guestfs_h *g,\n"
34492 "                 const char *tarball,\n"
34493 "                 const char *directory);\n"
34494 "\n"
34495 msgstr ""
34496
34497 #. type: textblock
34498 #: ../src/guestfs-actions.pod:7515
34499 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34500 msgstr ""
34501
34502 #. type: =head2
34503 #: ../src/guestfs-actions.pod:7521
34504 msgid "guestfs_tgz_out"
34505 msgstr ""
34506
34507 #. type: verbatim
34508 #: ../src/guestfs-actions.pod:7523
34509 #, no-wrap
34510 msgid ""
34511 " int\n"
34512 " guestfs_tgz_out (guestfs_h *g,\n"
34513 "                  const char *directory,\n"
34514 "                  const char *tarball);\n"
34515 "\n"
34516 msgstr ""
34517
34518 #. type: textblock
34519 #: ../src/guestfs-actions.pod:7531
34520 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34521 msgstr ""
34522
34523 #. type: =head2
34524 #: ../src/guestfs-actions.pod:7537
34525 msgid "guestfs_touch"
34526 msgstr ""
34527
34528 #. type: verbatim
34529 #: ../src/guestfs-actions.pod:7539
34530 #, no-wrap
34531 msgid ""
34532 " int\n"
34533 " guestfs_touch (guestfs_h *g,\n"
34534 "                const char *path);\n"
34535 "\n"
34536 msgstr ""
34537
34538 #. type: =head2
34539 #: ../src/guestfs-actions.pod:7554
34540 msgid "guestfs_truncate"
34541 msgstr ""
34542
34543 #. type: verbatim
34544 #: ../src/guestfs-actions.pod:7556
34545 #, no-wrap
34546 msgid ""
34547 " int\n"
34548 " guestfs_truncate (guestfs_h *g,\n"
34549 "                   const char *path);\n"
34550 "\n"
34551 msgstr ""
34552
34553 #. type: =head2
34554 #: ../src/guestfs-actions.pod:7567
34555 msgid "guestfs_truncate_size"
34556 msgstr ""
34557
34558 #. type: verbatim
34559 #: ../src/guestfs-actions.pod:7569
34560 #, no-wrap
34561 msgid ""
34562 " int\n"
34563 " guestfs_truncate_size (guestfs_h *g,\n"
34564 "                        const char *path,\n"
34565 "                        int64_t size);\n"
34566 "\n"
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs-actions.pod:7577
34571 msgid ""
34572 "If the current file size is less than C<size> then the file is extended to "
34573 "the required size with zero bytes.  This creates a sparse file (ie. disk "
34574 "blocks are not allocated for the file until you write to it).  To create a "
34575 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34576 msgstr ""
34577
34578 #. type: =head2
34579 #: ../src/guestfs-actions.pod:7587
34580 msgid "guestfs_tune2fs_l"
34581 msgstr ""
34582
34583 #. type: verbatim
34584 #: ../src/guestfs-actions.pod:7589
34585 #, no-wrap
34586 msgid ""
34587 " char **\n"
34588 " guestfs_tune2fs_l (guestfs_h *g,\n"
34589 "                    const char *device);\n"
34590 "\n"
34591 msgstr ""
34592
34593 #. type: =head2
34594 #: ../src/guestfs-actions.pod:7609
34595 msgid "guestfs_txz_in"
34596 msgstr ""
34597
34598 #. type: verbatim
34599 #: ../src/guestfs-actions.pod:7611
34600 #, no-wrap
34601 msgid ""
34602 " int\n"
34603 " guestfs_txz_in (guestfs_h *g,\n"
34604 "                 const char *tarball,\n"
34605 "                 const char *directory);\n"
34606 "\n"
34607 msgstr ""
34608
34609 #. type: =head2
34610 #: ../src/guestfs-actions.pod:7623
34611 msgid "guestfs_txz_out"
34612 msgstr ""
34613
34614 #. type: verbatim
34615 #: ../src/guestfs-actions.pod:7625
34616 #, no-wrap
34617 msgid ""
34618 " int\n"
34619 " guestfs_txz_out (guestfs_h *g,\n"
34620 "                  const char *directory,\n"
34621 "                  const char *tarball);\n"
34622 "\n"
34623 msgstr ""
34624
34625 #. type: =head2
34626 #: ../src/guestfs-actions.pod:7637
34627 msgid "guestfs_umask"
34628 msgstr ""
34629
34630 #. type: verbatim
34631 #: ../src/guestfs-actions.pod:7639
34632 #, no-wrap
34633 msgid ""
34634 " int\n"
34635 " guestfs_umask (guestfs_h *g,\n"
34636 "                int mask);\n"
34637 "\n"
34638 msgstr ""
34639
34640 #. type: textblock
34641 #: ../src/guestfs-actions.pod:7655
34642 msgid ""
34643 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34644 "C<guestfs_mkdir>."
34645 msgstr ""
34646
34647 #. type: =head2
34648 #: ../src/guestfs-actions.pod:7664
34649 msgid "guestfs_umount"
34650 msgstr ""
34651
34652 #. type: verbatim
34653 #: ../src/guestfs-actions.pod:7666
34654 #, no-wrap
34655 msgid ""
34656 " int\n"
34657 " guestfs_umount (guestfs_h *g,\n"
34658 "                 const char *pathordevice);\n"
34659 "\n"
34660 msgstr ""
34661
34662 #. type: =head2
34663 #: ../src/guestfs-actions.pod:7678
34664 msgid "guestfs_umount_all"
34665 msgstr ""
34666
34667 #. type: verbatim
34668 #: ../src/guestfs-actions.pod:7680
34669 #, no-wrap
34670 msgid ""
34671 " int\n"
34672 " guestfs_umount_all (guestfs_h *g);\n"
34673 "\n"
34674 msgstr ""
34675
34676 #. type: =head2
34677 #: ../src/guestfs-actions.pod:7691
34678 msgid "guestfs_upload"
34679 msgstr ""
34680
34681 #. type: verbatim
34682 #: ../src/guestfs-actions.pod:7693
34683 #, no-wrap
34684 msgid ""
34685 " int\n"
34686 " guestfs_upload (guestfs_h *g,\n"
34687 "                 const char *filename,\n"
34688 "                 const char *remotefilename);\n"
34689 "\n"
34690 msgstr ""
34691
34692 #. type: textblock
34693 #: ../src/guestfs-actions.pod:7703
34694 msgid "See also C<guestfs_download>."
34695 msgstr ""
34696
34697 #. type: =head2
34698 #: ../src/guestfs-actions.pod:7714
34699 msgid "guestfs_upload_offset"
34700 msgstr ""
34701
34702 #. type: verbatim
34703 #: ../src/guestfs-actions.pod:7716
34704 #, no-wrap
34705 msgid ""
34706 " int\n"
34707 " guestfs_upload_offset (guestfs_h *g,\n"
34708 "                        const char *filename,\n"
34709 "                        const char *remotefilename,\n"
34710 "                        int64_t offset);\n"
34711 "\n"
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs-actions.pod:7732
34716 msgid ""
34717 "Note that there is no limit on the amount of data that can be uploaded with "
34718 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34719 "full amount unless an error occurs."
34720 msgstr ""
34721
34722 #. type: textblock
34723 #: ../src/guestfs-actions.pod:7737
34724 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34725 msgstr ""
34726
34727 #. type: =head2
34728 #: ../src/guestfs-actions.pod:7748
34729 msgid "guestfs_utimens"
34730 msgstr ""
34731
34732 #. type: verbatim
34733 #: ../src/guestfs-actions.pod:7750
34734 #, no-wrap
34735 msgid ""
34736 " int\n"
34737 " guestfs_utimens (guestfs_h *g,\n"
34738 "                  const char *path,\n"
34739 "                  int64_t atsecs,\n"
34740 "                  int64_t atnsecs,\n"
34741 "                  int64_t mtsecs,\n"
34742 "                  int64_t mtnsecs);\n"
34743 "\n"
34744 msgstr ""
34745
34746 #. type: =head2
34747 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
34748 msgid "guestfs_version"
34749 msgstr ""
34750
34751 #. type: verbatim
34752 #: ../src/guestfs-actions.pod:7781
34753 #, no-wrap
34754 msgid ""
34755 " struct guestfs_version *\n"
34756 " guestfs_version (guestfs_h *g);\n"
34757 "\n"
34758 msgstr ""
34759
34760 #. type: textblock
34761 #: ../src/guestfs-actions.pod:7809
34762 msgid ""
34763 "I<Note:> Don't use this call to test for availability of features.  In "
34764 "enterprise distributions we backport features from later versions into "
34765 "earlier versions, making this an unreliable way to test for features.  Use "
34766 "C<guestfs_available> instead."
34767 msgstr ""
34768
34769 #. type: textblock
34770 #: ../src/guestfs-actions.pod:7815
34771 msgid ""
34772 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34773 "error.  I<The caller must call C<guestfs_free_version> after use>."
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../src/guestfs-actions.pod:7819
34778 msgid "(Added in 1.0.58)"
34779 msgstr "(Додано у 1.0.58)"
34780
34781 #. type: =head2
34782 #: ../src/guestfs-actions.pod:7821
34783 msgid "guestfs_vfs_label"
34784 msgstr ""
34785
34786 #. type: verbatim
34787 #: ../src/guestfs-actions.pod:7823
34788 #, no-wrap
34789 msgid ""
34790 " char *\n"
34791 " guestfs_vfs_label (guestfs_h *g,\n"
34792 "                    const char *device);\n"
34793 "\n"
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs-actions.pod:7832
34798 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34799 msgstr ""
34800
34801 #. type: textblock
34802 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
34803 msgid "(Added in 1.3.18)"
34804 msgstr "(Додано у 1.3.18)"
34805
34806 #. type: =head2
34807 #: ../src/guestfs-actions.pod:7839
34808 msgid "guestfs_vfs_type"
34809 msgstr ""
34810
34811 #. type: verbatim
34812 #: ../src/guestfs-actions.pod:7841
34813 #, no-wrap
34814 msgid ""
34815 " char *\n"
34816 " guestfs_vfs_type (guestfs_h *g,\n"
34817 "                   const char *device);\n"
34818 "\n"
34819 msgstr ""
34820
34821 #. type: =head2
34822 #: ../src/guestfs-actions.pod:7858
34823 msgid "guestfs_vfs_uuid"
34824 msgstr ""
34825
34826 #. type: verbatim
34827 #: ../src/guestfs-actions.pod:7860
34828 #, no-wrap
34829 msgid ""
34830 " char *\n"
34831 " guestfs_vfs_uuid (guestfs_h *g,\n"
34832 "                   const char *device);\n"
34833 "\n"
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs-actions.pod:7869
34838 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34839 msgstr ""
34840
34841 #. type: =head2
34842 #: ../src/guestfs-actions.pod:7876
34843 msgid "guestfs_vg_activate"
34844 msgstr ""
34845
34846 #. type: verbatim
34847 #: ../src/guestfs-actions.pod:7878
34848 #, no-wrap
34849 msgid ""
34850 " int\n"
34851 " guestfs_vg_activate (guestfs_h *g,\n"
34852 "                      int activate,\n"
34853 "                      char *const *volgroups);\n"
34854 "\n"
34855 msgstr ""
34856
34857 #. type: =head2
34858 #: ../src/guestfs-actions.pod:7895
34859 msgid "guestfs_vg_activate_all"
34860 msgstr ""
34861
34862 #. type: verbatim
34863 #: ../src/guestfs-actions.pod:7897
34864 #, no-wrap
34865 msgid ""
34866 " int\n"
34867 " guestfs_vg_activate_all (guestfs_h *g,\n"
34868 "                          int activate);\n"
34869 "\n"
34870 msgstr ""
34871
34872 #. type: =head2
34873 #: ../src/guestfs-actions.pod:7910
34874 msgid "guestfs_vgcreate"
34875 msgstr ""
34876
34877 #. type: verbatim
34878 #: ../src/guestfs-actions.pod:7912
34879 #, no-wrap
34880 msgid ""
34881 " int\n"
34882 " guestfs_vgcreate (guestfs_h *g,\n"
34883 "                   const char *volgroup,\n"
34884 "                   char *const *physvols);\n"
34885 "\n"
34886 msgstr ""
34887
34888 #. type: =head2
34889 #: ../src/guestfs-actions.pod:7924
34890 msgid "guestfs_vglvuuids"
34891 msgstr ""
34892
34893 #. type: verbatim
34894 #: ../src/guestfs-actions.pod:7926
34895 #, no-wrap
34896 msgid ""
34897 " char **\n"
34898 " guestfs_vglvuuids (guestfs_h *g,\n"
34899 "                    const char *vgname);\n"
34900 "\n"
34901 msgstr ""
34902
34903 #. type: textblock
34904 #: ../src/guestfs-actions.pod:7933
34905 msgid ""
34906 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34907 "associate logical volumes and volume groups."
34908 msgstr ""
34909
34910 #. type: textblock
34911 #: ../src/guestfs-actions.pod:7936
34912 msgid "See also C<guestfs_vgpvuuids>."
34913 msgstr ""
34914
34915 #. type: =head2
34916 #: ../src/guestfs-actions.pod:7944
34917 msgid "guestfs_vgpvuuids"
34918 msgstr ""
34919
34920 #. type: verbatim
34921 #: ../src/guestfs-actions.pod:7946
34922 #, no-wrap
34923 msgid ""
34924 " char **\n"
34925 " guestfs_vgpvuuids (guestfs_h *g,\n"
34926 "                    const char *vgname);\n"
34927 "\n"
34928 msgstr ""
34929
34930 #. type: textblock
34931 #: ../src/guestfs-actions.pod:7953
34932 msgid ""
34933 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34934 "associate physical volumes and volume groups."
34935 msgstr ""
34936
34937 #. type: textblock
34938 #: ../src/guestfs-actions.pod:7956
34939 msgid "See also C<guestfs_vglvuuids>."
34940 msgstr ""
34941
34942 #. type: =head2
34943 #: ../src/guestfs-actions.pod:7964
34944 msgid "guestfs_vgremove"
34945 msgstr ""
34946
34947 #. type: verbatim
34948 #: ../src/guestfs-actions.pod:7966
34949 #, no-wrap
34950 msgid ""
34951 " int\n"
34952 " guestfs_vgremove (guestfs_h *g,\n"
34953 "                   const char *vgname);\n"
34954 "\n"
34955 msgstr ""
34956
34957 #. type: =head2
34958 #: ../src/guestfs-actions.pod:7979
34959 msgid "guestfs_vgrename"
34960 msgstr ""
34961
34962 #. type: verbatim
34963 #: ../src/guestfs-actions.pod:7981
34964 #, no-wrap
34965 msgid ""
34966 " int\n"
34967 " guestfs_vgrename (guestfs_h *g,\n"
34968 "                   const char *volgroup,\n"
34969 "                   const char *newvolgroup);\n"
34970 "\n"
34971 msgstr ""
34972
34973 #. type: =head2
34974 #: ../src/guestfs-actions.pod:7992
34975 msgid "guestfs_vgs"
34976 msgstr ""
34977
34978 #. type: verbatim
34979 #: ../src/guestfs-actions.pod:7994
34980 #, no-wrap
34981 msgid ""
34982 " char **\n"
34983 " guestfs_vgs (guestfs_h *g);\n"
34984 "\n"
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs-actions.pod:8003
34989 msgid "See also C<guestfs_vgs_full>."
34990 msgstr ""
34991
34992 #. type: =head2
34993 #: ../src/guestfs-actions.pod:8011
34994 msgid "guestfs_vgs_full"
34995 msgstr ""
34996
34997 #. type: verbatim
34998 #: ../src/guestfs-actions.pod:8013
34999 #, no-wrap
35000 msgid ""
35001 " struct guestfs_lvm_vg_list *\n"
35002 " guestfs_vgs_full (guestfs_h *g);\n"
35003 "\n"
35004 msgstr ""
35005
35006 #. type: textblock
35007 #: ../src/guestfs-actions.pod:8019
35008 msgid ""
35009 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
35010 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
35011 msgstr ""
35012
35013 #. type: =head2
35014 #: ../src/guestfs-actions.pod:8025
35015 msgid "guestfs_vgscan"
35016 msgstr ""
35017
35018 #. type: verbatim
35019 #: ../src/guestfs-actions.pod:8027
35020 #, no-wrap
35021 msgid ""
35022 " int\n"
35023 " guestfs_vgscan (guestfs_h *g);\n"
35024 "\n"
35025 msgstr ""
35026
35027 #. type: =head2
35028 #: ../src/guestfs-actions.pod:8037
35029 msgid "guestfs_vguuid"
35030 msgstr ""
35031
35032 #. type: verbatim
35033 #: ../src/guestfs-actions.pod:8039
35034 #, no-wrap
35035 msgid ""
35036 " char *\n"
35037 " guestfs_vguuid (guestfs_h *g,\n"
35038 "                 const char *vgname);\n"
35039 "\n"
35040 msgstr ""
35041
35042 #. type: =head2
35043 #: ../src/guestfs-actions.pod:8050
35044 msgid "guestfs_wait_ready"
35045 msgstr ""
35046
35047 #. type: verbatim
35048 #: ../src/guestfs-actions.pod:8052
35049 #, no-wrap
35050 msgid ""
35051 " int\n"
35052 " guestfs_wait_ready (guestfs_h *g);\n"
35053 "\n"
35054 msgstr ""
35055
35056 #. type: textblock
35057 #: ../src/guestfs-actions.pod:8055
35058 msgid ""
35059 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
35060 "instead."
35061 msgstr ""
35062
35063 #. type: textblock
35064 #: ../src/guestfs-actions.pod:8062
35065 msgid "This function is a no op."
35066 msgstr ""
35067
35068 #. type: textblock
35069 #: ../src/guestfs-actions.pod:8064
35070 msgid ""
35071 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
35072 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
35073 "is no longer necessary because C<guestfs_launch> now does the waiting."
35074 msgstr ""
35075
35076 #. type: textblock
35077 #: ../src/guestfs-actions.pod:8069
35078 msgid ""
35079 "If you see any calls to this function in code then you can just remove them, "
35080 "unless you want to retain compatibility with older versions of the API."
35081 msgstr ""
35082
35083 #. type: =head2
35084 #: ../src/guestfs-actions.pod:8077
35085 msgid "guestfs_wc_c"
35086 msgstr ""
35087
35088 #. type: verbatim
35089 #: ../src/guestfs-actions.pod:8079
35090 #, no-wrap
35091 msgid ""
35092 " int\n"
35093 " guestfs_wc_c (guestfs_h *g,\n"
35094 "               const char *path);\n"
35095 "\n"
35096 msgstr ""
35097
35098 #. type: =head2
35099 #: ../src/guestfs-actions.pod:8090
35100 msgid "guestfs_wc_l"
35101 msgstr ""
35102
35103 #. type: verbatim
35104 #: ../src/guestfs-actions.pod:8092
35105 #, no-wrap
35106 msgid ""
35107 " int\n"
35108 " guestfs_wc_l (guestfs_h *g,\n"
35109 "               const char *path);\n"
35110 "\n"
35111 msgstr ""
35112
35113 #. type: =head2
35114 #: ../src/guestfs-actions.pod:8103
35115 msgid "guestfs_wc_w"
35116 msgstr ""
35117
35118 #. type: verbatim
35119 #: ../src/guestfs-actions.pod:8105
35120 #, no-wrap
35121 msgid ""
35122 " int\n"
35123 " guestfs_wc_w (guestfs_h *g,\n"
35124 "               const char *path);\n"
35125 "\n"
35126 msgstr ""
35127
35128 #. type: =head2
35129 #: ../src/guestfs-actions.pod:8116
35130 msgid "guestfs_write"
35131 msgstr ""
35132
35133 #. type: verbatim
35134 #: ../src/guestfs-actions.pod:8118
35135 #, no-wrap
35136 msgid ""
35137 " int\n"
35138 " guestfs_write (guestfs_h *g,\n"
35139 "                const char *path,\n"
35140 "                const char *content,\n"
35141 "                size_t content_size);\n"
35142 "\n"
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs-actions.pod:8127
35147 msgid "See also C<guestfs_write_append>."
35148 msgstr ""
35149
35150 #. type: =head2
35151 #: ../src/guestfs-actions.pod:8136
35152 msgid "guestfs_write_append"
35153 msgstr ""
35154
35155 #. type: verbatim
35156 #: ../src/guestfs-actions.pod:8138
35157 #, no-wrap
35158 msgid ""
35159 " int\n"
35160 " guestfs_write_append (guestfs_h *g,\n"
35161 "                       const char *path,\n"
35162 "                       const char *content,\n"
35163 "                       size_t content_size);\n"
35164 "\n"
35165 msgstr ""
35166
35167 #. type: textblock
35168 #: ../src/guestfs-actions.pod:8147
35169 msgid "See also C<guestfs_write>."
35170 msgstr ""
35171
35172 #. type: =head2
35173 #: ../src/guestfs-actions.pod:8156
35174 msgid "guestfs_write_file"
35175 msgstr "guestfs_write_file"
35176
35177 #. type: verbatim
35178 #: ../src/guestfs-actions.pod:8158
35179 #, no-wrap
35180 msgid ""
35181 " int\n"
35182 " guestfs_write_file (guestfs_h *g,\n"
35183 "                     const char *path,\n"
35184 "                     const char *content,\n"
35185 "                     int size);\n"
35186 "\n"
35187 msgstr ""
35188 " int\n"
35189 " guestfs_write_file (guestfs_h *g,\n"
35190 "                     const char *path,\n"
35191 "                     const char *content,\n"
35192 "                     int size);\n"
35193 "\n"
35194
35195 #. type: textblock
35196 #: ../src/guestfs-actions.pod:8164
35197 msgid ""
35198 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
35199 "instead."
35200 msgstr ""
35201
35202 #. type: =head2
35203 #: ../src/guestfs-actions.pod:8189
35204 msgid "guestfs_zegrep"
35205 msgstr "guestfs_zegrep"
35206
35207 #. type: verbatim
35208 #: ../src/guestfs-actions.pod:8191
35209 #, no-wrap
35210 msgid ""
35211 " char **\n"
35212 " guestfs_zegrep (guestfs_h *g,\n"
35213 "                 const char *regex,\n"
35214 "                 const char *path);\n"
35215 "\n"
35216 msgstr ""
35217 " char **\n"
35218 " guestfs_zegrep (guestfs_h *g,\n"
35219 "                 const char *regex,\n"
35220 "                 const char *path);\n"
35221 "\n"
35222
35223 #. type: =head2
35224 #: ../src/guestfs-actions.pod:8208
35225 msgid "guestfs_zegrepi"
35226 msgstr "guestfs_zegrepi"
35227
35228 #. type: verbatim
35229 #: ../src/guestfs-actions.pod:8210
35230 #, no-wrap
35231 msgid ""
35232 " char **\n"
35233 " guestfs_zegrepi (guestfs_h *g,\n"
35234 "                  const char *regex,\n"
35235 "                  const char *path);\n"
35236 "\n"
35237 msgstr ""
35238 " char **\n"
35239 " guestfs_zegrepi (guestfs_h *g,\n"
35240 "                  const char *regex,\n"
35241 "                  const char *path);\n"
35242 "\n"
35243
35244 #. type: =head2
35245 #: ../src/guestfs-actions.pod:8227
35246 msgid "guestfs_zero"
35247 msgstr "guestfs_zero"
35248
35249 #. type: verbatim
35250 #: ../src/guestfs-actions.pod:8229
35251 #, no-wrap
35252 msgid ""
35253 " int\n"
35254 " guestfs_zero (guestfs_h *g,\n"
35255 "               const char *device);\n"
35256 "\n"
35257 msgstr ""
35258 " int\n"
35259 " guestfs_zero (guestfs_h *g,\n"
35260 "               const char *device);\n"
35261 "\n"
35262
35263 #. type: textblock
35264 #: ../src/guestfs-actions.pod:8243
35265 msgid ""
35266 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
35267 "C<guestfs_is_zero_device>"
35268 msgstr ""
35269
35270 #. type: =head2
35271 #: ../src/guestfs-actions.pod:8255
35272 msgid "guestfs_zero_device"
35273 msgstr "guestfs_zero_device"
35274
35275 #. type: verbatim
35276 #: ../src/guestfs-actions.pod:8257
35277 #, no-wrap
35278 msgid ""
35279 " int\n"
35280 " guestfs_zero_device (guestfs_h *g,\n"
35281 "                      const char *device);\n"
35282 "\n"
35283 msgstr ""
35284 " int\n"
35285 " guestfs_zero_device (guestfs_h *g,\n"
35286 "                      const char *device);\n"
35287 "\n"
35288
35289 #. type: textblock
35290 #: ../src/guestfs-actions.pod:8261
35291 msgid ""
35292 "This command writes zeroes over the entire C<device>.  Compare with "
35293 "C<guestfs_zero> which just zeroes the first few blocks of a device."
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs-actions.pod:8276
35298 msgid "(Added in 1.3.1)"
35299 msgstr "(Додано у 1.3.1)"
35300
35301 #. type: =head2
35302 #: ../src/guestfs-actions.pod:8278
35303 msgid "guestfs_zerofree"
35304 msgstr "guestfs_zerofree"
35305
35306 #. type: verbatim
35307 #: ../src/guestfs-actions.pod:8280
35308 #, no-wrap
35309 msgid ""
35310 " int\n"
35311 " guestfs_zerofree (guestfs_h *g,\n"
35312 "                   const char *device);\n"
35313 "\n"
35314 msgstr ""
35315 " int\n"
35316 " guestfs_zerofree (guestfs_h *g,\n"
35317 "                   const char *device);\n"
35318 "\n"
35319
35320 #. type: =head2
35321 #: ../src/guestfs-actions.pod:8299
35322 msgid "guestfs_zfgrep"
35323 msgstr "guestfs_zfgrep"
35324
35325 #. type: verbatim
35326 #: ../src/guestfs-actions.pod:8301
35327 #, no-wrap
35328 msgid ""
35329 " char **\n"
35330 " guestfs_zfgrep (guestfs_h *g,\n"
35331 "                 const char *pattern,\n"
35332 "                 const char *path);\n"
35333 "\n"
35334 msgstr ""
35335 " char **\n"
35336 " guestfs_zfgrep (guestfs_h *g,\n"
35337 "                 const char *pattern,\n"
35338 "                 const char *path);\n"
35339 "\n"
35340
35341 #. type: =head2
35342 #: ../src/guestfs-actions.pod:8318
35343 msgid "guestfs_zfgrepi"
35344 msgstr "guestfs_zfgrepi"
35345
35346 #. type: verbatim
35347 #: ../src/guestfs-actions.pod:8320
35348 #, no-wrap
35349 msgid ""
35350 " char **\n"
35351 " guestfs_zfgrepi (guestfs_h *g,\n"
35352 "                  const char *pattern,\n"
35353 "                  const char *path);\n"
35354 "\n"
35355 msgstr ""
35356 " char **\n"
35357 " guestfs_zfgrepi (guestfs_h *g,\n"
35358 "                  const char *pattern,\n"
35359 "                  const char *path);\n"
35360 "\n"
35361
35362 #. type: =head2
35363 #: ../src/guestfs-actions.pod:8337
35364 msgid "guestfs_zfile"
35365 msgstr "guestfs_zfile"
35366
35367 #. type: verbatim
35368 #: ../src/guestfs-actions.pod:8339
35369 #, no-wrap
35370 msgid ""
35371 " char *\n"
35372 " guestfs_zfile (guestfs_h *g,\n"
35373 "                const char *meth,\n"
35374 "                const char *path);\n"
35375 "\n"
35376 msgstr ""
35377 " char *\n"
35378 " guestfs_zfile (guestfs_h *g,\n"
35379 "                const char *meth,\n"
35380 "                const char *path);\n"
35381 "\n"
35382
35383 #. type: textblock
35384 #: ../src/guestfs-actions.pod:8344
35385 msgid ""
35386 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35387 "instead."
35388 msgstr ""
35389
35390 #. type: textblock
35391 #: ../src/guestfs-actions.pod:8356
35392 msgid ""
35393 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35394 "files."
35395 msgstr ""
35396
35397 #. type: =head2
35398 #: ../src/guestfs-actions.pod:8364
35399 msgid "guestfs_zgrep"
35400 msgstr "guestfs_zgrep"
35401
35402 #. type: verbatim
35403 #: ../src/guestfs-actions.pod:8366
35404 #, no-wrap
35405 msgid ""
35406 " char **\n"
35407 " guestfs_zgrep (guestfs_h *g,\n"
35408 "                const char *regex,\n"
35409 "                const char *path);\n"
35410 "\n"
35411 msgstr ""
35412 " char **\n"
35413 " guestfs_zgrep (guestfs_h *g,\n"
35414 "                const char *regex,\n"
35415 "                const char *path);\n"
35416 "\n"
35417
35418 #. type: =head2
35419 #: ../src/guestfs-actions.pod:8383
35420 msgid "guestfs_zgrepi"
35421 msgstr "guestfs_zgrepi"
35422
35423 #. type: verbatim
35424 #: ../src/guestfs-actions.pod:8385
35425 #, no-wrap
35426 msgid ""
35427 " char **\n"
35428 " guestfs_zgrepi (guestfs_h *g,\n"
35429 "                 const char *regex,\n"
35430 "                 const char *path);\n"
35431 "\n"
35432 msgstr ""
35433 " char **\n"
35434 " guestfs_zgrepi (guestfs_h *g,\n"
35435 "                 const char *regex,\n"
35436 "                 const char *path);\n"
35437 "\n"
35438
35439 #. type: =item
35440 #: ../src/guestfs-availability.pod:3
35441 msgid "B<augeas>"
35442 msgstr "B<augeas>"
35443
35444 #. type: textblock
35445 #: ../src/guestfs-availability.pod:5
35446 msgid ""
35447 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35448 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35449 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35450 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35451 "L</guestfs_aug_save> L</guestfs_aug_set>"
35452 msgstr ""
35453
35454 #. type: =item
35455 #: ../src/guestfs-availability.pod:21
35456 msgid "B<btrfs>"
35457 msgstr "B<btrfs>"
35458
35459 #. type: textblock
35460 #: ../src/guestfs-availability.pod:23
35461 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35462 msgstr ""
35463
35464 #. type: =item
35465 #: ../src/guestfs-availability.pod:26
35466 msgid "B<grub>"
35467 msgstr ""
35468
35469 #. type: textblock
35470 #: ../src/guestfs-availability.pod:28
35471 msgid "The following functions: L</guestfs_grub_install>"
35472 msgstr ""
35473
35474 #. type: =item
35475 #: ../src/guestfs-availability.pod:31
35476 msgid "B<inotify>"
35477 msgstr "B<inotify>"
35478
35479 #. type: textblock
35480 #: ../src/guestfs-availability.pod:33
35481 msgid ""
35482 "The following functions: L</guestfs_inotify_add_watch> L</"
35483 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35484 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35485 msgstr ""
35486
35487 #. type: =item
35488 #: ../src/guestfs-availability.pod:41
35489 msgid "B<linuxfsuuid>"
35490 msgstr "B<linuxfsuuid>"
35491
35492 #. type: textblock
35493 #: ../src/guestfs-availability.pod:43
35494 msgid ""
35495 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35496 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35497 msgstr ""
35498
35499 #. type: =item
35500 #: ../src/guestfs-availability.pod:50
35501 msgid "B<linuxmodules>"
35502 msgstr "B<linuxmodules>"
35503
35504 #. type: textblock
35505 #: ../src/guestfs-availability.pod:52
35506 msgid "The following functions: L</guestfs_modprobe>"
35507 msgstr ""
35508
35509 #. type: =item
35510 #: ../src/guestfs-availability.pod:55
35511 msgid "B<linuxxattrs>"
35512 msgstr "B<linuxxattrs>"
35513
35514 #. type: textblock
35515 #: ../src/guestfs-availability.pod:57
35516 msgid ""
35517 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35518 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35519 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35520 "guestfs_setxattr>"
35521 msgstr ""
35522
35523 #. type: =item
35524 #: ../src/guestfs-availability.pod:68
35525 msgid "B<luks>"
35526 msgstr "B<luks>"
35527
35528 #. type: textblock
35529 #: ../src/guestfs-availability.pod:70
35530 msgid ""
35531 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35532 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35533 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35534 msgstr ""
35535
35536 #. type: =item
35537 #: ../src/guestfs-availability.pod:79
35538 msgid "B<lvm2>"
35539 msgstr "B<lvm2>"
35540
35541 #. type: textblock
35542 #: ../src/guestfs-availability.pod:81
35543 msgid ""
35544 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35545 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35546 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35547 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35548 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35549 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35550 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35551 msgstr ""
35552
35553 #. type: =item
35554 #: ../src/guestfs-availability.pod:104
35555 msgid "B<mknod>"
35556 msgstr "B<mknod>"
35557
35558 #. type: textblock
35559 #: ../src/guestfs-availability.pod:106
35560 msgid ""
35561 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35562 "guestfs_mknod_b> L</guestfs_mknod_c>"
35563 msgstr ""
35564
35565 #. type: =item
35566 #: ../src/guestfs-availability.pod:112
35567 msgid "B<ntfs3g>"
35568 msgstr "B<ntfs3g>"
35569
35570 #. type: textblock
35571 #: ../src/guestfs-availability.pod:114
35572 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35573 msgstr ""
35574
35575 #. type: =item
35576 #: ../src/guestfs-availability.pod:117
35577 msgid "B<ntfsprogs>"
35578 msgstr "B<ntfsprogs>"
35579
35580 #. type: textblock
35581 #: ../src/guestfs-availability.pod:119
35582 msgid ""
35583 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35584 "L</guestfs_ntfsresize_size>"
35585 msgstr ""
35586
35587 #. type: =item
35588 #: ../src/guestfs-availability.pod:124
35589 msgid "B<realpath>"
35590 msgstr "B<realpath>"
35591
35592 #. type: textblock
35593 #: ../src/guestfs-availability.pod:126
35594 msgid "The following functions: L</guestfs_realpath>"
35595 msgstr ""
35596
35597 #. type: =item
35598 #: ../src/guestfs-availability.pod:129
35599 msgid "B<scrub>"
35600 msgstr "B<scrub>"
35601
35602 #. type: textblock
35603 #: ../src/guestfs-availability.pod:131
35604 msgid ""
35605 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35606 "guestfs_scrub_freespace>"
35607 msgstr ""
35608
35609 #. type: =item
35610 #: ../src/guestfs-availability.pod:136
35611 msgid "B<selinux>"
35612 msgstr "B<selinux>"
35613
35614 #. type: textblock
35615 #: ../src/guestfs-availability.pod:138
35616 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35617 msgstr ""
35618
35619 #. type: =item
35620 #: ../src/guestfs-availability.pod:142
35621 msgid "B<xz>"
35622 msgstr "B<xz>"
35623
35624 #. type: textblock
35625 #: ../src/guestfs-availability.pod:144
35626 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35627 msgstr ""
35628
35629 #. type: =item
35630 #: ../src/guestfs-availability.pod:148
35631 msgid "B<zerofree>"
35632 msgstr "B<zerofree>"
35633
35634 #. type: textblock
35635 #: ../src/guestfs-availability.pod:150
35636 msgid "The following functions: L</guestfs_zerofree>"
35637 msgstr ""
35638
35639 #. type: =head2
35640 #: ../src/guestfs-structs.pod:1
35641 msgid "guestfs_int_bool"
35642 msgstr ""
35643
35644 #. type: verbatim
35645 #: ../src/guestfs-structs.pod:3
35646 #, no-wrap
35647 msgid ""
35648 " struct guestfs_int_bool {\n"
35649 "   int32_t i;\n"
35650 "   int32_t b;\n"
35651 " };\n"
35652 " \n"
35653 msgstr ""
35654
35655 #. type: verbatim
35656 #: ../src/guestfs-structs.pod:8
35657 #, no-wrap
35658 msgid ""
35659 " struct guestfs_int_bool_list {\n"
35660 "   uint32_t len; /* Number of elements in list. */\n"
35661 "   struct guestfs_int_bool *val; /* Elements. */\n"
35662 " };\n"
35663 " \n"
35664 msgstr ""
35665
35666 #. type: verbatim
35667 #: ../src/guestfs-structs.pod:13
35668 #, no-wrap
35669 msgid ""
35670 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35671 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35672 "\n"
35673 msgstr ""
35674
35675 #. type: =head2
35676 #: ../src/guestfs-structs.pod:16
35677 msgid "guestfs_lvm_pv"
35678 msgstr ""
35679
35680 #. type: verbatim
35681 #: ../src/guestfs-structs.pod:18
35682 #, no-wrap
35683 msgid ""
35684 " struct guestfs_lvm_pv {\n"
35685 "   char *pv_name;\n"
35686 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35687 "   char pv_uuid[32];\n"
35688 "   char *pv_fmt;\n"
35689 "   uint64_t pv_size;\n"
35690 "   uint64_t dev_size;\n"
35691 "   uint64_t pv_free;\n"
35692 "   uint64_t pv_used;\n"
35693 "   char *pv_attr;\n"
35694 "   int64_t pv_pe_count;\n"
35695 "   int64_t pv_pe_alloc_count;\n"
35696 "   char *pv_tags;\n"
35697 "   uint64_t pe_start;\n"
35698 "   int64_t pv_mda_count;\n"
35699 "   uint64_t pv_mda_free;\n"
35700 " };\n"
35701 " \n"
35702 msgstr ""
35703
35704 #. type: verbatim
35705 #: ../src/guestfs-structs.pod:36
35706 #, no-wrap
35707 msgid ""
35708 " struct guestfs_lvm_pv_list {\n"
35709 "   uint32_t len; /* Number of elements in list. */\n"
35710 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35711 " };\n"
35712 " \n"
35713 msgstr ""
35714
35715 #. type: verbatim
35716 #: ../src/guestfs-structs.pod:41
35717 #, no-wrap
35718 msgid ""
35719 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35720 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35721 "\n"
35722 msgstr ""
35723
35724 #. type: =head2
35725 #: ../src/guestfs-structs.pod:44
35726 msgid "guestfs_lvm_vg"
35727 msgstr ""
35728
35729 #. type: verbatim
35730 #: ../src/guestfs-structs.pod:46
35731 #, no-wrap
35732 msgid ""
35733 " struct guestfs_lvm_vg {\n"
35734 "   char *vg_name;\n"
35735 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35736 "   char vg_uuid[32];\n"
35737 "   char *vg_fmt;\n"
35738 "   char *vg_attr;\n"
35739 "   uint64_t vg_size;\n"
35740 "   uint64_t vg_free;\n"
35741 "   char *vg_sysid;\n"
35742 "   uint64_t vg_extent_size;\n"
35743 "   int64_t vg_extent_count;\n"
35744 "   int64_t vg_free_count;\n"
35745 "   int64_t max_lv;\n"
35746 "   int64_t max_pv;\n"
35747 "   int64_t pv_count;\n"
35748 "   int64_t lv_count;\n"
35749 "   int64_t snap_count;\n"
35750 "   int64_t vg_seqno;\n"
35751 "   char *vg_tags;\n"
35752 "   int64_t vg_mda_count;\n"
35753 "   uint64_t vg_mda_free;\n"
35754 " };\n"
35755 " \n"
35756 msgstr ""
35757
35758 #. type: verbatim
35759 #: ../src/guestfs-structs.pod:69
35760 #, no-wrap
35761 msgid ""
35762 " struct guestfs_lvm_vg_list {\n"
35763 "   uint32_t len; /* Number of elements in list. */\n"
35764 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35765 " };\n"
35766 " \n"
35767 msgstr ""
35768
35769 #. type: verbatim
35770 #: ../src/guestfs-structs.pod:74
35771 #, no-wrap
35772 msgid ""
35773 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35774 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35775 "\n"
35776 msgstr ""
35777
35778 #. type: =head2
35779 #: ../src/guestfs-structs.pod:77
35780 msgid "guestfs_lvm_lv"
35781 msgstr ""
35782
35783 #. type: verbatim
35784 #: ../src/guestfs-structs.pod:79
35785 #, no-wrap
35786 msgid ""
35787 " struct guestfs_lvm_lv {\n"
35788 "   char *lv_name;\n"
35789 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35790 "   char lv_uuid[32];\n"
35791 "   char *lv_attr;\n"
35792 "   int64_t lv_major;\n"
35793 "   int64_t lv_minor;\n"
35794 "   int64_t lv_kernel_major;\n"
35795 "   int64_t lv_kernel_minor;\n"
35796 "   uint64_t lv_size;\n"
35797 "   int64_t seg_count;\n"
35798 "   char *origin;\n"
35799 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35800 "   float snap_percent;\n"
35801 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35802 "   float copy_percent;\n"
35803 "   char *move_pv;\n"
35804 "   char *lv_tags;\n"
35805 "   char *mirror_log;\n"
35806 "   char *modules;\n"
35807 " };\n"
35808 " \n"
35809 msgstr ""
35810
35811 #. type: verbatim
35812 #: ../src/guestfs-structs.pod:101
35813 #, no-wrap
35814 msgid ""
35815 " struct guestfs_lvm_lv_list {\n"
35816 "   uint32_t len; /* Number of elements in list. */\n"
35817 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35818 " };\n"
35819 " \n"
35820 msgstr ""
35821
35822 #. type: verbatim
35823 #: ../src/guestfs-structs.pod:106
35824 #, no-wrap
35825 msgid ""
35826 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35827 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35828 "\n"
35829 msgstr ""
35830
35831 #. type: verbatim
35832 #: ../src/guestfs-structs.pod:111
35833 #, no-wrap
35834 msgid ""
35835 " struct guestfs_stat {\n"
35836 "   int64_t dev;\n"
35837 "   int64_t ino;\n"
35838 "   int64_t mode;\n"
35839 "   int64_t nlink;\n"
35840 "   int64_t uid;\n"
35841 "   int64_t gid;\n"
35842 "   int64_t rdev;\n"
35843 "   int64_t size;\n"
35844 "   int64_t blksize;\n"
35845 "   int64_t blocks;\n"
35846 "   int64_t atime;\n"
35847 "   int64_t mtime;\n"
35848 "   int64_t ctime;\n"
35849 " };\n"
35850 " \n"
35851 msgstr ""
35852
35853 #. type: verbatim
35854 #: ../src/guestfs-structs.pod:127
35855 #, no-wrap
35856 msgid ""
35857 " struct guestfs_stat_list {\n"
35858 "   uint32_t len; /* Number of elements in list. */\n"
35859 "   struct guestfs_stat *val; /* Elements. */\n"
35860 " };\n"
35861 " \n"
35862 msgstr ""
35863
35864 #. type: verbatim
35865 #: ../src/guestfs-structs.pod:132
35866 #, no-wrap
35867 msgid ""
35868 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35869 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35870 "\n"
35871 msgstr ""
35872
35873 #. type: verbatim
35874 #: ../src/guestfs-structs.pod:137
35875 #, no-wrap
35876 msgid ""
35877 " struct guestfs_statvfs {\n"
35878 "   int64_t bsize;\n"
35879 "   int64_t frsize;\n"
35880 "   int64_t blocks;\n"
35881 "   int64_t bfree;\n"
35882 "   int64_t bavail;\n"
35883 "   int64_t files;\n"
35884 "   int64_t ffree;\n"
35885 "   int64_t favail;\n"
35886 "   int64_t fsid;\n"
35887 "   int64_t flag;\n"
35888 "   int64_t namemax;\n"
35889 " };\n"
35890 " \n"
35891 msgstr ""
35892
35893 #. type: verbatim
35894 #: ../src/guestfs-structs.pod:151
35895 #, no-wrap
35896 msgid ""
35897 " struct guestfs_statvfs_list {\n"
35898 "   uint32_t len; /* Number of elements in list. */\n"
35899 "   struct guestfs_statvfs *val; /* Elements. */\n"
35900 " };\n"
35901 " \n"
35902 msgstr ""
35903
35904 #. type: verbatim
35905 #: ../src/guestfs-structs.pod:156
35906 #, no-wrap
35907 msgid ""
35908 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35909 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35910 "\n"
35911 msgstr ""
35912
35913 #. type: =head2
35914 #: ../src/guestfs-structs.pod:159
35915 msgid "guestfs_dirent"
35916 msgstr ""
35917
35918 #. type: verbatim
35919 #: ../src/guestfs-structs.pod:161
35920 #, no-wrap
35921 msgid ""
35922 " struct guestfs_dirent {\n"
35923 "   int64_t ino;\n"
35924 "   char ftyp;\n"
35925 "   char *name;\n"
35926 " };\n"
35927 " \n"
35928 msgstr ""
35929
35930 #. type: verbatim
35931 #: ../src/guestfs-structs.pod:167
35932 #, no-wrap
35933 msgid ""
35934 " struct guestfs_dirent_list {\n"
35935 "   uint32_t len; /* Number of elements in list. */\n"
35936 "   struct guestfs_dirent *val; /* Elements. */\n"
35937 " };\n"
35938 " \n"
35939 msgstr ""
35940
35941 #. type: verbatim
35942 #: ../src/guestfs-structs.pod:172
35943 #, no-wrap
35944 msgid ""
35945 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35946 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35947 "\n"
35948 msgstr ""
35949
35950 #. type: verbatim
35951 #: ../src/guestfs-structs.pod:177
35952 #, no-wrap
35953 msgid ""
35954 " struct guestfs_version {\n"
35955 "   int64_t major;\n"
35956 "   int64_t minor;\n"
35957 "   int64_t release;\n"
35958 "   char *extra;\n"
35959 " };\n"
35960 " \n"
35961 msgstr ""
35962
35963 #. type: verbatim
35964 #: ../src/guestfs-structs.pod:184
35965 #, no-wrap
35966 msgid ""
35967 " struct guestfs_version_list {\n"
35968 "   uint32_t len; /* Number of elements in list. */\n"
35969 "   struct guestfs_version *val; /* Elements. */\n"
35970 " };\n"
35971 " \n"
35972 msgstr ""
35973
35974 #. type: verbatim
35975 #: ../src/guestfs-structs.pod:189
35976 #, no-wrap
35977 msgid ""
35978 " void guestfs_free_version (struct guestfs_free_version *);\n"
35979 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35980 "\n"
35981 msgstr ""
35982
35983 #. type: =head2
35984 #: ../src/guestfs-structs.pod:192
35985 msgid "guestfs_xattr"
35986 msgstr ""
35987
35988 #. type: verbatim
35989 #: ../src/guestfs-structs.pod:194
35990 #, no-wrap
35991 msgid ""
35992 " struct guestfs_xattr {\n"
35993 "   char *attrname;\n"
35994 "   /* The next two fields describe a byte array. */\n"
35995 "   uint32_t attrval_len;\n"
35996 "   char *attrval;\n"
35997 " };\n"
35998 " \n"
35999 msgstr ""
36000
36001 #. type: verbatim
36002 #: ../src/guestfs-structs.pod:201
36003 #, no-wrap
36004 msgid ""
36005 " struct guestfs_xattr_list {\n"
36006 "   uint32_t len; /* Number of elements in list. */\n"
36007 "   struct guestfs_xattr *val; /* Elements. */\n"
36008 " };\n"
36009 " \n"
36010 msgstr ""
36011
36012 #. type: verbatim
36013 #: ../src/guestfs-structs.pod:206
36014 #, no-wrap
36015 msgid ""
36016 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
36017 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
36018 "\n"
36019 msgstr ""
36020
36021 #. type: =head2
36022 #: ../src/guestfs-structs.pod:209
36023 msgid "guestfs_inotify_event"
36024 msgstr ""
36025
36026 #. type: verbatim
36027 #: ../src/guestfs-structs.pod:211
36028 #, no-wrap
36029 msgid ""
36030 " struct guestfs_inotify_event {\n"
36031 "   int64_t in_wd;\n"
36032 "   uint32_t in_mask;\n"
36033 "   uint32_t in_cookie;\n"
36034 "   char *in_name;\n"
36035 " };\n"
36036 " \n"
36037 msgstr ""
36038
36039 #. type: verbatim
36040 #: ../src/guestfs-structs.pod:218
36041 #, no-wrap
36042 msgid ""
36043 " struct guestfs_inotify_event_list {\n"
36044 "   uint32_t len; /* Number of elements in list. */\n"
36045 "   struct guestfs_inotify_event *val; /* Elements. */\n"
36046 " };\n"
36047 " \n"
36048 msgstr ""
36049
36050 #. type: verbatim
36051 #: ../src/guestfs-structs.pod:223
36052 #, no-wrap
36053 msgid ""
36054 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36055 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
36056 "\n"
36057 msgstr ""
36058
36059 #. type: =head2
36060 #: ../src/guestfs-structs.pod:226
36061 msgid "guestfs_partition"
36062 msgstr ""
36063
36064 #. type: verbatim
36065 #: ../src/guestfs-structs.pod:228
36066 #, no-wrap
36067 msgid ""
36068 " struct guestfs_partition {\n"
36069 "   int32_t part_num;\n"
36070 "   uint64_t part_start;\n"
36071 "   uint64_t part_end;\n"
36072 "   uint64_t part_size;\n"
36073 " };\n"
36074 " \n"
36075 msgstr ""
36076
36077 #. type: verbatim
36078 #: ../src/guestfs-structs.pod:235
36079 #, no-wrap
36080 msgid ""
36081 " struct guestfs_partition_list {\n"
36082 "   uint32_t len; /* Number of elements in list. */\n"
36083 "   struct guestfs_partition *val; /* Elements. */\n"
36084 " };\n"
36085 " \n"
36086 msgstr ""
36087
36088 #. type: verbatim
36089 #: ../src/guestfs-structs.pod:240
36090 #, no-wrap
36091 msgid ""
36092 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
36093 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
36094 "\n"
36095 msgstr ""
36096
36097 #. type: =head2
36098 #: ../src/guestfs-structs.pod:243
36099 msgid "guestfs_application"
36100 msgstr ""
36101
36102 #. type: verbatim
36103 #: ../src/guestfs-structs.pod:245
36104 #, no-wrap
36105 msgid ""
36106 " struct guestfs_application {\n"
36107 "   char *app_name;\n"
36108 "   char *app_display_name;\n"
36109 "   int32_t app_epoch;\n"
36110 "   char *app_version;\n"
36111 "   char *app_release;\n"
36112 "   char *app_install_path;\n"
36113 "   char *app_trans_path;\n"
36114 "   char *app_publisher;\n"
36115 "   char *app_url;\n"
36116 "   char *app_source_package;\n"
36117 "   char *app_summary;\n"
36118 "   char *app_description;\n"
36119 " };\n"
36120 " \n"
36121 msgstr ""
36122
36123 #. type: verbatim
36124 #: ../src/guestfs-structs.pod:260
36125 #, no-wrap
36126 msgid ""
36127 " struct guestfs_application_list {\n"
36128 "   uint32_t len; /* Number of elements in list. */\n"
36129 "   struct guestfs_application *val; /* Elements. */\n"
36130 " };\n"
36131 " \n"
36132 msgstr ""
36133
36134 #. type: verbatim
36135 #: ../src/guestfs-structs.pod:265
36136 #, no-wrap
36137 msgid ""
36138 " void guestfs_free_application (struct guestfs_free_application *);\n"
36139 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
36140 "\n"
36141 msgstr ""
36142
36143 #. type: textblock
36144 #: ../src/guestfs.pod:5
36145 msgid "guestfs - Library for accessing and modifying virtual machine images"
36146 msgstr ""
36147 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
36148 "машин"
36149
36150 #. type: verbatim
36151 #: ../src/guestfs.pod:11
36152 #, no-wrap
36153 msgid ""
36154 " guestfs_h *g = guestfs_create ();\n"
36155 " guestfs_add_drive (g, \"guest.img\");\n"
36156 " guestfs_launch (g);\n"
36157 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36158 " guestfs_touch (g, \"/hello\");\n"
36159 " guestfs_umount (g, \"/\");\n"
36160 " guestfs_close (g);\n"
36161 "\n"
36162 msgstr ""
36163 " guestfs_h *g = guestfs_create ();\n"
36164 " guestfs_add_drive (g, \"guest.img\");\n"
36165 " guestfs_launch (g);\n"
36166 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36167 " guestfs_touch (g, \"/hello\");\n"
36168 " guestfs_umount (g, \"/\");\n"
36169 " guestfs_close (g);\n"
36170 "\n"
36171
36172 #. type: textblock
36173 #: ../src/guestfs.pod:25
36174 msgid ""
36175 "Libguestfs is a library for accessing and modifying guest disk images.  "
36176 "Amongst the things this is good for: making batch configuration changes to "
36177 "guests, getting disk used/free statistics (see also: virt-df), migrating "
36178 "between virtualization systems (see also: virt-p2v), performing partial "
36179 "backups, performing partial guest clones, cloning guests and changing "
36180 "registry/UUID/hostname info, and much else besides."
36181 msgstr ""
36182
36183 #. type: textblock
36184 #: ../src/guestfs.pod:33
36185 msgid ""
36186 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
36187 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
36188 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
36189 "qcow2, vmdk."
36190 msgstr ""
36191
36192 #. type: textblock
36193 #: ../src/guestfs.pod:38
36194 msgid ""
36195 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
36196 "what filesystem is in each LV, etc.).  It can also run commands in the "
36197 "context of the guest.  Also you can access filesystems over FUSE."
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:43
36202 msgid ""
36203 "Libguestfs is a library that can be linked with C and C++ management "
36204 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
36205 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
36206 "command line."
36207 msgstr ""
36208
36209 #. type: textblock
36210 #: ../src/guestfs.pod:48
36211 msgid ""
36212 "You don't need to be root to use libguestfs, although obviously you do need "
36213 "enough permissions to access the disk images."
36214 msgstr ""
36215
36216 #. type: textblock
36217 #: ../src/guestfs.pod:51
36218 msgid ""
36219 "Libguestfs is a large API because it can do many things.  For a gentle "
36220 "introduction, please read the L</API OVERVIEW> section next."
36221 msgstr ""
36222
36223 #. type: textblock
36224 #: ../src/guestfs.pod:54
36225 msgid ""
36226 "There are also some example programs in the L<guestfs-examples(3)> manual "
36227 "page."
36228 msgstr ""
36229
36230 #. type: =head1
36231 #: ../src/guestfs.pod:57
36232 msgid "API OVERVIEW"
36233 msgstr "ОГЛЯД API"
36234
36235 #. type: textblock
36236 #: ../src/guestfs.pod:59
36237 msgid ""
36238 "This section provides a gentler overview of the libguestfs API.  We also try "
36239 "to group API calls together, where that may not be obvious from reading "
36240 "about the individual calls in the main section of this manual."
36241 msgstr ""
36242
36243 #. type: =head2
36244 #: ../src/guestfs.pod:64
36245 msgid "HANDLES"
36246 msgstr "ОБРОБНИКИ"
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:66
36250 msgid ""
36251 "Before you can use libguestfs calls, you have to create a handle.  Then you "
36252 "must add at least one disk image to the handle, followed by launching the "
36253 "handle, then performing whatever operations you want, and finally closing "
36254 "the handle.  By convention we use the single letter C<g> for the name of the "
36255 "handle variable, although of course you can use any name you want."
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:73
36260 msgid "The general structure of all libguestfs-using programs looks like this:"
36261 msgstr ""
36262
36263 #. type: verbatim
36264 #: ../src/guestfs.pod:76
36265 #, no-wrap
36266 msgid ""
36267 " guestfs_h *g = guestfs_create ();\n"
36268 " \n"
36269 msgstr ""
36270 " guestfs_h *g = guestfs_create ();\n"
36271 " \n"
36272
36273 #. type: verbatim
36274 #: ../src/guestfs.pod:78
36275 #, no-wrap
36276 msgid ""
36277 " /* Call guestfs_add_drive additional times if there are\n"
36278 "  * multiple disk images.\n"
36279 "  */\n"
36280 " guestfs_add_drive (g, \"guest.img\");\n"
36281 " \n"
36282 msgstr ""
36283
36284 #. type: verbatim
36285 #: ../src/guestfs.pod:83
36286 #, no-wrap
36287 msgid ""
36288 " /* Most manipulation calls won't work until you've launched\n"
36289 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
36290 "  * and _before_ other commands.\n"
36291 "  */\n"
36292 " guestfs_launch (g);\n"
36293 " \n"
36294 msgstr ""
36295
36296 #. type: verbatim
36297 #: ../src/guestfs.pod:89
36298 #, no-wrap
36299 msgid ""
36300 " /* Now you can examine what partitions, LVs etc are available.\n"
36301 "  */\n"
36302 " char **partitions = guestfs_list_partitions (g);\n"
36303 " char **logvols = guestfs_lvs (g);\n"
36304 " \n"
36305 msgstr ""
36306 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
36307 "  */\n"
36308 " char **partitions = guestfs_list_partitions (g);\n"
36309 " char **logvols = guestfs_lvs (g);\n"
36310 " \n"
36311
36312 #. type: verbatim
36313 #: ../src/guestfs.pod:94
36314 #, no-wrap
36315 msgid ""
36316 " /* To access a filesystem in the image, you must mount it.\n"
36317 "  */\n"
36318 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36319 " \n"
36320 msgstr ""
36321 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
36322 "  */\n"
36323 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36324 " \n"
36325
36326 #. type: verbatim
36327 #: ../src/guestfs.pod:98
36328 #, no-wrap
36329 msgid ""
36330 " /* Now you can perform filesystem actions on the guest\n"
36331 "  * disk image.\n"
36332 "  */\n"
36333 " guestfs_touch (g, \"/hello\");\n"
36334 " \n"
36335 msgstr ""
36336 " /* Тепер ви можете виконувати дії з файловою системою на\n"
36337 "  * образі диска операційної системи.\n"
36338 "  */\n"
36339 " guestfs_touch (g, \"/hello\");\n"
36340 " \n"
36341
36342 #. type: verbatim
36343 #: ../src/guestfs.pod:103
36344 #, no-wrap
36345 msgid ""
36346 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
36347 "  * it is done automatically when you close the handle.  See\n"
36348 "  * discussion of autosync in this page.\n"
36349 "  */\n"
36350 " guestfs_sync (g);\n"
36351 " \n"
36352 msgstr ""
36353
36354 #. type: verbatim
36355 #: ../src/guestfs.pod:109
36356 #, no-wrap
36357 msgid ""
36358 " /* Close the handle 'g'. */\n"
36359 " guestfs_close (g);\n"
36360 "\n"
36361 msgstr ""
36362 " /* Закрити дескриптор 'g'. */\n"
36363 " guestfs_close (g);\n"
36364 "\n"
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:112
36368 msgid ""
36369 "The code above doesn't include any error checking.  In real code you should "
36370 "check return values carefully for errors.  In general all functions that "
36371 "return integers return C<-1> on error, and all functions that return "
36372 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
36373 "how to handle errors, and consult the documentation for each function call "
36374 "below to see precisely how they return error indications.  See L<guestfs-"
36375 "examples(3)> for fully worked examples."
36376 msgstr ""
36377
36378 #. type: =head2
36379 #: ../src/guestfs.pod:121
36380 msgid "DISK IMAGES"
36381 msgstr "ОБРАЗИ ДИСКІВ"
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:123
36385 msgid ""
36386 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
36387 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
36388 "actual block device, or simply an empty file of zeroes that you have created "
36389 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
36390 "of these."
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:129
36395 msgid ""
36396 "The call you should use in modern code for adding drives is L</"
36397 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
36398 "specifying that the format is raw, do:"
36399 msgstr ""
36400
36401 #. type: verbatim
36402 #: ../src/guestfs.pod:133
36403 #, no-wrap
36404 msgid ""
36405 " guestfs_add_drive_opts (g, filename,\n"
36406 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36407 "                         -1);\n"
36408 "\n"
36409 msgstr ""
36410 " guestfs_add_drive_opts (g, filename,\n"
36411 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36412 "                         -1);\n"
36413 "\n"
36414
36415 #. type: textblock
36416 #: ../src/guestfs.pod:137
36417 msgid "You can add a disk read-only using:"
36418 msgstr "Ви можете додати диск у режимі лише читання:"
36419
36420 #. type: verbatim
36421 #: ../src/guestfs.pod:139
36422 #, no-wrap
36423 msgid ""
36424 " guestfs_add_drive_opts (g, filename,\n"
36425 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36426 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36427 "                         -1);\n"
36428 "\n"
36429 msgstr ""
36430 " guestfs_add_drive_opts (g, filename,\n"
36431 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36432 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36433 "                         -1);\n"
36434 "\n"
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:144
36438 msgid ""
36439 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
36440 "libguestfs won't modify the file."
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:147
36445 msgid ""
36446 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36447 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
36448 "corruption, but adding it read-only is safe."
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:151
36453 msgid ""
36454 "You must add at least one disk image, and you may add multiple disk images.  "
36455 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36456 "first one you added), C</dev/sdb> (for the second one you added), etc."
36457 msgstr ""
36458
36459 #. type: textblock
36460 #: ../src/guestfs.pod:156
36461 msgid ""
36462 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
36463 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36464 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
36465 msgstr ""
36466
36467 #. type: =head2
36468 #: ../src/guestfs.pod:161
36469 msgid "MOUNTING"
36470 msgstr "МОНТУВАННЯ"
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:163
36474 msgid ""
36475 "Before you can read or write files, create directories and so on in a disk "
36476 "image that contains filesystems, you have to mount those filesystems using "
36477 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
36478 "a disk image contains (for example) one partition with a filesystem on that "
36479 "partition, then you can mount it directly:"
36480 msgstr ""
36481
36482 #. type: verbatim
36483 #: ../src/guestfs.pod:170
36484 #, no-wrap
36485 msgid ""
36486 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36487 "\n"
36488 msgstr ""
36489 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36490 "\n"
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:172
36494 msgid ""
36495 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36496 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
36497 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
36498 "that these are libguestfs virtual devices, and are nothing to do with host "
36499 "devices."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:178
36504 msgid ""
36505 "If you are given a disk image and you don't know what it contains then you "
36506 "have to find out.  Libguestfs can do that too: use L</"
36507 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36508 "LVs, and either try mounting each to see what is mountable, or else examine "
36509 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
36510 "filesystems, use L</guestfs_list_filesystems>."
36511 msgstr ""
36512
36513 #. type: textblock
36514 #: ../src/guestfs.pod:186
36515 msgid ""
36516 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36517 "L</INSPECTION> below).  But you might find it easier to look at higher level "
36518 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36519 msgstr ""
36520
36521 #. type: textblock
36522 #: ../src/guestfs.pod:191
36523 msgid ""
36524 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
36525 "several other variations of the C<guestfs_mount_*> call."
36526 msgstr ""
36527
36528 #. type: =head2
36529 #: ../src/guestfs.pod:194
36530 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36531 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
36532
36533 #. type: textblock
36534 #: ../src/guestfs.pod:196
36535 msgid ""
36536 "The majority of the libguestfs API consists of fairly low-level calls for "
36537 "accessing and modifying the files, directories, symlinks etc on mounted "
36538 "filesystems.  There are over a hundred such calls which you can find listed "
36539 "in detail below in this man page, and we don't even pretend to cover them "
36540 "all in this overview."
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../src/guestfs.pod:202
36545 msgid ""
36546 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36547 "mount point."
36548 msgstr ""
36549 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
36550 "точкою монтування."
36551
36552 #. type: textblock
36553 #: ../src/guestfs.pod:205
36554 msgid ""
36555 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36556 "the file called C<\"etc/passwd\"> then you could do:"
36557 msgstr ""
36558 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
36559 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
36560 "таким кодом:"
36561
36562 #. type: verbatim
36563 #: ../src/guestfs.pod:208
36564 #, no-wrap
36565 msgid ""
36566 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36567 "\n"
36568 msgstr ""
36569 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36570 "\n"
36571
36572 #. type: textblock
36573 #: ../src/guestfs.pod:210
36574 msgid ""
36575 "This would return C<data> as a newly allocated buffer containing the full "
36576 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36577 "or C<NULL> if there was an error."
36578 msgstr ""
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:214
36582 msgid ""
36583 "As another example, to create a top-level directory on that filesystem "
36584 "called C<\"var\"> you would do:"
36585 msgstr ""
36586
36587 #. type: verbatim
36588 #: ../src/guestfs.pod:217
36589 #, no-wrap
36590 msgid ""
36591 " guestfs_mkdir (g, \"/var\");\n"
36592 "\n"
36593 msgstr ""
36594 " guestfs_mkdir (g, \"/var\");\n"
36595 "\n"
36596
36597 #. type: textblock
36598 #: ../src/guestfs.pod:219
36599 msgid "To create a symlink you could do:"
36600 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
36601
36602 #. type: verbatim
36603 #: ../src/guestfs.pod:221
36604 #, no-wrap
36605 msgid ""
36606 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36607 "               \"/etc/rc3.d/S30portmap\");\n"
36608 "\n"
36609 msgstr ""
36610 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36611 "               \"/etc/rc3.d/S30portmap\");\n"
36612 "\n"
36613
36614 #. type: textblock
36615 #: ../src/guestfs.pod:224
36616 msgid ""
36617 "Libguestfs will reject attempts to use relative paths and there is no "
36618 "concept of a current working directory."
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../src/guestfs.pod:227
36623 msgid ""
36624 "Libguestfs can return errors in many situations: for example if the "
36625 "filesystem isn't writable, or if a file or directory that you requested "
36626 "doesn't exist.  If you are using the C API (documented here)  you have to "
36627 "check for those error conditions after each call.  (Other language bindings "
36628 "turn these errors into exceptions)."
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:233
36633 msgid ""
36634 "File writes are affected by the per-handle umask, set by calling L</"
36635 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
36636 msgstr ""
36637
36638 #. type: =head2
36639 #: ../src/guestfs.pod:236
36640 msgid "PARTITIONING"
36641 msgstr "ПОДІЛ НА РОЗДІЛИ"
36642
36643 #. type: textblock
36644 #: ../src/guestfs.pod:238
36645 msgid ""
36646 "Libguestfs contains API calls to read, create and modify partition tables on "
36647 "disk images."
36648 msgstr ""
36649
36650 #. type: textblock
36651 #: ../src/guestfs.pod:241
36652 msgid ""
36653 "In the common case where you want to create a single partition covering the "
36654 "whole disk, you should use the L</guestfs_part_disk> call:"
36655 msgstr ""
36656
36657 #. type: verbatim
36658 #: ../src/guestfs.pod:245
36659 #, no-wrap
36660 msgid ""
36661 " const char *parttype = \"mbr\";\n"
36662 " if (disk_is_larger_than_2TB)\n"
36663 "   parttype = \"gpt\";\n"
36664 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36665 "\n"
36666 msgstr ""
36667 " const char *parttype = \"mbr\";\n"
36668 " if (disk_is_larger_than_2TB)\n"
36669 "   parttype = \"gpt\";\n"
36670 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36671 "\n"
36672
36673 #. type: textblock
36674 #: ../src/guestfs.pod:250
36675 msgid ""
36676 "Obviously this effectively wipes anything that was on that disk image before."
36677 msgstr ""
36678
36679 #. type: =head2
36680 #: ../src/guestfs.pod:253
36681 msgid "LVM2"
36682 msgstr "LVM2"
36683
36684 #. type: textblock
36685 #: ../src/guestfs.pod:255
36686 msgid ""
36687 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36688 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36689 "you familiarize yourself with the concepts of physical volumes, volume "
36690 "groups and logical volumes."
36691 msgstr ""
36692
36693 #. type: textblock
36694 #: ../src/guestfs.pod:260
36695 msgid ""
36696 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36697 "tldp.org/HOWTO/LVM-HOWTO/>."
36698 msgstr ""
36699
36700 #. type: =head2
36701 #: ../src/guestfs.pod:263
36702 msgid "DOWNLOADING"
36703 msgstr "ОТРИМАННЯ ДАНИХ"
36704
36705 #. type: textblock
36706 #: ../src/guestfs.pod:265
36707 msgid ""
36708 "Use L</guestfs_cat> to download small, text only files.  This call is "
36709 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36710 "NUL (C<\\0>) characters.  However the API is very simple to use."
36711 msgstr ""
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:269
36715 msgid ""
36716 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36717 "bit data, since it returns a (pointer, size) pair.  However it is still "
36718 "limited to \"small\" files, less than 2 MB."
36719 msgstr ""
36720
36721 #. type: textblock
36722 #: ../src/guestfs.pod:273
36723 msgid ""
36724 "L</guestfs_download> can be used to download any file, with no limits on "
36725 "content or size (even files larger than 4 GB)."
36726 msgstr ""
36727
36728 #. type: textblock
36729 #: ../src/guestfs.pod:276
36730 msgid ""
36731 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36732 msgstr ""
36733
36734 #. type: =head2
36735 #: ../src/guestfs.pod:279
36736 msgid "UPLOADING"
36737 msgstr "ВИВАНТАЖЕННЯ"
36738
36739 #. type: textblock
36740 #: ../src/guestfs.pod:281
36741 msgid ""
36742 "It's often the case that you want to write a file or files to the disk image."
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:284
36747 msgid ""
36748 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36749 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36750 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36751 "of other functions for creating test files, for example L</guestfs_fill> and "
36752 "L</guestfs_fill_pattern>."
36753 msgstr ""
36754
36755 #. type: textblock
36756 #: ../src/guestfs.pod:290
36757 msgid ""
36758 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36759 "file content or size (even files larger than 4 GB)."
36760 msgstr ""
36761
36762 #. type: textblock
36763 #: ../src/guestfs.pod:293
36764 msgid ""
36765 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36766 msgstr ""
36767
36768 #. type: textblock
36769 #: ../src/guestfs.pod:295
36770 msgid ""
36771 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36772 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36773 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36774 "in a predictable way (eg. adding it last after all other drives) then you "
36775 "can get the device name from L</guestfs_list_devices> and mount it directly "
36776 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36777 "portable between kernel versions, and they don't support labels or UUIDs.  "
36778 "If you want to pre-build an image or you need to mount it using a label or "
36779 "UUID, use an ISO image instead."
36780 msgstr ""
36781
36782 #. type: =head2
36783 #: ../src/guestfs.pod:306
36784 msgid "COPYING"
36785 msgstr "КОПІЮВАННЯ"
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:308
36789 msgid ""
36790 "There are various different commands for copying between files and devices "
36791 "and in and out of the guest filesystem.  These are summarised in the table "
36792 "below."
36793 msgstr ""
36794
36795 #. type: =item
36796 #: ../src/guestfs.pod:314
36797 msgid "B<file> to B<file>"
36798 msgstr "B<файл> у B<файл>"
36799
36800 #. type: textblock
36801 #: ../src/guestfs.pod:316
36802 msgid ""
36803 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36804 "directories recursively."
36805 msgstr ""
36806
36807 #. type: textblock
36808 #: ../src/guestfs.pod:319
36809 msgid ""
36810 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36811 msgstr ""
36812
36813 #. type: =item
36814 #: ../src/guestfs.pod:322
36815 msgid "B<file> to B<device>"
36816 msgstr ""
36817
36818 #. type: =item
36819 #: ../src/guestfs.pod:324
36820 msgid "B<device> to B<file>"
36821 msgstr ""
36822
36823 #. type: =item
36824 #: ../src/guestfs.pod:326
36825 msgid "B<device> to B<device>"
36826 msgstr ""
36827
36828 #. type: textblock
36829 #: ../src/guestfs.pod:328
36830 msgid ""
36831 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36832 "guestfs_copy_device_to_device>."
36833 msgstr ""
36834
36835 #. type: textblock
36836 #: ../src/guestfs.pod:331
36837 msgid "Example: duplicate the contents of an LV:"
36838 msgstr ""
36839
36840 #. type: verbatim
36841 #: ../src/guestfs.pod:333
36842 #, no-wrap
36843 msgid ""
36844 " guestfs_copy_device_to_device (g,\n"
36845 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36846 "         /* -1 marks the end of the list of optional parameters */\n"
36847 "         -1);\n"
36848 "\n"
36849 msgstr ""
36850
36851 #. type: textblock
36852 #: ../src/guestfs.pod:338
36853 msgid ""
36854 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36855 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36856 "optional C<size> parameter:"
36857 msgstr ""
36858
36859 #. type: verbatim
36860 #: ../src/guestfs.pod:342
36861 #, no-wrap
36862 msgid ""
36863 " guestfs_copy_device_to_device (g,\n"
36864 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36865 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36866 "         -1);\n"
36867 "\n"
36868 msgstr ""
36869
36870 #. type: =item
36871 #: ../src/guestfs.pod:347
36872 msgid "B<file on the host> to B<file or device>"
36873 msgstr ""
36874
36875 #. type: textblock
36876 #: ../src/guestfs.pod:349
36877 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36878 msgstr ""
36879
36880 #. type: =item
36881 #: ../src/guestfs.pod:351
36882 msgid "B<file or device> to B<file on the host>"
36883 msgstr ""
36884
36885 #. type: textblock
36886 #: ../src/guestfs.pod:353
36887 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36888 msgstr ""
36889
36890 #. type: =head2
36891 #: ../src/guestfs.pod:357
36892 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:359
36897 msgid ""
36898 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36899 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36900 "appears you can only upload and download to files.  However many Un*x-like "
36901 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36902 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36903 "and arbitrary file descriptor N."
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:367
36908 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36909 msgstr ""
36910
36911 #. type: verbatim
36912 #: ../src/guestfs.pod:370
36913 #, no-wrap
36914 msgid ""
36915 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36916 "\n"
36917 msgstr ""
36918 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36919 "\n"
36920
36921 #. type: textblock
36922 #: ../src/guestfs.pod:372
36923 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36924 msgstr ""
36925
36926 #. type: verbatim
36927 #: ../src/guestfs.pod:374
36928 #, no-wrap
36929 msgid ""
36930 " char devfd[64];\n"
36931 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36932 " guestfs_tar_out (g, \"/\", devfd);\n"
36933 "\n"
36934 msgstr ""
36935 " char devfd[64];\n"
36936 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36937 " guestfs_tar_out (g, \"/\", devfd);\n"
36938 "\n"
36939
36940 #. type: =head2
36941 #: ../src/guestfs.pod:378
36942 msgid "LISTING FILES"
36943 msgstr "СПИСКИ ФАЙЛІВ"
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:380
36947 msgid ""
36948 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36949 "L<guestfish(1)>-equivalent command C<ll>)."
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:383
36954 msgid ""
36955 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36956 "programs, as a flat list of strings."
36957 msgstr ""
36958
36959 #. type: textblock
36960 #: ../src/guestfs.pod:386
36961 msgid ""
36962 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36963 "directory, plus additional information about each one.  It is more "
36964 "equivalent to using the L<readdir(3)> call on a local filesystem."
36965 msgstr ""
36966
36967 #. type: textblock
36968 #: ../src/guestfs.pod:390
36969 msgid ""
36970 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36971 msgstr ""
36972
36973 #. type: =head2
36974 #: ../src/guestfs.pod:393
36975 msgid "RUNNING COMMANDS"
36976 msgstr "ВИКОНАННЯ КОМАНД"
36977
36978 #. type: textblock
36979 #: ../src/guestfs.pod:395
36980 msgid ""
36981 "Although libguestfs is primarily an API for manipulating files inside guest "
36982 "images, we also provide some limited facilities for running commands inside "
36983 "guests."
36984 msgstr ""
36985
36986 #. type: textblock
36987 #: ../src/guestfs.pod:399
36988 msgid "There are many limitations to this:"
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:405
36993 msgid ""
36994 "The kernel version that the command runs under will be different from what "
36995 "it expects."
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../src/guestfs.pod:410
37000 msgid ""
37001 "If the command needs to communicate with daemons, then most likely they "
37002 "won't be running."
37003 msgstr ""
37004
37005 #. type: textblock
37006 #: ../src/guestfs.pod:415
37007 msgid "The command will be running in limited memory."
37008 msgstr ""
37009
37010 #. type: textblock
37011 #: ../src/guestfs.pod:419
37012 msgid ""
37013 "The network may not be available unless you enable it (see L</"
37014 "guestfs_set_network>)."
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:424
37019 msgid "Only supports Linux guests (not Windows, BSD, etc)."
37020 msgstr ""
37021
37022 #. type: textblock
37023 #: ../src/guestfs.pod:428
37024 msgid ""
37025 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../src/guestfs.pod:433
37030 msgid ""
37031 "For SELinux guests, you may need to enable SELinux and load policy first.  "
37032 "See L</SELINUX> in this manpage."
37033 msgstr ""
37034
37035 #. type: textblock
37036 #: ../src/guestfs.pod:438
37037 msgid ""
37038 "I<Security:> It is not safe to run commands from untrusted, possibly "
37039 "malicious guests.  These commands may attempt to exploit your program by "
37040 "sending unexpected output.  They could also try to exploit the Linux kernel "
37041 "or qemu provided by the libguestfs appliance.  They could use the network "
37042 "provided by the libguestfs appliance to bypass ordinary network partitions "
37043 "and firewalls.  They could use the elevated privileges or different SELinux "
37044 "context of your program to their advantage."
37045 msgstr ""
37046
37047 #. type: textblock
37048 #: ../src/guestfs.pod:447
37049 msgid ""
37050 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
37051 "(a script which runs when the guest next boots normally), and to have this "
37052 "script run the commands you want in the normal context of the running guest, "
37053 "network security and so on.  For information about other security issues, "
37054 "see L</SECURITY>."
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:455
37059 msgid ""
37060 "The two main API calls to run commands are L</guestfs_command> and L</"
37061 "guestfs_sh> (there are also variations)."
37062 msgstr ""
37063
37064 #. type: textblock
37065 #: ../src/guestfs.pod:458
37066 msgid ""
37067 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
37068 "shell globs, redirections, etc will work."
37069 msgstr ""
37070
37071 #. type: =head2
37072 #: ../src/guestfs.pod:461
37073 msgid "CONFIGURATION FILES"
37074 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
37075
37076 #. type: textblock
37077 #: ../src/guestfs.pod:463
37078 msgid ""
37079 "To read and write configuration files in Linux guest filesystems, we "
37080 "strongly recommend using Augeas.  For example, Augeas understands how to "
37081 "read and write, say, a Linux shadow password file or X.org configuration "
37082 "file, and so avoids you having to write that code."
37083 msgstr ""
37084
37085 #. type: textblock
37086 #: ../src/guestfs.pod:468
37087 msgid ""
37088 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
37089 "document Augeas itself here because there is excellent documentation on the "
37090 "L<http://augeas.net/> website."
37091 msgstr ""
37092
37093 #. type: textblock
37094 #: ../src/guestfs.pod:472
37095 msgid ""
37096 "If you don't want to use Augeas (you fool!) then try calling L</"
37097 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
37098 "over."
37099 msgstr ""
37100
37101 #. type: =head2
37102 #: ../src/guestfs.pod:476
37103 msgid "SELINUX"
37104 msgstr "SELINUX"
37105
37106 #. type: textblock
37107 #: ../src/guestfs.pod:478
37108 msgid ""
37109 "We support SELinux guests.  To ensure that labeling happens correctly in "
37110 "SELinux guests, you need to enable SELinux and load the guest's policy:"
37111 msgstr ""
37112
37113 #. type: textblock
37114 #: ../src/guestfs.pod:486
37115 msgid "Before launching, do:"
37116 msgstr ""
37117
37118 #. type: verbatim
37119 #: ../src/guestfs.pod:488
37120 #, no-wrap
37121 msgid ""
37122 " guestfs_set_selinux (g, 1);\n"
37123 "\n"
37124 msgstr ""
37125 " guestfs_set_selinux (g, 1);\n"
37126 "\n"
37127
37128 #. type: textblock
37129 #: ../src/guestfs.pod:492
37130 msgid ""
37131 "After mounting the guest's filesystem(s), load the policy.  This is best "
37132 "done by running the L<load_policy(8)> command in the guest itself:"
37133 msgstr ""
37134
37135 #. type: verbatim
37136 #: ../src/guestfs.pod:496
37137 #, no-wrap
37138 msgid ""
37139 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37140 "\n"
37141 msgstr ""
37142 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37143 "\n"
37144
37145 #. type: textblock
37146 #: ../src/guestfs.pod:498
37147 msgid ""
37148 "(Older versions of C<load_policy> require you to specify the name of the "
37149 "policy file)."
37150 msgstr ""
37151
37152 #. type: textblock
37153 #: ../src/guestfs.pod:503
37154 msgid ""
37155 "Optionally, set the security context for the API.  The correct security "
37156 "context to use can only be known by inspecting the guest.  As an example:"
37157 msgstr ""
37158
37159 #. type: verbatim
37160 #: ../src/guestfs.pod:507
37161 #, no-wrap
37162 msgid ""
37163 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37164 "\n"
37165 msgstr ""
37166 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37167 "\n"
37168
37169 #. type: textblock
37170 #: ../src/guestfs.pod:511
37171 msgid "This will work for running commands and editing existing files."
37172 msgstr ""
37173
37174 #. type: textblock
37175 #: ../src/guestfs.pod:513
37176 msgid ""
37177 "When new files are created, you may need to label them explicitly, for "
37178 "example by running the external command C<restorecon pathname>."
37179 msgstr ""
37180
37181 #. type: =head2
37182 #: ../src/guestfs.pod:517
37183 msgid "UMASK"
37184 msgstr "UMASK"
37185
37186 #. type: textblock
37187 #: ../src/guestfs.pod:519
37188 msgid ""
37189 "Certain calls are affected by the current file mode creation mask (the "
37190 "\"umask\").  In particular ones which create files or directories, such as "
37191 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
37192 "either the default mode that the file is created with or modifies the mode "
37193 "that you supply."
37194 msgstr ""
37195
37196 #. type: textblock
37197 #: ../src/guestfs.pod:525
37198 msgid ""
37199 "The default umask is C<022>, so files are created with modes such as C<0644> "
37200 "and directories with C<0755>."
37201 msgstr ""
37202
37203 #. type: textblock
37204 #: ../src/guestfs.pod:528
37205 msgid ""
37206 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
37207 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
37208 "guestfs_chmod> after creating each file or directory."
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../src/guestfs.pod:532
37213 msgid "For more information about umask, see L<umask(2)>."
37214 msgstr ""
37215
37216 #. type: textblock
37217 #: ../src/guestfs.pod:536
37218 msgid ""
37219 "Libguestfs allows you to access Linux guests which have been encrypted using "
37220 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
37221 "standard.  This includes nearly all whole disk encryption systems used by "
37222 "modern Linux guests."
37223 msgstr ""
37224
37225 #. type: textblock
37226 #: ../src/guestfs.pod:542
37227 msgid ""
37228 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
37229 "returns the string C<crypto_LUKS>)."
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:545
37234 msgid ""
37235 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
37236 "will require the passphrase!"
37237 msgstr ""
37238
37239 #. type: textblock
37240 #: ../src/guestfs.pod:548
37241 msgid ""
37242 "Opening a LUKS device creates a new device mapper device called C</dev/"
37243 "mapper/mapname> (where C<mapname> is the string you supply to L</"
37244 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
37245 "from and encrypted to the underlying block device respectively."
37246 msgstr ""
37247
37248 #. type: textblock
37249 #: ../src/guestfs.pod:554
37250 msgid ""
37251 "LVM volume groups on the device can be made visible by calling L</"
37252 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
37253 "(s) can now be mounted in the usual way."
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../src/guestfs.pod:558
37258 msgid ""
37259 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
37260 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
37261 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
37262 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
37263 "underlying encrypted block device)."
37264 msgstr ""
37265
37266 #. type: =head2
37267 #: ../src/guestfs.pod:565
37268 msgid "INSPECTION"
37269 msgstr "ПЕРЕВІРКА"
37270
37271 #. type: textblock
37272 #: ../src/guestfs.pod:567
37273 msgid ""
37274 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
37275 "contains operating systems, an install CD or a live CD.  (These APIs used to "
37276 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
37277 "version 1.5.3 the most frequently used part of this library has been "
37278 "rewritten in C and moved into the core code)."
37279 msgstr ""
37280
37281 #. type: textblock
37282 #: ../src/guestfs.pod:574
37283 msgid ""
37284 "Add all disks belonging to the unknown virtual machine and call L</"
37285 "guestfs_launch> in the usual way."
37286 msgstr ""
37287
37288 #. type: textblock
37289 #: ../src/guestfs.pod:577
37290 msgid ""
37291 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
37292 "and certain heuristics, and returns a list of operating systems that were "
37293 "found.  An empty list means none were found.  A single element is the root "
37294 "filesystem of the operating system.  For dual- or multi-boot guests, "
37295 "multiple roots can be returned, each one corresponding to a separate "
37296 "operating system.  (Multi-boot virtual machines are extremely rare in the "
37297 "world of virtualization, but since this scenario can happen, we have built "
37298 "libguestfs to deal with it.)"
37299 msgstr ""
37300
37301 #. type: textblock
37302 #: ../src/guestfs.pod:586
37303 msgid ""
37304 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
37305 "to get additional details about that operating system.  For example, call L</"
37306 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
37307 "Windows and Linux-based operating systems respectively."
37308 msgstr ""
37309
37310 #. type: textblock
37311 #: ../src/guestfs.pod:592
37312 msgid ""
37313 "Un*x-like and Linux-based operating systems usually consist of several "
37314 "filesystems which are mounted at boot time (for example, a separate boot "
37315 "partition mounted on C</boot>).  The inspection rules are able to detect how "
37316 "filesystems correspond to mount points.  Call "
37317 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
37318 "hash table like this example:"
37319 msgstr ""
37320
37321 #. type: verbatim
37322 #: ../src/guestfs.pod:599
37323 #, no-wrap
37324 msgid ""
37325 " /boot => /dev/sda1\n"
37326 " /     => /dev/vg_guest/lv_root\n"
37327 " /usr  => /dev/vg_guest/lv_usr\n"
37328 "\n"
37329 msgstr ""
37330 " /boot => /dev/sda1\n"
37331 " /     => /dev/vg_guest/lv_root\n"
37332 " /usr  => /dev/vg_guest/lv_usr\n"
37333 "\n"
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:603
37337 msgid ""
37338 "The caller can then make calls to L</guestfs_mount_options> to mount the "
37339 "filesystems as suggested."
37340 msgstr ""
37341
37342 #. type: textblock
37343 #: ../src/guestfs.pod:606
37344 msgid ""
37345 "Be careful to mount filesystems in the right order (eg. C</> before C</"
37346 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
37347 msgstr ""
37348
37349 #. type: textblock
37350 #: ../src/guestfs.pod:610
37351 msgid ""
37352 "Inspection currently only works for some common operating systems.  "
37353 "Contributors are welcome to send patches for other operating systems that we "
37354 "currently cannot detect."
37355 msgstr ""
37356
37357 #. type: textblock
37358 #: ../src/guestfs.pod:614
37359 msgid ""
37360 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
37361 "for more details.  The L</guestfs_inspect_os> function just ignores any "
37362 "encrypted devices."
37363 msgstr ""
37364
37365 #. type: textblock
37366 #: ../src/guestfs.pod:618
37367 msgid ""
37368 "A note on the implementation: The call L</guestfs_inspect_os> performs "
37369 "inspection and caches the results in the guest handle.  Subsequent calls to "
37370 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
37371 "read the disks.  If you change the content of the guest disks, you can redo "
37372 "inspection by calling L</guestfs_inspect_os> again.  (L</"
37373 "guestfs_inspect_list_applications> works a little differently from the other "
37374 "calls and does read the disks.  See documentation for that function for "
37375 "details)."
37376 msgstr ""
37377
37378 #. type: =head3
37379 #: ../src/guestfs.pod:627
37380 msgid "INSPECTING INSTALL DISKS"
37381 msgstr ""
37382
37383 #. type: textblock
37384 #: ../src/guestfs.pod:629
37385 msgid ""
37386 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
37387 "CDs and more."
37388 msgstr ""
37389
37390 #. type: textblock
37391 #: ../src/guestfs.pod:632
37392 msgid ""
37393 "Call L</guestfs_inspect_get_format> to return the format of the operating "
37394 "system, which currently can be C<installed> (a regular operating system) or "
37395 "C<installer> (some sort of install disk)."
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:636
37400 msgid ""
37401 "Further information is available about the operating system that can be "
37402 "installed using the regular inspection APIs like L</"
37403 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../src/guestfs.pod:641
37408 msgid ""
37409 "Some additional information specific to installer disks is also available "
37410 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
37411 "guestfs_inspect_is_multipart> calls."
37412 msgstr ""
37413
37414 #. type: =head2
37415 #: ../src/guestfs.pod:646
37416 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
37417 msgstr ""
37418
37419 #. type: textblock
37420 #: ../src/guestfs.pod:648
37421 msgid ""
37422 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
37423 "ntfs-3g.org/> driver."
37424 msgstr ""
37425
37426 #. type: =head3
37427 #: ../src/guestfs.pod:651
37428 msgid "DRIVE LETTERS AND PATHS"
37429 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
37430
37431 #. type: textblock
37432 #: ../src/guestfs.pod:653
37433 msgid ""
37434 "DOS and Windows still use drive letters, and the filesystems are always "
37435 "treated as case insensitive by Windows itself, and therefore you might find "
37436 "a Windows configuration file referring to a path like C<c:\\windows"
37437 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
37438 "might be referred to as C</WINDOWS/System32>."
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:659
37443 msgid ""
37444 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37445 "L</guestfs_inspect_get_drive_mappings>)"
37446 msgstr ""
37447
37448 #. type: textblock
37449 #: ../src/guestfs.pod:662
37450 msgid ""
37451 "Dealing with separator characters (backslash vs forward slash) is outside "
37452 "the scope of libguestfs, but usually a simple character replacement will "
37453 "work."
37454 msgstr ""
37455
37456 #. type: textblock
37457 #: ../src/guestfs.pod:666
37458 msgid ""
37459 "To resolve the case insensitivity of paths, call L</"
37460 "guestfs_case_sensitive_path>."
37461 msgstr ""
37462
37463 #. type: =head3
37464 #: ../src/guestfs.pod:669
37465 msgid "ACCESSING THE WINDOWS REGISTRY"
37466 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
37467
37468 #. type: textblock
37469 #: ../src/guestfs.pod:671
37470 msgid ""
37471 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37472 "files, through the library C<hivex> which is part of the libguestfs project "
37473 "although ships as a separate tarball.  You have to locate and download the "
37474 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
37475 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37476 "reg(1)> for more help on this issue."
37477 msgstr ""
37478
37479 #. type: =head3
37480 #: ../src/guestfs.pod:679
37481 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37482 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
37483
37484 #. type: textblock
37485 #: ../src/guestfs.pod:681
37486 msgid ""
37487 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37488 "provide something which looks like a Linux symlink.  The way it tries to do "
37489 "the rewriting is described here:"
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:685
37494 msgid ""
37495 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37496 "symbolic-links/>"
37497 msgstr ""
37498 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37499 "symbolic-links/>"
37500
37501 #. type: textblock
37502 #: ../src/guestfs.pod:687
37503 msgid ""
37504 "The essential problem is that ntfs-3g simply does not have enough "
37505 "information to do a correct job.  NTFS links can contain drive letters and "
37506 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
37507 "It is almost certainly the case that libguestfs callers should ignore what "
37508 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../src/guestfs.pod:694
37513 msgid ""
37514 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37515 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37516 "attribute, and read the raw reparse data from that (you can find the format "
37517 "documented in various places around the web)."
37518 msgstr ""
37519
37520 #. type: =head3
37521 #: ../src/guestfs.pod:699
37522 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37523 msgstr ""
37524
37525 #. type: textblock
37526 #: ../src/guestfs.pod:701
37527 msgid ""
37528 "There are other useful extended attributes that can be read from ntfs-3g "
37529 "filesystems (using L</guestfs_getxattr>).  See:"
37530 msgstr ""
37531
37532 #. type: textblock
37533 #: ../src/guestfs.pod:704
37534 msgid ""
37535 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37536 msgstr ""
37537 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37538
37539 #. type: =head2
37540 #: ../src/guestfs.pod:706
37541 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37542 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
37543
37544 #. type: textblock
37545 #: ../src/guestfs.pod:708
37546 msgid ""
37547 "Although we don't want to discourage you from using the C API, we will "
37548 "mention here that the same API is also available in other languages."
37549 msgstr ""
37550
37551 #. type: textblock
37552 #: ../src/guestfs.pod:711
37553 msgid ""
37554 "The API is broadly identical in all supported languages.  This means that "
37555 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37556 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37557 "OCaml.  In other words, a straightforward, predictable isomorphism between "
37558 "each language."
37559 msgstr ""
37560
37561 #. type: textblock
37562 #: ../src/guestfs.pod:717
37563 msgid ""
37564 "Error messages are automatically transformed into exceptions if the language "
37565 "supports it."
37566 msgstr ""
37567
37568 #. type: textblock
37569 #: ../src/guestfs.pod:720
37570 msgid ""
37571 "We don't try to \"object orientify\" parts of the API in OO languages, "
37572 "although contributors are welcome to write higher level APIs above what we "
37573 "provide in their favourite languages if they wish."
37574 msgstr ""
37575
37576 #. type: =item
37577 #: ../src/guestfs.pod:726
37578 msgid "B<C++>"
37579 msgstr "B<C++>"
37580
37581 #. type: textblock
37582 #: ../src/guestfs.pod:728
37583 msgid ""
37584 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
37585 "identical to the C API.  C++ classes and exceptions are not used."
37586 msgstr ""
37587
37588 #. type: =item
37589 #: ../src/guestfs.pod:732
37590 msgid "B<C#>"
37591 msgstr "B<C#>"
37592
37593 #. type: textblock
37594 #: ../src/guestfs.pod:734
37595 msgid ""
37596 "The C# bindings are highly experimental.  Please read the warnings at the "
37597 "top of C<csharp/Libguestfs.cs>."
37598 msgstr ""
37599
37600 #. type: =item
37601 #: ../src/guestfs.pod:737
37602 msgid "B<Erlang>"
37603 msgstr ""
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:739
37607 msgid "See L<guestfs-erlang(3)>."
37608 msgstr ""
37609
37610 #. type: =item
37611 #: ../src/guestfs.pod:741
37612 msgid "B<Haskell>"
37613 msgstr "B<Haskell>"
37614
37615 #. type: textblock
37616 #: ../src/guestfs.pod:743
37617 msgid ""
37618 "This is the only language binding that is working but incomplete.  Only "
37619 "calls which return simple integers have been bound in Haskell, and we are "
37620 "looking for help to complete this binding."
37621 msgstr ""
37622
37623 #. type: =item
37624 #: ../src/guestfs.pod:747
37625 msgid "B<Java>"
37626 msgstr "B<Java>"
37627
37628 #. type: textblock
37629 #: ../src/guestfs.pod:749
37630 msgid ""
37631 "Full documentation is contained in the Javadoc which is distributed with "
37632 "libguestfs.  For examples, see L<guestfs-java(3)>."
37633 msgstr ""
37634
37635 #. type: =item
37636 #: ../src/guestfs.pod:752
37637 msgid "B<OCaml>"
37638 msgstr "B<OCaml>"
37639
37640 #. type: textblock
37641 #: ../src/guestfs.pod:754
37642 msgid "See L<guestfs-ocaml(3)>."
37643 msgstr "Див. L<guestfs-ocaml(3)>."
37644
37645 #. type: =item
37646 #: ../src/guestfs.pod:756
37647 msgid "B<Perl>"
37648 msgstr "B<Perl>"
37649
37650 #. type: textblock
37651 #: ../src/guestfs.pod:758
37652 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37653 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
37654
37655 #. type: =item
37656 #: ../src/guestfs.pod:760
37657 msgid "B<PHP>"
37658 msgstr "B<PHP>"
37659
37660 #. type: textblock
37661 #: ../src/guestfs.pod:762
37662 msgid ""
37663 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37664 "the php-libguestfs package for your distribution."
37665 msgstr ""
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:765
37669 msgid "The PHP binding only works correctly on 64 bit machines."
37670 msgstr ""
37671
37672 #. type: =item
37673 #: ../src/guestfs.pod:767
37674 msgid "B<Python>"
37675 msgstr "B<Python>"
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:769
37679 msgid "See L<guestfs-python(3)>."
37680 msgstr "Див. L<guestfs-python(3)>."
37681
37682 #. type: =item
37683 #: ../src/guestfs.pod:771
37684 msgid "B<Ruby>"
37685 msgstr "B<Ruby>"
37686
37687 #. type: textblock
37688 #: ../src/guestfs.pod:773
37689 msgid "See L<guestfs-ruby(3)>."
37690 msgstr "Див. L<guestfs-ruby(3)>."
37691
37692 #. type: =item
37693 #: ../src/guestfs.pod:775
37694 msgid "B<shell scripts>"
37695 msgstr "B<скрипти оболонки>"
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:777
37699 msgid "See L<guestfish(1)>."
37700 msgstr "Див. L<guestfish(1)>."
37701
37702 #. type: =head2
37703 #: ../src/guestfs.pod:781
37704 msgid "LIBGUESTFS GOTCHAS"
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:783
37709 msgid ""
37710 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37711 "system [...] that works in the way it is documented but is counterintuitive "
37712 "and almost invites mistakes.\""
37713 msgstr ""
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:787
37717 msgid ""
37718 "Since we developed libguestfs and the associated tools, there are several "
37719 "things we would have designed differently, but are now stuck with for "
37720 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37721 "release, you can expect these to change.  Beware of them."
37722 msgstr ""
37723
37724 #. type: =item
37725 #: ../src/guestfs.pod:795
37726 msgid "Autosync / forgetting to sync."
37727 msgstr ""
37728
37729 #. type: textblock
37730 #: ../src/guestfs.pod:797
37731 msgid ""
37732 "I<Update:> Autosync is enabled by default for all API users starting from "
37733 "libguestfs 1.5.24.  This section only applies to older versions."
37734 msgstr ""
37735
37736 #. type: textblock
37737 #: ../src/guestfs.pod:800
37738 msgid ""
37739 "When modifying a filesystem from C or another language, you B<must> unmount "
37740 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37741 "libguestfs handle.  You can also call:"
37742 msgstr ""
37743
37744 #. type: verbatim
37745 #: ../src/guestfs.pod:804
37746 #, no-wrap
37747 msgid ""
37748 " guestfs_set_autosync (g, 1);\n"
37749 "\n"
37750 msgstr ""
37751 " guestfs_set_autosync (g, 1);\n"
37752 "\n"
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:806
37756 msgid ""
37757 "to have the unmount/sync done automatically for you when the handle 'g' is "
37758 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37759 msgstr ""
37760
37761 #. type: textblock
37762 #: ../src/guestfs.pod:810
37763 msgid ""
37764 "If you forget to do this, then it is entirely possible that your changes "
37765 "won't be written out, or will be partially written, or (very rarely) that "
37766 "you'll get disk corruption."
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:814
37771 msgid ""
37772 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37773 "guestfish scripts that forget to sync will work just fine, which can make "
37774 "this very puzzling if you are trying to debug a problem."
37775 msgstr ""
37776
37777 #. type: =item
37778 #: ../src/guestfs.pod:818
37779 msgid "Mount option C<-o sync> should not be the default."
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:820
37784 msgid ""
37785 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37786 "libguestfs 1.13.16.  This section only applies to older versions."
37787 msgstr ""
37788
37789 #. type: textblock
37790 #: ../src/guestfs.pod:823
37791 msgid ""
37792 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37793 "However C<-o sync> does not add any reliability benefit, but does have a "
37794 "very large performance impact."
37795 msgstr ""
37796
37797 #. type: textblock
37798 #: ../src/guestfs.pod:827
37799 msgid ""
37800 "The work around is to use L</guestfs_mount_options> and set the mount "
37801 "options that you actually want to use."
37802 msgstr ""
37803
37804 #. type: =item
37805 #: ../src/guestfs.pod:830
37806 msgid "Read-only should be the default."
37807 msgstr ""
37808
37809 #. type: textblock
37810 #: ../src/guestfs.pod:832
37811 msgid ""
37812 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37813 "specify I<--rw> if you want to make changes to the image."
37814 msgstr ""
37815
37816 #. type: textblock
37817 #: ../src/guestfs.pod:835
37818 msgid "This would reduce the potential to corrupt live VM images."
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../src/guestfs.pod:837
37823 msgid ""
37824 "Note that many filesystems change the disk when you just mount and unmount, "
37825 "even if you didn't perform any writes.  You need to use L</"
37826 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37827 msgstr ""
37828
37829 #. type: =item
37830 #: ../src/guestfs.pod:841
37831 msgid "guestfish command line is hard to use."
37832 msgstr ""
37833
37834 #. type: textblock
37835 #: ../src/guestfs.pod:843
37836 msgid ""
37837 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37838 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37839 "exist, so it fails.  In earlier versions of guestfish the error message was "
37840 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37841 "we should have used C<guestfish -c command> to run commands."
37842 msgstr ""
37843
37844 #. type: =item
37845 #: ../src/guestfs.pod:850
37846 msgid "guestfish megabyte modifiers don't work right on all commands"
37847 msgstr ""
37848
37849 #. type: textblock
37850 #: ../src/guestfs.pod:852
37851 msgid ""
37852 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37853 "other modifiers).  What guestfish actually does is to multiply the number "
37854 "part by the modifier part and pass the result to the C API.  However this "
37855 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37856 "expecting some other unit (eg. megabytes)."
37857 msgstr ""
37858
37859 #. type: textblock
37860 #: ../src/guestfs.pod:859
37861 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37862 msgstr ""
37863
37864 #. type: verbatim
37865 #: ../src/guestfs.pod:861
37866 #, no-wrap
37867 msgid ""
37868 " lvcreate LV VG 100M\n"
37869 "\n"
37870 msgstr ""
37871 " lvcreate LV VG 100M\n"
37872 "\n"
37873
37874 #. type: textblock
37875 #: ../src/guestfs.pod:863
37876 msgid ""
37877 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37878 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37879 "megabytes * megabytes) logical volume.  The error message you get from this "
37880 "is also a little obscure."
37881 msgstr ""
37882
37883 #. type: textblock
37884 #: ../src/guestfs.pod:868
37885 msgid ""
37886 "This could be fixed in the generator by specially marking parameters and "
37887 "return values which take bytes or other units."
37888 msgstr ""
37889
37890 #. type: =item
37891 #: ../src/guestfs.pod:871
37892 msgid "Ambiguity between devices and paths"
37893 msgstr ""
37894
37895 #. type: textblock
37896 #: ../src/guestfs.pod:873
37897 msgid ""
37898 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37899 "sdb2>) and a similar pathname.  A file might just happen to be called "
37900 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37901 msgstr ""
37902
37903 #. type: textblock
37904 #: ../src/guestfs.pod:878
37905 msgid ""
37906 "In the current API we usually resolve this ambiguity by having two separate "
37907 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37908 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37909 "detecting if the path supplied begins with C</dev/>."
37910 msgstr ""
37911
37912 #. type: textblock
37913 #: ../src/guestfs.pod:884
37914 msgid ""
37915 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37916 "make paths/devices into structured names.  One way to do this would be to "
37917 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37918 "aspect of grub.  Another way would be to use a structured type, equivalent "
37919 "to this OCaml type:"
37920 msgstr ""
37921
37922 #. type: verbatim
37923 #: ../src/guestfs.pod:890
37924 #, no-wrap
37925 msgid ""
37926 " type path = Path of string | Device of int | Partition of int * int\n"
37927 "\n"
37928 msgstr ""
37929
37930 #. type: textblock
37931 #: ../src/guestfs.pod:892
37932 msgid "which would allow you to pass arguments like:"
37933 msgstr ""
37934
37935 #. type: verbatim
37936 #: ../src/guestfs.pod:894
37937 #, no-wrap
37938 msgid ""
37939 " Path \"/foo/bar\"\n"
37940 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37941 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37942 " Path \"/dev/sdb2\"    (* not a device *)\n"
37943 "\n"
37944 msgstr ""
37945
37946 #. type: textblock
37947 #: ../src/guestfs.pod:899
37948 msgid ""
37949 "As you can see there are still problems to resolve even with this "
37950 "representation.  Also consider how it might work in guestfish."
37951 msgstr ""
37952
37953 #. type: =head2
37954 #: ../src/guestfs.pod:904
37955 msgid "KEYS AND PASSPHRASES"
37956 msgstr "КЛЮЧІ І ПАРОЛІ"
37957
37958 #. type: textblock
37959 #: ../src/guestfs.pod:906
37960 msgid ""
37961 "Certain libguestfs calls take a parameter that contains sensitive key "
37962 "material, passed in as a C string."
37963 msgstr ""
37964
37965 #. type: textblock
37966 #: ../src/guestfs.pod:909
37967 msgid ""
37968 "In the future we would hope to change the libguestfs implementation so that "
37969 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37970 "swap.  However this is I<not> done at the moment, because of the complexity "
37971 "of such an implementation."
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../src/guestfs.pod:914
37976 msgid ""
37977 "Therefore you should be aware that any key parameter you pass to libguestfs "
37978 "might end up being written out to the swap partition.  If this is a concern, "
37979 "scrub the swap partition or don't use libguestfs on encrypted devices."
37980 msgstr ""
37981
37982 #. type: =head2
37983 #: ../src/guestfs.pod:919
37984 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37985 msgstr ""
37986
37987 #. type: textblock
37988 #: ../src/guestfs.pod:921
37989 msgid ""
37990 "All high-level libguestfs actions are synchronous.  If you want to use "
37991 "libguestfs asynchronously then you must create a thread."
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../src/guestfs.pod:924
37996 msgid ""
37997 "Only use the handle from a single thread.  Either use the handle exclusively "
37998 "from one thread, or provide your own mutex so that two threads cannot issue "
37999 "calls on the same handle at the same time."
38000 msgstr ""
38001
38002 #. type: textblock
38003 #: ../src/guestfs.pod:928
38004 msgid ""
38005 "See the graphical program guestfs-browser for one possible architecture for "
38006 "multithreaded programs using libvirt and libguestfs."
38007 msgstr ""
38008
38009 #. type: =head2
38010 #: ../src/guestfs.pod:931
38011 msgid "PATH"
38012 msgstr "ШЛЯХ"
38013
38014 #. type: textblock
38015 #: ../src/guestfs.pod:933
38016 msgid ""
38017 "Libguestfs needs a supermin appliance, which it finds by looking along an "
38018 "internal path."
38019 msgstr ""
38020
38021 #. type: textblock
38022 #: ../src/guestfs.pod:936
38023 msgid ""
38024 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
38025 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
38026 msgstr ""
38027
38028 #. type: textblock
38029 #: ../src/guestfs.pod:939
38030 msgid ""
38031 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
38032 "to change the directories that libguestfs will search in.  The value is a "
38033 "colon-separated list of paths.  The current directory is I<not> searched "
38034 "unless the path contains an empty element or C<.>.  For example "
38035 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
38036 "then C</usr/lib/guestfs>."
38037 msgstr ""
38038
38039 #. type: =head2
38040 #: ../src/guestfs.pod:946
38041 msgid "QEMU WRAPPERS"
38042 msgstr ""
38043
38044 #. type: textblock
38045 #: ../src/guestfs.pod:948
38046 msgid ""
38047 "If you want to compile your own qemu, run qemu from a non-standard location, "
38048 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
38049 "around qemu."
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:952
38054 msgid ""
38055 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38056 "last command in the shell script (so that qemu replaces the shell and "
38057 "becomes the direct child of the libguestfs-using program).  If you don't do "
38058 "this, then the qemu process won't be cleaned up correctly."
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:957
38063 msgid ""
38064 "Here is an example of a wrapper, where I have built my own copy of qemu from "
38065 "source:"
38066 msgstr ""
38067
38068 #. type: verbatim
38069 #: ../src/guestfs.pod:960
38070 #, no-wrap
38071 msgid ""
38072 " #!/bin/sh -\n"
38073 " qemudir=/home/rjones/d/qemu\n"
38074 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38075 "\n"
38076 msgstr ""
38077 " #!/bin/sh -\n"
38078 " qemudir=/home/rjones/d/qemu\n"
38079 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38080 "\n"
38081
38082 #. type: textblock
38083 #: ../src/guestfs.pod:964
38084 msgid ""
38085 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
38086 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
38087 "example:"
38088 msgstr ""
38089
38090 #. type: verbatim
38091 #: ../src/guestfs.pod:968
38092 #, no-wrap
38093 msgid ""
38094 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38095 "\n"
38096 msgstr ""
38097 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38098 "\n"
38099
38100 #. type: textblock
38101 #: ../src/guestfs.pod:970
38102 msgid ""
38103 "Note that libguestfs also calls qemu with the -help and -version options in "
38104 "order to determine features."
38105 msgstr ""
38106
38107 #. type: textblock
38108 #: ../src/guestfs.pod:973
38109 msgid ""
38110 "Wrappers can also be used to edit the options passed to qemu.  In the "
38111 "following example, the C<-machine ...> option (C<-machine> and the following "
38112 "argument) are removed from the command line and replaced with C<-machine pc,"
38113 "accel=tcg>.  The while loop iterates over the options until it finds the "
38114 "right one to remove, putting the remaining options into the C<args> array."
38115 msgstr ""
38116
38117 #. type: verbatim
38118 #: ../src/guestfs.pod:982
38119 #, no-wrap
38120 msgid ""
38121 " i=0\n"
38122 " while [ $# -gt 0 ]; do\n"
38123 "     case \"$1\" in\n"
38124 "     -machine)\n"
38125 "         shift 2;;\n"
38126 "     *)\n"
38127 "         args[i]=\"$1\"\n"
38128 "         (( i++ ))\n"
38129 "         shift ;;\n"
38130 "     esac\n"
38131 " done\n"
38132 " \n"
38133 msgstr ""
38134
38135 #. type: verbatim
38136 #: ../src/guestfs.pod:994
38137 #, no-wrap
38138 msgid ""
38139 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
38140 "\n"
38141 msgstr ""
38142
38143 #. type: =head2
38144 #: ../src/guestfs.pod:996
38145 msgid "ATTACHING TO RUNNING DAEMONS"
38146 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
38147
38148 #. type: textblock
38149 #: ../src/guestfs.pod:998
38150 msgid ""
38151 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
38152 "babies.  Use with caution."
38153 msgstr ""
38154
38155 #. type: textblock
38156 #: ../src/guestfs.pod:1001
38157 msgid ""
38158 "I<Note (2):> This section explains how to attach to a running daemon from a "
38159 "low level perspective.  For most users, simply using virt tools such as "
38160 "L<guestfish(1)> with the I<--live> option will \"just work\"."
38161 msgstr ""
38162
38163 #. type: =head3
38164 #: ../src/guestfs.pod:1005
38165 msgid "Using guestfs_set_attach_method"
38166 msgstr "За допомогою guestfs_set_attach_method"
38167
38168 #. type: textblock
38169 #: ../src/guestfs.pod:1007
38170 msgid ""
38171 "By calling L</guestfs_set_attach_method> you can change how the library "
38172 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
38173 "ARCHITECTURE> for some background)."
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../src/guestfs.pod:1011
38178 msgid ""
38179 "The normal attach method is C<appliance>, where a small appliance is created "
38180 "containing the daemon, and then the library connects to this."
38181 msgstr ""
38182
38183 #. type: textblock
38184 #: ../src/guestfs.pod:1014
38185 msgid ""
38186 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
38187 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
38188 "daemon over the Unix domain socket."
38189 msgstr ""
38190
38191 #. type: textblock
38192 #: ../src/guestfs.pod:1018
38193 msgid ""
38194 "The normal use for this is to connect to a running virtual machine that "
38195 "contains a C<guestfsd> daemon, and send commands so you can read and write "
38196 "files inside the live virtual machine."
38197 msgstr ""
38198
38199 #. type: =head3
38200 #: ../src/guestfs.pod:1022
38201 msgid "Using guestfs_add_domain with live flag"
38202 msgstr "За допомогою guestfs_add_domain з прапорцем live"
38203
38204 #. type: textblock
38205 #: ../src/guestfs.pod:1024
38206 msgid ""
38207 "L</guestfs_add_domain> provides some help for getting the correct attach "
38208 "method.  If you pass the C<live> option to this function, then (if the "
38209 "virtual machine is running) it will examine the libvirt XML looking for a "
38210 "virtio-serial channel to connect to:"
38211 msgstr ""
38212
38213 #. type: verbatim
38214 #: ../src/guestfs.pod:1030
38215 #, no-wrap
38216 msgid ""
38217 " <domain>\n"
38218 "   ...\n"
38219 "   <devices>\n"
38220 "     ...\n"
38221 "     <channel type='unix'>\n"
38222 "       <source mode='bind' path='/path/to/socket'/>\n"
38223 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38224 "     </channel>\n"
38225 "     ...\n"
38226 "   </devices>\n"
38227 " </domain>\n"
38228 "\n"
38229 msgstr ""
38230 " <domain>\n"
38231 "   ...\n"
38232 "   <devices>\n"
38233 "     ...\n"
38234 "     <channel type='unix'>\n"
38235 "       <source mode='bind' path='/path/to/socket'/>\n"
38236 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38237 "     </channel>\n"
38238 "     ...\n"
38239 "   </devices>\n"
38240 " </domain>\n"
38241 "\n"
38242
38243 #. type: textblock
38244 #: ../src/guestfs.pod:1042
38245 msgid ""
38246 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
38247 "method to C<unix:/path/to/socket>."
38248 msgstr ""
38249
38250 #. type: textblock
38251 #: ../src/guestfs.pod:1045
38252 msgid ""
38253 "Some of the libguestfs tools (including guestfish) support a I<--live> "
38254 "option which is passed through to L</guestfs_add_domain> thus allowing you "
38255 "to attach to and modify live virtual machines."
38256 msgstr ""
38257
38258 #. type: textblock
38259 #: ../src/guestfs.pod:1049
38260 msgid ""
38261 "The virtual machine needs to have been set up beforehand so that it has the "
38262 "virtio-serial channel and so that guestfsd is running inside it."
38263 msgstr ""
38264
38265 #. type: =head2
38266 #: ../src/guestfs.pod:1053
38267 msgid "ABI GUARANTEE"
38268 msgstr "ГАРАНТІЯ ЩОДО ABI"
38269
38270 #. type: textblock
38271 #: ../src/guestfs.pod:1055
38272 msgid ""
38273 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
38274 "actions as outlined in this section.  Although we will deprecate some "
38275 "actions, for example if they get replaced by newer calls, we will keep the "
38276 "old actions forever.  This allows you the developer to program in confidence "
38277 "against the libguestfs API."
38278 msgstr ""
38279
38280 #. type: =head2
38281 #: ../src/guestfs.pod:1061
38282 msgid "BLOCK DEVICE NAMING"
38283 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
38284
38285 #. type: textblock
38286 #: ../src/guestfs.pod:1063
38287 msgid ""
38288 "In the kernel there is now quite a profusion of schemata for naming block "
38289 "devices (in this context, by I<block device> I mean a physical or virtual "
38290 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
38291 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
38292 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
38293 "for the old IDE driver (particularly for SATA devices) those devices also "
38294 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
38295 "paravirtualized drivers.  This has created several different naming systems, "
38296 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
38297 msgstr ""
38298
38299 #. type: textblock
38300 #: ../src/guestfs.pod:1075
38301 msgid ""
38302 "As discussed above, libguestfs uses a qemu appliance running an embedded "
38303 "Linux kernel to access block devices.  We can run a variety of appliances "
38304 "based on a variety of Linux kernels."
38305 msgstr ""
38306
38307 #. type: textblock
38308 #: ../src/guestfs.pod:1079
38309 msgid ""
38310 "This causes a problem for libguestfs because many API calls use device or "
38311 "partition names.  Working scripts and the recipe (example) scripts that we "
38312 "make available over the internet could fail if the naming scheme changes."
38313 msgstr ""
38314
38315 #. type: textblock
38316 #: ../src/guestfs.pod:1084
38317 msgid ""
38318 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
38319 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
38320 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
38321 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
38322 msgstr ""
38323
38324 #. type: textblock
38325 #: ../src/guestfs.pod:1090
38326 msgid ""
38327 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
38328 "L</guestfs_list_partitions> and similar calls return the true names of the "
38329 "devices and partitions as known to the appliance."
38330 msgstr ""
38331
38332 #. type: =head3
38333 #: ../src/guestfs.pod:1095
38334 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:1097
38339 msgid ""
38340 "Usually this translation is transparent.  However in some (very rare)  cases "
38341 "you may need to know the exact algorithm.  Such cases include where you use "
38342 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
38343 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
38344 msgstr ""
38345
38346 #. type: textblock
38347 #: ../src/guestfs.pod:1103
38348 msgid ""
38349 "The algorithm is applied only to I<parameters> which are known to be either "
38350 "device or partition names.  Return values from functions such as L</"
38351 "guestfs_list_devices> are never changed."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:1111
38356 msgid "Is the string a parameter which is a device or partition name?"
38357 msgstr ""
38358
38359 #. type: textblock
38360 #: ../src/guestfs.pod:1115
38361 msgid "Does the string begin with C</dev/sd>?"
38362 msgstr "Чи починається рядок з C</dev/sd>?"
38363
38364 #. type: textblock
38365 #: ../src/guestfs.pod:1119
38366 msgid ""
38367 "Does the named device exist? If so, we use that device.  However if I<not> "
38368 "then we continue with this algorithm."
38369 msgstr ""
38370
38371 #. type: textblock
38372 #: ../src/guestfs.pod:1124
38373 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../src/guestfs.pod:1126
38378 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
38379 msgstr ""
38380
38381 #. type: textblock
38382 #: ../src/guestfs.pod:1128
38383 msgid "If that named device exists, use it.  If not, continue."
38384 msgstr ""
38385
38386 #. type: textblock
38387 #: ../src/guestfs.pod:1132
38388 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
38389 msgstr ""
38390
38391 #. type: textblock
38392 #: ../src/guestfs.pod:1134
38393 msgid "If that named device exists, use it.  If not, return an error."
38394 msgstr ""
38395
38396 #. type: =head3
38397 #: ../src/guestfs.pod:1138
38398 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
38399 msgstr ""
38400
38401 #. type: textblock
38402 #: ../src/guestfs.pod:1140
38403 msgid ""
38404 "Although the standard naming scheme and automatic translation is useful for "
38405 "simple programs and guestfish scripts, for larger programs it is best not to "
38406 "rely on this mechanism."
38407 msgstr ""
38408
38409 #. type: textblock
38410 #: ../src/guestfs.pod:1144
38411 msgid ""
38412 "Where possible for maximum future portability programs using libguestfs "
38413 "should use these future-proof techniques:"
38414 msgstr ""
38415
38416 #. type: textblock
38417 #: ../src/guestfs.pod:1151
38418 msgid ""
38419 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
38420 "device names, and then use those names directly."
38421 msgstr ""
38422
38423 #. type: textblock
38424 #: ../src/guestfs.pod:1154
38425 msgid ""
38426 "Since those device names exist by definition, they will never be translated."
38427 msgstr ""
38428
38429 #. type: textblock
38430 #: ../src/guestfs.pod:1159
38431 msgid ""
38432 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
38433 "filesystem labels."
38434 msgstr ""
38435
38436 #. type: textblock
38437 #: ../src/guestfs.pod:1166
38438 msgid ""
38439 "This section discusses security implications of using libguestfs, "
38440 "particularly with untrusted or malicious guests or disk images."
38441 msgstr ""
38442
38443 #. type: =head2
38444 #: ../src/guestfs.pod:1169
38445 msgid "GENERAL SECURITY CONSIDERATIONS"
38446 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
38447
38448 #. type: textblock
38449 #: ../src/guestfs.pod:1171
38450 msgid ""
38451 "Be careful with any files or data that you download from a guest (by "
38452 "\"download\" we mean not just the L</guestfs_download> command but any "
38453 "command that reads files, filenames, directories or anything else from a "
38454 "disk image).  An attacker could manipulate the data to fool your program "
38455 "into doing the wrong thing.  Consider cases such as:"
38456 msgstr ""
38457
38458 #. type: textblock
38459 #: ../src/guestfs.pod:1181
38460 msgid "the data (file etc) not being present"
38461 msgstr ""
38462
38463 #. type: textblock
38464 #: ../src/guestfs.pod:1185
38465 msgid "being present but empty"
38466 msgstr ""
38467
38468 #. type: textblock
38469 #: ../src/guestfs.pod:1189
38470 msgid "being much larger than normal"
38471 msgstr ""
38472
38473 #. type: textblock
38474 #: ../src/guestfs.pod:1193
38475 msgid "containing arbitrary 8 bit data"
38476 msgstr ""
38477
38478 #. type: textblock
38479 #: ../src/guestfs.pod:1197
38480 msgid "being in an unexpected character encoding"
38481 msgstr ""
38482
38483 #. type: textblock
38484 #: ../src/guestfs.pod:1201
38485 msgid "containing homoglyphs."
38486 msgstr ""
38487
38488 #. type: =head2
38489 #: ../src/guestfs.pod:1205
38490 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38491 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
38492
38493 #. type: textblock
38494 #: ../src/guestfs.pod:1207
38495 msgid ""
38496 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38497 "(VFS) module can sometimes be escalated into exploits by deliberately "
38498 "creating a malicious, malformed filesystem.  These exploits are very severe "
38499 "for two reasons.  Firstly there are very many filesystem drivers in the "
38500 "kernel, and many of them are infrequently used and not much developer "
38501 "attention has been paid to the code.  Linux userspace helps potential "
38502 "crackers by detecting the filesystem type and automatically choosing the "
38503 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38504 "the administrator.  Secondly, a kernel-level exploit is like a local root "
38505 "exploit (worse in some ways), giving immediate and total access to the "
38506 "system right down to the hardware level."
38507 msgstr ""
38508
38509 #. type: textblock
38510 #: ../src/guestfs.pod:1220
38511 msgid ""
38512 "That explains why you should never mount a filesystem from an untrusted "
38513 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
38514 "inside a qemu virtual machine, usually running as a non-root user.  The "
38515 "attacker would need to write a filesystem which first exploited the kernel, "
38516 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38517 "the libguestfs protocol, and finally to be as serious as the host kernel "
38518 "exploit it would need to escalate its privileges to root.  This multi-step "
38519 "escalation, performed by a static piece of data, is thought to be extremely "
38520 "hard to do, although we never say 'never' about security issues."
38521 msgstr ""
38522
38523 #. type: textblock
38524 #: ../src/guestfs.pod:1231
38525 msgid ""
38526 "In any case callers can reduce the attack surface by forcing the filesystem "
38527 "type when mounting (use L</guestfs_mount_vfs>)."
38528 msgstr ""
38529
38530 #. type: =head2
38531 #: ../src/guestfs.pod:1234
38532 msgid "PROTOCOL SECURITY"
38533 msgstr "ЗАХИСТ ПРОТОКОЛУ"
38534
38535 #. type: textblock
38536 #: ../src/guestfs.pod:1236
38537 msgid ""
38538 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
38539 "defined upper message size.  However a program that uses libguestfs must "
38540 "also take care - for example you can write a program that downloads a binary "
38541 "from a disk image and executes it locally, and no amount of protocol "
38542 "security will save you from the consequences."
38543 msgstr ""
38544
38545 #. type: =head2
38546 #: ../src/guestfs.pod:1242
38547 msgid "INSPECTION SECURITY"
38548 msgstr ""
38549
38550 #. type: textblock
38551 #: ../src/guestfs.pod:1244
38552 msgid ""
38553 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38554 "directly from the guest, and these could contain any 8 bit data.  Callers "
38555 "should be careful to escape these before printing them to a structured file "
38556 "(for example, use HTML escaping if creating a web page)."
38557 msgstr ""
38558
38559 #. type: textblock
38560 #: ../src/guestfs.pod:1250
38561 msgid ""
38562 "Guest configuration may be altered in unusual ways by the administrator of "
38563 "the virtual machine, and may not reflect reality (particularly for untrusted "
38564 "or actively malicious guests).  For example we parse the hostname from "
38565 "configuration files like C</etc/sysconfig/network> that we find in the "
38566 "guest, but the guest administrator can easily manipulate these files to "
38567 "provide the wrong hostname."
38568 msgstr ""
38569
38570 #. type: textblock
38571 #: ../src/guestfs.pod:1258
38572 msgid ""
38573 "The inspection API parses guest configuration using two external libraries: "
38574 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
38575 "designed to be robust in the face of malicious data, although denial of "
38576 "service attacks are still possible, for example with oversized configuration "
38577 "files."
38578 msgstr ""
38579
38580 #. type: =head2
38581 #: ../src/guestfs.pod:1264
38582 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38583 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
38584
38585 #. type: textblock
38586 #: ../src/guestfs.pod:1266
38587 msgid ""
38588 "Be very cautious about running commands from the guest.  By running a "
38589 "command in the guest, you are giving CPU time to a binary that you do not "
38590 "control, under the same user account as the library, albeit wrapped in qemu "
38591 "virtualization.  More information and alternatives can be found in the "
38592 "section L</RUNNING COMMANDS>."
38593 msgstr ""
38594
38595 #. type: =head2
38596 #: ../src/guestfs.pod:1272
38597 msgid "CVE-2010-3851"
38598 msgstr "CVE-2010-3851"
38599
38600 #. type: textblock
38601 #: ../src/guestfs.pod:1274
38602 msgid "https://bugzilla.redhat.com/642934"
38603 msgstr "https://bugzilla.redhat.com/642934"
38604
38605 #. type: textblock
38606 #: ../src/guestfs.pod:1276
38607 msgid ""
38608 "This security bug concerns the automatic disk format detection that qemu "
38609 "does on disk images."
38610 msgstr ""
38611
38612 #. type: textblock
38613 #: ../src/guestfs.pod:1279
38614 msgid ""
38615 "A raw disk image is just the raw bytes, there is no header.  Other disk "
38616 "images like qcow2 contain a special header.  Qemu deals with this by looking "
38617 "for one of the known headers, and if none is found then assuming the disk "
38618 "image must be raw."
38619 msgstr ""
38620
38621 #. type: textblock
38622 #: ../src/guestfs.pod:1284
38623 msgid ""
38624 "This allows a guest which has been given a raw disk image to write some "
38625 "other header.  At next boot (or when the disk image is accessed by "
38626 "libguestfs) qemu would do autodetection and think the disk image format was, "
38627 "say, qcow2 based on the header written by the guest."
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../src/guestfs.pod:1289
38632 msgid ""
38633 "This in itself would not be a problem, but qcow2 offers many features, one "
38634 "of which is to allow a disk image to refer to another image (called the "
38635 "\"backing disk\").  It does this by placing the path to the backing disk "
38636 "into the qcow2 header.  This path is not validated and could point to any "
38637 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
38638 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38639 "control of the attacker."
38640 msgstr ""
38641
38642 #. type: textblock
38643 #: ../src/guestfs.pod:1297
38644 msgid ""
38645 "In libguestfs this is rather hard to exploit except under two circumstances:"
38646 msgstr ""
38647
38648 #. type: textblock
38649 #: ../src/guestfs.pod:1304
38650 msgid "You have enabled the network or have opened the disk in write mode."
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:1308
38655 msgid ""
38656 "You are also running untrusted code from the guest (see L</RUNNING "
38657 "COMMANDS>)."
38658 msgstr ""
38659
38660 #. type: textblock
38661 #: ../src/guestfs.pod:1313
38662 msgid ""
38663 "The way to avoid this is to specify the expected disk format when adding "
38664 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
38665 "should always do this if the disk is raw format, and it's a good idea for "
38666 "other cases too."
38667 msgstr ""
38668
38669 #. type: textblock
38670 #: ../src/guestfs.pod:1318
38671 msgid ""
38672 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38673 "format is fetched from libvirt and passed through."
38674 msgstr ""
38675
38676 #. type: textblock
38677 #: ../src/guestfs.pod:1321
38678 msgid ""
38679 "For libguestfs tools, use the I<--format> command line parameter as "
38680 "appropriate."
38681 msgstr ""
38682
38683 #. type: =head1
38684 #: ../src/guestfs.pod:1324
38685 msgid "CONNECTION MANAGEMENT"
38686 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
38687
38688 #. type: =head2
38689 #: ../src/guestfs.pod:1326
38690 msgid "guestfs_h *"
38691 msgstr "guestfs_h *"
38692
38693 #. type: textblock
38694 #: ../src/guestfs.pod:1328
38695 msgid ""
38696 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38697 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38698 "handle and release all resources used."
38699 msgstr ""
38700
38701 #. type: textblock
38702 #: ../src/guestfs.pod:1332
38703 msgid ""
38704 "For information on using multiple handles and threads, see the section L</"
38705 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38706 msgstr ""
38707
38708 #. type: =head2
38709 #: ../src/guestfs.pod:1335
38710 msgid "guestfs_create"
38711 msgstr "guestfs_create"
38712
38713 #. type: verbatim
38714 #: ../src/guestfs.pod:1337
38715 #, no-wrap
38716 msgid ""
38717 " guestfs_h *guestfs_create (void);\n"
38718 "\n"
38719 msgstr ""
38720 " guestfs_h *guestfs_create (void);\n"
38721 "\n"
38722
38723 #. type: textblock
38724 #: ../src/guestfs.pod:1339
38725 msgid "Create a connection handle."
38726 msgstr "Створити дескриптор з’єднання."
38727
38728 #. type: textblock
38729 #: ../src/guestfs.pod:1341
38730 msgid ""
38731 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38732 "NULL."
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../src/guestfs.pod:1344
38737 msgid ""
38738 "You have to \"configure\" the handle after creating it.  This includes "
38739 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38740 "handle at least once."
38741 msgstr ""
38742
38743 #. type: textblock
38744 #: ../src/guestfs.pod:1348
38745 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38746 msgstr ""
38747
38748 #. type: textblock
38749 #: ../src/guestfs.pod:1350
38750 msgid ""
38751 "You may also want to configure error handling for the handle.  See the L</"
38752 "ERROR HANDLING> section below."
38753 msgstr ""
38754
38755 #. type: =head2
38756 #: ../src/guestfs.pod:1353
38757 msgid "guestfs_close"
38758 msgstr "guestfs_close"
38759
38760 #. type: verbatim
38761 #: ../src/guestfs.pod:1355
38762 #, no-wrap
38763 msgid ""
38764 " void guestfs_close (guestfs_h *g);\n"
38765 "\n"
38766 msgstr ""
38767 " void guestfs_close (guestfs_h *g);\n"
38768 "\n"
38769
38770 #. type: textblock
38771 #: ../src/guestfs.pod:1357
38772 msgid "This closes the connection handle and frees up all resources used."
38773 msgstr ""
38774
38775 #. type: textblock
38776 #: ../src/guestfs.pod:1359
38777 msgid ""
38778 "If autosync was set on the handle and the handle was launched, then this "
38779 "implicitly calls various functions to unmount filesystems and sync the "
38780 "disk.  See L</guestfs_set_autosync> for more details."
38781 msgstr ""
38782
38783 #. type: textblock
38784 #: ../src/guestfs.pod:1363
38785 msgid "If a close callback was set on the handle, then it is called."
38786 msgstr ""
38787
38788 #. type: =head1
38789 #: ../src/guestfs.pod:1365
38790 msgid "ERROR HANDLING"
38791 msgstr "ОБРОБКА ПОМИЛОК"
38792
38793 #. type: textblock
38794 #: ../src/guestfs.pod:1367
38795 msgid ""
38796 "API functions can return errors.  For example, almost all functions that "
38797 "return C<int> will return C<-1> to indicate an error."
38798 msgstr ""
38799
38800 #. type: textblock
38801 #: ../src/guestfs.pod:1370
38802 msgid ""
38803 "Additional information is available for errors: an error message string and "
38804 "optionally an error number (errno) if the thing that failed was a system "
38805 "call."
38806 msgstr ""
38807
38808 #. type: textblock
38809 #: ../src/guestfs.pod:1374
38810 msgid ""
38811 "You can get at the additional information about the last error on the handle "
38812 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38813 "up an error handler with L</guestfs_set_error_handler>."
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:1379
38818 msgid ""
38819 "When the handle is created, a default error handler is installed which "
38820 "prints the error message string to C<stderr>.  For small short-running "
38821 "command line programs it is sufficient to do:"
38822 msgstr ""
38823
38824 #. type: verbatim
38825 #: ../src/guestfs.pod:1383
38826 #, no-wrap
38827 msgid ""
38828 " if (guestfs_launch (g) == -1)\n"
38829 "   exit (EXIT_FAILURE);\n"
38830 "\n"
38831 msgstr ""
38832 " if (guestfs_launch (g) == -1)\n"
38833 "   exit (EXIT_FAILURE);\n"
38834 "\n"
38835
38836 #. type: textblock
38837 #: ../src/guestfs.pod:1386
38838 msgid ""
38839 "since the default error handler will ensure that an error message has been "
38840 "printed to C<stderr> before the program exits."
38841 msgstr ""
38842
38843 #. type: textblock
38844 #: ../src/guestfs.pod:1389
38845 msgid ""
38846 "For other programs the caller will almost certainly want to install an "
38847 "alternate error handler or do error handling in-line like this:"
38848 msgstr ""
38849
38850 #. type: verbatim
38851 #: ../src/guestfs.pod:1392
38852 #, no-wrap
38853 msgid ""
38854 " /* This disables the default behaviour of printing errors\n"
38855 "    on stderr. */\n"
38856 " guestfs_set_error_handler (g, NULL, NULL);\n"
38857 " \n"
38858 msgstr ""
38859
38860 #. type: verbatim
38861 #: ../src/guestfs.pod:1396
38862 #, no-wrap
38863 msgid ""
38864 " if (guestfs_launch (g) == -1) {\n"
38865 "   /* Examine the error message and print it etc. */\n"
38866 "   char *msg = guestfs_last_error (g);\n"
38867 "   int errnum = guestfs_last_errno (g);\n"
38868 "   fprintf (stderr, \"%s\", msg);\n"
38869 "   if (errnum != 0)\n"
38870 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38871 "   fprintf (stderr, \"\\n\");\n"
38872 "   /* ... */\n"
38873 " }\n"
38874 "\n"
38875 msgstr ""
38876
38877 #. type: textblock
38878 #: ../src/guestfs.pod:1407
38879 msgid ""
38880 "Out of memory errors are handled differently.  The default action is to call "
38881 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38882 "guestfs_set_out_of_memory_handler>."
38883 msgstr ""
38884
38885 #. type: textblock
38886 #: ../src/guestfs.pod:1411
38887 msgid ""
38888 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38889 "because there is no handle if this happens there is no way to get additional "
38890 "error information.  However L</guestfs_create> is supposed to be a "
38891 "lightweight operation which can only fail because of insufficient memory (it "
38892 "returns NULL in this case)."
38893 msgstr ""
38894
38895 #. type: =head2
38896 #: ../src/guestfs.pod:1417
38897 msgid "guestfs_last_error"
38898 msgstr "guestfs_last_error"
38899
38900 #. type: verbatim
38901 #: ../src/guestfs.pod:1419
38902 #, no-wrap
38903 msgid ""
38904 " const char *guestfs_last_error (guestfs_h *g);\n"
38905 "\n"
38906 msgstr ""
38907 " const char *guestfs_last_error (guestfs_h *g);\n"
38908 "\n"
38909
38910 #. type: textblock
38911 #: ../src/guestfs.pod:1421
38912 msgid ""
38913 "This returns the last error message that happened on C<g>.  If there has not "
38914 "been an error since the handle was created, then this returns C<NULL>."
38915 msgstr ""
38916
38917 #. type: textblock
38918 #: ../src/guestfs.pod:1425
38919 msgid ""
38920 "The lifetime of the returned string is until the next error occurs, or L</"
38921 "guestfs_close> is called."
38922 msgstr ""
38923
38924 #. type: =head2
38925 #: ../src/guestfs.pod:1428
38926 msgid "guestfs_last_errno"
38927 msgstr "guestfs_last_errno"
38928
38929 #. type: verbatim
38930 #: ../src/guestfs.pod:1430
38931 #, no-wrap
38932 msgid ""
38933 " int guestfs_last_errno (guestfs_h *g);\n"
38934 "\n"
38935 msgstr ""
38936 " int guestfs_last_errno (guestfs_h *g);\n"
38937 "\n"
38938
38939 #. type: textblock
38940 #: ../src/guestfs.pod:1432
38941 msgid "This returns the last error number (errno) that happened on C<g>."
38942 msgstr ""
38943
38944 #. type: textblock
38945 #: ../src/guestfs.pod:1434
38946 msgid "If successful, an errno integer not equal to zero is returned."
38947 msgstr ""
38948
38949 #. type: textblock
38950 #: ../src/guestfs.pod:1436
38951 msgid ""
38952 "If no error, this returns 0.  This call can return 0 in three situations:"
38953 msgstr ""
38954
38955 #. type: textblock
38956 #: ../src/guestfs.pod:1443
38957 msgid "There has not been any error on the handle."
38958 msgstr ""
38959
38960 #. type: textblock
38961 #: ../src/guestfs.pod:1447
38962 msgid ""
38963 "There has been an error but the errno was meaningless.  This corresponds to "
38964 "the case where the error did not come from a failed system call, but for "
38965 "some other reason."
38966 msgstr ""
38967
38968 #. type: textblock
38969 #: ../src/guestfs.pod:1453
38970 msgid ""
38971 "There was an error from a failed system call, but for some reason the errno "
38972 "was not captured and returned.  This usually indicates a bug in libguestfs."
38973 msgstr ""
38974
38975 #. type: textblock
38976 #: ../src/guestfs.pod:1459
38977 msgid ""
38978 "Libguestfs tries to convert the errno from inside the applicance into a "
38979 "corresponding errno for the caller (not entirely trivial: the appliance "
38980 "might be running a completely different operating system from the library "
38981 "and error numbers are not standardized across Un*xen).  If this could not be "
38982 "done, then the error is translated to C<EINVAL>.  In practice this should "
38983 "only happen in very rare circumstances."
38984 msgstr ""
38985
38986 #. type: =head2
38987 #: ../src/guestfs.pod:1467
38988 msgid "guestfs_set_error_handler"
38989 msgstr "guestfs_set_error_handler"
38990
38991 #. type: verbatim
38992 #: ../src/guestfs.pod:1469
38993 #, no-wrap
38994 msgid ""
38995 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38996 "                                           void *opaque,\n"
38997 "                                           const char *msg);\n"
38998 " void guestfs_set_error_handler (guestfs_h *g,\n"
38999 "                                 guestfs_error_handler_cb cb,\n"
39000 "                                 void *opaque);\n"
39001 "\n"
39002 msgstr ""
39003 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39004 "                                           void *opaque,\n"
39005 "                                           const char *msg);\n"
39006 " void guestfs_set_error_handler (guestfs_h *g,\n"
39007 "                                 guestfs_error_handler_cb cb,\n"
39008 "                                 void *opaque);\n"
39009 "\n"
39010
39011 #. type: textblock
39012 #: ../src/guestfs.pod:1476
39013 msgid ""
39014 "The callback C<cb> will be called if there is an error.  The parameters "
39015 "passed to the callback are an opaque data pointer and the error message "
39016 "string."
39017 msgstr ""
39018
39019 #. type: textblock
39020 #: ../src/guestfs.pod:1480
39021 msgid ""
39022 "C<errno> is not passed to the callback.  To get that the callback must call "
39023 "L</guestfs_last_errno>."
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../src/guestfs.pod:1483
39028 msgid ""
39029 "Note that the message string C<msg> is freed as soon as the callback "
39030 "function returns, so if you want to stash it somewhere you must make your "
39031 "own copy."
39032 msgstr ""
39033
39034 #. type: textblock
39035 #: ../src/guestfs.pod:1487
39036 msgid "The default handler prints messages on C<stderr>."
39037 msgstr ""
39038
39039 #. type: textblock
39040 #: ../src/guestfs.pod:1489
39041 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
39042 msgstr ""
39043
39044 #. type: =head2
39045 #: ../src/guestfs.pod:1491
39046 msgid "guestfs_get_error_handler"
39047 msgstr "guestfs_get_error_handler"
39048
39049 #. type: verbatim
39050 #: ../src/guestfs.pod:1493
39051 #, no-wrap
39052 msgid ""
39053 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39054 "                                                     void **opaque_rtn);\n"
39055 "\n"
39056 msgstr ""
39057 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39058 "                                                     void **opaque_rtn);\n"
39059 "\n"
39060
39061 #. type: textblock
39062 #: ../src/guestfs.pod:1496
39063 msgid "Returns the current error handler callback."
39064 msgstr ""
39065
39066 #. type: =head2
39067 #: ../src/guestfs.pod:1498
39068 msgid "guestfs_set_out_of_memory_handler"
39069 msgstr "guestfs_set_out_of_memory_handler"
39070
39071 #. type: verbatim
39072 #: ../src/guestfs.pod:1500
39073 #, no-wrap
39074 msgid ""
39075 " typedef void (*guestfs_abort_cb) (void);\n"
39076 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
39077 "                                         guestfs_abort_cb);\n"
39078 "\n"
39079 msgstr ""
39080
39081 #. type: textblock
39082 #: ../src/guestfs.pod:1504
39083 msgid ""
39084 "The callback C<cb> will be called if there is an out of memory situation.  "
39085 "I<Note this callback must not return>."
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../src/guestfs.pod:1507
39090 msgid "The default is to call L<abort(3)>."
39091 msgstr ""
39092
39093 #. type: textblock
39094 #: ../src/guestfs.pod:1509
39095 msgid ""
39096 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
39097 msgstr ""
39098
39099 #. type: =head2
39100 #: ../src/guestfs.pod:1512
39101 msgid "guestfs_get_out_of_memory_handler"
39102 msgstr "guestfs_get_out_of_memory_handler"
39103
39104 #. type: verbatim
39105 #: ../src/guestfs.pod:1514
39106 #, no-wrap
39107 msgid ""
39108 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39109 "\n"
39110 msgstr ""
39111 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39112 "\n"
39113
39114 #. type: textblock
39115 #: ../src/guestfs.pod:1516
39116 msgid "This returns the current out of memory handler."
39117 msgstr ""
39118
39119 #. type: =head1
39120 #: ../src/guestfs.pod:1518
39121 msgid "API CALLS"
39122 msgstr "ВИКЛИКИ API"
39123
39124 #. type: =head1
39125 #: ../src/guestfs.pod:1522
39126 msgid "STRUCTURES"
39127 msgstr "СТРУКТУРИ"
39128
39129 #. type: textblock
39130 #: ../src/guestfs.pod:1524
39131 msgid "@STRUCTS@"
39132 msgstr "@STRUCTS@"
39133
39134 #. type: =head1
39135 #: ../src/guestfs.pod:1526
39136 msgid "AVAILABILITY"
39137 msgstr "ДОСТУПНІСТЬ"
39138
39139 #. type: =head2
39140 #: ../src/guestfs.pod:1528
39141 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
39142 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
39143
39144 #. type: textblock
39145 #: ../src/guestfs.pod:1530
39146 msgid ""
39147 "Using L</guestfs_available> you can test availability of the following "
39148 "groups of functions.  This test queries the appliance to see if the "
39149 "appliance you are currently using supports the functionality."
39150 msgstr ""
39151
39152 #. type: textblock
39153 #: ../src/guestfs.pod:1535
39154 msgid "@AVAILABILITY@"
39155 msgstr "@AVAILABILITY@"
39156
39157 #. type: =head2
39158 #: ../src/guestfs.pod:1537
39159 msgid "GUESTFISH supported COMMAND"
39160 msgstr ""
39161
39162 #. type: textblock
39163 #: ../src/guestfs.pod:1539
39164 msgid ""
39165 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
39166 "prints out the available groups and whether they are supported by this build "
39167 "of libguestfs.  Note however that you have to do C<run> first."
39168 msgstr ""
39169
39170 #. type: =head2
39171 #: ../src/guestfs.pod:1544
39172 msgid "SINGLE CALLS AT COMPILE TIME"
39173 msgstr ""
39174
39175 #. type: textblock
39176 #: ../src/guestfs.pod:1546
39177 msgid ""
39178 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
39179 "function, such as:"
39180 msgstr ""
39181
39182 #. type: verbatim
39183 #: ../src/guestfs.pod:1549
39184 #, no-wrap
39185 msgid ""
39186 " #define LIBGUESTFS_HAVE_DD 1\n"
39187 "\n"
39188 msgstr ""
39189 " #define LIBGUESTFS_HAVE_DD 1\n"
39190 "\n"
39191
39192 #. type: textblock
39193 #: ../src/guestfs.pod:1551
39194 msgid "if L</guestfs_dd> is available."
39195 msgstr ""
39196
39197 #. type: textblock
39198 #: ../src/guestfs.pod:1553
39199 msgid ""
39200 "Before version 1.5.8, if you needed to test whether a single libguestfs "
39201 "function is available at compile time, we recommended using build tools such "
39202 "as autoconf or cmake.  For example in autotools you could use:"
39203 msgstr ""
39204
39205 #. type: verbatim
39206 #: ../src/guestfs.pod:1558
39207 #, no-wrap
39208 msgid ""
39209 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39210 " AC_CHECK_FUNCS([guestfs_dd])\n"
39211 "\n"
39212 msgstr ""
39213 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39214 " AC_CHECK_FUNCS([guestfs_dd])\n"
39215 "\n"
39216
39217 #. type: textblock
39218 #: ../src/guestfs.pod:1561
39219 msgid ""
39220 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
39221 "in your program."
39222 msgstr ""
39223
39224 #. type: =head2
39225 #: ../src/guestfs.pod:1564
39226 msgid "SINGLE CALLS AT RUN TIME"
39227 msgstr ""
39228
39229 #. type: textblock
39230 #: ../src/guestfs.pod:1566
39231 msgid ""
39232 "Testing at compile time doesn't guarantee that a function really exists in "
39233 "the library.  The reason is that you might be dynamically linked against a "
39234 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
39235 "This situation unfortunately results in a segmentation fault, which is a "
39236 "shortcoming of the C dynamic linking system itself."
39237 msgstr ""
39238
39239 #. type: textblock
39240 #: ../src/guestfs.pod:1573
39241 msgid ""
39242 "You can use L<dlopen(3)> to test if a function is available at run time, as "
39243 "in this example program (note that you still need the compile time check as "
39244 "well):"
39245 msgstr ""
39246
39247 #. type: verbatim
39248 #: ../src/guestfs.pod:1577
39249 #, no-wrap
39250 msgid ""
39251 " #include <stdio.h>\n"
39252 " #include <stdlib.h>\n"
39253 " #include <unistd.h>\n"
39254 " #include <dlfcn.h>\n"
39255 " #include <guestfs.h>\n"
39256 " \n"
39257 msgstr ""
39258 " #include <stdio.h>\n"
39259 " #include <stdlib.h>\n"
39260 " #include <unistd.h>\n"
39261 " #include <dlfcn.h>\n"
39262 " #include <guestfs.h>\n"
39263 " \n"
39264
39265 #. type: verbatim
39266 #: ../src/guestfs.pod:1583
39267 #, no-wrap
39268 msgid ""
39269 " main ()\n"
39270 " {\n"
39271 " #ifdef LIBGUESTFS_HAVE_DD\n"
39272 "   void *dl;\n"
39273 "   int has_function;\n"
39274 " \n"
39275 msgstr ""
39276 " main ()\n"
39277 " {\n"
39278 " #ifdef LIBGUESTFS_HAVE_DD\n"
39279 "   void *dl;\n"
39280 "   int has_function;\n"
39281 " \n"
39282
39283 #. type: verbatim
39284 #: ../src/guestfs.pod:1589
39285 #, no-wrap
39286 msgid ""
39287 "   /* Test if the function guestfs_dd is really available. */\n"
39288 "   dl = dlopen (NULL, RTLD_LAZY);\n"
39289 "   if (!dl) {\n"
39290 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
39291 "     exit (EXIT_FAILURE);\n"
39292 "   }\n"
39293 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
39294 "   dlclose (dl);\n"
39295 " \n"
39296 msgstr ""
39297
39298 #. type: verbatim
39299 #: ../src/guestfs.pod:1598
39300 #, no-wrap
39301 msgid ""
39302 "   if (!has_function)\n"
39303 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
39304 "   else {\n"
39305 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
39306 "     /* Now it's safe to call\n"
39307 "     guestfs_dd (g, \"foo\", \"bar\");\n"
39308 "     */\n"
39309 "   }\n"
39310 " #else\n"
39311 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
39312 " #endif\n"
39313 "  }\n"
39314 "\n"
39315 msgstr ""
39316
39317 #. type: textblock
39318 #: ../src/guestfs.pod:1611
39319 msgid ""
39320 "You may think the above is an awful lot of hassle, and it is.  There are "
39321 "other ways outside of the C linking system to ensure that this kind of "
39322 "incompatibility never arises, such as using package versioning:"
39323 msgstr ""
39324
39325 #. type: verbatim
39326 #: ../src/guestfs.pod:1616
39327 #, no-wrap
39328 msgid ""
39329 " Requires: libguestfs >= 1.0.80\n"
39330 "\n"
39331 msgstr ""
39332
39333 #. type: =head1
39334 #: ../src/guestfs.pod:1618
39335 msgid "CALLS WITH OPTIONAL ARGUMENTS"
39336 msgstr ""
39337
39338 #. type: textblock
39339 #: ../src/guestfs.pod:1620
39340 msgid ""
39341 "A recent feature of the API is the introduction of calls which take optional "
39342 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
39343 "takes variable arguments (ie. C<...>), as in this example:"
39344 msgstr ""
39345
39346 #. type: verbatim
39347 #: ../src/guestfs.pod:1625
39348 #, no-wrap
39349 msgid ""
39350 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39351 "\n"
39352 msgstr ""
39353 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39354 "\n"
39355
39356 #. type: textblock
39357 #: ../src/guestfs.pod:1627
39358 msgid ""
39359 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
39360 "call with no optional arguments specified:"
39361 msgstr ""
39362
39363 #. type: verbatim
39364 #: ../src/guestfs.pod:1630
39365 #, no-wrap
39366 msgid ""
39367 " guestfs_add_drive_opts (g, filename, -1);\n"
39368 "\n"
39369 msgstr ""
39370 " guestfs_add_drive_opts (g, filename, -1);\n"
39371 "\n"
39372
39373 #. type: textblock
39374 #: ../src/guestfs.pod:1632
39375 msgid "With a single optional argument:"
39376 msgstr ""
39377
39378 #. type: verbatim
39379 #: ../src/guestfs.pod:1634
39380 #, no-wrap
39381 msgid ""
39382 " guestfs_add_drive_opts (g, filename,\n"
39383 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39384 "                         -1);\n"
39385 "\n"
39386 msgstr ""
39387 " guestfs_add_drive_opts (g, filename,\n"
39388 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39389 "                         -1);\n"
39390 "\n"
39391
39392 #. type: textblock
39393 #: ../src/guestfs.pod:1638
39394 msgid "With two:"
39395 msgstr ""
39396
39397 #. type: verbatim
39398 #: ../src/guestfs.pod:1640
39399 #, no-wrap
39400 msgid ""
39401 " guestfs_add_drive_opts (g, filename,\n"
39402 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39403 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39404 "                         -1);\n"
39405 "\n"
39406 msgstr ""
39407 " guestfs_add_drive_opts (g, filename,\n"
39408 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39409 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39410 "                         -1);\n"
39411 "\n"
39412
39413 #. type: textblock
39414 #: ../src/guestfs.pod:1645
39415 msgid ""
39416 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
39417 "happen!"
39418 msgstr ""
39419
39420 #. type: =head2
39421 #: ../src/guestfs.pod:1648
39422 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
39423 msgstr ""
39424
39425 #. type: textblock
39426 #: ../src/guestfs.pod:1650
39427 msgid ""
39428 "The second variant has the same name with the suffix C<_va>, which works the "
39429 "same way but takes a C<va_list>.  See the C manual for details.  For the "
39430 "example function, this is declared:"
39431 msgstr ""
39432
39433 #. type: verbatim
39434 #: ../src/guestfs.pod:1654
39435 #, no-wrap
39436 msgid ""
39437 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39438 "                                va_list args);\n"
39439 "\n"
39440 msgstr ""
39441 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39442 "                                va_list args);\n"
39443 "\n"
39444
39445 #. type: =head2
39446 #: ../src/guestfs.pod:1657
39447 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
39448 msgstr ""
39449
39450 #. type: textblock
39451 #: ../src/guestfs.pod:1659
39452 msgid ""
39453 "The third variant is useful where you need to construct these calls.  You "
39454 "pass in a structure where you fill in the optional fields.  The structure "
39455 "has a bitmask as the first element which you must set to indicate which "
39456 "fields you have filled in.  For our example function the structure and call "
39457 "are declared:"
39458 msgstr ""
39459
39460 #. type: verbatim
39461 #: ../src/guestfs.pod:1665
39462 #, no-wrap
39463 msgid ""
39464 " struct guestfs_add_drive_opts_argv {\n"
39465 "   uint64_t bitmask;\n"
39466 "   int readonly;\n"
39467 "   const char *format;\n"
39468 "   /* ... */\n"
39469 " };\n"
39470 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39471 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
39472 "\n"
39473 msgstr ""
39474 " struct guestfs_add_drive_opts_argv {\n"
39475 "   uint64_t bitmask;\n"
39476 "   int readonly;\n"
39477 "   const char *format;\n"
39478 "   /* ... */\n"
39479 " };\n"
39480 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39481 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
39482 "\n"
39483
39484 #. type: textblock
39485 #: ../src/guestfs.pod:1674
39486 msgid "You could call it like this:"
39487 msgstr ""
39488
39489 #. type: verbatim
39490 #: ../src/guestfs.pod:1676
39491 #, no-wrap
39492 msgid ""
39493 " struct guestfs_add_drive_opts_argv optargs = {\n"
39494 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39495 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39496 "   .readonly = 1,\n"
39497 "   .format = \"qcow2\"\n"
39498 " };\n"
39499 " \n"
39500 msgstr ""
39501 " struct guestfs_add_drive_opts_argv optargs = {\n"
39502 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39503 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39504 "   .readonly = 1,\n"
39505 "   .format = \"qcow2\"\n"
39506 " };\n"
39507 " \n"
39508
39509 #. type: verbatim
39510 #: ../src/guestfs.pod:1683
39511 #, no-wrap
39512 msgid ""
39513 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39514 "\n"
39515 msgstr ""
39516 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39517 "\n"
39518
39519 #. type: textblock
39520 #: ../src/guestfs.pod:1691
39521 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
39522 msgstr ""
39523
39524 #. type: textblock
39525 #: ../src/guestfs.pod:1696
39526 msgid "You do not need to fill in all fields of the structure."
39527 msgstr ""
39528
39529 #. type: textblock
39530 #: ../src/guestfs.pod:1700
39531 msgid ""
39532 "There must be a one-to-one correspondence between fields of the structure "
39533 "that are filled in, and bits set in the bitmask."
39534 msgstr ""
39535
39536 #. type: =head2
39537 #: ../src/guestfs.pod:1705
39538 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
39539 msgstr ""
39540
39541 #. type: textblock
39542 #: ../src/guestfs.pod:1707
39543 msgid ""
39544 "In other languages, optional arguments are expressed in the way that is "
39545 "natural for that language.  We refer you to the language-specific "
39546 "documentation for more details on that."
39547 msgstr ""
39548
39549 #. type: textblock
39550 #: ../src/guestfs.pod:1711
39551 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39552 msgstr ""
39553
39554 #. type: =head2
39555 #: ../src/guestfs.pod:1713
39556 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39557 msgstr ""
39558
39559 #. type: textblock
39560 #: ../src/guestfs.pod:1715
39561 msgid ""
39562 "B<Note:> This section documents the generic event mechanism introduced in "
39563 "libguestfs 1.10, which you should use in new code if possible.  The old "
39564 "functions C<guestfs_set_log_message_callback>, "
39565 "C<guestfs_set_subprocess_quit_callback>, "
39566 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39567 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39568 "page.  Because of the ABI guarantee, the old functions continue to work."
39569 msgstr ""
39570
39571 #. type: textblock
39572 #: ../src/guestfs.pod:1724
39573 msgid ""
39574 "Handles generate events when certain things happen, such as log messages "
39575 "being generated, progress messages during long-running operations, or the "
39576 "handle being closed.  The API calls described below let you register a "
39577 "callback to be called when events happen.  You can register multiple "
39578 "callbacks (for the same, different or overlapping sets of events), and "
39579 "individually remove callbacks.  If callbacks are not removed, then they "
39580 "remain in force until the handle is closed."
39581 msgstr ""
39582
39583 #. type: textblock
39584 #: ../src/guestfs.pod:1732
39585 msgid ""
39586 "In the current implementation, events are only generated synchronously: that "
39587 "means that events (and hence callbacks) can only happen while you are in the "
39588 "middle of making another libguestfs call.  The callback is called in the "
39589 "same thread."
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../src/guestfs.pod:1737
39594 msgid ""
39595 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39596 "unsigned integers, or a message buffer.  Payloads are discussed later on."
39597 msgstr ""
39598
39599 #. type: =head3
39600 #: ../src/guestfs.pod:1741
39601 msgid "CLASSES OF EVENTS"
39602 msgstr ""
39603
39604 #. type: =item
39605 #: ../src/guestfs.pod:1745
39606 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39607 msgstr ""
39608
39609 #. type: textblock
39610 #: ../src/guestfs.pod:1748
39611 msgid ""
39612 "The callback function will be called while the handle is being closed "
39613 "(synchronously from L</guestfs_close>)."
39614 msgstr ""
39615
39616 #. type: textblock
39617 #: ../src/guestfs.pod:1751
39618 msgid ""
39619 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39620 "handles that are open when the program exits.  This means that this callback "
39621 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39622 "problems in higher-level languages (eg. if your HLL interpreter has already "
39623 "been cleaned up by the time this is called, and if your callback then jumps "
39624 "into some HLL function)."
39625 msgstr ""
39626
39627 #. type: textblock
39628 #: ../src/guestfs.pod:1758
39629 msgid ""
39630 "If no callback is registered: the handle is closed without any callback "
39631 "being invoked."
39632 msgstr ""
39633
39634 #. type: =item
39635 #: ../src/guestfs.pod:1761
39636 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39637 msgstr ""
39638
39639 #. type: textblock
39640 #: ../src/guestfs.pod:1764
39641 msgid ""
39642 "The callback function will be called when the child process quits, either "
39643 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
39644 "corresponds to a transition from any state to the CONFIG state)."
39645 msgstr ""
39646
39647 #. type: textblock
39648 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39649 msgid "If no callback is registered: the event is ignored."
39650 msgstr ""
39651
39652 #. type: =item
39653 #: ../src/guestfs.pod:1770
39654 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39655 msgstr ""
39656
39657 #. type: textblock
39658 #: ../src/guestfs.pod:1773
39659 msgid ""
39660 "The callback function will be called when the child process becomes ready "
39661 "first time after it has been launched.  (This corresponds to a transition "
39662 "from LAUNCHING to the READY state)."
39663 msgstr ""
39664
39665 #. type: =item
39666 #: ../src/guestfs.pod:1779
39667 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39668 msgstr ""
39669
39670 #. type: textblock
39671 #: ../src/guestfs.pod:1782
39672 msgid ""
39673 "Some long-running operations can generate progress messages.  If this "
39674 "callback is registered, then it will be called each time a progress message "
39675 "is generated (usually two seconds after the operation started, and three "
39676 "times per second thereafter until it completes, although the frequency may "
39677 "change in future versions)."
39678 msgstr ""
39679
39680 #. type: textblock
39681 #: ../src/guestfs.pod:1788
39682 msgid ""
39683 "The callback receives in the payload four unsigned 64 bit numbers which are "
39684 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39685 msgstr ""
39686
39687 #. type: textblock
39688 #: ../src/guestfs.pod:1791
39689 msgid ""
39690 "The units of C<total> are not defined, although for some operations C<total> "
39691 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39692 "or megabytes), and C<position> may be the portion which has been transferred."
39693 msgstr ""
39694
39695 #. type: textblock
39696 #: ../src/guestfs.pod:1796
39697 msgid "The only defined and stable parts of the API are:"
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../src/guestfs.pod:1802
39702 msgid ""
39703 "The callback can display to the user some type of progress bar or indicator "
39704 "which shows the ratio of C<position>:C<total>."
39705 msgstr ""
39706
39707 #. type: textblock
39708 #: ../src/guestfs.pod:1807
39709 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39710 msgstr ""
39711
39712 #. type: textblock
39713 #: ../src/guestfs.pod:1811
39714 msgid ""
39715 "If any progress notification is sent during a call, then a final progress "
39716 "notification is always sent when C<position> = C<total> (I<unless> the call "
39717 "fails with an error)."
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../src/guestfs.pod:1815
39722 msgid ""
39723 "This is to simplify caller code, so callers can easily set the progress "
39724 "indicator to \"100%\" at the end of the operation, without requiring special "
39725 "code to detect this case."
39726 msgstr ""
39727
39728 #. type: textblock
39729 #: ../src/guestfs.pod:1821
39730 msgid ""
39731 "For some calls we are unable to estimate the progress of the call, but we "
39732 "can still generate progress messages to indicate activity.  This is known as "
39733 "\"pulse mode\", and is directly supported by certain progress bar "
39734 "implementations (eg. GtkProgressBar)."
39735 msgstr ""
39736
39737 #. type: textblock
39738 #: ../src/guestfs.pod:1826
39739 msgid ""
39740 "For these calls, zero or more progress messages are generated with "
39741 "C<position = 0> and C<total = 1>, followed by a final message with "
39742 "C<position = total = 1>."
39743 msgstr ""
39744
39745 #. type: textblock
39746 #: ../src/guestfs.pod:1830
39747 msgid ""
39748 "As noted above, if the call fails with an error then the final message may "
39749 "not be generated."
39750 msgstr ""
39751
39752 #. type: textblock
39753 #: ../src/guestfs.pod:1835
39754 msgid ""
39755 "The callback also receives the procedure number (C<proc_nr>) and serial "
39756 "number (C<serial>) of the call.  These are only useful for debugging "
39757 "protocol issues, and the callback can normally ignore them.  The callback "
39758 "may want to print these numbers in error messages or debugging messages."
39759 msgstr ""
39760
39761 #. type: textblock
39762 #: ../src/guestfs.pod:1841
39763 msgid "If no callback is registered: progress messages are discarded."
39764 msgstr ""
39765
39766 #. type: =item
39767 #: ../src/guestfs.pod:1843
39768 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39769 msgstr ""
39770
39771 #. type: textblock
39772 #: ../src/guestfs.pod:1846
39773 msgid ""
39774 "The callback function is called whenever a log message is generated by qemu, "
39775 "the appliance kernel, guestfsd (daemon), or utility programs."
39776 msgstr ""
39777
39778 #. type: textblock
39779 #: ../src/guestfs.pod:1849
39780 msgid ""
39781 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39782 "guestfs_launch>) then additional debug messages are generated."
39783 msgstr ""
39784
39785 #. type: textblock
39786 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39787 msgid ""
39788 "If no callback is registered: the messages are discarded unless the verbose "
39789 "flag is set in which case they are sent to stderr.  You can override the "
39790 "printing of verbose messages to stderr by setting up a callback."
39791 msgstr ""
39792
39793 #. type: =item
39794 #: ../src/guestfs.pod:1857
39795 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39796 msgstr ""
39797
39798 #. type: textblock
39799 #: ../src/guestfs.pod:1860
39800 msgid ""
39801 "The callback function is called whenever a log message is generated by the "
39802 "library part of libguestfs."
39803 msgstr ""
39804
39805 #. type: textblock
39806 #: ../src/guestfs.pod:1863
39807 msgid ""
39808 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39809 "messages are generated."
39810 msgstr ""
39811
39812 #. type: =item
39813 #: ../src/guestfs.pod:1871
39814 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39815 msgstr ""
39816
39817 #. type: textblock
39818 #: ../src/guestfs.pod:1874
39819 msgid ""
39820 "The callback function is called whenever a trace message is generated.  This "
39821 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39822 msgstr ""
39823
39824 #. type: textblock
39825 #: ../src/guestfs.pod:1877
39826 msgid ""
39827 "If no callback is registered: the messages are sent to stderr.  You can "
39828 "override the printing of trace messages to stderr by setting up a callback."
39829 msgstr ""
39830
39831 #. type: =item
39832 #: ../src/guestfs.pod:1881
39833 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39834 msgstr ""
39835
39836 #. type: textblock
39837 #: ../src/guestfs.pod:1884
39838 msgid ""
39839 "The callback function is called whenever a libguestfs function is entered."
39840 msgstr ""
39841
39842 #. type: textblock
39843 #: ../src/guestfs.pod:1887
39844 msgid ""
39845 "The payload is a string which contains the name of the function that we are "
39846 "entering (not including C<guestfs_> prefix)."
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../src/guestfs.pod:1890
39851 msgid ""
39852 "Note that libguestfs functions can call themselves, so you may see many "
39853 "events from a single call.  A few libguestfs functions do not generate this "
39854 "event."
39855 msgstr ""
39856
39857 #. type: =head3
39858 #: ../src/guestfs.pod:1898
39859 msgid "guestfs_set_event_callback"
39860 msgstr ""
39861
39862 #. type: verbatim
39863 #: ../src/guestfs.pod:1900
39864 #, no-wrap
39865 msgid ""
39866 " int guestfs_set_event_callback (guestfs_h *g,\n"
39867 "                                 guestfs_event_callback cb,\n"
39868 "                                 uint64_t event_bitmask,\n"
39869 "                                 int flags,\n"
39870 "                                 void *opaque);\n"
39871 "\n"
39872 msgstr ""
39873
39874 #. type: textblock
39875 #: ../src/guestfs.pod:1906
39876 msgid ""
39877 "This function registers a callback (C<cb>) for all event classes in the "
39878 "C<event_bitmask>."
39879 msgstr ""
39880
39881 #. type: textblock
39882 #: ../src/guestfs.pod:1909
39883 msgid ""
39884 "For example, to register for all log message events, you could call this "
39885 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39886 "To register a single callback for all possible classes of events, use "
39887 "C<GUESTFS_EVENT_ALL>."
39888 msgstr ""
39889
39890 #. type: textblock
39891 #: ../src/guestfs.pod:1915
39892 msgid "C<flags> should always be passed as 0."
39893 msgstr ""
39894
39895 #. type: textblock
39896 #: ../src/guestfs.pod:1917
39897 msgid ""
39898 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39899 "it for any purpose."
39900 msgstr ""
39901
39902 #. type: textblock
39903 #: ../src/guestfs.pod:1920
39904 msgid ""
39905 "The return value is the event handle (an integer) which you can use to "
39906 "delete the callback (see below)."
39907 msgstr ""
39908
39909 #. type: textblock
39910 #: ../src/guestfs.pod:1923
39911 msgid ""
39912 "If there is an error, this function returns C<-1>, and sets the error in the "
39913 "handle in the usual way (see L</guestfs_last_error> etc.)"
39914 msgstr ""
39915
39916 #. type: textblock
39917 #: ../src/guestfs.pod:1926
39918 msgid ""
39919 "Callbacks remain in effect until they are deleted, or until the handle is "
39920 "closed."
39921 msgstr ""
39922
39923 #. type: textblock
39924 #: ../src/guestfs.pod:1929
39925 msgid ""
39926 "In the case where multiple callbacks are registered for a particular event "
39927 "class, all of the callbacks are called.  The order in which multiple "
39928 "callbacks are called is not defined."
39929 msgstr ""
39930
39931 #. type: =head3
39932 #: ../src/guestfs.pod:1933
39933 msgid "guestfs_delete_event_callback"
39934 msgstr ""
39935
39936 #. type: verbatim
39937 #: ../src/guestfs.pod:1935
39938 #, no-wrap
39939 msgid ""
39940 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39941 "\n"
39942 msgstr ""
39943
39944 #. type: textblock
39945 #: ../src/guestfs.pod:1937
39946 msgid ""
39947 "Delete a callback that was previously registered.  C<event_handle> should be "
39948 "the integer that was returned by a previous call to "
39949 "C<guestfs_set_event_callback> on the same handle."
39950 msgstr ""
39951
39952 #. type: =head3
39953 #: ../src/guestfs.pod:1941
39954 msgid "guestfs_event_callback"
39955 msgstr ""
39956
39957 #. type: verbatim
39958 #: ../src/guestfs.pod:1943
39959 #, no-wrap
39960 msgid ""
39961 " typedef void (*guestfs_event_callback) (\n"
39962 "                  guestfs_h *g,\n"
39963 "                  void *opaque,\n"
39964 "                  uint64_t event,\n"
39965 "                  int event_handle,\n"
39966 "                  int flags,\n"
39967 "                  const char *buf, size_t buf_len,\n"
39968 "                  const uint64_t *array, size_t array_len);\n"
39969 "\n"
39970 msgstr ""
39971
39972 #. type: textblock
39973 #: ../src/guestfs.pod:1952
39974 msgid ""
39975 "This is the type of the event callback function that you have to provide."
39976 msgstr ""
39977
39978 #. type: textblock
39979 #: ../src/guestfs.pod:1955
39980 msgid ""
39981 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39982 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39983 "handle, and C<flags> which in the current API you should ignore."
39984 msgstr ""
39985
39986 #. type: textblock
39987 #: ../src/guestfs.pod:1959
39988 msgid ""
39989 "The remaining parameters contain the event payload (if any).  Each event may "
39990 "contain a payload, which usually relates to the event class, but for future "
39991 "proofing your code should be written to handle any payload for any event "
39992 "class."
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:1964
39997 msgid ""
39998 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39999 "there is no message buffer).  Note that this message buffer can contain "
40000 "arbitrary 8 bit data, including NUL bytes."
40001 msgstr ""
40002
40003 #. type: textblock
40004 #: ../src/guestfs.pod:1968
40005 msgid ""
40006 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
40007 "moment this is only used for progress messages."
40008 msgstr ""
40009
40010 #. type: =head3
40011 #: ../src/guestfs.pod:1971
40012 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
40013 msgstr ""
40014
40015 #. type: textblock
40016 #: ../src/guestfs.pod:1973
40017 msgid ""
40018 "One motivation for the generic event API was to allow GUI programs to "
40019 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
40020 "unconditionally to C<stderr>."
40021 msgstr ""
40022
40023 #. type: textblock
40024 #: ../src/guestfs.pod:1977
40025 msgid ""
40026 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
40027 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
40028 "messages are not events; you must capture error messages separately)."
40029 msgstr ""
40030
40031 #. type: textblock
40032 #: ../src/guestfs.pod:1982
40033 msgid ""
40034 "Programs have to set up a callback to capture the classes of events of "
40035 "interest:"
40036 msgstr ""
40037
40038 #. type: verbatim
40039 #: ../src/guestfs.pod:1985
40040 #, no-wrap
40041 msgid ""
40042 " int eh =\n"
40043 "   guestfs_set_event_callback\n"
40044 "     (g, message_callback,\n"
40045 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
40046 "      GUESTFS_EVENT_TRACE,\n"
40047 "      0, NULL) == -1)\n"
40048 " if (eh == -1) {\n"
40049 "   // handle error in the usual way\n"
40050 " }\n"
40051 "\n"
40052 msgstr ""
40053
40054 #. type: textblock
40055 #: ../src/guestfs.pod:1995
40056 msgid ""
40057 "The callback can then direct messages to the appropriate place.  In this "
40058 "example, messages are directed to syslog:"
40059 msgstr ""
40060
40061 #. type: verbatim
40062 #: ../src/guestfs.pod:1998
40063 #, no-wrap
40064 msgid ""
40065 " static void\n"
40066 " message_callback (\n"
40067 "         guestfs_h *g,\n"
40068 "         void *opaque,\n"
40069 "         uint64_t event,\n"
40070 "         int event_handle,\n"
40071 "         int flags,\n"
40072 "         const char *buf, size_t buf_len,\n"
40073 "         const uint64_t *array, size_t array_len)\n"
40074 " {\n"
40075 "   const int priority = LOG_USER|LOG_INFO;\n"
40076 "   if (buf_len > 0)\n"
40077 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
40078 " }\n"
40079 "\n"
40080 msgstr ""
40081
40082 #. type: =head1
40083 #: ../src/guestfs.pod:2013
40084 msgid "CANCELLING LONG TRANSFERS"
40085 msgstr ""
40086
40087 #. type: textblock
40088 #: ../src/guestfs.pod:2015
40089 msgid ""
40090 "Some operations can be cancelled by the caller while they are in progress.  "
40091 "Currently only operations that involve uploading or downloading data can be "
40092 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
40093 "parameters in the generator)."
40094 msgstr ""
40095
40096 #. type: =head2
40097 #: ../src/guestfs.pod:2020
40098 msgid "guestfs_user_cancel"
40099 msgstr ""
40100
40101 #. type: verbatim
40102 #: ../src/guestfs.pod:2022
40103 #, no-wrap
40104 msgid ""
40105 " void guestfs_user_cancel (guestfs_h *g);\n"
40106 "\n"
40107 msgstr ""
40108
40109 #. type: textblock
40110 #: ../src/guestfs.pod:2024
40111 msgid ""
40112 "C<guestfs_user_cancel> cancels the current upload or download operation."
40113 msgstr ""
40114
40115 #. type: textblock
40116 #: ../src/guestfs.pod:2027
40117 msgid ""
40118 "Unlike most other libguestfs calls, this function is signal safe and thread "
40119 "safe.  You can call it from a signal handler or from another thread, without "
40120 "needing to do any locking."
40121 msgstr ""
40122
40123 #. type: textblock
40124 #: ../src/guestfs.pod:2031
40125 msgid ""
40126 "The transfer that was in progress (if there is one) will stop shortly "
40127 "afterwards, and will return an error.  The errno (see L</"
40128 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
40129 "out if the operation was cancelled or failed because of another error."
40130 msgstr ""
40131
40132 #. type: textblock
40133 #: ../src/guestfs.pod:2037
40134 msgid ""
40135 "No cleanup is performed: for example, if a file was being uploaded then "
40136 "after cancellation there may be a partially uploaded file.  It is the "
40137 "caller's responsibility to clean up if necessary."
40138 msgstr ""
40139
40140 #. type: textblock
40141 #: ../src/guestfs.pod:2041
40142 msgid "There are two common places that you might call C<guestfs_user_cancel>."
40143 msgstr ""
40144
40145 #. type: textblock
40146 #: ../src/guestfs.pod:2043
40147 msgid ""
40148 "In an interactive text-based program, you might call it from a C<SIGINT> "
40149 "signal handler so that pressing C<^C> cancels the current operation.  (You "
40150 "also need to call L</guestfs_set_pgroup> so that child processes don't "
40151 "receive the C<^C> signal)."
40152 msgstr ""
40153
40154 #. type: textblock
40155 #: ../src/guestfs.pod:2048
40156 msgid ""
40157 "In a graphical program, when the main thread is displaying a progress bar "
40158 "with a cancel button, wire up the cancel button to call this function."
40159 msgstr ""
40160
40161 #. type: =head1
40162 #: ../src/guestfs.pod:2052
40163 msgid "PRIVATE DATA AREA"
40164 msgstr ""
40165
40166 #. type: textblock
40167 #: ../src/guestfs.pod:2054
40168 msgid ""
40169 "You can attach named pieces of private data to the libguestfs handle, fetch "
40170 "them by name, and walk over them, for the lifetime of the handle.  This is "
40171 "called the private data area and is only available from the C API."
40172 msgstr ""
40173
40174 #. type: textblock
40175 #: ../src/guestfs.pod:2059
40176 msgid "To attach a named piece of data, use the following call:"
40177 msgstr ""
40178
40179 #. type: verbatim
40180 #: ../src/guestfs.pod:2061
40181 #, no-wrap
40182 msgid ""
40183 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40184 "\n"
40185 msgstr ""
40186 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40187 "\n"
40188
40189 #. type: textblock
40190 #: ../src/guestfs.pod:2063
40191 msgid ""
40192 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
40193 "pointer (which can be C<NULL>).  Any previous item with the same key is "
40194 "overwritten."
40195 msgstr ""
40196
40197 #. type: textblock
40198 #: ../src/guestfs.pod:2067
40199 msgid ""
40200 "You can use any C<key> you want, but your key should I<not> start with an "
40201 "underscore character.  Keys beginning with an underscore character are "
40202 "reserved for internal libguestfs purposes (eg. for implementing language "
40203 "bindings).  It is recommended that you prefix the key with some unique "
40204 "string to avoid collisions with other users."
40205 msgstr ""
40206
40207 #. type: textblock
40208 #: ../src/guestfs.pod:2073
40209 msgid "To retrieve the pointer, use:"
40210 msgstr ""
40211
40212 #. type: verbatim
40213 #: ../src/guestfs.pod:2075
40214 #, no-wrap
40215 msgid ""
40216 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40217 "\n"
40218 msgstr ""
40219 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40220 "\n"
40221
40222 #. type: textblock
40223 #: ../src/guestfs.pod:2077
40224 msgid ""
40225 "This function returns C<NULL> if either no data is found associated with "
40226 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
40227 "C<NULL>."
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../src/guestfs.pod:2081
40232 msgid ""
40233 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
40234 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
40235 "all.  In particular, libguestfs does I<not> try to free the data when the "
40236 "handle is closed.  If the data must be freed, then the caller must either "
40237 "free it before calling L</guestfs_close> or must set up a close callback to "
40238 "do it (see L</GUESTFS_EVENT_CLOSE>)."
40239 msgstr ""
40240
40241 #. type: textblock
40242 #: ../src/guestfs.pod:2088
40243 msgid "To walk over all entries, use these two functions:"
40244 msgstr ""
40245
40246 #. type: verbatim
40247 #: ../src/guestfs.pod:2090
40248 #, no-wrap
40249 msgid ""
40250 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
40251 "\n"
40252 msgstr ""
40253
40254 #. type: verbatim
40255 #: ../src/guestfs.pod:2092
40256 #, no-wrap
40257 msgid ""
40258 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
40259 "\n"
40260 msgstr ""
40261
40262 #. type: textblock
40263 #: ../src/guestfs.pod:2094
40264 msgid ""
40265 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
40266 "not have any particular meaning -- keys are not returned in any defined "
40267 "order).  A pointer to the key is returned in C<*key_rtn> and the "
40268 "corresponding data pointer is returned from the function.  C<NULL> is "
40269 "returned if there are no keys stored in the handle."
40270 msgstr ""
40271
40272 #. type: textblock
40273 #: ../src/guestfs.pod:2100
40274 msgid ""
40275 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
40276 "value of this function is also C<NULL> is there are no further entries to "
40277 "return."
40278 msgstr ""
40279
40280 #. type: textblock
40281 #: ../src/guestfs.pod:2104
40282 msgid "Notes about walking over entries:"
40283 msgstr ""
40284
40285 #. type: textblock
40286 #: ../src/guestfs.pod:2110
40287 msgid ""
40288 "You must not call C<guestfs_set_private> while walking over the entries."
40289 msgstr ""
40290
40291 #. type: textblock
40292 #: ../src/guestfs.pod:2115
40293 msgid ""
40294 "The handle maintains an internal iterator which is reset when you call "
40295 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
40296 "call C<guestfs_set_private>."
40297 msgstr ""
40298
40299 #. type: textblock
40300 #: ../src/guestfs.pod:2121
40301 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
40302 msgstr ""
40303
40304 #. type: verbatim
40305 #: ../src/guestfs.pod:2123
40306 #, no-wrap
40307 msgid ""
40308 " guestfs_set_private (g, key, NULL);\n"
40309 "\n"
40310 msgstr ""
40311
40312 #. type: textblock
40313 #: ../src/guestfs.pod:2125
40314 msgid "then that C<key> is not returned when walking."
40315 msgstr ""
40316
40317 #. type: textblock
40318 #: ../src/guestfs.pod:2129
40319 msgid ""
40320 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
40321 "C<guestfs_next_private> or C<guestfs_set_private>."
40322 msgstr ""
40323
40324 #. type: textblock
40325 #: ../src/guestfs.pod:2135
40326 msgid ""
40327 "The following example code shows how to print all keys and data pointers "
40328 "that are associated with the handle C<g>:"
40329 msgstr ""
40330
40331 #. type: verbatim
40332 #: ../src/guestfs.pod:2138
40333 #, no-wrap
40334 msgid ""
40335 " const char *key;\n"
40336 " void *data = guestfs_first_private (g, &key);\n"
40337 " while (data != NULL)\n"
40338 "   {\n"
40339 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
40340 "     data = guestfs_next_private (g, &key);\n"
40341 "   }\n"
40342 "\n"
40343 msgstr ""
40344
40345 #. type: textblock
40346 #: ../src/guestfs.pod:2146
40347 msgid ""
40348 "More commonly you are only interested in keys that begin with an application-"
40349 "specific prefix C<foo_>.  Modify the loop like so:"
40350 msgstr ""
40351
40352 #. type: verbatim
40353 #: ../src/guestfs.pod:2149
40354 #, no-wrap
40355 msgid ""
40356 " const char *key;\n"
40357 " void *data = guestfs_first_private (g, &key);\n"
40358 " while (data != NULL)\n"
40359 "   {\n"
40360 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40361 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
40362 "     data = guestfs_next_private (g, &key);\n"
40363 "   }\n"
40364 "\n"
40365 msgstr ""
40366
40367 #. type: textblock
40368 #: ../src/guestfs.pod:2158
40369 msgid ""
40370 "If you need to modify keys while walking, then you have to jump back to the "
40371 "beginning of the loop.  For example, to delete all keys prefixed with "
40372 "C<foo_>:"
40373 msgstr ""
40374
40375 #. type: verbatim
40376 #: ../src/guestfs.pod:2162
40377 #, no-wrap
40378 msgid ""
40379 "  const char *key;\n"
40380 "  void *data;\n"
40381 " again:\n"
40382 "  data = guestfs_first_private (g, &key);\n"
40383 "  while (data != NULL)\n"
40384 "    {\n"
40385 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40386 "        {\n"
40387 "          guestfs_set_private (g, key, NULL);\n"
40388 "          /* note that 'key' pointer is now invalid, and so is\n"
40389 "             the internal iterator */\n"
40390 "          goto again;\n"
40391 "        }\n"
40392 "      data = guestfs_next_private (g, &key);\n"
40393 "    }\n"
40394 "\n"
40395 msgstr ""
40396
40397 #. type: textblock
40398 #: ../src/guestfs.pod:2178
40399 msgid ""
40400 "Note that the above loop is guaranteed to terminate because the keys are "
40401 "being deleted, but other manipulations of keys within the loop might not "
40402 "terminate unless you also maintain an indication of which keys have been "
40403 "visited."
40404 msgstr ""
40405
40406 #. type: =head1
40407 #: ../src/guestfs.pod:2183
40408 msgid "SYSTEMTAP"
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../src/guestfs.pod:2185
40413 msgid ""
40414 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
40415 "true of any library, not just libguestfs.  However libguestfs also contains "
40416 "static markers to help in probing internal operations."
40417 msgstr ""
40418
40419 #. type: textblock
40420 #: ../src/guestfs.pod:2189
40421 msgid "You can list all the static markers by doing:"
40422 msgstr ""
40423
40424 #. type: verbatim
40425 #: ../src/guestfs.pod:2191
40426 #, no-wrap
40427 msgid ""
40428 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
40429 "              .provider(\"guestfs\").mark(\"*\")'\n"
40430 "\n"
40431 msgstr ""
40432
40433 #. type: textblock
40434 #: ../src/guestfs.pod:2194
40435 msgid ""
40436 "B<Note:> These static markers are I<not> part of the stable API and may "
40437 "change in future versions."
40438 msgstr ""
40439
40440 #. type: =head2
40441 #: ../src/guestfs.pod:2197
40442 msgid "SYSTEMTAP SCRIPT EXAMPLE"
40443 msgstr ""
40444
40445 #. type: textblock
40446 #: ../src/guestfs.pod:2199
40447 msgid ""
40448 "This script contains examples of displaying both the static markers and some "
40449 "ordinary C entry points:"
40450 msgstr ""
40451
40452 #. type: verbatim
40453 #: ../src/guestfs.pod:2202
40454 #, no-wrap
40455 msgid ""
40456 " global last;\n"
40457 " \n"
40458 msgstr ""
40459
40460 #. type: verbatim
40461 #: ../src/guestfs.pod:2204
40462 #, no-wrap
40463 msgid ""
40464 " function display_time () {\n"
40465 "       now = gettimeofday_us ();\n"
40466 "       delta = 0;\n"
40467 "       if (last > 0)\n"
40468 "             delta = now - last;\n"
40469 "       last = now;\n"
40470 " \n"
40471 msgstr ""
40472
40473 #. type: verbatim
40474 #: ../src/guestfs.pod:2211
40475 #, no-wrap
40476 msgid ""
40477 "       printf (\"%d (+%d):\", now, delta);\n"
40478 " }\n"
40479 " \n"
40480 msgstr ""
40481
40482 #. type: verbatim
40483 #: ../src/guestfs.pod:2214
40484 #, no-wrap
40485 msgid ""
40486 " probe begin {\n"
40487 "       last = 0;\n"
40488 "       printf (\"ready\\n\");\n"
40489 " }\n"
40490 " \n"
40491 msgstr ""
40492
40493 #. type: verbatim
40494 #: ../src/guestfs.pod:2219
40495 #, no-wrap
40496 msgid ""
40497 " /* Display all calls to static markers. */\n"
40498 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40499 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
40500 "       display_time();\n"
40501 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
40502 " }\n"
40503 " \n"
40504 msgstr ""
40505
40506 #. type: verbatim
40507 #: ../src/guestfs.pod:2226
40508 #, no-wrap
40509 msgid ""
40510 " /* Display all calls to guestfs_mkfs* functions. */\n"
40511 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40512 "           .function(\"guestfs_mkfs*\") ? {\n"
40513 "       display_time();\n"
40514 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
40515 " }\n"
40516 "\n"
40517 msgstr ""
40518
40519 #. type: textblock
40520 #: ../src/guestfs.pod:2233
40521 msgid ""
40522 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
40523 "program.  Note that you either have to be root, or you have to add yourself "
40524 "to several special stap groups.  Consult the systemtap documentation for "
40525 "more information."
40526 msgstr ""
40527
40528 #. type: verbatim
40529 #: ../src/guestfs.pod:2238
40530 #, no-wrap
40531 msgid ""
40532 " # stap /tmp/test.stap\n"
40533 " ready\n"
40534 "\n"
40535 msgstr ""
40536
40537 #. type: textblock
40538 #: ../src/guestfs.pod:2241
40539 msgid "In another terminal, run a guestfish command such as this:"
40540 msgstr ""
40541
40542 #. type: textblock
40543 #: ../src/guestfs.pod:2245
40544 msgid "In the first terminal, stap trace output similar to this is shown:"
40545 msgstr ""
40546
40547 #. type: verbatim
40548 #: ../src/guestfs.pod:2247
40549 #, no-wrap
40550 msgid ""
40551 " 1318248056692655 (+0):\tlaunch_start\n"
40552 " 1318248056692850 (+195):       launch_build_appliance_start\n"
40553 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
40554 " 1318248056838059 (+19774):     launch_run_qemu\n"
40555 " 1318248061071167 (+4233108):   launch_end\n"
40556 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40557 "\n"
40558 msgstr ""
40559
40560 #. type: =end
40561 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40562 msgid "html"
40563 msgstr "html"
40564
40565 #. type: textblock
40566 #: ../src/guestfs.pod:2256
40567 msgid ""
40568 "<!-- old anchor for the next section --> <a name="
40569 "\"state_machine_and_low_level_event_api\"/>"
40570 msgstr ""
40571 "<!-- old anchor for the next section --> <a name="
40572 "\"state_machine_and_low_level_event_api\"/>"
40573
40574 #. type: =head1
40575 #: ../src/guestfs.pod:2261
40576 msgid "ARCHITECTURE"
40577 msgstr "АРХІТЕКТУРА"
40578
40579 #. type: textblock
40580 #: ../src/guestfs.pod:2263
40581 msgid ""
40582 "Internally, libguestfs is implemented by running an appliance (a special "
40583 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
40584 "process of the main program."
40585 msgstr ""
40586
40587 #. type: verbatim
40588 #: ../src/guestfs.pod:2267
40589 #, no-wrap
40590 msgid ""
40591 "  ___________________\n"
40592 " /                   \\\n"
40593 " | main program      |\n"
40594 " |                   |\n"
40595 " |                   |           child process / appliance\n"
40596 " |                   |           __________________________\n"
40597 " |                   |          / qemu                     \\\n"
40598 " +-------------------+   RPC    |      +-----------------+ |\n"
40599 " | libguestfs     <--------------------> guestfsd        | |\n"
40600 " |                   |          |      +-----------------+ |\n"
40601 " \\___________________/          |      | Linux kernel    | |\n"
40602 "                                |      +--^--------------+ |\n"
40603 "                                \\_________|________________/\n"
40604 "                                          |\n"
40605 "                                   _______v______\n"
40606 "                                  /              \\\n"
40607 "                                  | Device or    |\n"
40608 "                                  | disk image   |\n"
40609 "                                  \\______________/\n"
40610 "\n"
40611 msgstr ""
40612
40613 #. type: textblock
40614 #: ../src/guestfs.pod:2287
40615 msgid ""
40616 "The library, linked to the main program, creates the child process and hence "
40617 "the appliance in the L</guestfs_launch> function."
40618 msgstr ""
40619
40620 #. type: textblock
40621 #: ../src/guestfs.pod:2290
40622 msgid ""
40623 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40624 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40625 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
40626 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
40627 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
40628 "attached to the qemu process which translates device access by the "
40629 "appliance's Linux kernel into accesses to the image."
40630 msgstr ""
40631
40632 #. type: textblock
40633 #: ../src/guestfs.pod:2299
40634 msgid ""
40635 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
40636 "Although the disk image you are attached to might also be used by some "
40637 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
40638 "care if both libguestfs's qemu process and your virtual machine are trying "
40639 "to update the disk image at the same time, since these usually results in "
40640 "massive disk corruption)."
40641 msgstr ""
40642
40643 #. type: =head1
40644 #: ../src/guestfs.pod:2306
40645 msgid "STATE MACHINE"
40646 msgstr "СКІНЧЕННИЙ АВТОМАТ"
40647
40648 #. type: textblock
40649 #: ../src/guestfs.pod:2308
40650 msgid "libguestfs uses a state machine to model the child process:"
40651 msgstr ""
40652
40653 #. type: verbatim
40654 #: ../src/guestfs.pod:2310
40655 #, no-wrap
40656 msgid ""
40657 "                         |\n"
40658 "                    guestfs_create\n"
40659 "                         |\n"
40660 "                         |\n"
40661 "                     ____V_____\n"
40662 "                    /          \\\n"
40663 "                    |  CONFIG  |\n"
40664 "                    \\__________/\n"
40665 "                     ^ ^   ^  \\\n"
40666 "                    /  |    \\  \\ guestfs_launch\n"
40667 "                   /   |    _\\__V______\n"
40668 "                  /    |   /           \\\n"
40669 "                 /     |   | LAUNCHING |\n"
40670 "                /      |   \\___________/\n"
40671 "               /       |       /\n"
40672 "              /        |  guestfs_launch\n"
40673 "             /         |     /\n"
40674 "    ______  /        __|____V\n"
40675 "   /      \\ ------> /        \\\n"
40676 "   | BUSY |         | READY  |\n"
40677 "   \\______/ <------ \\________/\n"
40678 "\n"
40679 msgstr ""
40680
40681 #. type: textblock
40682 #: ../src/guestfs.pod:2332
40683 msgid ""
40684 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40685 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40686 "(3) alternating between READY and BUSY as commands are issued to, and "
40687 "carried out by, the child process."
40688 msgstr ""
40689
40690 #. type: textblock
40691 #: ../src/guestfs.pod:2337
40692 msgid ""
40693 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40694 "asynchronously at any time (eg. due to some internal error), and that causes "
40695 "the state to transition back to CONFIG."
40696 msgstr ""
40697
40698 #. type: textblock
40699 #: ../src/guestfs.pod:2341
40700 msgid ""
40701 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40702 "issued when in the CONFIG state."
40703 msgstr ""
40704
40705 #. type: textblock
40706 #: ../src/guestfs.pod:2344
40707 msgid ""
40708 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
40709 "L</guestfs_launch> blocks until the child process is READY to accept "
40710 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
40711 "moves the state from CONFIG to LAUNCHING while it is running."
40712 msgstr ""
40713
40714 #. type: textblock
40715 #: ../src/guestfs.pod:2350
40716 msgid ""
40717 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40718 "state.  These API calls block waiting for the command to be carried out (ie. "
40719 "the state to transition to BUSY and then back to READY).  There are no non-"
40720 "blocking versions, and no way to issue more than one command per handle at "
40721 "the same time."
40722 msgstr ""
40723
40724 #. type: textblock
40725 #: ../src/guestfs.pod:2356
40726 msgid ""
40727 "Finally, the child process sends asynchronous messages back to the main "
40728 "program, such as kernel log messages.  You can register a callback to "
40729 "receive these messages."
40730 msgstr ""
40731
40732 #. type: =head1
40733 #: ../src/guestfs.pod:2360
40734 msgid "INTERNALS"
40735 msgstr ""
40736
40737 #. type: =head2
40738 #: ../src/guestfs.pod:2362
40739 msgid "APPLIANCE BOOT PROCESS"
40740 msgstr ""
40741
40742 #. type: textblock
40743 #: ../src/guestfs.pod:2364
40744 msgid ""
40745 "This process has evolved and continues to evolve.  The description here "
40746 "corresponds only to the current version of libguestfs and is provided for "
40747 "information only."
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../src/guestfs.pod:2368
40752 msgid ""
40753 "In order to follow the stages involved below, enable libguestfs debugging "
40754 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40755 msgstr ""
40756
40757 #. type: =item
40758 #: ../src/guestfs.pod:2373
40759 msgid "Create the appliance"
40760 msgstr ""
40761
40762 #. type: textblock
40763 #: ../src/guestfs.pod:2375
40764 msgid ""
40765 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40766 "initrd and the appliance."
40767 msgstr ""
40768
40769 #. type: textblock
40770 #: ../src/guestfs.pod:2378
40771 msgid ""
40772 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40773 "directory if C<TMPDIR> is set)."
40774 msgstr ""
40775
40776 #. type: textblock
40777 #: ../src/guestfs.pod:2381
40778 msgid ""
40779 "For a complete description of how the appliance is created and cached, read "
40780 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40781 msgstr ""
40782
40783 #. type: =item
40784 #: ../src/guestfs.pod:2385
40785 msgid "Start qemu and boot the kernel"
40786 msgstr ""
40787
40788 #. type: textblock
40789 #: ../src/guestfs.pod:2387
40790 msgid "qemu is invoked to boot the kernel."
40791 msgstr ""
40792
40793 #. type: =item
40794 #: ../src/guestfs.pod:2389
40795 msgid "Run the initrd"
40796 msgstr ""
40797
40798 #. type: textblock
40799 #: ../src/guestfs.pod:2391
40800 msgid ""
40801 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40802 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40803 "order that the appliance itself can be mounted and started."
40804 msgstr ""
40805
40806 #. type: textblock
40807 #: ../src/guestfs.pod:2395
40808 msgid ""
40809 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40810 "initrd>."
40811 msgstr ""
40812
40813 #. type: textblock
40814 #: ../src/guestfs.pod:2398
40815 msgid ""
40816 "When the initrd has started you will see messages showing that kernel "
40817 "modules are being loaded, similar to this:"
40818 msgstr ""
40819
40820 #. type: verbatim
40821 #: ../src/guestfs.pod:2401
40822 #, no-wrap
40823 msgid ""
40824 " febootstrap: ext2 mini initrd starting up\n"
40825 " febootstrap: mounting /sys\n"
40826 " febootstrap: internal insmod libcrc32c.ko\n"
40827 " febootstrap: internal insmod crc32c-intel.ko\n"
40828 "\n"
40829 msgstr ""
40830
40831 #. type: =item
40832 #: ../src/guestfs.pod:2406
40833 msgid "Find and mount the appliance device"
40834 msgstr ""
40835
40836 #. type: textblock
40837 #: ../src/guestfs.pod:2408
40838 msgid ""
40839 "The appliance is a sparse file containing an ext2 filesystem which contains "
40840 "a familiar (although reduced in size) Linux operating system.  It would "
40841 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40842 msgstr ""
40843
40844 #. type: textblock
40845 #: ../src/guestfs.pod:2412
40846 msgid ""
40847 "The regular disks being inspected by libguestfs are the first devices "
40848 "exposed by qemu (eg. as C</dev/vda>)."
40849 msgstr ""
40850
40851 #. type: textblock
40852 #: ../src/guestfs.pod:2415
40853 msgid ""
40854 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40855 "there was only one regular disk)."
40856 msgstr ""
40857
40858 #. type: textblock
40859 #: ../src/guestfs.pod:2418
40860 msgid ""
40861 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40862 "and switch root into the appliance, and run C</init> from the appliance."
40863 msgstr ""
40864
40865 #. type: textblock
40866 #: ../src/guestfs.pod:2422
40867 msgid "If this works successfully you will see messages such as:"
40868 msgstr ""
40869
40870 #. type: verbatim
40871 #: ../src/guestfs.pod:2424
40872 #, no-wrap
40873 msgid ""
40874 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40875 " febootstrap: creating /dev/root as block special 252:16\n"
40876 " febootstrap: mounting new root on /root\n"
40877 " febootstrap: chroot\n"
40878 " Starting /init script ...\n"
40879 "\n"
40880 msgstr ""
40881
40882 #. type: textblock
40883 #: ../src/guestfs.pod:2430
40884 msgid ""
40885 "Note that C<Starting /init script ...> indicates that the appliance's init "
40886 "script is now running."
40887 msgstr ""
40888
40889 #. type: =item
40890 #: ../src/guestfs.pod:2433
40891 msgid "Initialize the appliance"
40892 msgstr ""
40893
40894 #. type: textblock
40895 #: ../src/guestfs.pod:2435
40896 msgid ""
40897 "The appliance itself now initializes itself.  This involves starting certain "
40898 "processes like C<udev>, possibly printing some debug information, and "
40899 "finally running the daemon (C<guestfsd>)."
40900 msgstr ""
40901
40902 #. type: =item
40903 #: ../src/guestfs.pod:2439
40904 msgid "The daemon"
40905 msgstr ""
40906
40907 #. type: textblock
40908 #: ../src/guestfs.pod:2441
40909 msgid ""
40910 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40911 "should see:"
40912 msgstr ""
40913
40914 #. type: verbatim
40915 #: ../src/guestfs.pod:2444
40916 #, no-wrap
40917 msgid ""
40918 " verbose daemon enabled\n"
40919 "\n"
40920 msgstr ""
40921
40922 #. type: textblock
40923 #: ../src/guestfs.pod:2446
40924 msgid ""
40925 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40926 "connected on the other end to the library."
40927 msgstr ""
40928
40929 #. type: textblock
40930 #: ../src/guestfs.pod:2449
40931 msgid ""
40932 "The daemon connects to this port (and hence to the library) and sends a four "
40933 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40934 "protocol (see below)."
40935 msgstr ""
40936
40937 #. type: =head2
40938 #: ../src/guestfs.pod:2455
40939 msgid "COMMUNICATION PROTOCOL"
40940 msgstr ""
40941
40942 #. type: textblock
40943 #: ../src/guestfs.pod:2457
40944 msgid ""
40945 "Don't rely on using this protocol directly.  This section documents how it "
40946 "currently works, but it may change at any time."
40947 msgstr ""
40948
40949 #. type: textblock
40950 #: ../src/guestfs.pod:2460
40951 msgid ""
40952 "The protocol used to talk between the library and the daemon running inside "
40953 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40954 "1014, RFC 1832, RFC 4506)."
40955 msgstr ""
40956
40957 #. type: textblock
40958 #: ../src/guestfs.pod:2464
40959 msgid ""
40960 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40961 "this file is automatically generated)."
40962 msgstr ""
40963
40964 #. type: textblock
40965 #: ../src/guestfs.pod:2467
40966 msgid ""
40967 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40968 "and C<FileOut> parameters, which are handled with very simple request/reply "
40969 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40970 "parameters, which use the same request and reply messages, but they may also "
40971 "be followed by files sent using a chunked encoding."
40972 msgstr ""
40973
40974 #. type: =head3
40975 #: ../src/guestfs.pod:2474
40976 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40977 msgstr ""
40978
40979 #. type: textblock
40980 #: ../src/guestfs.pod:2476
40981 msgid "For ordinary functions, the request message is:"
40982 msgstr ""
40983
40984 #. type: verbatim
40985 #: ../src/guestfs.pod:2478
40986 #, no-wrap
40987 msgid ""
40988 " total length (header + arguments,\n"
40989 "      but not including the length word itself)\n"
40990 " struct guestfs_message_header (encoded as XDR)\n"
40991 " struct guestfs_<foo>_args (encoded as XDR)\n"
40992 "\n"
40993 msgstr ""
40994
40995 #. type: textblock
40996 #: ../src/guestfs.pod:2483
40997 msgid ""
40998 "The total length field allows the daemon to allocate a fixed size buffer "
40999 "into which it slurps the rest of the message.  As a result, the total length "
41000 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
41001 "effective size of any request is limited to somewhere under this size."
41002 msgstr ""
41003
41004 #. type: textblock
41005 #: ../src/guestfs.pod:2489
41006 msgid ""
41007 "Note also that many functions don't take any arguments, in which case the "
41008 "C<guestfs_I<foo>_args> is completely omitted."
41009 msgstr ""
41010
41011 #. type: textblock
41012 #: ../src/guestfs.pod:2492
41013 msgid ""
41014 "The header contains the procedure number (C<guestfs_proc>) which is how the "
41015 "receiver knows what type of args structure to expect, or none at all."
41016 msgstr ""
41017
41018 #. type: textblock
41019 #: ../src/guestfs.pod:2496
41020 msgid ""
41021 "For functions that take optional arguments, the optional arguments are "
41022 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
41023 "arguments.  A bitmask in the header indicates which optional arguments are "
41024 "meaningful.  The bitmask is also checked to see if it contains bits set "
41025 "which the daemon does not know about (eg. if more optional arguments were "
41026 "added in a later version of the library), and this causes the call to be "
41027 "rejected."
41028 msgstr ""
41029
41030 #. type: textblock
41031 #: ../src/guestfs.pod:2504
41032 msgid "The reply message for ordinary functions is:"
41033 msgstr ""
41034
41035 #. type: verbatim
41036 #: ../src/guestfs.pod:2506
41037 #, no-wrap
41038 msgid ""
41039 " total length (header + ret,\n"
41040 "      but not including the length word itself)\n"
41041 " struct guestfs_message_header (encoded as XDR)\n"
41042 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41043 "\n"
41044 msgstr ""
41045
41046 #. type: textblock
41047 #: ../src/guestfs.pod:2511
41048 msgid ""
41049 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
41050 "functions that return no formal return values."
41051 msgstr ""
41052
41053 #. type: textblock
41054 #: ../src/guestfs.pod:2514
41055 msgid ""
41056 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
41057 msgstr ""
41058
41059 #. type: textblock
41060 #: ../src/guestfs.pod:2517
41061 msgid ""
41062 "In the case of an error, a flag is set in the header, and the reply message "
41063 "is slightly changed:"
41064 msgstr ""
41065
41066 #. type: verbatim
41067 #: ../src/guestfs.pod:2520
41068 #, no-wrap
41069 msgid ""
41070 " total length (header + error,\n"
41071 "      but not including the length word itself)\n"
41072 " struct guestfs_message_header (encoded as XDR)\n"
41073 " struct guestfs_message_error (encoded as XDR)\n"
41074 "\n"
41075 msgstr ""
41076
41077 #. type: textblock
41078 #: ../src/guestfs.pod:2525
41079 msgid ""
41080 "The C<guestfs_message_error> structure contains the error message as a "
41081 "string."
41082 msgstr ""
41083
41084 #. type: =head3
41085 #: ../src/guestfs.pod:2528
41086 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
41087 msgstr ""
41088
41089 #. type: textblock
41090 #: ../src/guestfs.pod:2530
41091 msgid ""
41092 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
41093 "The normal request message is sent (see above).  However this is followed by "
41094 "a sequence of file chunks."
41095 msgstr ""
41096
41097 #. type: verbatim
41098 #: ../src/guestfs.pod:2534
41099 #, no-wrap
41100 msgid ""
41101 " total length (header + arguments,\n"
41102 "      but not including the length word itself,\n"
41103 "      and not including the chunks)\n"
41104 " struct guestfs_message_header (encoded as XDR)\n"
41105 " struct guestfs_<foo>_args (encoded as XDR)\n"
41106 " sequence of chunks for FileIn param #0\n"
41107 " sequence of chunks for FileIn param #1 etc.\n"
41108 "\n"
41109 msgstr ""
41110
41111 #. type: textblock
41112 #: ../src/guestfs.pod:2542
41113 msgid "The \"sequence of chunks\" is:"
41114 msgstr ""
41115
41116 #. type: verbatim
41117 #: ../src/guestfs.pod:2544
41118 #, no-wrap
41119 msgid ""
41120 " length of chunk (not including length word itself)\n"
41121 " struct guestfs_chunk (encoded as XDR)\n"
41122 " length of chunk\n"
41123 " struct guestfs_chunk (encoded as XDR)\n"
41124 "   ...\n"
41125 " length of chunk\n"
41126 " struct guestfs_chunk (with data.data_len == 0)\n"
41127 "\n"
41128 msgstr ""
41129
41130 #. type: textblock
41131 #: ../src/guestfs.pod:2552
41132 msgid ""
41133 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
41134 "is set in the final chunk to indicate either successful completion or early "
41135 "cancellation."
41136 msgstr ""
41137
41138 #. type: textblock
41139 #: ../src/guestfs.pod:2556
41140 msgid ""
41141 "At time of writing there are no functions that have more than one FileIn "
41142 "parameter.  However this is (theoretically) supported, by sending the "
41143 "sequence of chunks for each FileIn parameter one after another (from left to "
41144 "right)."
41145 msgstr ""
41146
41147 #. type: textblock
41148 #: ../src/guestfs.pod:2561
41149 msgid ""
41150 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
41151 "transfer.  The library does this by sending a chunk with a special flag set "
41152 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
41153 "RPC, does I<not> send any reply, and goes back to reading the next request."
41154 msgstr ""
41155
41156 #. type: textblock
41157 #: ../src/guestfs.pod:2567
41158 msgid ""
41159 "The daemon may also cancel.  It does this by writing a special word "
41160 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
41161 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
41162 "cancel chunk).  The special word is chosen so that even if cancellation "
41163 "happens right at the end of the transfer (after the library has finished "
41164 "writing and has started listening for the reply), the \"spurious\" cancel "
41165 "flag will not be confused with the reply message."
41166 msgstr ""
41167
41168 #. type: textblock
41169 #: ../src/guestfs.pod:2576
41170 msgid ""
41171 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
41172 "limit), and also files where the size is not known in advance (eg. from "
41173 "pipes or sockets).  However the chunks are rather small "
41174 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
41175 "to keep much in memory."
41176 msgstr ""
41177
41178 #. type: =head3
41179 #: ../src/guestfs.pod:2582
41180 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
41181 msgstr ""
41182
41183 #. type: textblock
41184 #: ../src/guestfs.pod:2584
41185 msgid ""
41186 "The protocol for FileOut parameters is exactly the same as for FileIn "
41187 "parameters, but with the roles of daemon and library reversed."
41188 msgstr ""
41189
41190 #. type: verbatim
41191 #: ../src/guestfs.pod:2587
41192 #, no-wrap
41193 msgid ""
41194 " total length (header + ret,\n"
41195 "      but not including the length word itself,\n"
41196 "      and not including the chunks)\n"
41197 " struct guestfs_message_header (encoded as XDR)\n"
41198 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41199 " sequence of chunks for FileOut param #0\n"
41200 " sequence of chunks for FileOut param #1 etc.\n"
41201 "\n"
41202 msgstr ""
41203
41204 #. type: =head3
41205 #: ../src/guestfs.pod:2595
41206 msgid "INITIAL MESSAGE"
41207 msgstr ""
41208
41209 #. type: textblock
41210 #: ../src/guestfs.pod:2597
41211 msgid ""
41212 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
41213 "which indicates that the guest and daemon is alive.  This is what L</"
41214 "guestfs_launch> waits for."
41215 msgstr ""
41216
41217 #. type: =head3
41218 #: ../src/guestfs.pod:2601
41219 msgid "PROGRESS NOTIFICATION MESSAGES"
41220 msgstr ""
41221
41222 #. type: textblock
41223 #: ../src/guestfs.pod:2603
41224 msgid ""
41225 "The daemon may send progress notification messages at any time.  These are "
41226 "distinguished by the normal length word being replaced by "
41227 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
41228 msgstr ""
41229
41230 #. type: textblock
41231 #: ../src/guestfs.pod:2607
41232 msgid ""
41233 "The library turns them into progress callbacks (see L</"
41234 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
41235 "if not."
41236 msgstr ""
41237
41238 #. type: textblock
41239 #: ../src/guestfs.pod:2611
41240 msgid ""
41241 "The daemon self-limits the frequency of progress messages it sends (see "
41242 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
41243 "messages."
41244 msgstr ""
41245
41246 #. type: =head1
41247 #: ../src/guestfs.pod:2615
41248 msgid "LIBGUESTFS VERSION NUMBERS"
41249 msgstr ""
41250
41251 #. type: textblock
41252 #: ../src/guestfs.pod:2617
41253 msgid ""
41254 "Since April 2010, libguestfs has started to make separate development and "
41255 "stable releases, along with corresponding branches in our git repository.  "
41256 "These separate releases can be identified by version number:"
41257 msgstr ""
41258
41259 #. type: verbatim
41260 #: ../src/guestfs.pod:2622
41261 #, no-wrap
41262 msgid ""
41263 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
41264 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
41265 "       |\n"
41266 "       v\n"
41267 " 1  .  3  .  5\n"
41268 " ^           ^\n"
41269 " |           |\n"
41270 " |           `-------- sub-version\n"
41271 " |\n"
41272 " `------ always '1' because we don't change the ABI\n"
41273 "\n"
41274 msgstr ""
41275
41276 #. type: textblock
41277 #: ../src/guestfs.pod:2633
41278 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
41279 msgstr ""
41280
41281 #. type: textblock
41282 #: ../src/guestfs.pod:2635
41283 msgid ""
41284 "As time passes we cherry pick fixes from the development branch and backport "
41285 "those into the stable branch, the effect being that the stable branch should "
41286 "get more stable and less buggy over time.  So the stable releases are ideal "
41287 "for people who don't need new features but would just like the software to "
41288 "work."
41289 msgstr ""
41290
41291 #. type: textblock
41292 #: ../src/guestfs.pod:2641
41293 msgid "Our criteria for backporting changes are:"
41294 msgstr ""
41295
41296 #. type: textblock
41297 #: ../src/guestfs.pod:2647
41298 msgid ""
41299 "Documentation changes which don't affect any code are backported unless the "
41300 "documentation refers to a future feature which is not in stable."
41301 msgstr ""
41302
41303 #. type: textblock
41304 #: ../src/guestfs.pod:2653
41305 msgid ""
41306 "Bug fixes which are not controversial, fix obvious problems, and have been "
41307 "well tested are backported."
41308 msgstr ""
41309
41310 #. type: textblock
41311 #: ../src/guestfs.pod:2658
41312 msgid ""
41313 "Simple rearrangements of code which shouldn't affect how it works get "
41314 "backported.  This is so that the code in the two branches doesn't get too "
41315 "far out of step, allowing us to backport future fixes more easily."
41316 msgstr ""
41317
41318 #. type: textblock
41319 #: ../src/guestfs.pod:2664
41320 msgid ""
41321 "We I<don't> backport new features, new APIs, new tools etc, except in one "
41322 "exceptional case: the new feature is required in order to implement an "
41323 "important bug fix."
41324 msgstr ""
41325
41326 #. type: textblock
41327 #: ../src/guestfs.pod:2670
41328 msgid ""
41329 "A new stable branch starts when we think the new features in development are "
41330 "substantial and compelling enough over the current stable branch to warrant "
41331 "it.  When that happens we create new stable and development versions 1.N.0 "
41332 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
41333 "stable at this point, but by backporting fixes from development, that branch "
41334 "will stabilize over time."
41335 msgstr ""
41336
41337 #. type: =head1
41338 #: ../src/guestfs.pod:2678
41339 msgid "EXTENDING LIBGUESTFS"
41340 msgstr ""
41341
41342 #. type: =head2
41343 #: ../src/guestfs.pod:2680
41344 msgid "ADDING A NEW API ACTION"
41345 msgstr ""
41346
41347 #. type: textblock
41348 #: ../src/guestfs.pod:2682
41349 msgid ""
41350 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
41351 "documentation) are generated, and this makes it easy to extend the "
41352 "libguestfs API."
41353 msgstr ""
41354
41355 #. type: textblock
41356 #: ../src/guestfs.pod:2686
41357 msgid "To add a new API action there are two changes:"
41358 msgstr ""
41359
41360 #. type: textblock
41361 #: ../src/guestfs.pod:2692
41362 msgid ""
41363 "You need to add a description of the call (name, parameters, return type, "
41364 "tests, documentation) to C<generator/generator_actions.ml>."
41365 msgstr ""
41366
41367 #. type: textblock
41368 #: ../src/guestfs.pod:2695
41369 msgid ""
41370 "There are two sorts of API action, depending on whether the call goes "
41371 "through to the daemon in the appliance, or is serviced entirely by the "
41372 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
41373 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
41374 "an example of the latter, since a trace flag is maintained in the handle and "
41375 "all tracing is done on the library side."
41376 msgstr ""
41377
41378 #. type: textblock
41379 #: ../src/guestfs.pod:2703
41380 msgid ""
41381 "Most new actions are of the first type, and get added to the "
41382 "C<daemon_functions> list.  Each function has a unique procedure number used "
41383 "in the RPC protocol which is assigned to that action when we publish "
41384 "libguestfs and cannot be reused.  Take the latest procedure number and "
41385 "increment it."
41386 msgstr ""
41387
41388 #. type: textblock
41389 #: ../src/guestfs.pod:2709
41390 msgid ""
41391 "For library-only actions of the second type, add to the "
41392 "C<non_daemon_functions> list.  Since these functions are serviced by the "
41393 "library and do not travel over the RPC mechanism to the daemon, these "
41394 "functions do not need a procedure number, and so the procedure number is set "
41395 "to C<-1>."
41396 msgstr ""
41397
41398 #. type: textblock
41399 #: ../src/guestfs.pod:2717
41400 msgid "Implement the action (in C):"
41401 msgstr ""
41402
41403 #. type: textblock
41404 #: ../src/guestfs.pod:2719
41405 msgid ""
41406 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
41407 "C<daemon/> directory."
41408 msgstr ""
41409
41410 #. type: textblock
41411 #: ../src/guestfs.pod:2722
41412 msgid ""
41413 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
41414 "(note: double underscore) in the C<src/> directory."
41415 msgstr ""
41416
41417 #. type: textblock
41418 #: ../src/guestfs.pod:2725
41419 msgid "In either case, use another function as an example of what to do."
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../src/guestfs.pod:2729
41424 msgid "After making these changes, use C<make> to compile."
41425 msgstr ""
41426
41427 #. type: textblock
41428 #: ../src/guestfs.pod:2731
41429 msgid ""
41430 "Note that you don't need to implement the RPC, language bindings, manual "
41431 "pages or anything else.  It's all automatically generated from the OCaml "
41432 "description."
41433 msgstr ""
41434
41435 #. type: =head2
41436 #: ../src/guestfs.pod:2735
41437 msgid "ADDING TESTS FOR AN API ACTION"
41438 msgstr ""
41439
41440 #. type: textblock
41441 #: ../src/guestfs.pod:2737
41442 msgid ""
41443 "You can supply zero or as many tests as you want per API call.  The tests "
41444 "can either be added as part of the API description (C<generator/"
41445 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
41446 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
41447 "slower, so if possible use the first method."
41448 msgstr ""
41449
41450 #. type: textblock
41451 #: ../src/guestfs.pod:2743
41452 msgid ""
41453 "The following describes the test environment used when you add an API test "
41454 "in C<generator_actions.ml>."
41455 msgstr ""
41456
41457 #. type: textblock
41458 #: ../src/guestfs.pod:2746
41459 msgid "The test environment has 4 block devices:"
41460 msgstr ""
41461
41462 #. type: =item
41463 #: ../src/guestfs.pod:2750
41464 msgid "C</dev/sda> 500MB"
41465 msgstr "C</dev/sda> 500 МБ"
41466
41467 #. type: textblock
41468 #: ../src/guestfs.pod:2752
41469 msgid "General block device for testing."
41470 msgstr ""
41471
41472 #. type: =item
41473 #: ../src/guestfs.pod:2754
41474 msgid "C</dev/sdb> 50MB"
41475 msgstr "C</dev/sdb> 50 МБ"
41476
41477 #. type: textblock
41478 #: ../src/guestfs.pod:2756
41479 msgid ""
41480 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
41481 "operations."
41482 msgstr ""
41483
41484 #. type: =item
41485 #: ../src/guestfs.pod:2759
41486 msgid "C</dev/sdc> 10MB"
41487 msgstr "C</dev/sdc> 10 МБ"
41488
41489 #. type: textblock
41490 #: ../src/guestfs.pod:2761
41491 msgid "Used in a few tests where two block devices are needed."
41492 msgstr ""
41493
41494 #. type: =item
41495 #: ../src/guestfs.pod:2763
41496 msgid "C</dev/sdd>"
41497 msgstr "C</dev/sdd>"
41498
41499 #. type: textblock
41500 #: ../src/guestfs.pod:2765
41501 msgid "ISO with fixed content (see C<images/test.iso>)."
41502 msgstr ""
41503
41504 #. type: textblock
41505 #: ../src/guestfs.pod:2769
41506 msgid ""
41507 "To be able to run the tests in a reasonable amount of time, the libguestfs "
41508 "appliance and block devices are reused between tests.  So don't try testing "
41509 "L</guestfs_kill_subprocess> :-x"
41510 msgstr ""
41511
41512 #. type: textblock
41513 #: ../src/guestfs.pod:2773
41514 msgid ""
41515 "Each test starts with an initial scenario, selected using one of the "
41516 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
41517 "initialize the disks mentioned above in a particular way as documented in "
41518 "C<generator_types.ml>.  You should not assume anything about the previous "
41519 "contents of other disks that are not initialized."
41520 msgstr ""
41521
41522 #. type: textblock
41523 #: ../src/guestfs.pod:2779
41524 msgid ""
41525 "You can add a prerequisite clause to any individual test.  This is a run-"
41526 "time check, which, if it fails, causes the test to be skipped.  Useful if "
41527 "testing a command which might not work on all variations of libguestfs "
41528 "builds.  A test that has prerequisite of C<Always> means to run "
41529 "unconditionally."
41530 msgstr ""
41531
41532 #. type: textblock
41533 #: ../src/guestfs.pod:2785
41534 msgid ""
41535 "In addition, packagers can skip individual tests by setting environment "
41536 "variables before running C<make check>."
41537 msgstr ""
41538
41539 #. type: verbatim
41540 #: ../src/guestfs.pod:2788
41541 #, no-wrap
41542 msgid ""
41543 " SKIP_TEST_<CMD>_<NUM>=1\n"
41544 "\n"
41545 msgstr ""
41546
41547 #. type: textblock
41548 #: ../src/guestfs.pod:2790
41549 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41550 msgstr ""
41551
41552 #. type: verbatim
41553 #: ../src/guestfs.pod:2794
41554 #, no-wrap
41555 msgid ""
41556 " SKIP_TEST_<CMD>=1\n"
41557 "\n"
41558 msgstr ""
41559
41560 #. type: textblock
41561 #: ../src/guestfs.pod:2796
41562 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41563 msgstr ""
41564
41565 #. type: textblock
41566 #: ../src/guestfs.pod:2798
41567 msgid "Packagers can run only certain tests by setting for example:"
41568 msgstr ""
41569
41570 #. type: verbatim
41571 #: ../src/guestfs.pod:2800
41572 #, no-wrap
41573 msgid ""
41574 " TEST_ONLY=\"vfs_type zerofree\"\n"
41575 "\n"
41576 msgstr ""
41577
41578 #. type: textblock
41579 #: ../src/guestfs.pod:2802
41580 msgid ""
41581 "See C<capitests/tests.c> for more details of how these environment variables "
41582 "work."
41583 msgstr ""
41584
41585 #. type: =head2
41586 #: ../src/guestfs.pod:2805
41587 msgid "DEBUGGING NEW API ACTIONS"
41588 msgstr ""
41589
41590 #. type: textblock
41591 #: ../src/guestfs.pod:2807
41592 msgid "Test new actions work before submitting them."
41593 msgstr ""
41594
41595 #. type: textblock
41596 #: ../src/guestfs.pod:2809
41597 msgid "You can use guestfish to try out new commands."
41598 msgstr ""
41599
41600 #. type: textblock
41601 #: ../src/guestfs.pod:2811
41602 msgid ""
41603 "Debugging the daemon is a problem because it runs inside a minimal "
41604 "environment.  However you can fprintf messages in the daemon to stderr, and "
41605 "they will show up if you use C<guestfish -v>."
41606 msgstr ""
41607
41608 #. type: =head2
41609 #: ../src/guestfs.pod:2815
41610 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41611 msgstr ""
41612
41613 #. type: textblock
41614 #: ../src/guestfs.pod:2817
41615 msgid ""
41616 "Our C source code generally adheres to some basic code-formatting "
41617 "conventions.  The existing code base is not totally consistent on this "
41618 "front, but we do prefer that contributed code be formatted similarly.  In "
41619 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41620 "indentation level, and other than that, follow the K&R style."
41621 msgstr ""
41622
41623 #. type: textblock
41624 #: ../src/guestfs.pod:2823
41625 msgid ""
41626 "If you use Emacs, add the following to one of one of your start-up files (e."
41627 "g., ~/.emacs), to help ensure that you get indentation right:"
41628 msgstr ""
41629
41630 #. type: verbatim
41631 #: ../src/guestfs.pod:2826
41632 #, no-wrap
41633 msgid ""
41634 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41635 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41636 " (add-hook 'find-file-hook\n"
41637 "     '(lambda () (if (and buffer-file-name\n"
41638 "                          (string-match \"/libguestfs\\\\>\"\n"
41639 "                              (buffer-file-name))\n"
41640 "                          (not (string-equal mode-name \"Change Log\"))\n"
41641 "                          (not (string-equal mode-name \"Makefile\")))\n"
41642 "                     (setq indent-tabs-mode nil))))\n"
41643 " \n"
41644 msgstr ""
41645
41646 #. type: verbatim
41647 #: ../src/guestfs.pod:2836
41648 #, no-wrap
41649 msgid ""
41650 " ;;; When editing C sources in libguestfs, use this style.\n"
41651 " (defun libguestfs-c-mode ()\n"
41652 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
41653 "   (interactive)\n"
41654 "   (c-set-style \"K&R\")\n"
41655 "   (setq c-indent-level 2)\n"
41656 "   (setq c-basic-offset 2))\n"
41657 " (add-hook 'c-mode-hook\n"
41658 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41659 "                               (buffer-file-name))\n"
41660 "                           (libguestfs-c-mode))))\n"
41661 "\n"
41662 msgstr ""
41663
41664 #. type: textblock
41665 #: ../src/guestfs.pod:2848
41666 msgid "Enable warnings when compiling (and fix any problems this finds):"
41667 msgstr ""
41668
41669 #. type: verbatim
41670 #: ../src/guestfs.pod:2851
41671 #, no-wrap
41672 msgid ""
41673 " ./configure --enable-gcc-warnings\n"
41674 "\n"
41675 msgstr ""
41676 " ./configure --enable-gcc-warnings\n"
41677 "\n"
41678
41679 #. type: textblock
41680 #: ../src/guestfs.pod:2853
41681 msgid "Useful targets are:"
41682 msgstr ""
41683
41684 #. type: verbatim
41685 #: ../src/guestfs.pod:2855
41686 #, no-wrap
41687 msgid ""
41688 " make syntax-check  # checks the syntax of the C code\n"
41689 " make check         # runs the test suite\n"
41690 "\n"
41691 msgstr ""
41692
41693 #. type: =head2
41694 #: ../src/guestfs.pod:2858
41695 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41696 msgstr ""
41697
41698 #. type: textblock
41699 #: ../src/guestfs.pod:2860
41700 msgid ""
41701 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41702 "which are used to do shell quoting."
41703 msgstr ""
41704
41705 #. type: =item
41706 #: ../src/guestfs.pod:2865
41707 msgid "%Q"
41708 msgstr "%Q"
41709
41710 #. type: textblock
41711 #: ../src/guestfs.pod:2867
41712 msgid ""
41713 "Simple shell quoted string.  Any spaces or other shell characters are "
41714 "escaped for you."
41715 msgstr ""
41716
41717 #. type: =item
41718 #: ../src/guestfs.pod:2870
41719 msgid "%R"
41720 msgstr "%R"
41721
41722 #. type: textblock
41723 #: ../src/guestfs.pod:2872
41724 msgid ""
41725 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41726 "the sysroot."
41727 msgstr ""
41728
41729 #. type: verbatim
41730 #: ../src/guestfs.pod:2879
41731 #, no-wrap
41732 msgid ""
41733 " asprintf (&cmd, \"cat %R\", path);\n"
41734 "\n"
41735 msgstr ""
41736 " asprintf (&cmd, \"cat %R\", path);\n"
41737 "\n"
41738
41739 #. type: textblock
41740 #: ../src/guestfs.pod:2881
41741 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41742 msgstr ""
41743
41744 #. type: textblock
41745 #: ../src/guestfs.pod:2883
41746 msgid ""
41747 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41748 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41749 "they are not passed via the shell (instead, straight to exec).  You probably "
41750 "want to use the C<sysroot_path()> function however."
41751 msgstr ""
41752
41753 #. type: =head2
41754 #: ../src/guestfs.pod:2889
41755 msgid "SUBMITTING YOUR NEW API ACTIONS"
41756 msgstr ""
41757
41758 #. type: textblock
41759 #: ../src/guestfs.pod:2891
41760 msgid ""
41761 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41762 "libguestfs> and CC to L<rjones@redhat.com>."
41763 msgstr ""
41764
41765 #. type: =head2
41766 #: ../src/guestfs.pod:2895
41767 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41768 msgstr ""
41769
41770 #. type: textblock
41771 #: ../src/guestfs.pod:2897
41772 msgid "We support i18n (gettext anyhow) in the library."
41773 msgstr ""
41774
41775 #. type: textblock
41776 #: ../src/guestfs.pod:2899
41777 msgid ""
41778 "However many messages come from the daemon, and we don't translate those at "
41779 "the moment.  One reason is that the appliance generally has all locale files "
41780 "removed from it, because they take up a lot of space.  So we'd have to readd "
41781 "some of those, as well as copying our PO files into the appliance."
41782 msgstr ""
41783
41784 #. type: textblock
41785 #: ../src/guestfs.pod:2905
41786 msgid ""
41787 "Debugging messages are never translated, since they are intended for the "
41788 "programmers."
41789 msgstr ""
41790
41791 #. type: =head2
41792 #: ../src/guestfs.pod:2908
41793 msgid "SOURCE CODE SUBDIRECTORIES"
41794 msgstr ""
41795
41796 #. type: =item
41797 #: ../src/guestfs.pod:2912
41798 msgid "C<align>"
41799 msgstr ""
41800
41801 #. type: textblock
41802 #: ../src/guestfs.pod:2914
41803 msgid "L<virt-alignment-scan(1)> command and documentation."
41804 msgstr ""
41805
41806 #. type: textblock
41807 #: ../src/guestfs.pod:2918
41808 msgid "The libguestfs appliance, build scripts and so on."
41809 msgstr ""
41810
41811 #. type: =item
41812 #: ../src/guestfs.pod:2920
41813 msgid "C<capitests>"
41814 msgstr "C<capitests>"
41815
41816 #. type: textblock
41817 #: ../src/guestfs.pod:2922
41818 msgid "Automated tests of the C API."
41819 msgstr ""
41820
41821 #. type: =item
41822 #: ../src/guestfs.pod:2924
41823 msgid "C<cat>"
41824 msgstr "C<cat>"
41825
41826 #. type: textblock
41827 #: ../src/guestfs.pod:2926
41828 msgid ""
41829 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41830 "documentation."
41831 msgstr ""
41832
41833 #. type: =item
41834 #: ../src/guestfs.pod:2929
41835 msgid "C<caution>"
41836 msgstr "C<caution>"
41837
41838 #. type: textblock
41839 #: ../src/guestfs.pod:2931
41840 msgid ""
41841 "Safety and liveness tests of components that libguestfs depends upon (not of "
41842 "libguestfs itself).  Mainly this is for qemu and the kernel."
41843 msgstr ""
41844
41845 #. type: =item
41846 #: ../src/guestfs.pod:2934
41847 msgid "C<clone>"
41848 msgstr ""
41849
41850 #. type: textblock
41851 #: ../src/guestfs.pod:2936
41852 msgid ""
41853 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41854 "command and documentation."
41855 msgstr ""
41856
41857 #. type: =item
41858 #: ../src/guestfs.pod:2939
41859 msgid "C<contrib>"
41860 msgstr "C<contrib>"
41861
41862 #. type: textblock
41863 #: ../src/guestfs.pod:2941
41864 msgid "Outside contributions, experimental parts."
41865 msgstr ""
41866
41867 #. type: =item
41868 #: ../src/guestfs.pod:2943
41869 msgid "C<daemon>"
41870 msgstr "C<daemon>"
41871
41872 #. type: textblock
41873 #: ../src/guestfs.pod:2945
41874 msgid ""
41875 "The daemon that runs inside the libguestfs appliance and carries out actions."
41876 msgstr ""
41877
41878 #. type: =item
41879 #: ../src/guestfs.pod:2948
41880 msgid "C<df>"
41881 msgstr "C<df>"
41882
41883 #. type: textblock
41884 #: ../src/guestfs.pod:2950
41885 msgid "L<virt-df(1)> command and documentation."
41886 msgstr ""
41887
41888 #. type: =item
41889 #: ../src/guestfs.pod:2952
41890 msgid "C<edit>"
41891 msgstr "C<edit>"
41892
41893 #. type: textblock
41894 #: ../src/guestfs.pod:2954
41895 msgid "L<virt-edit(1)> command and documentation."
41896 msgstr ""
41897
41898 #. type: =item
41899 #: ../src/guestfs.pod:2956
41900 msgid "C<examples>"
41901 msgstr "C<examples>"
41902
41903 #. type: textblock
41904 #: ../src/guestfs.pod:2958
41905 msgid "C API example code."
41906 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41907
41908 #. type: =item
41909 #: ../src/guestfs.pod:2960
41910 #, fuzzy
41911 #| msgid "C<capitests>"
41912 msgid "C<extratests>"
41913 msgstr "C<capitests>"
41914
41915 #. type: textblock
41916 #: ../src/guestfs.pod:2962
41917 msgid ""
41918 "Extra tests.  These are not run by default because they require special "
41919 "tools or configuration."
41920 msgstr ""
41921
41922 #. type: =item
41923 #: ../src/guestfs.pod:2965
41924 msgid "C<fish>"
41925 msgstr "C<fish>"
41926
41927 #. type: textblock
41928 #: ../src/guestfs.pod:2967
41929 msgid ""
41930 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41931 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41932 "L<virt-tar-out(1)>."
41933 msgstr ""
41934
41935 #. type: =item
41936 #: ../src/guestfs.pod:2971
41937 msgid "C<fuse>"
41938 msgstr "C<fuse>"
41939
41940 #. type: textblock
41941 #: ../src/guestfs.pod:2973
41942 msgid ""
41943 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41944 msgstr ""
41945
41946 #. type: =item
41947 #: ../src/guestfs.pod:2975
41948 msgid "C<generator>"
41949 msgstr "C<generator>"
41950
41951 #. type: textblock
41952 #: ../src/guestfs.pod:2977
41953 msgid ""
41954 "The crucially important generator, used to automatically generate large "
41955 "amounts of boilerplate C code for things like RPC and bindings."
41956 msgstr ""
41957
41958 #. type: =item
41959 #: ../src/guestfs.pod:2980
41960 msgid "C<images>"
41961 msgstr "C<images>"
41962
41963 #. type: textblock
41964 #: ../src/guestfs.pod:2982
41965 msgid "Files used by the test suite."
41966 msgstr ""
41967
41968 #. type: textblock
41969 #: ../src/guestfs.pod:2984
41970 msgid "Some \"phony\" guest images which we test against."
41971 msgstr ""
41972
41973 #. type: =item
41974 #: ../src/guestfs.pod:2986
41975 msgid "C<inspector>"
41976 msgstr "C<inspector>"
41977
41978 #. type: textblock
41979 #: ../src/guestfs.pod:2988
41980 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41981 msgstr ""
41982
41983 #. type: =item
41984 #: ../src/guestfs.pod:2990
41985 msgid "C<logo>"
41986 msgstr "C<logo>"
41987
41988 #. type: textblock
41989 #: ../src/guestfs.pod:2992
41990 msgid "Logo used on the website.  The fish is called Arthur by the way."
41991 msgstr ""
41992
41993 #. type: =item
41994 #: ../src/guestfs.pod:2994
41995 msgid "C<m4>"
41996 msgstr "C<m4>"
41997
41998 #. type: textblock
41999 #: ../src/guestfs.pod:2996
42000 msgid "M4 macros used by autoconf."
42001 msgstr ""
42002
42003 #. type: =item
42004 #: ../src/guestfs.pod:2998
42005 msgid "C<po>"
42006 msgstr "C<po>"
42007
42008 #. type: textblock
42009 #: ../src/guestfs.pod:3000
42010 msgid "Translations of simple gettext strings."
42011 msgstr "Переклади простих рядків gettext."
42012
42013 #. type: =item
42014 #: ../src/guestfs.pod:3002
42015 msgid "C<po-docs>"
42016 msgstr "C<po-docs>"
42017
42018 #. type: textblock
42019 #: ../src/guestfs.pod:3004
42020 msgid ""
42021 "The build infrastructure and PO files for translations of manpages and POD "
42022 "files.  Eventually this will be combined with the C<po> directory, but that "
42023 "is rather complicated."
42024 msgstr ""
42025
42026 #. type: =item
42027 #: ../src/guestfs.pod:3008
42028 msgid "C<regressions>"
42029 msgstr "C<regressions>"
42030
42031 #. type: textblock
42032 #: ../src/guestfs.pod:3010
42033 msgid "Regression tests."
42034 msgstr "Тести на регресії."
42035
42036 #. type: =item
42037 #: ../src/guestfs.pod:3012
42038 msgid "C<rescue>"
42039 msgstr "C<rescue>"
42040
42041 #. type: textblock
42042 #: ../src/guestfs.pod:3014
42043 msgid "L<virt-rescue(1)> command and documentation."
42044 msgstr ""
42045
42046 #. type: =item
42047 #: ../src/guestfs.pod:3016
42048 msgid "C<resize>"
42049 msgstr ""
42050
42051 #. type: textblock
42052 #: ../src/guestfs.pod:3018
42053 msgid "L<virt-resize(1)> command and documentation."
42054 msgstr ""
42055
42056 #. type: =item
42057 #: ../src/guestfs.pod:3020
42058 msgid "C<sparsify>"
42059 msgstr ""
42060
42061 #. type: textblock
42062 #: ../src/guestfs.pod:3022
42063 msgid "L<virt-sparsify(1)> command and documentation."
42064 msgstr ""
42065
42066 #. type: =item
42067 #: ../src/guestfs.pod:3024
42068 msgid "C<src>"
42069 msgstr "C<src>"
42070
42071 #. type: textblock
42072 #: ../src/guestfs.pod:3026
42073 msgid "Source code to the C library."
42074 msgstr ""
42075
42076 #. type: =item
42077 #: ../src/guestfs.pod:3028
42078 msgid "C<tools>"
42079 msgstr "C<tools>"
42080
42081 #. type: textblock
42082 #: ../src/guestfs.pod:3030
42083 msgid ""
42084 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
42085 msgstr ""
42086
42087 #. type: =item
42088 #: ../src/guestfs.pod:3032
42089 msgid "C<test-tool>"
42090 msgstr "C<test-tool>"
42091
42092 #. type: textblock
42093 #: ../src/guestfs.pod:3034
42094 msgid ""
42095 "Test tool for end users to test if their qemu/kernel combination will work "
42096 "with libguestfs."
42097 msgstr ""
42098
42099 #. type: =item
42100 #: ../src/guestfs.pod:3037
42101 msgid "C<csharp>"
42102 msgstr "C<csharp>"
42103
42104 #. type: =item
42105 #: ../src/guestfs.pod:3039
42106 msgid "C<erlang>"
42107 msgstr ""
42108
42109 #. type: =item
42110 #: ../src/guestfs.pod:3041
42111 msgid "C<haskell>"
42112 msgstr "C<haskell>"
42113
42114 #. type: =item
42115 #: ../src/guestfs.pod:3043
42116 msgid "C<java>"
42117 msgstr "C<java>"
42118
42119 #. type: =item
42120 #: ../src/guestfs.pod:3045
42121 msgid "C<ocaml>"
42122 msgstr "C<ocaml>"
42123
42124 #. type: =item
42125 #: ../src/guestfs.pod:3047
42126 msgid "C<php>"
42127 msgstr "C<php>"
42128
42129 #. type: =item
42130 #: ../src/guestfs.pod:3049
42131 msgid "C<perl>"
42132 msgstr "C<perl>"
42133
42134 #. type: =item
42135 #: ../src/guestfs.pod:3051
42136 msgid "C<python>"
42137 msgstr "C<python>"
42138
42139 #. type: =item
42140 #: ../src/guestfs.pod:3053
42141 msgid "C<ruby>"
42142 msgstr "C<ruby>"
42143
42144 #. type: textblock
42145 #: ../src/guestfs.pod:3055
42146 msgid "Language bindings."
42147 msgstr "Прив’язки до мов програмування."
42148
42149 #. type: =head2
42150 #: ../src/guestfs.pod:3059
42151 msgid "MAKING A STABLE RELEASE"
42152 msgstr ""
42153
42154 #. type: textblock
42155 #: ../src/guestfs.pod:3061
42156 msgid ""
42157 "When we make a stable release, there are several steps documented here.  See "
42158 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
42159 "branch policy."
42160 msgstr ""
42161
42162 #. type: textblock
42163 #: ../src/guestfs.pod:3069
42164 msgid ""
42165 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
42166 msgstr ""
42167
42168 #. type: textblock
42169 #: ../src/guestfs.pod:3074
42170 msgid "Finalize RELEASE-NOTES."
42171 msgstr ""
42172
42173 #. type: textblock
42174 #: ../src/guestfs.pod:3078
42175 msgid "Update ROADMAP."
42176 msgstr ""
42177
42178 #. type: textblock
42179 #: ../src/guestfs.pod:3082
42180 msgid "Run C<src/api-support/update-from-tarballs.sh>."
42181 msgstr ""
42182
42183 #. type: textblock
42184 #: ../src/guestfs.pod:3086
42185 msgid "Push and pull from Transifex."
42186 msgstr ""
42187
42188 #. type: verbatim
42189 #: ../src/guestfs.pod:3090
42190 #, no-wrap
42191 msgid ""
42192 " tx push -s\n"
42193 "\n"
42194 msgstr ""
42195
42196 #. type: textblock
42197 #: ../src/guestfs.pod:3092
42198 msgid "to push the latest POT files to Transifex.  Then run:"
42199 msgstr ""
42200
42201 #. type: verbatim
42202 #: ../src/guestfs.pod:3094
42203 #, no-wrap
42204 msgid ""
42205 " ./tx-pull.sh\n"
42206 "\n"
42207 msgstr ""
42208
42209 #. type: textblock
42210 #: ../src/guestfs.pod:3096
42211 msgid "which is a wrapper to pull the latest translated C<*.po> files."
42212 msgstr ""
42213
42214 #. type: textblock
42215 #: ../src/guestfs.pod:3100
42216 msgid ""
42217 "Create new stable and development directories under L<http://libguestfs.org/"
42218 "download>."
42219 msgstr ""
42220
42221 #. type: textblock
42222 #: ../src/guestfs.pod:3105
42223 msgid "Create the branch in git:"
42224 msgstr ""
42225
42226 #. type: verbatim
42227 #: ../src/guestfs.pod:3107
42228 #, no-wrap
42229 msgid ""
42230 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
42231 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
42232 " git branch stable-1.XX\n"
42233 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
42234 "\n"
42235 msgstr ""
42236
42237 #. type: =head1
42238 #: ../src/guestfs.pod:3114
42239 msgid "LIMITS"
42240 msgstr "ОБМЕЖЕННЯ"
42241
42242 #. type: =head2
42243 #: ../src/guestfs.pod:3116
42244 msgid "PROTOCOL LIMITS"
42245 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
42246
42247 #. type: textblock
42248 #: ../src/guestfs.pod:3118
42249 msgid ""
42250 "Internally libguestfs uses a message-based protocol to pass API calls and "
42251 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
42252 "plenty more detail about this).  The maximum message size used by the "
42253 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
42254 "aware of this limit.  The API calls which may be affected are individually "
42255 "documented, with a link back to this section of the documentation."
42256 msgstr ""
42257
42258 #. type: textblock
42259 #: ../src/guestfs.pod:3126
42260 msgid ""
42261 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
42262 "a simple string.  Because this string is at some point internally encoded as "
42263 "a message, the maximum size that it can return is slightly under 4 MB.  If "
42264 "the requested file is larger than this then you will get an error."
42265 msgstr ""
42266
42267 #. type: textblock
42268 #: ../src/guestfs.pod:3132
42269 msgid ""
42270 "In order to transfer large files into and out of the guest filesystem, you "
42271 "need to use particular calls that support this.  The sections L</UPLOADING> "
42272 "and L</DOWNLOADING> document how to do this."
42273 msgstr ""
42274
42275 #. type: textblock
42276 #: ../src/guestfs.pod:3136
42277 msgid ""
42278 "You might also consider mounting the disk image using our FUSE filesystem "
42279 "support (L<guestmount(1)>)."
42280 msgstr ""
42281
42282 #. type: =head2
42283 #: ../src/guestfs.pod:3139
42284 msgid "MAXIMUM NUMBER OF DISKS"
42285 msgstr ""
42286
42287 #. type: textblock
42288 #: ../src/guestfs.pod:3141
42289 msgid "When using virtio disks (the default) the current limit is B<25> disks."
42290 msgstr ""
42291
42292 #. type: textblock
42293 #: ../src/guestfs.pod:3144
42294 msgid ""
42295 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
42296 "slots.  However febootstrap only understands disks with names C</dev/vda> "
42297 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
42298 "purposes."
42299 msgstr ""
42300
42301 #. type: textblock
42302 #: ../src/guestfs.pod:3149
42303 msgid ""
42304 "We are working to substantially raise this limit in future versions but it "
42305 "requires complex changes to qemu."
42306 msgstr ""
42307
42308 #. type: textblock
42309 #: ../src/guestfs.pod:3152
42310 msgid ""
42311 "In future versions of libguestfs it should also be possible to \"hot plug\" "
42312 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
42313 "requires changes to qemu."
42314 msgstr ""
42315
42316 #. type: =head2
42317 #: ../src/guestfs.pod:3156
42318 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
42319 msgstr ""
42320
42321 #. type: textblock
42322 #: ../src/guestfs.pod:3158
42323 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
42324 msgstr ""
42325
42326 #. type: textblock
42327 #: ../src/guestfs.pod:3160
42328 msgid ""
42329 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
42330 "vda>, and C</dev/vda1> through C</dev/vda15>)."
42331 msgstr ""
42332
42333 #. type: textblock
42334 #: ../src/guestfs.pod:3163
42335 msgid ""
42336 "If you attach a disk with more than 15 partitions, the extra partitions are "
42337 "ignored by libguestfs."
42338 msgstr ""
42339
42340 #. type: =head2
42341 #: ../src/guestfs.pod:3166
42342 msgid "MAXIMUM SIZE OF A DISK"
42343 msgstr ""
42344
42345 #. type: textblock
42346 #: ../src/guestfs.pod:3168
42347 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
42348 msgstr ""
42349
42350 #. type: textblock
42351 #: ../src/guestfs.pod:3170
42352 msgid ""
42353 "We have tested block devices up to 1 exabyte (2**60 or "
42354 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
42355 "filesystem."
42356 msgstr ""
42357
42358 #. type: textblock
42359 #: ../src/guestfs.pod:3174
42360 msgid ""
42361 "Although libguestfs probably does not impose any limit, the underlying host "
42362 "storage will.  If you store disk images on a host ext4 filesystem, then the "
42363 "maximum size will be limited by the maximum ext4 file size (currently 16 "
42364 "TB).  If you store disk images as host logical volumes then you are limited "
42365 "by the maximum size of an LV."
42366 msgstr ""
42367
42368 #. type: textblock
42369 #: ../src/guestfs.pod:3180
42370 msgid ""
42371 "For the hugest disk image files, we recommend using XFS on the host for "
42372 "storage."
42373 msgstr ""
42374
42375 #. type: =head2
42376 #: ../src/guestfs.pod:3183
42377 msgid "MAXIMUM SIZE OF A PARTITION"
42378 msgstr ""
42379
42380 #. type: textblock
42381 #: ../src/guestfs.pod:3185
42382 msgid ""
42383 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
42384 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
42385 "address a partition located beyond 2 TB on the disk."
42386 msgstr ""
42387
42388 #. type: textblock
42389 #: ../src/guestfs.pod:3189
42390 msgid ""
42391 "It is recommended that you use GPT partitions on disks which are larger than "
42392 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
42393 "which are theoretically larger than the largest disk we could support."
42394 msgstr ""
42395
42396 #. type: =head2
42397 #: ../src/guestfs.pod:3194
42398 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
42399 msgstr ""
42400
42401 #. type: textblock
42402 #: ../src/guestfs.pod:3196
42403 msgid ""
42404 "This depends on the filesystem type.  libguestfs itself does not impose any "
42405 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
42406 "what these limits are."
42407 msgstr ""
42408
42409 #. type: =head2
42410 #: ../src/guestfs.pod:3200
42411 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
42412 msgstr ""
42413
42414 #. type: textblock
42415 #: ../src/guestfs.pod:3202
42416 msgid ""
42417 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
42418 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
42419 "uploads and downloads."
42420 msgstr ""
42421
42422 #. type: =head2
42423 #: ../src/guestfs.pod:3206
42424 msgid "INSPECTION LIMITS"
42425 msgstr ""
42426
42427 #. type: textblock
42428 #: ../src/guestfs.pod:3208
42429 msgid ""
42430 "The inspection code has several arbitrary limits on things like the size of "
42431 "Windows Registry hive it will read, and the length of product name.  These "
42432 "are intended to stop a malicious guest from consuming arbitrary amounts of "
42433 "memory and disk space on the host, and should not be reached in practice.  "
42434 "See the source code for more information."
42435 msgstr ""
42436
42437 #. type: textblock
42438 #: ../src/guestfs.pod:3234
42439 msgid ""
42440 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
42441 "effect as calling C<guestfs_set_verbose (g, 1)>."
42442 msgstr ""
42443
42444 #. type: textblock
42445 #: ../src/guestfs.pod:3246
42446 msgid ""
42447 "Set the path that libguestfs uses to search for a supermin appliance.  See "
42448 "the discussion of paths in section L</PATH> above."
42449 msgstr ""
42450
42451 #. type: textblock
42452 #: ../src/guestfs.pod:3255
42453 msgid "See also L</QEMU WRAPPERS> above."
42454 msgstr ""
42455
42456 #. type: textblock
42457 #: ../src/guestfs.pod:3259
42458 msgid ""
42459 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
42460 "effect as calling C<guestfs_set_trace (g, 1)>."
42461 msgstr ""
42462
42463 #. type: textblock
42464 #: ../src/guestfs.pod:3277
42465 msgid ""
42466 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
42467 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
42468 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
42469 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
42470 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
42471 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
42472 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
42473 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
42474 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
42475 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
42476 msgstr ""
42477
42478 #. type: textblock
42479 #: ../src/guestfs.pod:3314
42480 msgid ""
42481 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
42482 "(8)>, L<disktype(1)>."
42483 msgstr ""
42484
42485 #. type: =head1
42486 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
42487 #: ../tools/virt-win-reg.pl:772
42488 msgid "BUGS"
42489 msgstr "ВАДИ"
42490
42491 #. type: textblock
42492 #: ../src/guestfs.pod:3323
42493 msgid "To get a list of bugs against libguestfs use this link:"
42494 msgstr ""
42495 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
42496 "посиланням:"
42497
42498 #. type: textblock
42499 #: ../src/guestfs.pod:3325
42500 msgid ""
42501 "L<https://bugzilla.redhat.com/buglist.cgi?"
42502 "component=libguestfs&product=Virtualization+Tools>"
42503 msgstr ""
42504 "L<https://bugzilla.redhat.com/buglist.cgi?"
42505 "component=libguestfs&product=Virtualization+Tools>"
42506
42507 #. type: textblock
42508 #: ../src/guestfs.pod:3327
42509 msgid "To report a new bug against libguestfs use this link:"
42510 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
42511
42512 #. type: textblock
42513 #: ../src/guestfs.pod:3329
42514 msgid ""
42515 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42516 "component=libguestfs&product=Virtualization+Tools>"
42517 msgstr ""
42518 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42519 "component=libguestfs&product=Virtualization+Tools>"
42520
42521 #. type: textblock
42522 #: ../src/guestfs.pod:3331
42523 msgid "When reporting a bug, please check:"
42524 msgstr ""
42525
42526 #. type: textblock
42527 #: ../src/guestfs.pod:3337
42528 msgid "That the bug hasn't been reported already."
42529 msgstr ""
42530
42531 #. type: textblock
42532 #: ../src/guestfs.pod:3341
42533 msgid "That you are testing a recent version."
42534 msgstr ""
42535
42536 #. type: textblock
42537 #: ../src/guestfs.pod:3345
42538 msgid "Describe the bug accurately, and give a way to reproduce it."
42539 msgstr ""
42540
42541 #. type: textblock
42542 #: ../src/guestfs.pod:3349
42543 msgid ""
42544 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
42545 "bug report."
42546 msgstr ""
42547
42548 #. type: textblock
42549 #: ../test-tool/libguestfs-test-tool.pod:5
42550 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
42551 msgstr ""
42552
42553 #. type: verbatim
42554 #: ../test-tool/libguestfs-test-tool.pod:9
42555 #, no-wrap
42556 msgid ""
42557 " libguestfs-test-tool [--options]\n"
42558 "\n"
42559 msgstr ""
42560
42561 #. type: textblock
42562 #: ../test-tool/libguestfs-test-tool.pod:13
42563 msgid ""
42564 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42565 "to check basic libguestfs functionality is working.  This is needed because "
42566 "libguestfs occasionally breaks for reasons beyond our control: usually "
42567 "because of changes in the underlying qemu or kernel packages, or the host "
42568 "environment."
42569 msgstr ""
42570
42571 #. type: textblock
42572 #: ../test-tool/libguestfs-test-tool.pod:19
42573 msgid "If you suspect a problem in libguestfs, then just run:"
42574 msgstr ""
42575
42576 #. type: verbatim
42577 #: ../test-tool/libguestfs-test-tool.pod:21
42578 #, no-wrap
42579 msgid ""
42580 " libguestfs-test-tool\n"
42581 "\n"
42582 msgstr ""
42583
42584 #. type: textblock
42585 #: ../test-tool/libguestfs-test-tool.pod:23
42586 msgid "It will print lots of diagnostic messages."
42587 msgstr ""
42588
42589 #. type: textblock
42590 #: ../test-tool/libguestfs-test-tool.pod:25
42591 msgid "If it runs to completion successfully, you will see this near the end:"
42592 msgstr ""
42593
42594 #. type: verbatim
42595 #: ../test-tool/libguestfs-test-tool.pod:27
42596 #, no-wrap
42597 msgid ""
42598 " ===== TEST FINISHED OK =====\n"
42599 "\n"
42600 msgstr ""
42601
42602 #. type: textblock
42603 #: ../test-tool/libguestfs-test-tool.pod:29
42604 msgid "and the test tool will exit with code 0."
42605 msgstr ""
42606
42607 #. type: textblock
42608 #: ../test-tool/libguestfs-test-tool.pod:31
42609 msgid ""
42610 "If it fails (and/or exits with non-zero error code), please paste the "
42611 "I<complete, unedited> output of the test tool into a bug report.  More "
42612 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42613 "> website."
42614 msgstr ""
42615
42616 #. type: textblock
42617 #: ../test-tool/libguestfs-test-tool.pod:42
42618 msgid "Display short usage information and exit."
42619 msgstr ""
42620
42621 #. type: =item
42622 #: ../test-tool/libguestfs-test-tool.pod:44
42623 msgid "B<--qemu qemu_binary>"
42624 msgstr ""
42625
42626 #. type: textblock
42627 #: ../test-tool/libguestfs-test-tool.pod:46
42628 msgid ""
42629 "If you have downloaded another qemu binary, point this option at the full "
42630 "path of the binary to try it."
42631 msgstr ""
42632
42633 #. type: =item
42634 #: ../test-tool/libguestfs-test-tool.pod:49
42635 msgid "B<--qemudir qemu_source_dir>"
42636 msgstr ""
42637
42638 #. type: textblock
42639 #: ../test-tool/libguestfs-test-tool.pod:51
42640 msgid ""
42641 "If you have compiled qemu from source, point this option at the source "
42642 "directory to try it."
42643 msgstr ""
42644
42645 #. type: =item
42646 #: ../test-tool/libguestfs-test-tool.pod:54
42647 msgid "B<-t N>"
42648 msgstr ""
42649
42650 #. type: =item
42651 #: ../test-tool/libguestfs-test-tool.pod:56
42652 msgid "B<--timeout N>"
42653 msgstr ""
42654
42655 #. type: textblock
42656 #: ../test-tool/libguestfs-test-tool.pod:58
42657 msgid ""
42658 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
42659 "minutes) which does not usually need to be adjusted."
42660 msgstr ""
42661
42662 #. type: =head1
42663 #: ../test-tool/libguestfs-test-tool.pod:63
42664 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42665 msgstr ""
42666
42667 #. type: textblock
42668 #: ../test-tool/libguestfs-test-tool.pod:65
42669 msgid ""
42670 "If you have compiled another version of qemu from source and would like to "
42671 "try that, then you can use the I<--qemudir> option to point to the qemu "
42672 "source directory."
42673 msgstr ""
42674
42675 #. type: textblock
42676 #: ../test-tool/libguestfs-test-tool.pod:69
42677 msgid ""
42678 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42679 "option to point to the binary."
42680 msgstr ""
42681
42682 #. type: textblock
42683 #: ../test-tool/libguestfs-test-tool.pod:72
42684 msgid ""
42685 "Note when using these options, you can ignore the business of qemu wrapper "
42686 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42687 "wrapper script for you if one is needed."
42688 msgstr ""
42689
42690 #. type: =head1
42691 #: ../test-tool/libguestfs-test-tool.pod:76
42692 msgid "TRYING OUT A DIFFERENT KERNEL"
42693 msgstr ""
42694
42695 #. type: textblock
42696 #: ../test-tool/libguestfs-test-tool.pod:78
42697 msgid ""
42698 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42699 "libguestfs tries.  You do this by setting the environment variables "
42700 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42701 msgstr ""
42702
42703 #. type: textblock
42704 #: ../test-tool/libguestfs-test-tool.pod:82
42705 msgid ""
42706 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42707 "information."
42708 msgstr ""
42709
42710 #. type: =head1
42711 #: ../test-tool/libguestfs-test-tool.pod:85
42712 msgid "SELF-DIAGNOSIS"
42713 msgstr ""
42714
42715 #. type: textblock
42716 #: ../test-tool/libguestfs-test-tool.pod:87
42717 msgid ""
42718 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42719 "produced by libguestfs-test-tool and/or possible errors."
42720 msgstr ""
42721
42722 #. type: textblock
42723 #: ../test-tool/libguestfs-test-tool.pod:92
42724 msgid ""
42725 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42726 "I<1> if there was an error."
42727 msgstr ""
42728
42729 #. type: textblock
42730 #: ../test-tool/libguestfs-test-tool.pod:97
42731 msgid ""
42732 "For the full list of environment variables which may affect libguestfs, "
42733 "please see the L<guestfs(3)> manual page."
42734 msgstr ""
42735
42736 #. type: textblock
42737 #: ../test-tool/libguestfs-test-tool.pod:102
42738 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42739 msgstr ""
42740
42741 #. type: textblock
42742 #: ../tools/virt-list-filesystems.pl:32
42743 msgid ""
42744 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42745 msgstr ""
42746
42747 #. type: verbatim
42748 #: ../tools/virt-list-filesystems.pl:36
42749 #, no-wrap
42750 msgid ""
42751 " virt-list-filesystems [--options] domname\n"
42752 "\n"
42753 msgstr ""
42754
42755 #. type: verbatim
42756 #: ../tools/virt-list-filesystems.pl:38
42757 #, no-wrap
42758 msgid ""
42759 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42760 "\n"
42761 msgstr ""
42762
42763 #. type: textblock
42764 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42765 msgid ""
42766 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42767 "replacement."
42768 msgstr ""
42769
42770 #. type: textblock
42771 #: ../tools/virt-list-filesystems.pl:45
42772 msgid ""
42773 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42774 "are contained in a virtual machine or disk image."
42775 msgstr ""
42776
42777 #. type: textblock
42778 #: ../tools/virt-list-filesystems.pl:49
42779 msgid ""
42780 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42781 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42782 "> tool."
42783 msgstr ""
42784
42785 #. type: textblock
42786 #: ../tools/virt-list-filesystems.pl:112
42787 msgid ""
42788 "With this option, C<virt-list-filesystems> displays the type of each "
42789 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42790 msgstr ""
42791
42792 #. type: =item
42793 #: ../tools/virt-list-filesystems.pl:119
42794 msgid "B<-a>"
42795 msgstr "B<-a>"
42796
42797 #. type: textblock
42798 #: ../tools/virt-list-filesystems.pl:123
42799 msgid ""
42800 "Normally we only show mountable filesystems.  If this option is given then "
42801 "swap devices are shown too."
42802 msgstr ""
42803
42804 #. type: textblock
42805 #: ../tools/virt-list-filesystems.pl:197
42806 msgid ""
42807 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42808 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42809 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42810 msgstr ""
42811 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42812 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42813 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42814
42815 #. type: textblock
42816 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42817 msgid "Copyright (C) 2009 Red Hat Inc."
42818 msgstr "© Red Hat Inc., 2009"
42819
42820 #. type: textblock
42821 #: ../tools/virt-list-partitions.pl:32
42822 msgid ""
42823 "virt-list-partitions - List partitions in a virtual machine or disk image"
42824 msgstr ""
42825
42826 #. type: verbatim
42827 #: ../tools/virt-list-partitions.pl:36
42828 #, no-wrap
42829 msgid ""
42830 " virt-list-partitions [--options] domname\n"
42831 "\n"
42832 msgstr ""
42833 " virt-list-partitions [--параметри] назва_домену\n"
42834 "\n"
42835
42836 #. type: verbatim
42837 #: ../tools/virt-list-partitions.pl:38
42838 #, no-wrap
42839 msgid ""
42840 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42841 "\n"
42842 msgstr ""
42843 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42844 "\n"
42845
42846 #. type: textblock
42847 #: ../tools/virt-list-partitions.pl:45
42848 msgid ""
42849 "C<virt-list-partitions> is a command line tool to list the partitions that "
42850 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42851 "first step to using L<virt-resize(1)>."
42852 msgstr ""
42853
42854 #. type: textblock
42855 #: ../tools/virt-list-partitions.pl:50
42856 msgid ""
42857 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42858 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42859 "> tool."
42860 msgstr ""
42861
42862 #. type: textblock
42863 #: ../tools/virt-list-partitions.pl:113
42864 msgid "Show sizes in human-readable form (eg. \"1G\")."
42865 msgstr ""
42866
42867 #. type: textblock
42868 #: ../tools/virt-list-partitions.pl:123
42869 msgid ""
42870 "With this option, C<virt-list-partitions> displays the type and size of each "
42871 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42872 msgstr ""
42873
42874 #. type: =item
42875 #: ../tools/virt-list-partitions.pl:130
42876 msgid "B<-t>"
42877 msgstr "B<-t>"
42878
42879 #. type: =item
42880 #: ../tools/virt-list-partitions.pl:132
42881 msgid "B<--total>"
42882 msgstr "B<--total>"
42883
42884 #. type: textblock
42885 #: ../tools/virt-list-partitions.pl:134
42886 msgid ""
42887 "Display the total size of each block device (as a separate row or rows)."
42888 msgstr ""
42889
42890 #. type: textblock
42891 #: ../tools/virt-list-partitions.pl:267
42892 msgid ""
42893 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42894 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42895 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42896 msgstr ""
42897 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42898 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42899 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42900
42901 #. type: textblock
42902 #: ../tools/virt-list-partitions.pl:283
42903 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42904 msgstr "© Red Hat Inc., 2009–2010"
42905
42906 #. type: textblock
42907 #: ../tools/virt-make-fs.pl:37
42908 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42909 msgstr ""
42910
42911 #. type: verbatim
42912 #: ../tools/virt-make-fs.pl:41
42913 #, no-wrap
42914 msgid ""
42915 " virt-make-fs [--options] input.tar output.img\n"
42916 "\n"
42917 msgstr ""
42918
42919 #. type: verbatim
42920 #: ../tools/virt-make-fs.pl:43
42921 #, no-wrap
42922 msgid ""
42923 " virt-make-fs [--options] input.tar.gz output.img\n"
42924 "\n"
42925 msgstr ""
42926
42927 #. type: verbatim
42928 #: ../tools/virt-make-fs.pl:45
42929 #, no-wrap
42930 msgid ""
42931 " virt-make-fs [--options] directory output.img\n"
42932 "\n"
42933 msgstr ""
42934
42935 #. type: textblock
42936 #: ../tools/virt-make-fs.pl:49
42937 msgid ""
42938 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42939 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42940 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42941 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42942 "you want to attach these filesystems to existing virtual machines (eg. to "
42943 "import large amounts of read-only data to a VM)."
42944 msgstr ""
42945
42946 #. type: textblock
42947 #: ../tools/virt-make-fs.pl:57
42948 msgid "Basic usage is:"
42949 msgstr ""
42950
42951 #. type: verbatim
42952 #: ../tools/virt-make-fs.pl:59
42953 #, no-wrap
42954 msgid ""
42955 " virt-make-fs input output.img\n"
42956 "\n"
42957 msgstr ""
42958
42959 #. type: textblock
42960 #: ../tools/virt-make-fs.pl:61
42961 msgid ""
42962 "where C<input> is either a directory containing files that you want to add, "
42963 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42964 "C<output.img> is a disk image.  The input type is detected automatically.  "
42965 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42966 "extra flags (see L</OPTIONS> below)."
42967 msgstr ""
42968
42969 #. type: =head2
42970 #: ../tools/virt-make-fs.pl:67
42971 msgid "FILESYSTEM TYPE"
42972 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42973
42974 #. type: textblock
42975 #: ../tools/virt-make-fs.pl:69
42976 msgid ""
42977 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42978 "libguestfs supports can be used (but I<not> read-only formats like "
42979 "ISO9660).  Here are some of the more common choices:"
42980 msgstr ""
42981
42982 #. type: =item
42983 #: ../tools/virt-make-fs.pl:75
42984 msgid "I<ext3>"
42985 msgstr "I<ext3>"
42986
42987 #. type: textblock
42988 #: ../tools/virt-make-fs.pl:77
42989 msgid ""
42990 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42991 "you are not going to use the filesystem in a way that requires the journal, "
42992 "then this is just wasted overhead."
42993 msgstr ""
42994
42995 #. type: =item
42996 #: ../tools/virt-make-fs.pl:81
42997 msgid "I<ntfs> or I<vfat>"
42998 msgstr "I<ntfs> або I<vfat>"
42999
43000 #. type: textblock
43001 #: ../tools/virt-make-fs.pl:83
43002 msgid "Useful if exporting data to a Windows guest."
43003 msgstr ""
43004
43005 #. type: textblock
43006 #: ../tools/virt-make-fs.pl:85
43007 msgid ""
43008 "I<Note for vfat>: The tar archive or local directory must only contain files "
43009 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
43010 "program running within libguestfs is unable to change the ownership of non-"
43011 "root files, since vfat itself does not support this."
43012 msgstr ""
43013
43014 #. type: =item
43015 #: ../tools/virt-make-fs.pl:90
43016 msgid "I<minix>"
43017 msgstr "I<minix>"
43018
43019 #. type: textblock
43020 #: ../tools/virt-make-fs.pl:92
43021 msgid ""
43022 "Lower overhead than C<ext2>, but certain limitations on filename length and "
43023 "total filesystem size."
43024 msgstr ""
43025
43026 #. type: =head3
43027 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
43028 #: ../tools/virt-make-fs.pl:149
43029 msgid "EXAMPLE"
43030 msgstr "ПРИКЛАД"
43031
43032 #. type: verbatim
43033 #: ../tools/virt-make-fs.pl:99
43034 #, no-wrap
43035 msgid ""
43036 " virt-make-fs --type=minix input minixfs.img\n"
43037 "\n"
43038 msgstr ""
43039
43040 #. type: =head2
43041 #: ../tools/virt-make-fs.pl:101
43042 msgid "TO PARTITION OR NOT TO PARTITION"
43043 msgstr ""
43044
43045 #. type: textblock
43046 #: ../tools/virt-make-fs.pl:103
43047 msgid "Optionally virt-make-fs can add a partition table to the output disk."
43048 msgstr ""
43049
43050 #. type: textblock
43051 #: ../tools/virt-make-fs.pl:105
43052 msgid ""
43053 "Adding a partition can make the disk image more compatible with certain "
43054 "virtualized operating systems which don't expect to see a filesystem "
43055 "directly located on a block device (Linux doesn't care and will happily "
43056 "handle both types)."
43057 msgstr ""
43058
43059 #. type: textblock
43060 #: ../tools/virt-make-fs.pl:110
43061 msgid ""
43062 "On the other hand, if you have a partition table then the output image is no "
43063 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
43064 "directly on a partitioned disk image.  (However libguestfs tools such as "
43065 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
43066 msgstr ""
43067
43068 #. type: textblock
43069 #: ../tools/virt-make-fs.pl:118
43070 msgid "Add an MBR partition:"
43071 msgstr ""
43072
43073 #. type: verbatim
43074 #: ../tools/virt-make-fs.pl:120
43075 #, no-wrap
43076 msgid ""
43077 " virt-make-fs --partition -- input disk.img\n"
43078 "\n"
43079 msgstr ""
43080
43081 #. type: textblock
43082 #: ../tools/virt-make-fs.pl:122
43083 msgid ""
43084 "If the output disk image could be terabyte-sized or larger, it's better to "
43085 "use an EFI/GPT-compatible partition table:"
43086 msgstr ""
43087
43088 #. type: verbatim
43089 #: ../tools/virt-make-fs.pl:125
43090 #, no-wrap
43091 msgid ""
43092 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
43093 "\n"
43094 msgstr ""
43095
43096 #. type: =head2
43097 #: ../tools/virt-make-fs.pl:127
43098 msgid "EXTRA SPACE"
43099 msgstr ""
43100
43101 #. type: textblock
43102 #: ../tools/virt-make-fs.pl:129
43103 msgid ""
43104 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
43105 "the files that it contains, but might have extra space.  Depending on how "
43106 "you are going to use the output, you might think this extra space is wasted "
43107 "and want to minimize it, or you might want to leave space so that more files "
43108 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
43109 "but you can use the I<--size> flag to leave space in the filesystem if you "
43110 "want it."
43111 msgstr ""
43112
43113 #. type: textblock
43114 #: ../tools/virt-make-fs.pl:137
43115 msgid ""
43116 "An alternative way to leave extra space but not make the output image any "
43117 "bigger is to use an alternative disk image format (instead of the default "
43118 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
43119 "image format (check your hypervisor supports this before using it).  This "
43120 "allows you to choose a large I<--size> but the extra space won't actually be "
43121 "allocated in the image until you try to store something in it."
43122 msgstr ""
43123
43124 #. type: textblock
43125 #: ../tools/virt-make-fs.pl:145
43126 msgid ""
43127 "Don't forget that you can also use local commands including L<resize2fs(8)> "
43128 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
43129 "to build another image from scratch."
43130 msgstr ""
43131
43132 #. type: verbatim
43133 #: ../tools/virt-make-fs.pl:151
43134 #, no-wrap
43135 msgid ""
43136 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43137 "\n"
43138 msgstr ""
43139 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43140 "\n"
43141
43142 #. type: textblock
43143 #: ../tools/virt-make-fs.pl:179
43144 msgid "Enable debugging information."
43145 msgstr "Увімкнути виведення діагностичних даних."
43146
43147 #. type: =item
43148 #: ../tools/virt-make-fs.pl:185
43149 msgid "B<--size=E<lt>NE<gt>>"
43150 msgstr "B<--size=E<lt>NE<gt>>"
43151
43152 #. type: =item
43153 #: ../tools/virt-make-fs.pl:187
43154 msgid "B<--size=+E<lt>NE<gt>>"
43155 msgstr "B<--size=+E<lt>NE<gt>>"
43156
43157 #. type: =item
43158 #: ../tools/virt-make-fs.pl:189
43159 msgid "B<-s E<lt>NE<gt>>"
43160 msgstr "B<-s E<lt>NE<gt>>"
43161
43162 #. type: =item
43163 #: ../tools/virt-make-fs.pl:191
43164 msgid "B<-s +E<lt>NE<gt>>"
43165 msgstr "B<-s +E<lt>NE<gt>>"
43166
43167 #. type: textblock
43168 #: ../tools/virt-make-fs.pl:193
43169 msgid ""
43170 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
43171 msgstr ""
43172
43173 #. type: textblock
43174 #: ../tools/virt-make-fs.pl:196
43175 msgid ""
43176 "If this option is I<not> given, then the output image will be just large "
43177 "enough to contain all the files, with not much wasted space."
43178 msgstr ""
43179
43180 #. type: textblock
43181 #: ../tools/virt-make-fs.pl:199
43182 msgid ""
43183 "To choose a fixed size output disk, specify an absolute number followed by b/"
43184 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43185 "Petabytes or Exabytes.  This must be large enough to contain all the input "
43186 "files, else you will get an error."
43187 msgstr ""
43188
43189 #. type: textblock
43190 #: ../tools/virt-make-fs.pl:204
43191 msgid ""
43192 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
43193 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43194 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
43195 "the input files, and (approximately) an extra 200 MB free space."
43196 msgstr ""
43197
43198 #. type: textblock
43199 #: ../tools/virt-make-fs.pl:210
43200 msgid ""
43201 "Note that virt-make-fs estimates free space, and therefore will not produce "
43202 "filesystems containing precisely the free space requested.  (It is much more "
43203 "expensive and time-consuming to produce a filesystem which has precisely the "
43204 "desired free space)."
43205 msgstr ""
43206
43207 #. type: =item
43208 #: ../tools/virt-make-fs.pl:219
43209 msgid "B<--format=E<lt>fmtE<gt>>"
43210 msgstr ""
43211
43212 #. type: =item
43213 #: ../tools/virt-make-fs.pl:221
43214 msgid "B<-F E<lt>fmtE<gt>>"
43215 msgstr ""
43216
43217 #. type: textblock
43218 #: ../tools/virt-make-fs.pl:223
43219 msgid "Choose the output disk image format."
43220 msgstr ""
43221
43222 #. type: textblock
43223 #: ../tools/virt-make-fs.pl:225
43224 msgid "The default is C<raw> (raw sparse disk image)."
43225 msgstr ""
43226
43227 #. type: textblock
43228 #: ../tools/virt-make-fs.pl:227
43229 msgid ""
43230 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
43231 "that would really make sense here is C<qcow2>."
43232 msgstr ""
43233
43234 #. type: =item
43235 #: ../tools/virt-make-fs.pl:234
43236 msgid "B<--type=E<lt>fsE<gt>>"
43237 msgstr ""
43238
43239 #. type: =item
43240 #: ../tools/virt-make-fs.pl:236
43241 msgid "B<-t E<lt>fsE<gt>>"
43242 msgstr ""
43243
43244 #. type: textblock
43245 #: ../tools/virt-make-fs.pl:238
43246 msgid "Choose the output filesystem type."
43247 msgstr ""
43248
43249 #. type: textblock
43250 #: ../tools/virt-make-fs.pl:240
43251 msgid "The default is C<ext2>."
43252 msgstr "Типовим значенням є C<ext2>."
43253
43254 #. type: textblock
43255 #: ../tools/virt-make-fs.pl:242
43256 msgid ""
43257 "Any filesystem which is supported read-write by libguestfs can be used here."
43258 msgstr ""
43259
43260 #. type: =item
43261 #: ../tools/virt-make-fs.pl:249
43262 msgid "B<--partition>"
43263 msgstr "B<--partition>"
43264
43265 #. type: =item
43266 #: ../tools/virt-make-fs.pl:251
43267 msgid "B<--partition=E<lt>parttypeE<gt>>"
43268 msgstr ""
43269
43270 #. type: textblock
43271 #: ../tools/virt-make-fs.pl:253
43272 msgid ""
43273 "If specified, this flag adds an MBR partition table to the output disk image."
43274 msgstr ""
43275
43276 #. type: textblock
43277 #: ../tools/virt-make-fs.pl:256
43278 msgid ""
43279 "You can change the partition table type, eg. I<--partition=gpt> for large "
43280 "disks."
43281 msgstr ""
43282
43283 #. type: textblock
43284 #: ../tools/virt-make-fs.pl:259
43285 msgid ""
43286 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
43287 "might consider the next parameter to be the partition type.  For example:"
43288 msgstr ""
43289
43290 #. type: verbatim
43291 #: ../tools/virt-make-fs.pl:263
43292 #, no-wrap
43293 msgid ""
43294 " virt-make-fs --partition input.tar output.img\n"
43295 "\n"
43296 msgstr ""
43297
43298 #. type: textblock
43299 #: ../tools/virt-make-fs.pl:265
43300 msgid ""
43301 "would cause virt-make-fs to think you wanted to use a partition type of "
43302 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
43303 "dash) between options and the input and output arguments:"
43304 msgstr ""
43305
43306 #. type: verbatim
43307 #: ../tools/virt-make-fs.pl:269
43308 #, no-wrap
43309 msgid ""
43310 " virt-make-fs --partition -- input.tar output.img\n"
43311 "\n"
43312 msgstr ""
43313
43314 #. type: textblock
43315 #: ../tools/virt-make-fs.pl:271
43316 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
43317 msgstr ""
43318
43319 #. type: textblock
43320 #: ../tools/virt-make-fs.pl:559
43321 msgid ""
43322 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43323 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43324 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43325 msgstr ""
43326 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43327 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43328 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43329
43330 #. type: textblock
43331 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
43332 msgid ""
43333 "When reporting bugs, please enable debugging and capture the I<complete> "
43334 "output:"
43335 msgstr ""
43336
43337 #. type: verbatim
43338 #: ../tools/virt-make-fs.pl:576
43339 #, no-wrap
43340 msgid ""
43341 " export LIBGUESTFS_DEBUG=1\n"
43342 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43343 "\n"
43344 msgstr ""
43345 " export LIBGUESTFS_DEBUG=1\n"
43346 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43347 "\n"
43348
43349 #. type: textblock
43350 #: ../tools/virt-make-fs.pl:579
43351 msgid ""
43352 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
43353 "redhat.com/>"
43354 msgstr ""
43355
43356 #. type: textblock
43357 #: ../tools/virt-tar.pl:33
43358 msgid "virt-tar - Extract or upload files to a virtual machine"
43359 msgstr ""
43360
43361 #. type: verbatim
43362 #: ../tools/virt-tar.pl:37
43363 #, no-wrap
43364 msgid ""
43365 " virt-tar [--options] -x domname directory tarball\n"
43366 "\n"
43367 msgstr ""
43368
43369 #. type: verbatim
43370 #: ../tools/virt-tar.pl:39
43371 #, no-wrap
43372 msgid ""
43373 " virt-tar [--options] -u domname tarball directory\n"
43374 "\n"
43375 msgstr ""
43376
43377 #. type: verbatim
43378 #: ../tools/virt-tar.pl:41
43379 #, no-wrap
43380 msgid ""
43381 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
43382 "\n"
43383 msgstr ""
43384
43385 #. type: verbatim
43386 #: ../tools/virt-tar.pl:43
43387 #, no-wrap
43388 msgid ""
43389 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
43390 "\n"
43391 msgstr ""
43392
43393 #. type: =head2
43394 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
43395 msgid "NOTE"
43396 msgstr "ПРИМІТКА"
43397
43398 #. type: textblock
43399 #: ../tools/virt-tar.pl:47
43400 msgid ""
43401 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
43402 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
43403 msgstr ""
43404
43405 #. type: textblock
43406 #: ../tools/virt-tar.pl:52
43407 msgid "Download C</home> from the VM into a local tarball:"
43408 msgstr ""
43409
43410 #. type: verbatim
43411 #: ../tools/virt-tar.pl:54
43412 #, no-wrap
43413 msgid ""
43414 " virt-tar -x domname /home home.tar\n"
43415 "\n"
43416 msgstr ""
43417
43418 #. type: verbatim
43419 #: ../tools/virt-tar.pl:56
43420 #, no-wrap
43421 msgid ""
43422 " virt-tar -zx domname /home home.tar.gz\n"
43423 "\n"
43424 msgstr ""
43425
43426 #. type: textblock
43427 #: ../tools/virt-tar.pl:58
43428 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
43429 msgstr ""
43430
43431 #. type: verbatim
43432 #: ../tools/virt-tar.pl:60
43433 #, no-wrap
43434 msgid ""
43435 " virt-tar -u domname uploadstuff.tar /tmp\n"
43436 "\n"
43437 msgstr ""
43438
43439 #. type: verbatim
43440 #: ../tools/virt-tar.pl:62
43441 #, no-wrap
43442 msgid ""
43443 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
43444 "\n"
43445 msgstr ""
43446
43447 #. type: textblock
43448 #: ../tools/virt-tar.pl:66
43449 msgid ""
43450 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
43451 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
43452 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
43453 msgstr ""
43454
43455 #. type: textblock
43456 #: ../tools/virt-tar.pl:71
43457 msgid ""
43458 "You can use I<-x> (extract) on live virtual machines, but you might get "
43459 "inconsistent results or errors if there is filesystem activity inside the "
43460 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
43461 "work, but the only way to guarantee consistent results is if the virtual "
43462 "machine is shut down."
43463 msgstr ""
43464
43465 #. type: textblock
43466 #: ../tools/virt-tar.pl:79
43467 msgid ""
43468 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
43469 "parts of a guest filesystem.  There are many possibilities: making backups, "
43470 "uploading data files, snooping on guest activity, fixing or customizing "
43471 "guests, etc."
43472 msgstr ""
43473
43474 #. type: textblock
43475 #: ../tools/virt-tar.pl:84
43476 msgid ""
43477 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
43478 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
43479 "should look at the L<guestfish(1)> tool."
43480 msgstr ""
43481
43482 #. type: textblock
43483 #: ../tools/virt-tar.pl:88
43484 msgid ""
43485 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
43486 "its contents (recursively) from the virtual machine into a local tarball.  "
43487 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
43488 "virtual machine.  You cannot use these two options together."
43489 msgstr ""
43490
43491 #. type: textblock
43492 #: ../tools/virt-tar.pl:94
43493 msgid ""
43494 "In addition, you may need to use the I<-z> (gZip) option to enable "
43495 "compression.  When uploading, you have to specify I<-z> if the upload file "
43496 "is compressed because virt-tar won't detect this on its own."
43497 msgstr ""
43498
43499 #. type: textblock
43500 #: ../tools/virt-tar.pl:98
43501 msgid ""
43502 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
43503 "example it cannot do PKZip files or bzip2 compression.  If you want that "
43504 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
43505 "the L<libguestfs(3)> API)."
43506 msgstr ""
43507
43508 #. type: =item
43509 #: ../tools/virt-tar.pl:160
43510 msgid "B<--extract>"
43511 msgstr "B<--extract>"
43512
43513 #. type: =item
43514 #: ../tools/virt-tar.pl:162
43515 msgid "B<--download>"
43516 msgstr "B<--download>"
43517
43518 #. type: =item
43519 #: ../tools/virt-tar.pl:164
43520 msgid "B<-u>"
43521 msgstr "B<-u>"
43522
43523 #. type: =item
43524 #: ../tools/virt-tar.pl:166
43525 msgid "B<--upload>"
43526 msgstr "B<--upload>"
43527
43528 #. type: textblock
43529 #: ../tools/virt-tar.pl:168
43530 msgid ""
43531 "Use I<-x> to extract (download) a directory from a virtual machine to a "
43532 "local tarball."
43533 msgstr ""
43534
43535 #. type: textblock
43536 #: ../tools/virt-tar.pl:171
43537 msgid ""
43538 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
43539 "Please read the L</WARNING> section above before using this option."
43540 msgstr ""
43541
43542 #. type: textblock
43543 #: ../tools/virt-tar.pl:175
43544 msgid "You must specify exactly one of these options."
43545 msgstr ""
43546
43547 #. type: =item
43548 #: ../tools/virt-tar.pl:181
43549 msgid "B<-z>"
43550 msgstr "B<-z>"
43551
43552 #. type: =item
43553 #: ../tools/virt-tar.pl:183
43554 msgid "B<--gzip>"
43555 msgstr "B<--gzip>"
43556
43557 #. type: textblock
43558 #: ../tools/virt-tar.pl:185
43559 msgid "Specify that the input or output tarball is gzip-compressed."
43560 msgstr ""
43561
43562 #. type: textblock
43563 #: ../tools/virt-tar.pl:298
43564 msgid ""
43565 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43566 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43567 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43568 "org/>."
43569 msgstr ""
43570 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43571 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43572 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43573 "org/>."
43574
43575 #. type: textblock
43576 #: ../tools/virt-win-reg.pl:37
43577 msgid ""
43578 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
43579 msgstr ""
43580
43581 #. type: verbatim
43582 #: ../tools/virt-win-reg.pl:41
43583 #, no-wrap
43584 msgid ""
43585 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43586 "\n"
43587 msgstr ""
43588
43589 #. type: verbatim
43590 #: ../tools/virt-win-reg.pl:43
43591 #, no-wrap
43592 msgid ""
43593 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43594 "\n"
43595 msgstr ""
43596
43597 #. type: verbatim
43598 #: ../tools/virt-win-reg.pl:45
43599 #, no-wrap
43600 msgid ""
43601 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43602 "\n"
43603 msgstr ""
43604
43605 #. type: verbatim
43606 #: ../tools/virt-win-reg.pl:47
43607 #, no-wrap
43608 msgid ""
43609 " virt-win-reg --merge domname [input.reg ...]\n"
43610 "\n"
43611 msgstr ""
43612
43613 #. type: verbatim
43614 #: ../tools/virt-win-reg.pl:49
43615 #, no-wrap
43616 msgid ""
43617 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43618 "\n"
43619 msgstr ""
43620
43621 #. type: textblock
43622 #: ../tools/virt-win-reg.pl:53
43623 msgid ""
43624 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43625 "virtual machines.  If you do this, you I<will> get irreversible disk "
43626 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
43627 "but doesn't catch all cases."
43628 msgstr ""
43629
43630 #. type: textblock
43631 #: ../tools/virt-win-reg.pl:58
43632 msgid ""
43633 "Modifying the Windows Registry is an inherently risky operation.  The format "
43634 "is deliberately obscure and undocumented, and Registry changes can leave the "
43635 "system unbootable.  Therefore when using the I<--merge> option, make sure "
43636 "you have a reliable backup first."
43637 msgstr ""
43638
43639 #. type: textblock
43640 #: ../tools/virt-win-reg.pl:65
43641 msgid ""
43642 "This program can export and merge Windows Registry entries from a Windows "
43643 "guest."
43644 msgstr ""
43645
43646 #. type: textblock
43647 #: ../tools/virt-win-reg.pl:68
43648 msgid ""
43649 "The first parameter is the libvirt guest name or the raw disk image of a "
43650 "Windows guest."
43651 msgstr ""
43652
43653 #. type: textblock
43654 #: ../tools/virt-win-reg.pl:71
43655 msgid ""
43656 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43657 "exported (recursively).  For example:"
43658 msgstr ""
43659
43660 #. type: verbatim
43661 #: ../tools/virt-win-reg.pl:74
43662 #, no-wrap
43663 msgid ""
43664 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43665 "\n"
43666 msgstr ""
43667 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43668 "\n"
43669
43670 #. type: textblock
43671 #: ../tools/virt-win-reg.pl:76
43672 msgid ""
43673 "You can also display single values from within registry keys, for example:"
43674 msgstr ""
43675
43676 #. type: verbatim
43677 #: ../tools/virt-win-reg.pl:79
43678 #, no-wrap
43679 msgid ""
43680 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43681 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43682 " Windows 7 Enterprise\n"
43683 "\n"
43684 msgstr ""
43685 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43686 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43687 " Windows 7 Enterprise\n"
43688 "\n"
43689
43690 #. type: textblock
43691 #: ../tools/virt-win-reg.pl:83
43692 msgid ""
43693 "With I<--merge>, you can merge a textual regedit file into the Windows "
43694 "Registry:"
43695 msgstr ""
43696
43697 #. type: verbatim
43698 #: ../tools/virt-win-reg.pl:86
43699 #, no-wrap
43700 msgid ""
43701 " $ virt-win-reg --merge Windows7 changes.reg\n"
43702 "\n"
43703 msgstr ""
43704 " $ virt-win-reg --merge Windows7 changes.reg\n"
43705 "\n"
43706
43707 #. type: textblock
43708 #: ../tools/virt-win-reg.pl:90
43709 msgid ""
43710 "This program is only meant for simple access to the registry.  If you want "
43711 "to do complicated things with the registry, we suggest you download the "
43712 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43713 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43714 "L<hivexregedit(1)>."
43715 msgstr ""
43716
43717 #. type: =item
43718 #: ../tools/virt-win-reg.pl:159
43719 msgid "B<--merge>"
43720 msgstr "B<--merge>"
43721
43722 #. type: textblock
43723 #: ../tools/virt-win-reg.pl:161
43724 msgid ""
43725 "In merge mode, this merges a textual regedit file into the Windows Registry "
43726 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
43727 "displays or exports Registry entries instead."
43728 msgstr ""
43729
43730 #. type: textblock
43731 #: ../tools/virt-win-reg.pl:165
43732 msgid ""
43733 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43734 "result in disk corruption.  However exporting (without this flag)  is always "
43735 "safe."
43736 msgstr ""
43737
43738 #. type: =item
43739 #: ../tools/virt-win-reg.pl:173
43740 msgid "B<--encoding> UTF-16LE|ASCII"
43741 msgstr "B<--encoding> UTF-16LE|ASCII"
43742
43743 #. type: textblock
43744 #: ../tools/virt-win-reg.pl:175
43745 msgid ""
43746 "When merging (only), you may need to specify the encoding for strings to be "
43747 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43748 "(3)/ENCODING STRINGS>."
43749 msgstr ""
43750
43751 #. type: textblock
43752 #: ../tools/virt-win-reg.pl:179
43753 msgid ""
43754 "The default is to use UTF-16LE, which should work with recent versions of "
43755 "Windows."
43756 msgstr ""
43757
43758 #. type: =item
43759 #: ../tools/virt-win-reg.pl:186
43760 msgid "B<--unsafe-printable-strings>"
43761 msgstr "B<--unsafe-printable-strings>"
43762
43763 #. type: textblock
43764 #: ../tools/virt-win-reg.pl:188
43765 msgid ""
43766 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43767 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43768 "present."
43769 msgstr ""
43770
43771 #. type: textblock
43772 #: ../tools/virt-win-reg.pl:192
43773 msgid ""
43774 "This is unsafe and does not preserve the fidelity of strings in the original "
43775 "Registry for various reasons:"
43776 msgstr ""
43777
43778 #. type: textblock
43779 #: ../tools/virt-win-reg.pl:199
43780 msgid ""
43781 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43782 "other encodings will be corrupted by this transformation."
43783 msgstr ""
43784
43785 #. type: textblock
43786 #: ../tools/virt-win-reg.pl:204
43787 msgid ""
43788 "Assumes that everything which has type 1 or 2 is really a string and that "
43789 "everything else is not a string, but the type field in real Registries is "
43790 "not reliable."
43791 msgstr ""
43792
43793 #. type: textblock
43794 #: ../tools/virt-win-reg.pl:210
43795 msgid ""
43796 "Loses information about whether a zero codepoint followed the string in the "
43797 "Registry or not."
43798 msgstr ""
43799
43800 #. type: textblock
43801 #: ../tools/virt-win-reg.pl:215
43802 msgid ""
43803 "This all happens because the Registry itself contains no information about "
43804 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43805 msgstr ""
43806
43807 #. type: textblock
43808 #: ../tools/virt-win-reg.pl:219
43809 msgid ""
43810 "You should only use this option for quick hacking and debugging of the "
43811 "Registry contents, and I<never> use it if the output is going to be passed "
43812 "into another program or stored in another Registry."
43813 msgstr ""
43814
43815 #. type: =head1
43816 #: ../tools/virt-win-reg.pl:556
43817 msgid "SUPPORTED SYSTEMS"
43818 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43819
43820 #. type: textblock
43821 #: ../tools/virt-win-reg.pl:558
43822 msgid ""
43823 "The program currently supports Windows NT-derived guests starting with "
43824 "Windows XP through to at least Windows 7."
43825 msgstr ""
43826
43827 #. type: textblock
43828 #: ../tools/virt-win-reg.pl:561
43829 msgid "The following Registry keys are supported:"
43830 msgstr ""
43831
43832 #. type: =item
43833 #: ../tools/virt-win-reg.pl:565
43834 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43835 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43836
43837 #. type: =item
43838 #: ../tools/virt-win-reg.pl:567
43839 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43840 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43841
43842 #. type: =item
43843 #: ../tools/virt-win-reg.pl:569
43844 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43845 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43846
43847 #. type: =item
43848 #: ../tools/virt-win-reg.pl:571
43849 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43850 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43851
43852 #. type: =item
43853 #: ../tools/virt-win-reg.pl:573
43854 msgid "C<HKEY_USERS\\.DEFAULT>"
43855 msgstr "C<HKEY_USERS\\.DEFAULT>"
43856
43857 #. type: =item
43858 #: ../tools/virt-win-reg.pl:575
43859 msgid "C<HKEY_USERS\\I<SID>>"
43860 msgstr "C<HKEY_USERS\\I<SID>>"
43861
43862 #. type: textblock
43863 #: ../tools/virt-win-reg.pl:577
43864 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43865 msgstr ""
43866
43867 #. type: =item
43868 #: ../tools/virt-win-reg.pl:579
43869 msgid "C<HKEY_USERS\\I<username>>"
43870 msgstr "C<HKEY_USERS\\I<користувач>>"
43871
43872 #. type: textblock
43873 #: ../tools/virt-win-reg.pl:581
43874 msgid ""
43875 "where I<username> is a local user name (this is a libguestfs extension)."
43876 msgstr ""
43877
43878 #. type: textblock
43879 #: ../tools/virt-win-reg.pl:585
43880 msgid ""
43881 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43882 "C<HKEY_USERS>."
43883 msgstr ""
43884
43885 #. type: textblock
43886 #: ../tools/virt-win-reg.pl:588
43887 msgid ""
43888 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43889 "supported (there is no \"current user\")."
43890 msgstr ""
43891
43892 #. type: =head1
43893 #: ../tools/virt-win-reg.pl:591
43894 msgid "ENCODING"
43895 msgstr "КОДУВАННЯ"
43896
43897 #. type: textblock
43898 #: ../tools/virt-win-reg.pl:593
43899 msgid ""
43900 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43901 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43902 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43903 "Windows-style line endings, you may need to reencode the whole file before "
43904 "or after processing."
43905 msgstr ""
43906
43907 #. type: textblock
43908 #: ../tools/virt-win-reg.pl:599
43909 msgid ""
43910 "To reencode a file from Windows format to Linux (before processing it with "
43911 "the I<--merge> option), you would do something like this:"
43912 msgstr ""
43913
43914 #. type: verbatim
43915 #: ../tools/virt-win-reg.pl:602
43916 #, no-wrap
43917 msgid ""
43918 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43919 "\n"
43920 msgstr ""
43921 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43922 "\n"
43923
43924 #. type: textblock
43925 #: ../tools/virt-win-reg.pl:604
43926 msgid ""
43927 "To go in the opposite direction, after exporting and before sending the file "
43928 "to a Windows user, do something like this:"
43929 msgstr ""
43930
43931 #. type: verbatim
43932 #: ../tools/virt-win-reg.pl:607
43933 #, no-wrap
43934 msgid ""
43935 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43936 "\n"
43937 msgstr ""
43938 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43939 "\n"
43940
43941 #. type: textblock
43942 #: ../tools/virt-win-reg.pl:609
43943 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43944 msgstr ""
43945
43946 #. type: textblock
43947 #: ../tools/virt-win-reg.pl:611
43948 msgid ""
43949 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43950 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43951 "style (CRLF) line endings, like this:"
43952 msgstr ""
43953
43954 #. type: verbatim
43955 #: ../tools/virt-win-reg.pl:615
43956 #, no-wrap
43957 msgid ""
43958 " $ file software.reg\n"
43959 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43960 " with CRLF line terminators\n"
43961 "\n"
43962 msgstr ""
43963
43964 #. type: textblock
43965 #: ../tools/virt-win-reg.pl:619
43966 msgid "This file would need conversion before you could I<--merge> it."
43967 msgstr ""
43968
43969 #. type: =head1
43970 #: ../tools/virt-win-reg.pl:621
43971 msgid "CurrentControlSet etc."
43972 msgstr ""
43973
43974 #. type: textblock
43975 #: ../tools/virt-win-reg.pl:623
43976 msgid ""
43977 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43978 "Registry at the level of the hive file, and therefore you cannot modify "
43979 "these."
43980 msgstr ""
43981
43982 #. type: textblock
43983 #: ../tools/virt-win-reg.pl:627
43984 msgid ""
43985 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43986 "circumstances it might refer to another control set.  The way to find out is "
43987 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43988 msgstr ""
43989
43990 #. type: verbatim
43991 #: ../tools/virt-win-reg.pl:631
43992 #, no-wrap
43993 msgid ""
43994 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43995 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43996 " \"Current\"=dword:00000001\n"
43997 " \"Default\"=dword:00000001\n"
43998 " \"Failed\"=dword:00000000\n"
43999 " \"LastKnownGood\"=dword:00000002\n"
44000 "\n"
44001 msgstr ""
44002 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44003 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44004 " \"Current\"=dword:00000001\n"
44005 " \"Default\"=dword:00000001\n"
44006 " \"Failed\"=dword:00000000\n"
44007 " \"LastKnownGood\"=dword:00000002\n"
44008 "\n"
44009
44010 #. type: textblock
44011 #: ../tools/virt-win-reg.pl:638
44012 msgid "\"Current\" is the one which Windows will choose when it boots."
44013 msgstr ""
44014
44015 #. type: textblock
44016 #: ../tools/virt-win-reg.pl:640
44017 msgid ""
44018 "Similarly, other C<Current...> keys in the path may need to be replaced."
44019 msgstr ""
44020
44021 #. type: =head1
44022 #: ../tools/virt-win-reg.pl:643
44023 msgid "DELETING REGISTRY KEYS AND VALUES"
44024 msgstr ""
44025
44026 #. type: textblock
44027 #: ../tools/virt-win-reg.pl:645
44028 msgid "To delete a whole registry key, use the syntax:"
44029 msgstr ""
44030
44031 #. type: verbatim
44032 #: ../tools/virt-win-reg.pl:647
44033 #, no-wrap
44034 msgid ""
44035 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
44036 "\n"
44037 msgstr ""
44038
44039 #. type: textblock
44040 #: ../tools/virt-win-reg.pl:649
44041 msgid "To delete a single value within a key, use the syntax:"
44042 msgstr ""
44043
44044 #. type: verbatim
44045 #: ../tools/virt-win-reg.pl:651
44046 #, no-wrap
44047 msgid ""
44048 " [HKEY_LOCAL_MACHINE\\Foo]\n"
44049 " \"Value\"=-\n"
44050 "\n"
44051 msgstr ""
44052
44053 #. type: =head1
44054 #: ../tools/virt-win-reg.pl:654
44055 msgid "WINDOWS TIPS"
44056 msgstr ""
44057
44058 #. type: textblock
44059 #: ../tools/virt-win-reg.pl:656
44060 msgid ""
44061 "Note that some of these tips modify the guest disk image.  The guest I<must> "
44062 "be shut off, else you will get disk corruption."
44063 msgstr ""
44064
44065 #. type: =head2
44066 #: ../tools/virt-win-reg.pl:659
44067 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
44068 msgstr ""
44069
44070 #. type: textblock
44071 #: ../tools/virt-win-reg.pl:661
44072 msgid ""
44073 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
44074 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
44075 "is uploaded into C<C:\\>:"
44076 msgstr ""
44077
44078 #. type: verbatim
44079 #: ../tools/virt-win-reg.pl:665
44080 #, no-wrap
44081 msgid ""
44082 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44083 "\n"
44084 msgstr ""
44085 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44086 "\n"
44087
44088 #. type: textblock
44089 #: ../tools/virt-win-reg.pl:667
44090 msgid "Prepare a regedit file containing the registry change:"
44091 msgstr ""
44092
44093 #. type: verbatim
44094 #: ../tools/virt-win-reg.pl:669
44095 #, no-wrap
44096 msgid ""
44097 " cat > test.reg <<'EOF'\n"
44098 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44099 " \"Test\"=\"c:\\\\test.bat\"\n"
44100 " EOF\n"
44101 "\n"
44102 msgstr ""
44103 " cat > test.reg <<'EOF'\n"
44104 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44105 " \"Test\"=\"c:\\\\test.bat\"\n"
44106 " EOF\n"
44107 "\n"
44108
44109 #. type: textblock
44110 #: ../tools/virt-win-reg.pl:674
44111 msgid ""
44112 "In this example we use the key C<RunOnce> which means that the script will "
44113 "run precisely once when the first user logs in.  If you want it to run every "
44114 "time a user logs in, replace C<RunOnce> with C<Run>."
44115 msgstr ""
44116
44117 #. type: textblock
44118 #: ../tools/virt-win-reg.pl:678
44119 msgid "Now update the registry:"
44120 msgstr "Оновіть регістр:"
44121
44122 #. type: verbatim
44123 #: ../tools/virt-win-reg.pl:680
44124 #, no-wrap
44125 msgid ""
44126 " virt-win-reg --merge WindowsGuest test.reg\n"
44127 "\n"
44128 msgstr ""
44129
44130 #. type: =head2
44131 #: ../tools/virt-win-reg.pl:682
44132 msgid "INSTALLING A SERVICE"
44133 msgstr ""
44134
44135 #. type: textblock
44136 #: ../tools/virt-win-reg.pl:684
44137 msgid ""
44138 "This section assumes you are familiar with Windows services, and you either "
44139 "have a program which handles the Windows Service Control Protocol directly "
44140 "or you want to run any program using a service wrapper like SrvAny or the "
44141 "free RHSrvAny."
44142 msgstr ""
44143
44144 #. type: textblock
44145 #: ../tools/virt-win-reg.pl:689
44146 msgid ""
44147 "First upload the program and optionally the service wrapper.  In this case "
44148 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
44149 msgstr ""
44150
44151 #. type: verbatim
44152 #: ../tools/virt-win-reg.pl:693
44153 #, no-wrap
44154 msgid ""
44155 " guestfish -i -d WindowsGuest <<EOF\n"
44156 "   upload rhsrvany.exe /rhsrvany.exe\n"
44157 "   upload test.exe /test.exe\n"
44158 " EOF\n"
44159 "\n"
44160 msgstr ""
44161 " guestfish -i -d WindowsGuest <<EOF\n"
44162 "   upload rhsrvany.exe /rhsrvany.exe\n"
44163 "   upload test.exe /test.exe\n"
44164 " EOF\n"
44165 "\n"
44166
44167 #. type: textblock
44168 #: ../tools/virt-win-reg.pl:698
44169 msgid ""
44170 "Prepare a regedit file containing the registry changes.  In this example, "
44171 "the first registry change is needed for the service itself or the service "
44172 "wrapper (if used).  The second registry change is only needed because I am "
44173 "using the RHSrvAny service wrapper."
44174 msgstr ""
44175
44176 #. type: verbatim
44177 #: ../tools/virt-win-reg.pl:703
44178 #, no-wrap
44179 msgid ""
44180 " cat > service.reg <<'EOF'\n"
44181 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44182 " \"Type\"=dword:00000010\n"
44183 " \"Start\"=dword:00000002\n"
44184 " \"ErrorControl\"=dword:00000001\n"
44185 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44186 " \"DisplayName\"=\"RHSrvAny\"\n"
44187 " \"ObjectName\"=\"NetworkService\"\n"
44188 " \n"
44189 msgstr ""
44190 " cat > service.reg <<'EOF'\n"
44191 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44192 " \"Type\"=dword:00000010\n"
44193 " \"Start\"=dword:00000002\n"
44194 " \"ErrorControl\"=dword:00000001\n"
44195 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44196 " \"DisplayName\"=\"RHSrvAny\"\n"
44197 " \"ObjectName\"=\"NetworkService\"\n"
44198 " \n"
44199
44200 #. type: verbatim
44201 #: ../tools/virt-win-reg.pl:712
44202 #, no-wrap
44203 msgid ""
44204 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44205 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44206 " \"PWD\"=\"c:\\\\Temp\"\n"
44207 " EOF\n"
44208 "\n"
44209 msgstr ""
44210 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44211 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44212 " \"PWD\"=\"c:\\\\Temp\"\n"
44213 " EOF\n"
44214 "\n"
44215
44216 #. type: textblock
44217 #: ../tools/virt-win-reg.pl:723
44218 msgid ""
44219 "For use of C<ControlSet001> see the section above in this manual page.  You "
44220 "may need to adjust this according to the control set that is in use by the "
44221 "guest."
44222 msgstr ""
44223
44224 #. type: textblock
44225 #: ../tools/virt-win-reg.pl:729
44226 msgid ""
44227 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
44228 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
44229 "privileged account."
44230 msgstr ""
44231
44232 #. type: textblock
44233 #: ../tools/virt-win-reg.pl:735
44234 msgid ""
44235 "For the meaning of the magic numbers, see this Microsoft KB article: "
44236 "L<http://support.microsoft.com/kb/103000>."
44237 msgstr ""
44238
44239 #. type: textblock
44240 #: ../tools/virt-win-reg.pl:740
44241 msgid "Update the registry:"
44242 msgstr "Оновіть регістр:"
44243
44244 #. type: verbatim
44245 #: ../tools/virt-win-reg.pl:742
44246 #, no-wrap
44247 msgid ""
44248 " virt-win-reg --merge WindowsGuest service.reg\n"
44249 "\n"
44250 msgstr ""
44251
44252 #. type: textblock
44253 #: ../tools/virt-win-reg.pl:746
44254 msgid ""
44255 "Be careful when passing parameters containing C<\\> (backslash) in the "
44256 "shell.  Usually you will have to use 'single quotes' or double backslashes "
44257 "(but not both) to protect them from the shell."
44258 msgstr ""
44259
44260 #. type: textblock
44261 #: ../tools/virt-win-reg.pl:750
44262 msgid "Paths and value names are case-insensitive."
44263 msgstr ""
44264
44265 #. type: textblock
44266 #: ../tools/virt-win-reg.pl:759
44267 msgid ""
44268 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44269 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44270 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44271 msgstr ""
44272 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44273 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44274 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44275
44276 #. type: verbatim
44277 #: ../tools/virt-win-reg.pl:777
44278 #, no-wrap
44279 msgid ""
44280 " export LIBGUESTFS_DEBUG=1\n"
44281 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
44282 "\n"
44283 msgstr ""
44284
44285 #. type: textblock
44286 #: ../tools/virt-win-reg.pl:780
44287 msgid ""
44288 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
44289 "redhat.com/>"
44290 msgstr ""