Version 1.14.5.
[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-12-02 09:28+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:497
492 #: ../sparsify/virt-sparsify.pod:158
493 msgid "B<-q>"
494 msgstr "B<-q>"
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499
498 #: ../sparsify/virt-sparsify.pod:160
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:164
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:166
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:168
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:567
545 #: ../sparsify/virt-sparsify.pod:170
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:569
556 #: ../sparsify/virt-sparsify.pod:172 ../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:571
568 #: ../sparsify/virt-sparsify.pod:174 ../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:176
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:178
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:682
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:684
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:689 ../sparsify/virt-sparsify.pod:232
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:365 ../resize/virt-resize.pod:369
945 #: ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384
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:694 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:256 ../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:717 ../sparsify/virt-sparsify.pod:269
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:719
1079 #: ../sparsify/virt-sparsify.pod:271 ../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:721 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:273 ../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:275
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:725
1122 #: ../sparsify/virt-sparsify.pod:277 ../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:730
1142 #: ../sparsify/virt-sparsify.pod:282 ../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:735
1166 #: ../sparsify/virt-sparsify.pod:287 ../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:691 ../sparsify/virt-sparsify.pod:234
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:723 ../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:237
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:441
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:241
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:627
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:397
23203 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:137
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:603
24391 #: ../sparsify/virt-sparsify.pod:208 ../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:610
24431 #: ../sparsify/virt-sparsify.pod:215 ../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:616
24454 #: ../sparsify/virt-sparsify.pod:221 ../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 ../sparsify/virt-sparsify.pod:124
25062 #, fuzzy
25063 #| msgid "B<--debug>"
25064 msgid "B<--debug-gc>"
25065 msgstr "B<--debug>"
25066
25067 #. type: textblock
25068 #: ../resize/virt-resize.pod:334
25069 msgid ""
25070 "Debug garbage collection and memory allocation.  This is only useful when "
25071 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
25072 msgstr ""
25073
25074 #. type: =item
25075 #: ../resize/virt-resize.pod:338
25076 msgid "B<--delete part>"
25077 msgstr "B<--delete розділ>"
25078
25079 #. type: textblock
25080 #: ../resize/virt-resize.pod:340
25081 msgid ""
25082 "Delete the named partition.  It would be more accurate to describe this as "
25083 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25084 "the original disk image is left intact."
25085 msgstr ""
25086
25087 #. type: textblock
25088 #: ../resize/virt-resize.pod:344
25089 msgid ""
25090 "Note that when you delete a partition, then anything contained in the "
25091 "partition is also deleted.  Furthermore, this causes any partitions that "
25092 "come after to be I<renumbered>, which can easily make your guest unbootable."
25093 msgstr ""
25094
25095 #. type: textblock
25096 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
25097 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:150
25098 msgid "You can give this option multiple times."
25099 msgstr ""
25100
25101 #. type: =item
25102 #: ../resize/virt-resize.pod:351
25103 msgid "B<--expand part>"
25104 msgstr "B<--expand розділ>"
25105
25106 #. type: textblock
25107 #: ../resize/virt-resize.pod:353
25108 msgid ""
25109 "Expand the named partition so it uses up all extra space (space left over "
25110 "after any other resize changes that you request have been done)."
25111 msgstr ""
25112
25113 #. type: textblock
25114 #: ../resize/virt-resize.pod:356
25115 msgid ""
25116 "If virt-resize knows how, it will expand the direct content of the "
25117 "partition.  For example, if the partition is an LVM PV, it will expand the "
25118 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25119 "content it doesn't know about alone."
25120 msgstr ""
25121
25122 #. type: textblock
25123 #: ../resize/virt-resize.pod:361
25124 msgid "Currently virt-resize can resize:"
25125 msgstr ""
25126
25127 #. type: textblock
25128 #: ../resize/virt-resize.pod:367
25129 msgid "ext2, ext3 and ext4 filesystems."
25130 msgstr ""
25131
25132 #. type: textblock
25133 #: ../resize/virt-resize.pod:371
25134 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25135 msgstr ""
25136
25137 #. type: textblock
25138 #: ../resize/virt-resize.pod:373
25139 msgid ""
25140 "The filesystem must have been shut down consistently last time it was used.  "
25141 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25142 "consistency check, so at the first boot after resizing Windows will check "
25143 "the disk."
25144 msgstr ""
25145
25146 #. type: textblock
25147 #: ../resize/virt-resize.pod:380
25148 msgid ""
25149 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
25150 "inside the PV, but see the I<--LV-expand> option.  The user could also "
25151 "resize LVs as desired after boot."
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../resize/virt-resize.pod:386
25156 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25157 msgstr ""
25158
25159 #. type: textblock
25160 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
25161 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25162 msgstr ""
25163
25164 #. type: =item
25165 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:130
25166 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25167 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25168 msgid "B<--format> raw"
25169 msgstr "B<--format> raw"
25170
25171 #. type: textblock
25172 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:134
25173 msgid ""
25174 "Specify the format of the input disk image.  If this flag is not given then "
25175 "it is auto-detected from the image itself."
25176 msgstr ""
25177
25178 #. type: textblock
25179 #: ../resize/virt-resize.pod:400
25180 msgid ""
25181 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25182 "AND NON-SPARSE RAW FORMATS>."
25183 msgstr ""
25184
25185 #. type: =item
25186 #: ../resize/virt-resize.pod:403
25187 msgid "B<--ignore part>"
25188 msgstr "B<--ignore розділ>"
25189
25190 #. type: textblock
25191 #: ../resize/virt-resize.pod:405
25192 msgid ""
25193 "Ignore the named partition.  Effectively this means the partition is "
25194 "allocated on the destination disk, but the content is not copied across from "
25195 "the source disk.  The content of the partition will be blank (all zero "
25196 "bytes)."
25197 msgstr ""
25198
25199 #. type: =item
25200 #: ../resize/virt-resize.pod:412
25201 msgid "B<--LV-expand logvol>"
25202 msgstr "B<--LV-expand логічний_том>"
25203
25204 #. type: textblock
25205 #: ../resize/virt-resize.pod:414
25206 msgid ""
25207 "This takes the logical volume and, as a final step, expands it to fill all "
25208 "the space available in its volume group.  A typical usage, assuming a Linux "
25209 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25210 "lv_root> would be:"
25211 msgstr ""
25212
25213 #. type: verbatim
25214 #: ../resize/virt-resize.pod:419
25215 #, no-wrap
25216 msgid ""
25217 " virt-resize indisk outdisk \\\n"
25218 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25219 "\n"
25220 msgstr ""
25221
25222 #. type: textblock
25223 #: ../resize/virt-resize.pod:422
25224 msgid ""
25225 "This would first expand the partition (and PV), and then expand the root "
25226 "device to fill the extra space in the PV."
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../resize/virt-resize.pod:425
25231 msgid ""
25232 "The contents of the LV are also resized if virt-resize knows how to do "
25233 "that.  You can stop virt-resize from trying to expand the content by using "
25234 "the option I<--no-expand-content>."
25235 msgstr ""
25236
25237 #. type: textblock
25238 #: ../resize/virt-resize.pod:429
25239 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25240 msgstr ""
25241
25242 #. type: textblock
25243 #: ../resize/virt-resize.pod:431
25244 msgid ""
25245 "You can give this option multiple times, I<but> it doesn't make sense to do "
25246 "this unless the logical volumes you specify are all in different volume "
25247 "groups."
25248 msgstr ""
25249
25250 #. type: =item
25251 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:152
25252 msgid "B<--machine-readable>"
25253 msgstr ""
25254
25255 #. type: textblock
25256 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:154
25257 msgid ""
25258 "This option is used to make the output more machine friendly when being "
25259 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
25260 msgstr ""
25261
25262 #. type: =item
25263 #: ../resize/virt-resize.pod:443
25264 msgid "B<--dryrun>"
25265 msgstr "B<--dryrun>"
25266
25267 #. type: textblock
25268 #: ../resize/virt-resize.pod:445
25269 msgid "Print a summary of what would be done, but don't do anything."
25270 msgstr ""
25271
25272 #. type: =item
25273 #: ../resize/virt-resize.pod:447
25274 msgid "B<--no-copy-boot-loader>"
25275 msgstr "B<--no-copy-boot-loader>"
25276
25277 #. type: textblock
25278 #: ../resize/virt-resize.pod:449
25279 msgid ""
25280 "By default, virt-resize copies over some sectors at the start of the disk "
25281 "(up to the beginning of the first partition).  Commonly these sectors "
25282 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25283 "in order for the guest to boot correctly."
25284 msgstr ""
25285
25286 #. type: textblock
25287 #: ../resize/virt-resize.pod:454
25288 msgid ""
25289 "If you specify this flag, then this initial copy is not done.  You may need "
25290 "to reinstall the boot loader in this case."
25291 msgstr ""
25292
25293 #. type: =item
25294 #: ../resize/virt-resize.pod:457
25295 msgid "B<--no-extra-partition>"
25296 msgstr "B<--no-extra-partition>"
25297
25298 #. type: textblock
25299 #: ../resize/virt-resize.pod:459
25300 msgid ""
25301 "By default, virt-resize creates an extra partition if there is any extra, "
25302 "unused space after all resizing has happened.  Use this option to prevent "
25303 "the extra partition from being created.  If you do this then the extra space "
25304 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25305 "tool in the guest."
25306 msgstr ""
25307
25308 #. type: textblock
25309 #: ../resize/virt-resize.pod:465
25310 msgid ""
25311 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25312 "will be created."
25313 msgstr ""
25314
25315 #. type: =item
25316 #: ../resize/virt-resize.pod:468
25317 msgid "B<--no-expand-content>"
25318 msgstr "B<--no-expand-content>"
25319
25320 #. type: textblock
25321 #: ../resize/virt-resize.pod:470
25322 msgid ""
25323 "By default, virt-resize will try to expand the direct contents of "
25324 "partitions, if it knows how (see I<--expand> option above)."
25325 msgstr ""
25326
25327 #. type: textblock
25328 #: ../resize/virt-resize.pod:473
25329 msgid ""
25330 "If you give the I<--no-expand-content> option then virt-resize will not "
25331 "attempt this."
25332 msgstr ""
25333
25334 #. type: =item
25335 #: ../resize/virt-resize.pod:476
25336 msgid "B<--ntfsresize-force>"
25337 msgstr "B<--ntfsresize-force>"
25338
25339 #. type: textblock
25340 #: ../resize/virt-resize.pod:478
25341 msgid ""
25342 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25343 "the NTFS disk is marked as needing a consistency check.  You have to use "
25344 "this option if you want to resize a Windows guest multiple times without "
25345 "booting into Windows between each resize."
25346 msgstr ""
25347
25348 #. type: =item
25349 #: ../resize/virt-resize.pod:484
25350 msgid "B<--output-format> raw"
25351 msgstr "B<--output-format> raw"
25352
25353 #. type: textblock
25354 #: ../resize/virt-resize.pod:486
25355 msgid ""
25356 "Specify the format of the output disk image.  If this flag is not given then "
25357 "it is auto-detected from the image itself."
25358 msgstr ""
25359
25360 #. type: textblock
25361 #: ../resize/virt-resize.pod:492
25362 msgid ""
25363 "Note that this option I<does not create> the output format.  This option "
25364 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25365 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25366 "SPARSE RAW FORMATS>."
25367 msgstr ""
25368
25369 #. type: textblock
25370 #: ../resize/virt-resize.pod:501
25371 msgid "Don't print the summary."
25372 msgstr ""
25373
25374 #. type: =item
25375 #: ../resize/virt-resize.pod:503
25376 msgid "B<--resize part=size>"
25377 msgstr "B<--resize розділ=розмір>"
25378
25379 #. type: textblock
25380 #: ../resize/virt-resize.pod:505
25381 msgid ""
25382 "Resize the named partition (expanding or shrinking it) so that it has the "
25383 "given size."
25384 msgstr ""
25385
25386 #. type: textblock
25387 #: ../resize/virt-resize.pod:508
25388 msgid ""
25389 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25390 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25391 "size; or as a relative number or percentage.  For example:"
25392 msgstr ""
25393
25394 #. type: verbatim
25395 #: ../resize/virt-resize.pod:514
25396 #, no-wrap
25397 msgid ""
25398 " --resize /dev/sda2=10G\n"
25399 "\n"
25400 msgstr ""
25401
25402 #. type: verbatim
25403 #: ../resize/virt-resize.pod:516
25404 #, no-wrap
25405 msgid ""
25406 " --resize /dev/sda4=90%\n"
25407 "\n"
25408 msgstr ""
25409
25410 #. type: verbatim
25411 #: ../resize/virt-resize.pod:518
25412 #, no-wrap
25413 msgid ""
25414 " --resize /dev/sda2=+1G\n"
25415 "\n"
25416 msgstr ""
25417
25418 #. type: verbatim
25419 #: ../resize/virt-resize.pod:520
25420 #, no-wrap
25421 msgid ""
25422 " --resize /dev/sda2=-200M\n"
25423 "\n"
25424 msgstr ""
25425
25426 #. type: verbatim
25427 #: ../resize/virt-resize.pod:522
25428 #, no-wrap
25429 msgid ""
25430 " --resize /dev/sda1=+128K\n"
25431 "\n"
25432 msgstr ""
25433
25434 #. type: verbatim
25435 #: ../resize/virt-resize.pod:524
25436 #, no-wrap
25437 msgid ""
25438 " --resize /dev/sda1=+10%\n"
25439 "\n"
25440 msgstr ""
25441
25442 #. type: verbatim
25443 #: ../resize/virt-resize.pod:526
25444 #, no-wrap
25445 msgid ""
25446 " --resize /dev/sda1=-10%\n"
25447 "\n"
25448 msgstr ""
25449
25450 #. type: textblock
25451 #: ../resize/virt-resize.pod:528
25452 msgid ""
25453 "You can increase the size of any partition.  Virt-resize will expand the "
25454 "direct content of the partition if it knows how (see I<--expand> below)."
25455 msgstr ""
25456
25457 #. type: textblock
25458 #: ../resize/virt-resize.pod:532
25459 msgid ""
25460 "You can only I<decrease> the size of partitions that contain filesystems or "
25461 "PVs which have already been shrunk.  Virt-resize will check this has been "
25462 "done before proceeding, or else will print an error (see also I<--resize-"
25463 "force>)."
25464 msgstr ""
25465
25466 #. type: =item
25467 #: ../resize/virt-resize.pod:539
25468 msgid "B<--resize-force part=size>"
25469 msgstr "B<--resize-force розділ=розмір>"
25470
25471 #. type: textblock
25472 #: ../resize/virt-resize.pod:541
25473 msgid ""
25474 "This is the same as I<--resize> except that it will let you decrease the "
25475 "size of any partition.  Generally this means you will lose any data which "
25476 "was at the end of the partition you shrink, but you may not care about that "
25477 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25478 "as a swap partition)."
25479 msgstr ""
25480
25481 #. type: textblock
25482 #: ../resize/virt-resize.pod:547
25483 msgid "See also the I<--ignore> option."
25484 msgstr ""
25485
25486 #. type: =item
25487 #: ../resize/virt-resize.pod:549
25488 msgid "B<--shrink part>"
25489 msgstr "B<--shrink розділ>"
25490
25491 #. type: textblock
25492 #: ../resize/virt-resize.pod:551
25493 msgid ""
25494 "Shrink the named partition until the overall disk image fits in the "
25495 "destination.  The named partition B<must> contain a filesystem or PV which "
25496 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25497 "online tools).  Virt-resize will check this and give an error if it has not "
25498 "been done."
25499 msgstr ""
25500
25501 #. type: textblock
25502 #: ../resize/virt-resize.pod:557
25503 msgid ""
25504 "The amount by which the overall disk must be shrunk (after carrying out all "
25505 "other operations requested by the user) is called the \"deficit\".  For "
25506 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25507 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25508 "would give an error unless the user specified a partition to shrink and that "
25509 "partition had more than a gigabyte of free space."
25510 msgstr ""
25511
25512 #. type: =head1
25513 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:182
25514 msgid "MACHINE READABLE OUTPUT"
25515 msgstr ""
25516
25517 #. type: textblock
25518 #: ../resize/virt-resize.pod:577
25519 msgid ""
25520 "The I<--machine-readable> option can be used to make the output more machine "
25521 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25522 "etc."
25523 msgstr ""
25524
25525 #. type: textblock
25526 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:188
25527 msgid "There are two ways to use this option."
25528 msgstr ""
25529
25530 #. type: textblock
25531 #: ../resize/virt-resize.pod:583
25532 msgid ""
25533 "Firstly use the option on its own to query the capabilities of the virt-"
25534 "resize binary.  Typical output looks like this:"
25535 msgstr ""
25536
25537 #. type: verbatim
25538 #: ../resize/virt-resize.pod:586
25539 #, no-wrap
25540 msgid ""
25541 " $ virt-resize --machine-readable\n"
25542 " virt-resize\n"
25543 " ntfsresize-force\n"
25544 " 32bitok\n"
25545 " ntfs\n"
25546 " btrfs\n"
25547 "\n"
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:198
25552 msgid ""
25553 "A list of features is printed, one per line, and the program exits with "
25554 "status 0."
25555 msgstr ""
25556
25557 #. type: textblock
25558 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:201
25559 msgid ""
25560 "Secondly use the option in conjunction with other options to make the "
25561 "regular program output more machine friendly."
25562 msgstr ""
25563
25564 #. type: textblock
25565 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:204
25566 msgid "At the moment this means:"
25567 msgstr ""
25568
25569 #. type: textblock
25570 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:210
25571 msgid ""
25572 "Progress bar messages can be parsed from stdout by looking for this regular "
25573 "expression:"
25574 msgstr ""
25575
25576 #. type: verbatim
25577 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:213
25578 #, no-wrap
25579 msgid ""
25580 " ^[0-9]+/[0-9]+$\n"
25581 "\n"
25582 msgstr ""
25583
25584 #. type: textblock
25585 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:217
25586 msgid ""
25587 "The calling program should treat messages sent to stdout (except for "
25588 "progress bar messages) as status messages.  They can be logged and/or "
25589 "displayed to the user."
25590 msgstr ""
25591
25592 #. type: textblock
25593 #: ../resize/virt-resize.pod:618
25594 msgid ""
25595 "The calling program should treat messages sent to stderr as error messages.  "
25596 "In addition, virt-resize exits with a non-zero status code if there was a "
25597 "fatal error."
25598 msgstr ""
25599
25600 #. type: textblock
25601 #: ../resize/virt-resize.pod:624
25602 msgid ""
25603 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25604 "readable> option and will return an error."
25605 msgstr ""
25606
25607 #. type: =head2
25608 #: ../resize/virt-resize.pod:629
25609 msgid "\"Partition 1 does not end on cylinder boundary.\""
25610 msgstr ""
25611
25612 #. type: textblock
25613 #: ../resize/virt-resize.pod:631
25614 msgid ""
25615 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25616 "alignment> parameter).  Usually this means the partitions will not be "
25617 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
25618 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25619 "drives.  Alignment of partitions to cylinders is not required by any modern "
25620 "operating system."
25621 msgstr ""
25622
25623 #. type: =head2
25624 #: ../resize/virt-resize.pod:638
25625 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25626 msgstr ""
25627
25628 #. type: textblock
25629 #: ../resize/virt-resize.pod:640
25630 msgid ""
25631 "In Windows Vista and later versions, Microsoft switched to using a separate "
25632 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25633 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
25634 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
25635 "the second partition (ie. C: drive)  should work."
25636 msgstr ""
25637
25638 #. type: textblock
25639 #: ../resize/virt-resize.pod:647
25640 msgid ""
25641 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25642 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25643 "it find errors) is nothing to worry about."
25644 msgstr ""
25645
25646 #. type: =head2
25647 #: ../resize/virt-resize.pod:651
25648 msgid "GUEST BOOT STUCK AT \"GRUB\""
25649 msgstr ""
25650
25651 #. type: textblock
25652 #: ../resize/virt-resize.pod:653
25653 msgid ""
25654 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25655 "printing C<GRUB> on the console, try reinstalling grub."
25656 msgstr ""
25657
25658 #. type: verbatim
25659 #: ../resize/virt-resize.pod:656
25660 #, no-wrap
25661 msgid ""
25662 " guestfish -i -a newdisk\n"
25663 " ><fs> cat /boot/grub/device.map\n"
25664 " # check the contents of this file are sensible or\n"
25665 " # edit the file if necessary\n"
25666 " ><fs> grub-install / /dev/vda\n"
25667 " ><fs> exit\n"
25668 "\n"
25669 msgstr ""
25670
25671 #. type: textblock
25672 #: ../resize/virt-resize.pod:663
25673 msgid ""
25674 "For more flexible guest reconfiguration, including if you need to specify "
25675 "other parameters to grub-install, use L<virt-rescue(1)>."
25676 msgstr ""
25677
25678 #. type: =head1
25679 #: ../resize/virt-resize.pod:666
25680 msgid "ALTERNATIVE TOOLS"
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../resize/virt-resize.pod:668
25685 msgid ""
25686 "There are several proprietary tools for resizing partitions.  We won't "
25687 "mention any here."
25688 msgstr ""
25689
25690 #. type: textblock
25691 #: ../resize/virt-resize.pod:671
25692 msgid ""
25693 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25694 "operations on disk images.  They can resize and move partitions, but I don't "
25695 "think they can do anything with the contents, and they certainly don't "
25696 "understand LVM."
25697 msgstr ""
25698
25699 #. type: textblock
25700 #: ../resize/virt-resize.pod:676
25701 msgid ""
25702 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25703 "but at a much lower level.  You will probably end up hand-calculating sector "
25704 "offsets, which is something that virt-resize was designed to avoid.  If you "
25705 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25706 "I<--debug> flag."
25707 msgstr ""
25708
25709 #. type: textblock
25710 #: ../resize/virt-resize.pod:696
25711 msgid ""
25712 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25713 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25714 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25715 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25716 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25717 msgstr ""
25718
25719 #. type: textblock
25720 #: ../ruby/examples/guestfs-ruby.pod:5
25721 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25722 msgstr ""
25723
25724 #. type: verbatim
25725 #: ../ruby/examples/guestfs-ruby.pod:9
25726 #, no-wrap
25727 msgid ""
25728 " require 'guestfs'\n"
25729 " g = Guestfs::Guestfs.new()\n"
25730 " g.add_drive_opts(\"disk.img\",\n"
25731 "                  :readonly => 1, :format => \"raw\")\n"
25732 " g.launch()\n"
25733 "\n"
25734 msgstr ""
25735
25736 #. type: textblock
25737 #: ../ruby/examples/guestfs-ruby.pod:17
25738 msgid ""
25739 "This manual page documents how to call libguestfs from the Ruby programming "
25740 "language.  This page just documents the differences from the C API and gives "
25741 "some examples.  If you are not familiar with using libguestfs, you also need "
25742 "to read L<guestfs(3)>."
25743 msgstr ""
25744
25745 #. type: textblock
25746 #: ../ruby/examples/guestfs-ruby.pod:24
25747 msgid ""
25748 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25749 "This has a single parameter which is the error message (a string)."
25750 msgstr ""
25751
25752 #. type: textblock
25753 #: ../ruby/examples/guestfs-ruby.pod:38
25754 msgid ""
25755 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25756 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25757 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25758 msgstr ""
25759
25760 #. type: textblock
25761 #: ../sparsify/virt-sparsify.pod:5
25762 msgid "virt-sparsify - Make a virtual machine disk sparse"
25763 msgstr ""
25764
25765 #. type: verbatim
25766 #: ../sparsify/virt-sparsify.pod:9
25767 #, no-wrap
25768 msgid ""
25769 " virt-sparsify [--options] indisk outdisk\n"
25770 "\n"
25771 msgstr ""
25772
25773 #. type: textblock
25774 #: ../sparsify/virt-sparsify.pod:13
25775 msgid ""
25776 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25777 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25778 "the disk image can be converted back to free space on the host."
25779 msgstr ""
25780
25781 #. type: textblock
25782 #: ../sparsify/virt-sparsify.pod:18
25783 msgid ""
25784 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25785 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25786 msgstr ""
25787
25788 #. type: textblock
25789 #: ../sparsify/virt-sparsify.pod:21
25790 msgid ""
25791 "Virt-sparsify can also convert between some disk formats, for example "
25792 "converting a raw disk image to a thin-provisioned qcow2 image."
25793 msgstr ""
25794
25795 #. type: textblock
25796 #: ../sparsify/virt-sparsify.pod:24
25797 msgid ""
25798 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25799 "machines.  If a virtual machine has more than one attached disk, you must "
25800 "sparsify each one separately."
25801 msgstr ""
25802
25803 #. type: =head2
25804 #: ../sparsify/virt-sparsify.pod:28
25805 msgid "IMPORTANT LIMITATIONS"
25806 msgstr ""
25807
25808 #. type: textblock
25809 #: ../sparsify/virt-sparsify.pod:34
25810 msgid ""
25811 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25812 "image to a destination image, leaving the source unchanged.  I<Check that "
25813 "the sparsification was successful before deleting the source image>."
25814 msgstr ""
25815
25816 #. type: textblock
25817 #: ../sparsify/virt-sparsify.pod:41
25818 msgid "The virtual machine I<must be shut down> before using this tool."
25819 msgstr ""
25820
25821 #. type: textblock
25822 #: ../sparsify/virt-sparsify.pod:45
25823 msgid ""
25824 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25825 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25826 "usually much less space is required."
25827 msgstr ""
25828
25829 #. type: textblock
25830 #: ../sparsify/virt-sparsify.pod:51
25831 msgid ""
25832 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25833 msgstr ""
25834
25835 #. type: textblock
25836 #: ../sparsify/virt-sparsify.pod:56
25837 msgid "Virt-sparsify cannot handle encrypted disks."
25838 msgstr ""
25839
25840 #. type: textblock
25841 #: ../sparsify/virt-sparsify.pod:60
25842 msgid ""
25843 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25844 "this space is often used for critical items like bootloaders so it's not "
25845 "really unused."
25846 msgstr ""
25847
25848 #. type: textblock
25849 #: ../sparsify/virt-sparsify.pod:66
25850 msgid ""
25851 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25852 "to do this unless we can be sure there is no hibernation data, so at the "
25853 "moment swap partitions are ignored."
25854 msgstr ""
25855
25856 #. type: textblock
25857 #: ../sparsify/virt-sparsify.pod:72
25858 msgid ""
25859 "You may also want to read the manual pages for the associated tools L<virt-"
25860 "filesystems(1)> and L<virt-df(1)> before starting."
25861 msgstr ""
25862
25863 #. type: textblock
25864 #: ../sparsify/virt-sparsify.pod:77
25865 msgid "Typical usage is:"
25866 msgstr ""
25867
25868 #. type: verbatim
25869 #: ../sparsify/virt-sparsify.pod:79
25870 #, no-wrap
25871 msgid ""
25872 " virt-sparsify indisk outdisk\n"
25873 "\n"
25874 msgstr ""
25875
25876 #. type: textblock
25877 #: ../sparsify/virt-sparsify.pod:81
25878 msgid ""
25879 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25880 "is created, or overwritten if it already exists.  The format of the input "
25881 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25882 msgstr ""
25883
25884 #. type: textblock
25885 #: ../sparsify/virt-sparsify.pod:86
25886 msgid "To convert between formats, use the I<--convert> option:"
25887 msgstr ""
25888
25889 #. type: verbatim
25890 #: ../sparsify/virt-sparsify.pod:88
25891 #, no-wrap
25892 msgid ""
25893 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25894 "\n"
25895 msgstr ""
25896
25897 #. type: textblock
25898 #: ../sparsify/virt-sparsify.pod:90
25899 msgid ""
25900 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25901 "can find within the source disk image.  You can get it to ignore (don't zero "
25902 "free space on) certain filesystems by doing:"
25903 msgstr ""
25904
25905 #. type: verbatim
25906 #: ../sparsify/virt-sparsify.pod:94
25907 #, no-wrap
25908 msgid ""
25909 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25910 "\n"
25911 msgstr ""
25912
25913 #. type: textblock
25914 #: ../sparsify/virt-sparsify.pod:96
25915 msgid ""
25916 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25917 msgstr ""
25918
25919 #. type: =item
25920 #: ../sparsify/virt-sparsify.pod:107
25921 msgid "B<--convert> raw"
25922 msgstr ""
25923
25924 #. type: =item
25925 #: ../sparsify/virt-sparsify.pod:109
25926 msgid "B<--convert> qcow2"
25927 msgstr ""
25928
25929 #. type: =item
25930 #: ../sparsify/virt-sparsify.pod:111
25931 msgid "B<--convert> [other formats]"
25932 msgstr ""
25933
25934 #. type: textblock
25935 #: ../sparsify/virt-sparsify.pod:113
25936 msgid ""
25937 "Use C<output-format> as the format for the destination image.  If this is "
25938 "not specified, then the input format is used."
25939 msgstr ""
25940
25941 #. type: textblock
25942 #: ../sparsify/virt-sparsify.pod:116
25943 msgid ""
25944 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25945 msgstr ""
25946
25947 #. type: textblock
25948 #: ../sparsify/virt-sparsify.pod:118
25949 msgid ""
25950 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25951 "C<vmdk>, but support for other formats is reliant on qemu."
25952 msgstr ""
25953
25954 #. type: textblock
25955 #: ../sparsify/virt-sparsify.pod:121
25956 msgid ""
25957 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25958 "sparsify doesn't need to try to guess the input format."
25959 msgstr ""
25960
25961 #. type: textblock
25962 #: ../sparsify/virt-sparsify.pod:126
25963 msgid ""
25964 "Debug garbage collection and memory allocation.  This is only useful when "
25965 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
25966 msgstr ""
25967
25968 #. type: =item
25969 #: ../sparsify/virt-sparsify.pod:132
25970 msgid "B<--format> qcow2"
25971 msgstr ""
25972
25973 #. type: =item
25974 #: ../sparsify/virt-sparsify.pod:140
25975 msgid "B<--ignore> filesystem"
25976 msgstr ""
25977
25978 #. type: =item
25979 #: ../sparsify/virt-sparsify.pod:142
25980 msgid "B<--ignore> volgroup"
25981 msgstr ""
25982
25983 #. type: textblock
25984 #: ../sparsify/virt-sparsify.pod:144
25985 msgid ""
25986 "Ignore the named filesystem.  Free space on the filesystem will not be "
25987 "zeroed, but existing blocks of zeroes will still be sparsified."
25988 msgstr ""
25989
25990 #. type: textblock
25991 #: ../sparsify/virt-sparsify.pod:147
25992 msgid ""
25993 "In the second form, this ignores the named volume group.  Use the volume "
25994 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25995 msgstr ""
25996
25997 #. type: textblock
25998 #: ../sparsify/virt-sparsify.pod:162
25999 msgid "This disables progress bars and other unnecessary output."
26000 msgstr ""
26001
26002 #. type: textblock
26003 #: ../sparsify/virt-sparsify.pod:184
26004 msgid ""
26005 "The I<--machine-readable> option can be used to make the output more machine "
26006 "friendly, which is useful when calling virt-sparsify from other programs, "
26007 "GUIs etc."
26008 msgstr ""
26009
26010 #. type: textblock
26011 #: ../sparsify/virt-sparsify.pod:190
26012 msgid ""
26013 "Firstly use the option on its own to query the capabilities of the virt-"
26014 "sparsify binary.  Typical output looks like this:"
26015 msgstr ""
26016
26017 #. type: verbatim
26018 #: ../sparsify/virt-sparsify.pod:193
26019 #, no-wrap
26020 msgid ""
26021 " $ virt-sparsify --machine-readable\n"
26022 " virt-sparsify\n"
26023 " ntfs\n"
26024 " btrfs\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../sparsify/virt-sparsify.pod:223
26030 msgid ""
26031 "The calling program should treat messages sent to stderr as error messages.  "
26032 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26033 "fatal error."
26034 msgstr ""
26035
26036 #. type: textblock
26037 #: ../sparsify/virt-sparsify.pod:229
26038 msgid ""
26039 "All versions of virt-sparsify have supported the I<--machine-readable> "
26040 "option."
26041 msgstr ""
26042
26043 #. type: textblock
26044 #: ../sparsify/virt-sparsify.pod:243
26045 msgid ""
26046 "Location of the temporary directory used for the potentially large temporary "
26047 "overlay file."
26048 msgstr ""
26049
26050 #. type: textblock
26051 #: ../sparsify/virt-sparsify.pod:246
26052 msgid ""
26053 "You should ensure there is enough free space in the worst case for a full "
26054 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26055 "to another directory that has enough space."
26056 msgstr ""
26057
26058 #. type: textblock
26059 #: ../sparsify/virt-sparsify.pod:250
26060 msgid "This defaults to C</tmp>."
26061 msgstr ""
26062
26063 #. type: textblock
26064 #: ../sparsify/virt-sparsify.pod:254
26065 msgid ""
26066 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26067 msgstr ""
26068
26069 #. type: textblock
26070 #: ../sparsify/virt-sparsify.pod:258
26071 msgid ""
26072 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26073 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26074 "(1)>, L<http://libguestfs.org/>."
26075 msgstr ""
26076
26077 #. type: =head2
26078 #: ../src/guestfs-actions.pod:1
26079 msgid "guestfs_add_cdrom"
26080 msgstr ""
26081
26082 #. type: verbatim
26083 #: ../src/guestfs-actions.pod:3
26084 #, no-wrap
26085 msgid ""
26086 " int\n"
26087 " guestfs_add_cdrom (guestfs_h *g,\n"
26088 "                    const char *filename);\n"
26089 "\n"
26090 msgstr ""
26091
26092 #. type: textblock
26093 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26094 #: ../src/guestfs-actions.pod:323
26095 msgid ""
26096 "I<This function is deprecated.> In new code, use the L</"
26097 "guestfs_add_drive_opts> call instead."
26098 msgstr ""
26099
26100 #. type: textblock
26101 #: ../src/guestfs-actions.pod:24
26102 msgid ""
26103 "This call checks for the existence of C<filename>.  This stops you from "
26104 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26105 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
26106 "instead."
26107 msgstr ""
26108
26109 #. type: textblock
26110 #: ../src/guestfs-actions.pod:31
26111 msgid ""
26112 "If you just want to add an ISO file (often you use this as an efficient way "
26113 "to transfer large files into the guest), then you should probably use "
26114 "C<guestfs_add_drive_ro> instead."
26115 msgstr ""
26116
26117 #. type: textblock
26118 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26119 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26120 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26121 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26122 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26123 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26124 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26125 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26126 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
26127 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
26128 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
26129 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
26130 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
26131 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
26132 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
26133 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
26134 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
26135 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
26136 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
26137 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
26138 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
26139 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
26140 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
26141 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
26142 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
26143 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
26144 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
26145 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
26146 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
26147 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
26148 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
26149 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
26150 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
26151 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
26152 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
26153 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
26154 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
26155 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
26156 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
26157 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
26158 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
26159 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
26160 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
26161 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
26162 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
26163 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
26164 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
26165 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
26166 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
26167 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
26168 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
26169 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
26170 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
26171 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
26172 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
26173 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
26174 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
26175 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
26176 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
26177 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
26178 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
26179 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
26180 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
26181 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
26182 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
26183 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
26184 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
26185 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
26186 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
26187 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
26188 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
26189 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
26190 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
26191 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
26192 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
26193 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
26194 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
26195 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
26196 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
26197 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
26198 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
26199 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
26200 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
26201 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
26202 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
26203 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
26204 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
26205 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
26206 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
26207 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
26208 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
26209 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
26210 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
26211 #: ../src/guestfs-actions.pod:8295
26212 msgid "This function returns 0 on success or -1 on error."
26213 msgstr ""
26214
26215 #. type: textblock
26216 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26217 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26218 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26219 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
26220 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
26221 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
26222 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
26223 #: ../src/guestfs-actions.pod:8075
26224 msgid "(Added in 0.3)"
26225 msgstr "(Додано у 0.3)"
26226
26227 #. type: =head2
26228 #: ../src/guestfs-actions.pod:41
26229 msgid "guestfs_add_domain"
26230 msgstr ""
26231
26232 #. type: verbatim
26233 #: ../src/guestfs-actions.pod:43
26234 #, no-wrap
26235 msgid ""
26236 " int\n"
26237 " guestfs_add_domain (guestfs_h *g,\n"
26238 "                     const char *dom,\n"
26239 "                     ...);\n"
26240 "\n"
26241 msgstr ""
26242
26243 #. type: textblock
26244 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26245 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26246 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26247 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26248 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26249 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
26250 #: ../src/guestfs-actions.pod:5626
26251 msgid ""
26252 "You may supply a list of optional arguments to this call.  Use zero or more "
26253 "of the following pairs of parameters, and terminate the list with C<-1> on "
26254 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
26255 msgstr ""
26256
26257 #. type: verbatim
26258 #: ../src/guestfs-actions.pod:53
26259 #, no-wrap
26260 msgid ""
26261 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26262 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26263 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26264 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26265 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26266 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26267 "\n"
26268 msgstr ""
26269
26270 #. type: textblock
26271 #: ../src/guestfs-actions.pod:60
26272 msgid ""
26273 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
26274 "It works by connecting to libvirt, requesting the domain and domain XML from "
26275 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26276 "one."
26277 msgstr ""
26278
26279 #. type: textblock
26280 #: ../src/guestfs-actions.pod:141
26281 msgid ""
26282 "The other optional parameters are passed directly through to "
26283 "C<guestfs_add_drive_opts>."
26284 msgstr ""
26285
26286 #. type: textblock
26287 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26288 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26289 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26290 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26291 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26292 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26293 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26294 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26295 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26296 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
26297 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
26298 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
26299 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
26300 #: ../src/guestfs-actions.pod:8112
26301 msgid "On error this function returns -1."
26302 msgstr ""
26303
26304 #. type: textblock
26305 #: ../src/guestfs-actions.pod:146
26306 msgid "(Added in 1.7.4)"
26307 msgstr "(Додано у 1.7.4)"
26308
26309 #. type: =head2
26310 #: ../src/guestfs-actions.pod:148
26311 msgid "guestfs_add_domain_va"
26312 msgstr ""
26313
26314 #. type: verbatim
26315 #: ../src/guestfs-actions.pod:150
26316 #, no-wrap
26317 msgid ""
26318 " int\n"
26319 " guestfs_add_domain_va (guestfs_h *g,\n"
26320 "                        const char *dom,\n"
26321 "                        va_list args);\n"
26322 "\n"
26323 msgstr ""
26324
26325 #. type: textblock
26326 #: ../src/guestfs-actions.pod:155
26327 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26328 msgstr ""
26329
26330 #. type: textblock
26331 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26332 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26333 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26334 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26335 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26336 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26337 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26338 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26339 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26340 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26341 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
26342 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
26343 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
26344 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26345 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:159
26349 msgid "guestfs_add_domain_argv"
26350 msgstr "guestfs_add_domain_argv"
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:161
26354 #, no-wrap
26355 msgid ""
26356 " int\n"
26357 " guestfs_add_domain_argv (guestfs_h *g,\n"
26358 "                          const char *dom,\n"
26359 "                          const struct guestfs_add_domain_argv *optargs);\n"
26360 "\n"
26361 msgstr ""
26362
26363 #. type: textblock
26364 #: ../src/guestfs-actions.pod:166
26365 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26366 msgstr ""
26367
26368 #. type: =head2
26369 #: ../src/guestfs-actions.pod:170
26370 msgid "guestfs_add_drive"
26371 msgstr ""
26372
26373 #. type: verbatim
26374 #: ../src/guestfs-actions.pod:172
26375 #, no-wrap
26376 msgid ""
26377 " int\n"
26378 " guestfs_add_drive (guestfs_h *g,\n"
26379 "                    const char *filename);\n"
26380 "\n"
26381 msgstr ""
26382
26383 #. type: textblock
26384 #: ../src/guestfs-actions.pod:176
26385 msgid ""
26386 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26387 "optional parameters, so the disk is added writable, with the format being "
26388 "detected automatically."
26389 msgstr ""
26390
26391 #. type: textblock
26392 #: ../src/guestfs-actions.pod:180
26393 msgid ""
26394 "Automatic detection of the format opens you up to a potential security hole "
26395 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26396 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26397 "you should think about replacing calls to this function with calls to "
26398 "C<guestfs_add_drive_opts>, and specifying the format."
26399 msgstr ""
26400
26401 #. type: =head2
26402 #: ../src/guestfs-actions.pod:191
26403 msgid "guestfs_add_drive_opts"
26404 msgstr ""
26405
26406 #. type: verbatim
26407 #: ../src/guestfs-actions.pod:193
26408 #, no-wrap
26409 msgid ""
26410 " int\n"
26411 " guestfs_add_drive_opts (guestfs_h *g,\n"
26412 "                         const char *filename,\n"
26413 "                         ...);\n"
26414 "\n"
26415 msgstr ""
26416
26417 #. type: verbatim
26418 #: ../src/guestfs-actions.pod:203
26419 #, no-wrap
26420 msgid ""
26421 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26422 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26423 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26424 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26425 "\n"
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../src/guestfs-actions.pod:233
26430 msgid ""
26431 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
26432 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
26433 "Possible formats include C<raw> and C<qcow2>."
26434 msgstr ""
26435
26436 #. type: textblock
26437 #: ../src/guestfs-actions.pod:244
26438 msgid ""
26439 "This rarely-used option lets you emulate the behaviour of the deprecated "
26440 "C<guestfs_add_drive_with_if> call (q.v.)"
26441 msgstr ""
26442
26443 #. type: textblock
26444 #: ../src/guestfs-actions.pod:256
26445 msgid "(Added in 1.5.23)"
26446 msgstr "(Додано у 1.5.23)"
26447
26448 #. type: =head2
26449 #: ../src/guestfs-actions.pod:258
26450 msgid "guestfs_add_drive_opts_va"
26451 msgstr ""
26452
26453 #. type: verbatim
26454 #: ../src/guestfs-actions.pod:260
26455 #, no-wrap
26456 msgid ""
26457 " int\n"
26458 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26459 "                            const char *filename,\n"
26460 "                            va_list args);\n"
26461 "\n"
26462 msgstr ""
26463
26464 #. type: textblock
26465 #: ../src/guestfs-actions.pod:265
26466 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26467 msgstr ""
26468
26469 #. type: =head2
26470 #: ../src/guestfs-actions.pod:269
26471 msgid "guestfs_add_drive_opts_argv"
26472 msgstr ""
26473
26474 #. type: verbatim
26475 #: ../src/guestfs-actions.pod:271
26476 #, no-wrap
26477 msgid ""
26478 " int\n"
26479 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26480 "                              const char *filename,\n"
26481 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
26482 "\n"
26483 msgstr ""
26484
26485 #. type: textblock
26486 #: ../src/guestfs-actions.pod:276
26487 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26488 msgstr ""
26489
26490 #. type: =head2
26491 #: ../src/guestfs-actions.pod:280
26492 msgid "guestfs_add_drive_ro"
26493 msgstr ""
26494
26495 #. type: verbatim
26496 #: ../src/guestfs-actions.pod:282
26497 #, no-wrap
26498 msgid ""
26499 " int\n"
26500 " guestfs_add_drive_ro (guestfs_h *g,\n"
26501 "                       const char *filename);\n"
26502 "\n"
26503 msgstr ""
26504
26505 #. type: textblock
26506 #: ../src/guestfs-actions.pod:286
26507 msgid ""
26508 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26509 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26510 "disk is added read-only, with the format being detected automatically."
26511 msgstr ""
26512
26513 #. type: textblock
26514 #: ../src/guestfs-actions.pod:293
26515 msgid "(Added in 1.0.38)"
26516 msgstr "(Додано у 1.0.38)"
26517
26518 #. type: =head2
26519 #: ../src/guestfs-actions.pod:295
26520 msgid "guestfs_add_drive_ro_with_if"
26521 msgstr ""
26522
26523 #. type: verbatim
26524 #: ../src/guestfs-actions.pod:297
26525 #, no-wrap
26526 msgid ""
26527 " int\n"
26528 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26529 "                               const char *filename,\n"
26530 "                               const char *iface);\n"
26531 "\n"
26532 msgstr ""
26533
26534 #. type: textblock
26535 #: ../src/guestfs-actions.pod:309
26536 msgid ""
26537 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26538 "QEMU interface emulation to use at run time."
26539 msgstr ""
26540
26541 #. type: textblock
26542 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26543 #: ../src/guestfs-actions.pod:2881
26544 msgid "(Added in 1.0.84)"
26545 msgstr "(Додано у 1.0.84)"
26546
26547 #. type: =head2
26548 #: ../src/guestfs-actions.pod:316
26549 msgid "guestfs_add_drive_with_if"
26550 msgstr ""
26551
26552 #. type: verbatim
26553 #: ../src/guestfs-actions.pod:318
26554 #, no-wrap
26555 msgid ""
26556 " int\n"
26557 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26558 "                            const char *filename,\n"
26559 "                            const char *iface);\n"
26560 "\n"
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../src/guestfs-actions.pod:330
26565 msgid ""
26566 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26567 "QEMU interface emulation to use at run time."
26568 msgstr ""
26569
26570 #. type: =head2
26571 #: ../src/guestfs-actions.pod:337
26572 msgid "guestfs_aug_clear"
26573 msgstr ""
26574
26575 #. type: verbatim
26576 #: ../src/guestfs-actions.pod:339
26577 #, no-wrap
26578 msgid ""
26579 " int\n"
26580 " guestfs_aug_clear (guestfs_h *g,\n"
26581 "                    const char *augpath);\n"
26582 "\n"
26583 msgstr ""
26584
26585 #. type: textblock
26586 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
26587 msgid "(Added in 1.3.4)"
26588 msgstr "(Додано у 1.3.4)"
26589
26590 #. type: =head2
26591 #: ../src/guestfs-actions.pod:350
26592 msgid "guestfs_aug_close"
26593 msgstr ""
26594
26595 #. type: verbatim
26596 #: ../src/guestfs-actions.pod:352
26597 #, no-wrap
26598 msgid ""
26599 " int\n"
26600 " guestfs_aug_close (guestfs_h *g);\n"
26601 "\n"
26602 msgstr ""
26603
26604 #. type: textblock
26605 #: ../src/guestfs-actions.pod:355
26606 msgid ""
26607 "Close the current Augeas handle and free up any resources used by it.  After "
26608 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26609 "any other Augeas functions."
26610 msgstr ""
26611
26612 #. type: textblock
26613 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26614 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26615 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26616 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26617 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26618 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26619 #: ../src/guestfs-actions.pod:6311
26620 msgid "(Added in 0.7)"
26621 msgstr "(Додано у 0.7)"
26622
26623 #. type: =head2
26624 #: ../src/guestfs-actions.pod:364
26625 msgid "guestfs_aug_defnode"
26626 msgstr ""
26627
26628 #. type: verbatim
26629 #: ../src/guestfs-actions.pod:366
26630 #, no-wrap
26631 msgid ""
26632 " struct guestfs_int_bool *\n"
26633 " guestfs_aug_defnode (guestfs_h *g,\n"
26634 "                      const char *name,\n"
26635 "                      const char *expr,\n"
26636 "                      const char *val);\n"
26637 "\n"
26638 msgstr ""
26639
26640 #. type: textblock
26641 #: ../src/guestfs-actions.pod:375
26642 msgid ""
26643 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26644 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26645 "containing that single node."
26646 msgstr ""
26647
26648 #. type: textblock
26649 #: ../src/guestfs-actions.pod:383
26650 msgid ""
26651 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26652 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26653 msgstr ""
26654
26655 #. type: =head2
26656 #: ../src/guestfs-actions.pod:389
26657 msgid "guestfs_aug_defvar"
26658 msgstr ""
26659
26660 #. type: verbatim
26661 #: ../src/guestfs-actions.pod:391
26662 #, no-wrap
26663 msgid ""
26664 " int\n"
26665 " guestfs_aug_defvar (guestfs_h *g,\n"
26666 "                     const char *name,\n"
26667 "                     const char *expr);\n"
26668 "\n"
26669 msgstr ""
26670
26671 #. type: =head2
26672 #: ../src/guestfs-actions.pod:407
26673 msgid "guestfs_aug_get"
26674 msgstr "guestfs_aug_get"
26675
26676 #. type: verbatim
26677 #: ../src/guestfs-actions.pod:409
26678 #, no-wrap
26679 msgid ""
26680 " char *\n"
26681 " guestfs_aug_get (guestfs_h *g,\n"
26682 "                  const char *augpath);\n"
26683 "\n"
26684 msgstr ""
26685 " char *\n"
26686 " guestfs_aug_get (guestfs_h *g,\n"
26687 "                  const char *augpath);\n"
26688 "\n"
26689
26690 #. type: textblock
26691 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
26692 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
26693 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
26694 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
26695 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
26696 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
26697 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
26698 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
26699 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
26700 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
26701 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
26702 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
26703 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
26704 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
26705 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
26706 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
26707 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
26708 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
26709 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
26710 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
26711 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
26712 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
26713 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
26714 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
26715 msgid ""
26716 "This function returns a string, or NULL on error.  I<The caller must free "
26717 "the returned string after use>."
26718 msgstr ""
26719
26720 #. type: =head2
26721 #: ../src/guestfs-actions.pod:421
26722 msgid "guestfs_aug_init"
26723 msgstr "guestfs_aug_init"
26724
26725 #. type: verbatim
26726 #: ../src/guestfs-actions.pod:423
26727 #, no-wrap
26728 msgid ""
26729 " int\n"
26730 " guestfs_aug_init (guestfs_h *g,\n"
26731 "                   const char *root,\n"
26732 "                   int flags);\n"
26733 "\n"
26734 msgstr ""
26735 " int\n"
26736 " guestfs_aug_init (guestfs_h *g,\n"
26737 "                   const char *root,\n"
26738 "                   int flags);\n"
26739 "\n"
26740
26741 #. type: textblock
26742 #: ../src/guestfs-actions.pod:432
26743 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26744 msgstr ""
26745
26746 #. type: textblock
26747 #: ../src/guestfs-actions.pod:457
26748 msgid ""
26749 "This option is only useful when debugging Augeas lenses.  Use of this option "
26750 "may require additional memory for the libguestfs appliance.  You may need to "
26751 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26752 "C<guestfs_set_memsize>."
26753 msgstr ""
26754
26755 #. type: textblock
26756 #: ../src/guestfs-actions.pod:472
26757 msgid "Do not load the tree in C<guestfs_aug_init>."
26758 msgstr ""
26759
26760 #. type: textblock
26761 #: ../src/guestfs-actions.pod:476
26762 msgid "To close the handle, you can call C<guestfs_aug_close>."
26763 msgstr ""
26764
26765 #. type: =head2
26766 #: ../src/guestfs-actions.pod:484
26767 msgid "guestfs_aug_insert"
26768 msgstr "guestfs_aug_insert"
26769
26770 #. type: verbatim
26771 #: ../src/guestfs-actions.pod:486
26772 #, no-wrap
26773 msgid ""
26774 " int\n"
26775 " guestfs_aug_insert (guestfs_h *g,\n"
26776 "                     const char *augpath,\n"
26777 "                     const char *label,\n"
26778 "                     int before);\n"
26779 "\n"
26780 msgstr ""
26781 " int\n"
26782 " guestfs_aug_insert (guestfs_h *g,\n"
26783 "                     const char *augpath,\n"
26784 "                     const char *label,\n"
26785 "                     int before);\n"
26786 "\n"
26787
26788 #. type: =head2
26789 #: ../src/guestfs-actions.pod:504
26790 msgid "guestfs_aug_load"
26791 msgstr "guestfs_aug_load"
26792
26793 #. type: verbatim
26794 #: ../src/guestfs-actions.pod:506
26795 #, no-wrap
26796 msgid ""
26797 " int\n"
26798 " guestfs_aug_load (guestfs_h *g);\n"
26799 "\n"
26800 msgstr ""
26801 " int\n"
26802 " guestfs_aug_load (guestfs_h *g);\n"
26803 "\n"
26804
26805 #. type: =head2
26806 #: ../src/guestfs-actions.pod:518
26807 msgid "guestfs_aug_ls"
26808 msgstr "guestfs_aug_ls"
26809
26810 #. type: verbatim
26811 #: ../src/guestfs-actions.pod:520
26812 #, no-wrap
26813 msgid ""
26814 " char **\n"
26815 " guestfs_aug_ls (guestfs_h *g,\n"
26816 "                 const char *augpath);\n"
26817 "\n"
26818 msgstr ""
26819 " char **\n"
26820 " guestfs_aug_ls (guestfs_h *g,\n"
26821 "                 const char *augpath);\n"
26822 "\n"
26823
26824 #. type: textblock
26825 #: ../src/guestfs-actions.pod:524
26826 msgid ""
26827 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26828 "sorting the resulting nodes into alphabetical order."
26829 msgstr ""
26830
26831 #. type: textblock
26832 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26833 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26834 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26835 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26836 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26837 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26838 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26839 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26840 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26841 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26842 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26843 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
26844 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
26845 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
26846 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
26847 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
26848 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
26849 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
26850 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
26851 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
26852 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
26853 #: ../src/guestfs-actions.pod:8393
26854 msgid ""
26855 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26856 ">), or NULL if there was an error.  I<The caller must free the strings and "
26857 "the array after use>."
26858 msgstr ""
26859
26860 #. type: textblock
26861 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26862 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26863 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26864 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
26865 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
26866 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
26867 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
26868 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
26869 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
26870 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
26871 #: ../src/guestfs-actions.pod:8187
26872 msgid "(Added in 0.8)"
26873 msgstr "(Додано у 0.8)"
26874
26875 #. type: =head2
26876 #: ../src/guestfs-actions.pod:533
26877 msgid "guestfs_aug_match"
26878 msgstr "guestfs_aug_match"
26879
26880 #. type: verbatim
26881 #: ../src/guestfs-actions.pod:535
26882 #, no-wrap
26883 msgid ""
26884 " char **\n"
26885 " guestfs_aug_match (guestfs_h *g,\n"
26886 "                    const char *augpath);\n"
26887 "\n"
26888 msgstr ""
26889 " char **\n"
26890 " guestfs_aug_match (guestfs_h *g,\n"
26891 "                    const char *augpath);\n"
26892 "\n"
26893
26894 #. type: =head2
26895 #: ../src/guestfs-actions.pod:549
26896 msgid "guestfs_aug_mv"
26897 msgstr "guestfs_aug_mv"
26898
26899 #. type: verbatim
26900 #: ../src/guestfs-actions.pod:551
26901 #, no-wrap
26902 msgid ""
26903 " int\n"
26904 " guestfs_aug_mv (guestfs_h *g,\n"
26905 "                 const char *src,\n"
26906 "                 const char *dest);\n"
26907 "\n"
26908 msgstr ""
26909 " int\n"
26910 " guestfs_aug_mv (guestfs_h *g,\n"
26911 "                 const char *src,\n"
26912 "                 const char *dest);\n"
26913 "\n"
26914
26915 #. type: =head2
26916 #: ../src/guestfs-actions.pod:563
26917 msgid "guestfs_aug_rm"
26918 msgstr "guestfs_aug_rm"
26919
26920 #. type: verbatim
26921 #: ../src/guestfs-actions.pod:565
26922 #, no-wrap
26923 msgid ""
26924 " int\n"
26925 " guestfs_aug_rm (guestfs_h *g,\n"
26926 "                 const char *augpath);\n"
26927 "\n"
26928 msgstr ""
26929 " int\n"
26930 " guestfs_aug_rm (guestfs_h *g,\n"
26931 "                 const char *augpath);\n"
26932 "\n"
26933
26934 #. type: =head2
26935 #: ../src/guestfs-actions.pod:577
26936 msgid "guestfs_aug_save"
26937 msgstr "guestfs_aug_save"
26938
26939 #. type: verbatim
26940 #: ../src/guestfs-actions.pod:579
26941 #, no-wrap
26942 msgid ""
26943 " int\n"
26944 " guestfs_aug_save (guestfs_h *g);\n"
26945 "\n"
26946 msgstr ""
26947 " int\n"
26948 " guestfs_aug_save (guestfs_h *g);\n"
26949 "\n"
26950
26951 #. type: textblock
26952 #: ../src/guestfs-actions.pod:584
26953 msgid ""
26954 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26955 "are saved."
26956 msgstr ""
26957
26958 #. type: =head2
26959 #: ../src/guestfs-actions.pod:591
26960 msgid "guestfs_aug_set"
26961 msgstr "guestfs_aug_set"
26962
26963 #. type: verbatim
26964 #: ../src/guestfs-actions.pod:593
26965 #, no-wrap
26966 msgid ""
26967 " int\n"
26968 " guestfs_aug_set (guestfs_h *g,\n"
26969 "                  const char *augpath,\n"
26970 "                  const char *val);\n"
26971 "\n"
26972 msgstr ""
26973 " int\n"
26974 " guestfs_aug_set (guestfs_h *g,\n"
26975 "                  const char *augpath,\n"
26976 "                  const char *val);\n"
26977 "\n"
26978
26979 #. type: textblock
26980 #: ../src/guestfs-actions.pod:600
26981 msgid ""
26982 "In the Augeas API, it is possible to clear a node by setting the value to "
26983 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26984 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26985 msgstr ""
26986
26987 #. type: =head2
26988 #: ../src/guestfs-actions.pod:609
26989 msgid "guestfs_available"
26990 msgstr "guestfs_available"
26991
26992 #. type: verbatim
26993 #: ../src/guestfs-actions.pod:611
26994 #, no-wrap
26995 msgid ""
26996 " int\n"
26997 " guestfs_available (guestfs_h *g,\n"
26998 "                    char *const *groups);\n"
26999 "\n"
27000 msgstr ""
27001 " int\n"
27002 " guestfs_available (guestfs_h *g,\n"
27003 "                    char *const *groups);\n"
27004 "\n"
27005
27006 #. type: textblock
27007 #: ../src/guestfs-actions.pod:619
27008 msgid ""
27009 "The libguestfs groups, and the functions that those groups correspond to, "
27010 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
27011 "runtime by calling C<guestfs_available_all_groups>."
27012 msgstr ""
27013
27014 #. type: textblock
27015 #: ../src/guestfs-actions.pod:643
27016 msgid "You must call C<guestfs_launch> before calling this function."
27017 msgstr ""
27018
27019 #. type: textblock
27020 #: ../src/guestfs-actions.pod:665
27021 msgid ""
27022 "This call was added in version C<1.0.80>.  In previous versions of "
27023 "libguestfs all you could do would be to speculatively execute a command to "
27024 "find out if the daemon implemented it.  See also C<guestfs_version>."
27025 msgstr ""
27026
27027 #. type: textblock
27028 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
27029 msgid "(Added in 1.0.80)"
27030 msgstr "(Додано у 1.0.80)"
27031
27032 #. type: =head2
27033 #: ../src/guestfs-actions.pod:676
27034 msgid "guestfs_available_all_groups"
27035 msgstr "guestfs_available_all_groups"
27036
27037 #. type: verbatim
27038 #: ../src/guestfs-actions.pod:678
27039 #, no-wrap
27040 msgid ""
27041 " char **\n"
27042 " guestfs_available_all_groups (guestfs_h *g);\n"
27043 "\n"
27044 msgstr ""
27045 " char **\n"
27046 " guestfs_available_all_groups (guestfs_h *g);\n"
27047 "\n"
27048
27049 #. type: textblock
27050 #: ../src/guestfs-actions.pod:681
27051 msgid ""
27052 "This command returns a list of all optional groups that this daemon knows "
27053 "about.  Note this returns both supported and unsupported groups.  To find "
27054 "out which ones the daemon can actually support you have to call "
27055 "C<guestfs_available> on each member of the returned list."
27056 msgstr ""
27057
27058 #. type: textblock
27059 #: ../src/guestfs-actions.pod:687
27060 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27061 msgstr ""
27062
27063 #. type: textblock
27064 #: ../src/guestfs-actions.pod:693
27065 msgid "(Added in 1.3.15)"
27066 msgstr "(Додано у 1.3.15)"
27067
27068 #. type: =head2
27069 #: ../src/guestfs-actions.pod:695
27070 msgid "guestfs_base64_in"
27071 msgstr "guestfs_base64_in"
27072
27073 #. type: verbatim
27074 #: ../src/guestfs-actions.pod:697
27075 #, no-wrap
27076 msgid ""
27077 " int\n"
27078 " guestfs_base64_in (guestfs_h *g,\n"
27079 "                    const char *base64file,\n"
27080 "                    const char *filename);\n"
27081 "\n"
27082 msgstr ""
27083 " int\n"
27084 " guestfs_base64_in (guestfs_h *g,\n"
27085 "                    const char *base64file,\n"
27086 "                    const char *filename);\n"
27087 "\n"
27088
27089 #. type: textblock
27090 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27091 msgid "(Added in 1.3.5)"
27092 msgstr "(Додано у 1.3.5)"
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:709
27096 msgid "guestfs_base64_out"
27097 msgstr "guestfs_base64_out"
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:711
27101 #, no-wrap
27102 msgid ""
27103 " int\n"
27104 " guestfs_base64_out (guestfs_h *g,\n"
27105 "                     const char *filename,\n"
27106 "                     const char *base64file);\n"
27107 "\n"
27108 msgstr ""
27109 " int\n"
27110 " guestfs_base64_out (guestfs_h *g,\n"
27111 "                     const char *filename,\n"
27112 "                     const char *base64file);\n"
27113 "\n"
27114
27115 #. type: =head2
27116 #: ../src/guestfs-actions.pod:723
27117 msgid "guestfs_blockdev_flushbufs"
27118 msgstr "guestfs_blockdev_flushbufs"
27119
27120 #. type: verbatim
27121 #: ../src/guestfs-actions.pod:725
27122 #, no-wrap
27123 msgid ""
27124 " int\n"
27125 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27126 "                             const char *device);\n"
27127 "\n"
27128 msgstr ""
27129 " int\n"
27130 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27131 "                             const char *device);\n"
27132 "\n"
27133
27134 #. type: textblock
27135 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
27136 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
27137 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
27138 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
27139 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
27140 msgid "(Added in 0.9.3)"
27141 msgstr "(Додано у 0.9.3)"
27142
27143 #. type: =head2
27144 #: ../src/guestfs-actions.pod:738
27145 msgid "guestfs_blockdev_getbsz"
27146 msgstr "guestfs_blockdev_getbsz"
27147
27148 #. type: verbatim
27149 #: ../src/guestfs-actions.pod:740
27150 #, no-wrap
27151 msgid ""
27152 " int\n"
27153 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27154 "                          const char *device);\n"
27155 "\n"
27156 msgstr ""
27157 " int\n"
27158 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27159 "                          const char *device);\n"
27160 "\n"
27161
27162 #. type: =head2
27163 #: ../src/guestfs-actions.pod:755
27164 msgid "guestfs_blockdev_getro"
27165 msgstr "guestfs_blockdev_getro"
27166
27167 #. type: verbatim
27168 #: ../src/guestfs-actions.pod:757
27169 #, no-wrap
27170 msgid ""
27171 " int\n"
27172 " guestfs_blockdev_getro (guestfs_h *g,\n"
27173 "                         const char *device);\n"
27174 "\n"
27175 msgstr ""
27176 " int\n"
27177 " guestfs_blockdev_getro (guestfs_h *g,\n"
27178 "                         const char *device);\n"
27179 "\n"
27180
27181 #. type: textblock
27182 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
27183 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
27184 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
27185 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
27186 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
27187 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
27188 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
27189 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
27190 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
27191 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
27192 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
27193 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
27194 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
27195 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
27196 #: ../src/guestfs-actions.pod:5784
27197 msgid "This function returns a C truth value on success or -1 on error."
27198 msgstr ""
27199
27200 #. type: =head2
27201 #: ../src/guestfs-actions.pod:770
27202 msgid "guestfs_blockdev_getsize64"
27203 msgstr "guestfs_blockdev_getsize64"
27204
27205 #. type: verbatim
27206 #: ../src/guestfs-actions.pod:772
27207 #, no-wrap
27208 msgid ""
27209 " int64_t\n"
27210 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27211 "                             const char *device);\n"
27212 "\n"
27213 msgstr ""
27214 " int64_t\n"
27215 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27216 "                             const char *device);\n"
27217 "\n"
27218
27219 #. type: textblock
27220 #: ../src/guestfs-actions.pod:778
27221 msgid "See also C<guestfs_blockdev_getsz>."
27222 msgstr ""
27223
27224 #. type: =head2
27225 #: ../src/guestfs-actions.pod:786
27226 msgid "guestfs_blockdev_getss"
27227 msgstr "guestfs_blockdev_getss"
27228
27229 #. type: verbatim
27230 #: ../src/guestfs-actions.pod:788
27231 #, no-wrap
27232 msgid ""
27233 " int\n"
27234 " guestfs_blockdev_getss (guestfs_h *g,\n"
27235 "                         const char *device);\n"
27236 "\n"
27237 msgstr ""
27238 " int\n"
27239 " guestfs_blockdev_getss (guestfs_h *g,\n"
27240 "                         const char *device);\n"
27241 "\n"
27242
27243 #. type: textblock
27244 #: ../src/guestfs-actions.pod:795
27245 msgid ""
27246 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27247 "that)."
27248 msgstr ""
27249
27250 #. type: =head2
27251 #: ../src/guestfs-actions.pod:804
27252 msgid "guestfs_blockdev_getsz"
27253 msgstr "guestfs_blockdev_getsz"
27254
27255 #. type: verbatim
27256 #: ../src/guestfs-actions.pod:806
27257 #, no-wrap
27258 msgid ""
27259 " int64_t\n"
27260 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27261 "                         const char *device);\n"
27262 "\n"
27263 msgstr ""
27264 " int64_t\n"
27265 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27266 "                         const char *device);\n"
27267 "\n"
27268
27269 #. type: textblock
27270 #: ../src/guestfs-actions.pod:813
27271 msgid ""
27272 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27273 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27274 msgstr ""
27275
27276 #. type: =head2
27277 #: ../src/guestfs-actions.pod:823
27278 msgid "guestfs_blockdev_rereadpt"
27279 msgstr "guestfs_blockdev_rereadpt"
27280
27281 #. type: verbatim
27282 #: ../src/guestfs-actions.pod:825
27283 #, no-wrap
27284 msgid ""
27285 " int\n"
27286 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27287 "                            const char *device);\n"
27288 "\n"
27289 msgstr ""
27290 " int\n"
27291 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27292 "                            const char *device);\n"
27293 "\n"
27294
27295 #. type: =head2
27296 #: ../src/guestfs-actions.pod:837
27297 msgid "guestfs_blockdev_setbsz"
27298 msgstr "guestfs_blockdev_setbsz"
27299
27300 #. type: verbatim
27301 #: ../src/guestfs-actions.pod:839
27302 #, no-wrap
27303 msgid ""
27304 " int\n"
27305 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27306 "                          const char *device,\n"
27307 "                          int blocksize);\n"
27308 "\n"
27309 msgstr ""
27310 " int\n"
27311 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27312 "                          const char *device,\n"
27313 "                          int blocksize);\n"
27314 "\n"
27315
27316 #. type: =head2
27317 #: ../src/guestfs-actions.pod:855
27318 msgid "guestfs_blockdev_setro"
27319 msgstr "guestfs_blockdev_setro"
27320
27321 #. type: verbatim
27322 #: ../src/guestfs-actions.pod:857
27323 #, no-wrap
27324 msgid ""
27325 " int\n"
27326 " guestfs_blockdev_setro (guestfs_h *g,\n"
27327 "                         const char *device);\n"
27328 "\n"
27329 msgstr ""
27330 " int\n"
27331 " guestfs_blockdev_setro (guestfs_h *g,\n"
27332 "                         const char *device);\n"
27333 "\n"
27334
27335 #. type: =head2
27336 #: ../src/guestfs-actions.pod:869
27337 msgid "guestfs_blockdev_setrw"
27338 msgstr "guestfs_blockdev_setrw"
27339
27340 #. type: verbatim
27341 #: ../src/guestfs-actions.pod:871
27342 #, no-wrap
27343 msgid ""
27344 " int\n"
27345 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27346 "                         const char *device);\n"
27347 "\n"
27348 msgstr ""
27349 " int\n"
27350 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27351 "                         const char *device);\n"
27352 "\n"
27353
27354 #. type: =head2
27355 #: ../src/guestfs-actions.pod:883
27356 msgid "guestfs_btrfs_filesystem_resize"
27357 msgstr "guestfs_btrfs_filesystem_resize"
27358
27359 #. type: verbatim
27360 #: ../src/guestfs-actions.pod:885
27361 #, no-wrap
27362 msgid ""
27363 " int\n"
27364 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27365 "                                  const char *mountpoint,\n"
27366 "                                  ...);\n"
27367 "\n"
27368 msgstr ""
27369 " int\n"
27370 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27371 "                                  const char *mountpoint,\n"
27372 "                                  ...);\n"
27373 "\n"
27374
27375 #. type: verbatim
27376 #: ../src/guestfs-actions.pod:895
27377 #, no-wrap
27378 msgid ""
27379 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27380 "\n"
27381 msgstr ""
27382 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27383 "\n"
27384
27385 #. type: textblock
27386 #: ../src/guestfs-actions.pod:918
27387 msgid "(Added in 1.11.17)"
27388 msgstr "(Додано у 1.11.17)"
27389
27390 #. type: =head2
27391 #: ../src/guestfs-actions.pod:920
27392 msgid "guestfs_btrfs_filesystem_resize_va"
27393 msgstr "guestfs_btrfs_filesystem_resize_va"
27394
27395 #. type: verbatim
27396 #: ../src/guestfs-actions.pod:922
27397 #, no-wrap
27398 msgid ""
27399 " int\n"
27400 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27401 "                                     const char *mountpoint,\n"
27402 "                                     va_list args);\n"
27403 "\n"
27404 msgstr ""
27405 " int\n"
27406 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27407 "                                     const char *mountpoint,\n"
27408 "                                     va_list args);\n"
27409 "\n"
27410
27411 #. type: textblock
27412 #: ../src/guestfs-actions.pod:927
27413 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27414 msgstr ""
27415
27416 #. type: =head2
27417 #: ../src/guestfs-actions.pod:931
27418 msgid "guestfs_btrfs_filesystem_resize_argv"
27419 msgstr "guestfs_btrfs_filesystem_resize_argv"
27420
27421 #. type: verbatim
27422 #: ../src/guestfs-actions.pod:933
27423 #, no-wrap
27424 msgid ""
27425 " int\n"
27426 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27427 "                                       const char *mountpoint,\n"
27428 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27429 "\n"
27430 msgstr ""
27431 " int\n"
27432 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27433 "                                       const char *mountpoint,\n"
27434 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27435 "\n"
27436
27437 #. type: textblock
27438 #: ../src/guestfs-actions.pod:938
27439 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27440 msgstr ""
27441
27442 #. type: =head2
27443 #: ../src/guestfs-actions.pod:942
27444 msgid "guestfs_case_sensitive_path"
27445 msgstr ""
27446
27447 #. type: verbatim
27448 #: ../src/guestfs-actions.pod:944
27449 #, no-wrap
27450 msgid ""
27451 " char *\n"
27452 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27453 "                              const char *path);\n"
27454 "\n"
27455 msgstr ""
27456
27457 #. type: textblock
27458 #: ../src/guestfs-actions.pod:970
27459 msgid ""
27460 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
27461 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27462 "how the directories were originally created under Windows)."
27463 msgstr ""
27464
27465 #. type: textblock
27466 #: ../src/guestfs-actions.pod:978
27467 msgid "See also C<guestfs_realpath>."
27468 msgstr ""
27469
27470 #. type: textblock
27471 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
27472 msgid "(Added in 1.0.75)"
27473 msgstr "(Додано у 1.0.75)"
27474
27475 #. type: =head2
27476 #: ../src/guestfs-actions.pod:985
27477 msgid "guestfs_cat"
27478 msgstr ""
27479
27480 #. type: verbatim
27481 #: ../src/guestfs-actions.pod:987
27482 #, no-wrap
27483 msgid ""
27484 " char *\n"
27485 " guestfs_cat (guestfs_h *g,\n"
27486 "              const char *path);\n"
27487 "\n"
27488 msgstr ""
27489
27490 #. type: textblock
27491 #: ../src/guestfs-actions.pod:993
27492 msgid ""
27493 "Note that this function cannot correctly handle binary files (specifically, "
27494 "files containing C<\\0> character which is treated as end of string).  For "
27495 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27496 "functions which have a more complex interface."
27497 msgstr ""
27498
27499 #. type: textblock
27500 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
27501 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
27502 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
27503 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
27504 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
27505 #: ../src/guestfs-actions.pod:8023
27506 msgid "(Added in 0.4)"
27507 msgstr "(Додано у 0.4)"
27508
27509 #. type: =head2
27510 #: ../src/guestfs-actions.pod:1006
27511 msgid "guestfs_checksum"
27512 msgstr ""
27513
27514 #. type: verbatim
27515 #: ../src/guestfs-actions.pod:1008
27516 #, no-wrap
27517 msgid ""
27518 " char *\n"
27519 " guestfs_checksum (guestfs_h *g,\n"
27520 "                   const char *csumtype,\n"
27521 "                   const char *path);\n"
27522 "\n"
27523 msgstr ""
27524
27525 #. type: textblock
27526 #: ../src/guestfs-actions.pod:1054
27527 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27528 msgstr ""
27529
27530 #. type: textblock
27531 #: ../src/guestfs-actions.pod:1056
27532 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27533 msgstr ""
27534
27535 #. type: textblock
27536 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
27537 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
27538 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
27539 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
27540 msgid "(Added in 1.0.2)"
27541 msgstr "(Додано у 1.0.2)"
27542
27543 #. type: =head2
27544 #: ../src/guestfs-actions.pod:1063
27545 msgid "guestfs_checksum_device"
27546 msgstr ""
27547
27548 #. type: verbatim
27549 #: ../src/guestfs-actions.pod:1065
27550 #, no-wrap
27551 msgid ""
27552 " char *\n"
27553 " guestfs_checksum_device (guestfs_h *g,\n"
27554 "                          const char *csumtype,\n"
27555 "                          const char *device);\n"
27556 "\n"
27557 msgstr ""
27558
27559 #. type: textblock
27560 #: ../src/guestfs-actions.pod:1070
27561 msgid ""
27562 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27563 "device named C<device>.  For the types of checksums supported see the "
27564 "C<guestfs_checksum> command."
27565 msgstr ""
27566
27567 #. type: textblock
27568 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
27569 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
27570 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
27571 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
27572 #: ../src/guestfs-actions.pod:8035
27573 msgid "(Added in 1.3.2)"
27574 msgstr "(Додано у 1.3.2)"
27575
27576 #. type: =head2
27577 #: ../src/guestfs-actions.pod:1079
27578 msgid "guestfs_checksums_out"
27579 msgstr ""
27580
27581 #. type: verbatim
27582 #: ../src/guestfs-actions.pod:1081
27583 #, no-wrap
27584 msgid ""
27585 " int\n"
27586 " guestfs_checksums_out (guestfs_h *g,\n"
27587 "                        const char *csumtype,\n"
27588 "                        const char *directory,\n"
27589 "                        const char *sumsfile);\n"
27590 "\n"
27591 msgstr ""
27592
27593 #. type: textblock
27594 #: ../src/guestfs-actions.pod:1101
27595 msgid "(Added in 1.3.7)"
27596 msgstr "(Додано у 1.3.7)"
27597
27598 #. type: =head2
27599 #: ../src/guestfs-actions.pod:1103
27600 msgid "guestfs_chmod"
27601 msgstr ""
27602
27603 #. type: verbatim
27604 #: ../src/guestfs-actions.pod:1105
27605 #, no-wrap
27606 msgid ""
27607 " int\n"
27608 " guestfs_chmod (guestfs_h *g,\n"
27609 "                int mode,\n"
27610 "                const char *path);\n"
27611 "\n"
27612 msgstr ""
27613
27614 #. type: =head2
27615 #: ../src/guestfs-actions.pod:1123
27616 msgid "guestfs_chown"
27617 msgstr ""
27618
27619 #. type: verbatim
27620 #: ../src/guestfs-actions.pod:1125
27621 #, no-wrap
27622 msgid ""
27623 " int\n"
27624 " guestfs_chown (guestfs_h *g,\n"
27625 "                int owner,\n"
27626 "                int group,\n"
27627 "                const char *path);\n"
27628 "\n"
27629 msgstr ""
27630
27631 #. type: =head2
27632 #: ../src/guestfs-actions.pod:1141
27633 msgid "guestfs_command"
27634 msgstr ""
27635
27636 #. type: verbatim
27637 #: ../src/guestfs-actions.pod:1143
27638 #, no-wrap
27639 msgid ""
27640 " char *\n"
27641 " guestfs_command (guestfs_h *g,\n"
27642 "                  char *const *arguments);\n"
27643 "\n"
27644 msgstr ""
27645
27646 #. type: textblock
27647 #: ../src/guestfs-actions.pod:1152
27648 msgid ""
27649 "The single parameter is an argv-style list of arguments.  The first element "
27650 "is the name of the program to run.  Subsequent elements are parameters.  The "
27651 "list must be non-empty (ie. must contain a program name).  Note that the "
27652 "command runs directly, and is I<not> invoked via the shell (see "
27653 "C<guestfs_sh>)."
27654 msgstr ""
27655
27656 #. type: textblock
27657 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
27658 #: ../src/guestfs-actions.pod:2027
27659 msgid "(Added in 0.9.1)"
27660 msgstr "(Додано у 0.9.1)"
27661
27662 #. type: =head2
27663 #: ../src/guestfs-actions.pod:1185
27664 msgid "guestfs_command_lines"
27665 msgstr ""
27666
27667 #. type: verbatim
27668 #: ../src/guestfs-actions.pod:1187
27669 #, no-wrap
27670 msgid ""
27671 " char **\n"
27672 " guestfs_command_lines (guestfs_h *g,\n"
27673 "                        char *const *arguments);\n"
27674 "\n"
27675 msgstr ""
27676
27677 #. type: textblock
27678 #: ../src/guestfs-actions.pod:1191
27679 msgid ""
27680 "This is the same as C<guestfs_command>, but splits the result into a list of "
27681 "lines."
27682 msgstr ""
27683
27684 #. type: textblock
27685 #: ../src/guestfs-actions.pod:1194
27686 msgid "See also: C<guestfs_sh_lines>"
27687 msgstr ""
27688
27689 #. type: =head2
27690 #: ../src/guestfs-actions.pod:1205
27691 msgid "guestfs_compress_device_out"
27692 msgstr ""
27693
27694 #. type: verbatim
27695 #: ../src/guestfs-actions.pod:1207
27696 #, no-wrap
27697 msgid ""
27698 " int\n"
27699 " guestfs_compress_device_out (guestfs_h *g,\n"
27700 "                              const char *ctype,\n"
27701 "                              const char *device,\n"
27702 "                              const char *zdevice,\n"
27703 "                              ...);\n"
27704 "\n"
27705 msgstr ""
27706
27707 #. type: verbatim
27708 #: ../src/guestfs-actions.pod:1219
27709 #, no-wrap
27710 msgid ""
27711 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27712 "\n"
27713 msgstr ""
27714
27715 #. type: textblock
27716 #: ../src/guestfs-actions.pod:1224
27717 msgid ""
27718 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27719 "C<guestfs_compress_out>."
27720 msgstr ""
27721
27722 #. type: textblock
27723 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
27724 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
27725 msgid "(Added in 1.13.15)"
27726 msgstr ""
27727
27728 #. type: =head2
27729 #: ../src/guestfs-actions.pod:1231
27730 msgid "guestfs_compress_device_out_va"
27731 msgstr ""
27732
27733 #. type: verbatim
27734 #: ../src/guestfs-actions.pod:1233
27735 #, no-wrap
27736 msgid ""
27737 " int\n"
27738 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27739 "                                 const char *ctype,\n"
27740 "                                 const char *device,\n"
27741 "                                 const char *zdevice,\n"
27742 "                                 va_list args);\n"
27743 "\n"
27744 msgstr ""
27745
27746 #. type: textblock
27747 #: ../src/guestfs-actions.pod:1240
27748 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27749 msgstr ""
27750
27751 #. type: =head2
27752 #: ../src/guestfs-actions.pod:1244
27753 msgid "guestfs_compress_device_out_argv"
27754 msgstr ""
27755
27756 #. type: verbatim
27757 #: ../src/guestfs-actions.pod:1246
27758 #, no-wrap
27759 msgid ""
27760 " int\n"
27761 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27762 "                                   const char *ctype,\n"
27763 "                                   const char *device,\n"
27764 "                                   const char *zdevice,\n"
27765 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27766 "\n"
27767 msgstr ""
27768
27769 #. type: textblock
27770 #: ../src/guestfs-actions.pod:1253
27771 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27772 msgstr ""
27773
27774 #. type: =head2
27775 #: ../src/guestfs-actions.pod:1257
27776 msgid "guestfs_compress_out"
27777 msgstr ""
27778
27779 #. type: verbatim
27780 #: ../src/guestfs-actions.pod:1259
27781 #, no-wrap
27782 msgid ""
27783 " int\n"
27784 " guestfs_compress_out (guestfs_h *g,\n"
27785 "                       const char *ctype,\n"
27786 "                       const char *file,\n"
27787 "                       const char *zfile,\n"
27788 "                       ...);\n"
27789 "\n"
27790 msgstr ""
27791
27792 #. type: verbatim
27793 #: ../src/guestfs-actions.pod:1271
27794 #, no-wrap
27795 msgid ""
27796 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27797 "\n"
27798 msgstr ""
27799
27800 #. type: =head2
27801 #: ../src/guestfs-actions.pod:1290
27802 msgid "guestfs_compress_out_va"
27803 msgstr ""
27804
27805 #. type: verbatim
27806 #: ../src/guestfs-actions.pod:1292
27807 #, no-wrap
27808 msgid ""
27809 " int\n"
27810 " guestfs_compress_out_va (guestfs_h *g,\n"
27811 "                          const char *ctype,\n"
27812 "                          const char *file,\n"
27813 "                          const char *zfile,\n"
27814 "                          va_list args);\n"
27815 "\n"
27816 msgstr ""
27817
27818 #. type: textblock
27819 #: ../src/guestfs-actions.pod:1299
27820 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27821 msgstr ""
27822
27823 #. type: =head2
27824 #: ../src/guestfs-actions.pod:1303
27825 msgid "guestfs_compress_out_argv"
27826 msgstr ""
27827
27828 #. type: verbatim
27829 #: ../src/guestfs-actions.pod:1305
27830 #, no-wrap
27831 msgid ""
27832 " int\n"
27833 " guestfs_compress_out_argv (guestfs_h *g,\n"
27834 "                            const char *ctype,\n"
27835 "                            const char *file,\n"
27836 "                            const char *zfile,\n"
27837 "                            const struct guestfs_compress_out_argv *optargs);\n"
27838 "\n"
27839 msgstr ""
27840
27841 #. type: textblock
27842 #: ../src/guestfs-actions.pod:1312
27843 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27844 msgstr ""
27845
27846 #. type: =head2
27847 #: ../src/guestfs-actions.pod:1316
27848 msgid "guestfs_config"
27849 msgstr ""
27850
27851 #. type: verbatim
27852 #: ../src/guestfs-actions.pod:1318
27853 #, no-wrap
27854 msgid ""
27855 " int\n"
27856 " guestfs_config (guestfs_h *g,\n"
27857 "                 const char *qemuparam,\n"
27858 "                 const char *qemuvalue);\n"
27859 "\n"
27860 msgstr ""
27861
27862 #. type: =head2
27863 #: ../src/guestfs-actions.pod:1336
27864 msgid "guestfs_copy_device_to_device"
27865 msgstr ""
27866
27867 #. type: verbatim
27868 #: ../src/guestfs-actions.pod:1338
27869 #, no-wrap
27870 msgid ""
27871 " int\n"
27872 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27873 "                                const char *src,\n"
27874 "                                const char *dest,\n"
27875 "                                ...);\n"
27876 "\n"
27877 msgstr ""
27878
27879 #. type: verbatim
27880 #: ../src/guestfs-actions.pod:1349
27881 #, no-wrap
27882 msgid ""
27883 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27884 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27885 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27886 "\n"
27887 msgstr ""
27888
27889 #. type: textblock
27890 #: ../src/guestfs-actions.pod:1353
27891 msgid ""
27892 "The four calls C<guestfs_copy_device_to_device>, "
27893 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27894 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27895 "destination (device|file)."
27896 msgstr ""
27897
27898 #. type: textblock
27899 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27900 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27901 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27902 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27903 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27904 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
27905 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
27906 #: ../src/guestfs-actions.pod:8271
27907 msgid ""
27908 "This long-running command can generate progress notification messages so "
27909 "that the caller can display a progress bar or indicator.  To receive these "
27910 "messages, the caller must register a progress event callback.  See L<guestfs"
27911 "(3)/GUESTFS_EVENT_PROGRESS>."
27912 msgstr ""
27913
27914 #. type: textblock
27915 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27916 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27917 #: ../src/guestfs-actions.pod:6042
27918 #, fuzzy
27919 #| msgid "(Added in 1.3.5)"
27920 msgid "(Added in 1.13.25)"
27921 msgstr "(Додано у 1.3.5)"
27922
27923 #. type: =head2
27924 #: ../src/guestfs-actions.pod:1381
27925 msgid "guestfs_copy_device_to_device_va"
27926 msgstr ""
27927
27928 #. type: verbatim
27929 #: ../src/guestfs-actions.pod:1383
27930 #, no-wrap
27931 msgid ""
27932 " int\n"
27933 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27934 "                                   const char *src,\n"
27935 "                                   const char *dest,\n"
27936 "                                   va_list args);\n"
27937 "\n"
27938 msgstr ""
27939
27940 #. type: textblock
27941 #: ../src/guestfs-actions.pod:1389
27942 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27943 msgstr ""
27944
27945 #. type: =head2
27946 #: ../src/guestfs-actions.pod:1393
27947 msgid "guestfs_copy_device_to_device_argv"
27948 msgstr ""
27949
27950 #. type: verbatim
27951 #: ../src/guestfs-actions.pod:1395
27952 #, no-wrap
27953 msgid ""
27954 " int\n"
27955 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27956 "                                     const char *src,\n"
27957 "                                     const char *dest,\n"
27958 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27959 "\n"
27960 msgstr ""
27961
27962 #. type: textblock
27963 #: ../src/guestfs-actions.pod:1401
27964 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27965 msgstr ""
27966
27967 #. type: =head2
27968 #: ../src/guestfs-actions.pod:1405
27969 msgid "guestfs_copy_device_to_file"
27970 msgstr ""
27971
27972 #. type: verbatim
27973 #: ../src/guestfs-actions.pod:1407
27974 #, no-wrap
27975 msgid ""
27976 " int\n"
27977 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27978 "                              const char *src,\n"
27979 "                              const char *dest,\n"
27980 "                              ...);\n"
27981 "\n"
27982 msgstr ""
27983
27984 #. type: verbatim
27985 #: ../src/guestfs-actions.pod:1418
27986 #, no-wrap
27987 msgid ""
27988 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27989 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27990 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27991 "\n"
27992 msgstr ""
27993
27994 #. type: textblock
27995 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27996 #: ../src/guestfs-actions.pod:1528
27997 msgid ""
27998 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27999 msgstr ""
28000
28001 #. type: =head2
28002 #: ../src/guestfs-actions.pod:1434
28003 msgid "guestfs_copy_device_to_file_va"
28004 msgstr ""
28005
28006 #. type: verbatim
28007 #: ../src/guestfs-actions.pod:1436
28008 #, no-wrap
28009 msgid ""
28010 " int\n"
28011 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
28012 "                                 const char *src,\n"
28013 "                                 const char *dest,\n"
28014 "                                 va_list args);\n"
28015 "\n"
28016 msgstr ""
28017
28018 #. type: textblock
28019 #: ../src/guestfs-actions.pod:1442
28020 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28021 msgstr ""
28022
28023 #. type: =head2
28024 #: ../src/guestfs-actions.pod:1446
28025 msgid "guestfs_copy_device_to_file_argv"
28026 msgstr ""
28027
28028 #. type: verbatim
28029 #: ../src/guestfs-actions.pod:1448
28030 #, no-wrap
28031 msgid ""
28032 " int\n"
28033 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28034 "                                   const char *src,\n"
28035 "                                   const char *dest,\n"
28036 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
28037 "\n"
28038 msgstr ""
28039
28040 #. type: textblock
28041 #: ../src/guestfs-actions.pod:1454
28042 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28043 msgstr ""
28044
28045 #. type: =head2
28046 #: ../src/guestfs-actions.pod:1458
28047 msgid "guestfs_copy_file_to_device"
28048 msgstr ""
28049
28050 #. type: verbatim
28051 #: ../src/guestfs-actions.pod:1460
28052 #, no-wrap
28053 msgid ""
28054 " int\n"
28055 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28056 "                              const char *src,\n"
28057 "                              const char *dest,\n"
28058 "                              ...);\n"
28059 "\n"
28060 msgstr ""
28061
28062 #. type: verbatim
28063 #: ../src/guestfs-actions.pod:1471
28064 #, no-wrap
28065 msgid ""
28066 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28067 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28068 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28069 "\n"
28070 msgstr ""
28071
28072 #. type: =head2
28073 #: ../src/guestfs-actions.pod:1487
28074 msgid "guestfs_copy_file_to_device_va"
28075 msgstr ""
28076
28077 #. type: verbatim
28078 #: ../src/guestfs-actions.pod:1489
28079 #, no-wrap
28080 msgid ""
28081 " int\n"
28082 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28083 "                                 const char *src,\n"
28084 "                                 const char *dest,\n"
28085 "                                 va_list args);\n"
28086 "\n"
28087 msgstr ""
28088
28089 #. type: textblock
28090 #: ../src/guestfs-actions.pod:1495
28091 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28092 msgstr ""
28093
28094 #. type: =head2
28095 #: ../src/guestfs-actions.pod:1499
28096 msgid "guestfs_copy_file_to_device_argv"
28097 msgstr ""
28098
28099 #. type: verbatim
28100 #: ../src/guestfs-actions.pod:1501
28101 #, no-wrap
28102 msgid ""
28103 " int\n"
28104 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28105 "                                   const char *src,\n"
28106 "                                   const char *dest,\n"
28107 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
28108 "\n"
28109 msgstr ""
28110
28111 #. type: textblock
28112 #: ../src/guestfs-actions.pod:1507
28113 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28114 msgstr ""
28115
28116 #. type: =head2
28117 #: ../src/guestfs-actions.pod:1511
28118 msgid "guestfs_copy_file_to_file"
28119 msgstr ""
28120
28121 #. type: verbatim
28122 #: ../src/guestfs-actions.pod:1513
28123 #, no-wrap
28124 msgid ""
28125 " int\n"
28126 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28127 "                            const char *src,\n"
28128 "                            const char *dest,\n"
28129 "                            ...);\n"
28130 "\n"
28131 msgstr ""
28132
28133 #. type: verbatim
28134 #: ../src/guestfs-actions.pod:1524
28135 #, no-wrap
28136 msgid ""
28137 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28138 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28139 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28140 "\n"
28141 msgstr ""
28142
28143 #. type: textblock
28144 #: ../src/guestfs-actions.pod:1531
28145 msgid ""
28146 "This is B<not> the function you want for copying files.  This is for copying "
28147 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
28148 "C<guestfs_mv> for general file copying and moving functions."
28149 msgstr ""
28150
28151 #. type: =head2
28152 #: ../src/guestfs-actions.pod:1545
28153 msgid "guestfs_copy_file_to_file_va"
28154 msgstr ""
28155
28156 #. type: verbatim
28157 #: ../src/guestfs-actions.pod:1547
28158 #, no-wrap
28159 msgid ""
28160 " int\n"
28161 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28162 "                               const char *src,\n"
28163 "                               const char *dest,\n"
28164 "                               va_list args);\n"
28165 "\n"
28166 msgstr ""
28167
28168 #. type: textblock
28169 #: ../src/guestfs-actions.pod:1553
28170 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28171 msgstr ""
28172
28173 #. type: =head2
28174 #: ../src/guestfs-actions.pod:1557
28175 msgid "guestfs_copy_file_to_file_argv"
28176 msgstr ""
28177
28178 #. type: verbatim
28179 #: ../src/guestfs-actions.pod:1559
28180 #, no-wrap
28181 msgid ""
28182 " int\n"
28183 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28184 "                                 const char *src,\n"
28185 "                                 const char *dest,\n"
28186 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
28187 "\n"
28188 msgstr ""
28189
28190 #. type: textblock
28191 #: ../src/guestfs-actions.pod:1565
28192 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28193 msgstr ""
28194
28195 #. type: =head2
28196 #: ../src/guestfs-actions.pod:1569
28197 msgid "guestfs_copy_size"
28198 msgstr ""
28199
28200 #. type: verbatim
28201 #: ../src/guestfs-actions.pod:1571
28202 #, no-wrap
28203 msgid ""
28204 " int\n"
28205 " guestfs_copy_size (guestfs_h *g,\n"
28206 "                    const char *src,\n"
28207 "                    const char *dest,\n"
28208 "                    int64_t size);\n"
28209 "\n"
28210 msgstr ""
28211
28212 #. type: textblock
28213 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
28214 msgid ""
28215 "I<This function is deprecated.> In new code, use the L</"
28216 "guestfs_copy_device_to_device> call instead."
28217 msgstr ""
28218
28219 #. type: textblock
28220 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
28221 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
28222 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
28223 msgid "(Added in 1.0.87)"
28224 msgstr "(Додано у 1.0.87)"
28225
28226 #. type: =head2
28227 #: ../src/guestfs-actions.pod:1599
28228 msgid "guestfs_cp"
28229 msgstr ""
28230
28231 #. type: verbatim
28232 #: ../src/guestfs-actions.pod:1601
28233 #, no-wrap
28234 msgid ""
28235 " int\n"
28236 " guestfs_cp (guestfs_h *g,\n"
28237 "             const char *src,\n"
28238 "             const char *dest);\n"
28239 "\n"
28240 msgstr ""
28241
28242 #. type: textblock
28243 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
28244 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
28245 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
28246 #: ../src/guestfs-actions.pod:6056
28247 msgid "(Added in 1.0.18)"
28248 msgstr "(Додано у 1.0.18)"
28249
28250 #. type: =head2
28251 #: ../src/guestfs-actions.pod:1613
28252 msgid "guestfs_cp_a"
28253 msgstr ""
28254
28255 #. type: verbatim
28256 #: ../src/guestfs-actions.pod:1615
28257 #, no-wrap
28258 msgid ""
28259 " int\n"
28260 " guestfs_cp_a (guestfs_h *g,\n"
28261 "               const char *src,\n"
28262 "               const char *dest);\n"
28263 "\n"
28264 msgstr ""
28265
28266 #. type: =head2
28267 #: ../src/guestfs-actions.pod:1627
28268 msgid "guestfs_dd"
28269 msgstr ""
28270
28271 #. type: verbatim
28272 #: ../src/guestfs-actions.pod:1629
28273 #, no-wrap
28274 msgid ""
28275 " int\n"
28276 " guestfs_dd (guestfs_h *g,\n"
28277 "             const char *src,\n"
28278 "             const char *dest);\n"
28279 "\n"
28280 msgstr ""
28281
28282 #. type: textblock
28283 #: ../src/guestfs-actions.pod:1646
28284 msgid ""
28285 "If the destination is a device, it must be as large or larger than the "
28286 "source file or device, otherwise the copy will fail.  This command cannot do "
28287 "partial copies (see C<guestfs_copy_device_to_device>)."
28288 msgstr ""
28289
28290 #. type: =head2
28291 #: ../src/guestfs-actions.pod:1655
28292 msgid "guestfs_df"
28293 msgstr ""
28294
28295 #. type: verbatim
28296 #: ../src/guestfs-actions.pod:1657
28297 #, no-wrap
28298 msgid ""
28299 " char *\n"
28300 " guestfs_df (guestfs_h *g);\n"
28301 "\n"
28302 msgstr ""
28303
28304 #. type: textblock
28305 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
28306 msgid ""
28307 "This command is mostly useful for interactive sessions.  It is I<not> "
28308 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
28309 "from programs."
28310 msgstr ""
28311
28312 #. type: textblock
28313 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28314 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28315 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28316 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
28317 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
28318 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
28319 #: ../src/guestfs-actions.pod:8114
28320 msgid "(Added in 1.0.54)"
28321 msgstr "(Додано у 1.0.54)"
28322
28323 #. type: =head2
28324 #: ../src/guestfs-actions.pod:1671
28325 msgid "guestfs_df_h"
28326 msgstr ""
28327
28328 #. type: verbatim
28329 #: ../src/guestfs-actions.pod:1673
28330 #, no-wrap
28331 msgid ""
28332 " char *\n"
28333 " guestfs_df_h (guestfs_h *g);\n"
28334 "\n"
28335 msgstr ""
28336
28337 #. type: =head2
28338 #: ../src/guestfs-actions.pod:1688
28339 msgid "guestfs_dmesg"
28340 msgstr ""
28341
28342 #. type: verbatim
28343 #: ../src/guestfs-actions.pod:1690
28344 #, no-wrap
28345 msgid ""
28346 " char *\n"
28347 " guestfs_dmesg (guestfs_h *g);\n"
28348 "\n"
28349 msgstr ""
28350
28351 #. type: textblock
28352 #: ../src/guestfs-actions.pod:1697
28353 msgid ""
28354 "Another way to get the same information is to enable verbose messages with "
28355 "C<guestfs_set_verbose> or by setting the environment variable "
28356 "C<LIBGUESTFS_DEBUG=1> before running the program."
28357 msgstr ""
28358
28359 #. type: =head2
28360 #: ../src/guestfs-actions.pod:1707
28361 msgid "guestfs_download"
28362 msgstr ""
28363
28364 #. type: verbatim
28365 #: ../src/guestfs-actions.pod:1709
28366 #, no-wrap
28367 msgid ""
28368 " int\n"
28369 " guestfs_download (guestfs_h *g,\n"
28370 "                   const char *remotefilename,\n"
28371 "                   const char *filename);\n"
28372 "\n"
28373 msgstr ""
28374
28375 #. type: textblock
28376 #: ../src/guestfs-actions.pod:1719
28377 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28378 msgstr ""
28379
28380 #. type: =head2
28381 #: ../src/guestfs-actions.pod:1730
28382 msgid "guestfs_download_offset"
28383 msgstr ""
28384
28385 #. type: verbatim
28386 #: ../src/guestfs-actions.pod:1732
28387 #, no-wrap
28388 msgid ""
28389 " int\n"
28390 " guestfs_download_offset (guestfs_h *g,\n"
28391 "                          const char *remotefilename,\n"
28392 "                          const char *filename,\n"
28393 "                          int64_t offset,\n"
28394 "                          int64_t size);\n"
28395 "\n"
28396 msgstr ""
28397
28398 #. type: textblock
28399 #: ../src/guestfs-actions.pod:1745
28400 msgid ""
28401 "Note that there is no limit on the amount of data that can be downloaded "
28402 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28403 "full amount unless an error occurs."
28404 msgstr ""
28405
28406 #. type: textblock
28407 #: ../src/guestfs-actions.pod:1750
28408 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28409 msgstr ""
28410
28411 #. type: textblock
28412 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
28413 msgid "(Added in 1.5.17)"
28414 msgstr "(Додано у 1.5.17)"
28415
28416 #. type: =head2
28417 #: ../src/guestfs-actions.pod:1761
28418 msgid "guestfs_drop_caches"
28419 msgstr ""
28420
28421 #. type: verbatim
28422 #: ../src/guestfs-actions.pod:1763
28423 #, no-wrap
28424 msgid ""
28425 " int\n"
28426 " guestfs_drop_caches (guestfs_h *g,\n"
28427 "                      int whattodrop);\n"
28428 "\n"
28429 msgstr ""
28430
28431 #. type: =head2
28432 #: ../src/guestfs-actions.pod:1781
28433 msgid "guestfs_du"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../src/guestfs-actions.pod:1783
28438 #, no-wrap
28439 msgid ""
28440 " int64_t\n"
28441 " guestfs_du (guestfs_h *g,\n"
28442 "             const char *path);\n"
28443 "\n"
28444 msgstr ""
28445
28446 #. type: =head2
28447 #: ../src/guestfs-actions.pod:1806
28448 msgid "guestfs_e2fsck_f"
28449 msgstr ""
28450
28451 #. type: verbatim
28452 #: ../src/guestfs-actions.pod:1808
28453 #, no-wrap
28454 msgid ""
28455 " int\n"
28456 " guestfs_e2fsck_f (guestfs_h *g,\n"
28457 "                   const char *device);\n"
28458 "\n"
28459 msgstr ""
28460
28461 #. type: textblock
28462 #: ../src/guestfs-actions.pod:1816
28463 msgid ""
28464 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
28465 "Normally you should use C<guestfs_fsck>."
28466 msgstr ""
28467
28468 #. type: textblock
28469 #: ../src/guestfs-actions.pod:1821
28470 msgid "(Added in 1.0.29)"
28471 msgstr "(Додано у 1.0.29)"
28472
28473 #. type: =head2
28474 #: ../src/guestfs-actions.pod:1823
28475 msgid "guestfs_echo_daemon"
28476 msgstr "guestfs_echo_daemon"
28477
28478 #. type: verbatim
28479 #: ../src/guestfs-actions.pod:1825
28480 #, no-wrap
28481 msgid ""
28482 " char *\n"
28483 " guestfs_echo_daemon (guestfs_h *g,\n"
28484 "                      char *const *words);\n"
28485 "\n"
28486 msgstr ""
28487 " char *\n"
28488 " guestfs_echo_daemon (guestfs_h *g,\n"
28489 "                      char *const *words);\n"
28490 "\n"
28491
28492 #. type: textblock
28493 #: ../src/guestfs-actions.pod:1834
28494 msgid "See also C<guestfs_ping_daemon>."
28495 msgstr ""
28496
28497 #. type: textblock
28498 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
28499 #: ../src/guestfs-actions.pod:6926
28500 msgid "(Added in 1.0.69)"
28501 msgstr "(Додано у 1.0.69)"
28502
28503 #. type: =head2
28504 #: ../src/guestfs-actions.pod:1841
28505 msgid "guestfs_egrep"
28506 msgstr "guestfs_egrep"
28507
28508 #. type: verbatim
28509 #: ../src/guestfs-actions.pod:1843
28510 #, no-wrap
28511 msgid ""
28512 " char **\n"
28513 " guestfs_egrep (guestfs_h *g,\n"
28514 "                const char *regex,\n"
28515 "                const char *path);\n"
28516 "\n"
28517 msgstr ""
28518 " char **\n"
28519 " guestfs_egrep (guestfs_h *g,\n"
28520 "                const char *regex,\n"
28521 "                const char *path);\n"
28522 "\n"
28523
28524 #. type: textblock
28525 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
28526 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
28527 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
28528 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
28529 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
28530 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
28531 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
28532 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
28533 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
28534 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
28535 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
28536 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
28537 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
28538 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
28539 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
28540 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
28541 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
28542 msgid "(Added in 1.0.66)"
28543 msgstr "(Додано у 1.0.66)"
28544
28545 #. type: =head2
28546 #: ../src/guestfs-actions.pod:1860
28547 msgid "guestfs_egrepi"
28548 msgstr "guestfs_egrepi"
28549
28550 #. type: verbatim
28551 #: ../src/guestfs-actions.pod:1862
28552 #, no-wrap
28553 msgid ""
28554 " char **\n"
28555 " guestfs_egrepi (guestfs_h *g,\n"
28556 "                 const char *regex,\n"
28557 "                 const char *path);\n"
28558 "\n"
28559 msgstr ""
28560
28561 #. type: =head2
28562 #: ../src/guestfs-actions.pod:1879
28563 msgid "guestfs_equal"
28564 msgstr ""
28565
28566 #. type: verbatim
28567 #: ../src/guestfs-actions.pod:1881
28568 #, no-wrap
28569 msgid ""
28570 " int\n"
28571 " guestfs_equal (guestfs_h *g,\n"
28572 "                const char *file1,\n"
28573 "                const char *file2);\n"
28574 "\n"
28575 msgstr ""
28576
28577 #. type: =head2
28578 #: ../src/guestfs-actions.pod:1895
28579 msgid "guestfs_exists"
28580 msgstr ""
28581
28582 #. type: verbatim
28583 #: ../src/guestfs-actions.pod:1897
28584 #, no-wrap
28585 msgid ""
28586 " int\n"
28587 " guestfs_exists (guestfs_h *g,\n"
28588 "                 const char *path);\n"
28589 "\n"
28590 msgstr ""
28591
28592 #. type: textblock
28593 #: ../src/guestfs-actions.pod:1904
28594 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28595 msgstr ""
28596
28597 #. type: =head2
28598 #: ../src/guestfs-actions.pod:1910
28599 msgid "guestfs_fallocate"
28600 msgstr ""
28601
28602 #. type: verbatim
28603 #: ../src/guestfs-actions.pod:1912
28604 #, no-wrap
28605 msgid ""
28606 " int\n"
28607 " guestfs_fallocate (guestfs_h *g,\n"
28608 "                    const char *path,\n"
28609 "                    int len);\n"
28610 "\n"
28611 msgstr ""
28612
28613 #. type: textblock
28614 #: ../src/guestfs-actions.pod:1917
28615 msgid ""
28616 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28617 "call instead."
28618 msgstr ""
28619
28620 #. type: =head2
28621 #: ../src/guestfs-actions.pod:1936
28622 msgid "guestfs_fallocate64"
28623 msgstr ""
28624
28625 #. type: verbatim
28626 #: ../src/guestfs-actions.pod:1938
28627 #, no-wrap
28628 msgid ""
28629 " int\n"
28630 " guestfs_fallocate64 (guestfs_h *g,\n"
28631 "                      const char *path,\n"
28632 "                      int64_t len);\n"
28633 "\n"
28634 msgstr ""
28635
28636 #. type: textblock
28637 #: ../src/guestfs-actions.pod:1947
28638 msgid ""
28639 "Note that this call allocates disk blocks for the file.  To create a sparse "
28640 "file use C<guestfs_truncate_size> instead."
28641 msgstr ""
28642
28643 #. type: textblock
28644 #: ../src/guestfs-actions.pod:1950
28645 msgid ""
28646 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28647 "oversight it only allowed 30 bit lengths to be specified, effectively "
28648 "limiting the maximum size of files created through that call to 1GB."
28649 msgstr ""
28650
28651 #. type: textblock
28652 #: ../src/guestfs-actions.pod:1961
28653 msgid "(Added in 1.3.17)"
28654 msgstr "(Додано у 1.3.17)"
28655
28656 #. type: =head2
28657 #: ../src/guestfs-actions.pod:1963
28658 msgid "guestfs_fgrep"
28659 msgstr ""
28660
28661 #. type: verbatim
28662 #: ../src/guestfs-actions.pod:1965
28663 #, no-wrap
28664 msgid ""
28665 " char **\n"
28666 " guestfs_fgrep (guestfs_h *g,\n"
28667 "                const char *pattern,\n"
28668 "                const char *path);\n"
28669 "\n"
28670 msgstr ""
28671
28672 #. type: =head2
28673 #: ../src/guestfs-actions.pod:1982
28674 msgid "guestfs_fgrepi"
28675 msgstr ""
28676
28677 #. type: verbatim
28678 #: ../src/guestfs-actions.pod:1984
28679 #, no-wrap
28680 msgid ""
28681 " char **\n"
28682 " guestfs_fgrepi (guestfs_h *g,\n"
28683 "                 const char *pattern,\n"
28684 "                 const char *path);\n"
28685 "\n"
28686 msgstr ""
28687
28688 #. type: =head2
28689 #: ../src/guestfs-actions.pod:2001
28690 msgid "guestfs_file"
28691 msgstr ""
28692
28693 #. type: verbatim
28694 #: ../src/guestfs-actions.pod:2003
28695 #, no-wrap
28696 msgid ""
28697 " char *\n"
28698 " guestfs_file (guestfs_h *g,\n"
28699 "               const char *path);\n"
28700 "\n"
28701 msgstr ""
28702
28703 #. type: textblock
28704 #: ../src/guestfs-actions.pod:2021
28705 msgid ""
28706 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28707 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28708 msgstr ""
28709
28710 #. type: =head2
28711 #: ../src/guestfs-actions.pod:2029
28712 msgid "guestfs_file_architecture"
28713 msgstr ""
28714
28715 #. type: verbatim
28716 #: ../src/guestfs-actions.pod:2031
28717 #, no-wrap
28718 msgid ""
28719 " char *\n"
28720 " guestfs_file_architecture (guestfs_h *g,\n"
28721 "                            const char *filename);\n"
28722 "\n"
28723 msgstr ""
28724
28725 #. type: textblock
28726 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
28727 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
28728 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
28729 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
28730 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
28731 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
28732 #: ../src/guestfs-actions.pod:4008
28733 msgid "(Added in 1.5.3)"
28734 msgstr "(Додано у 1.5.3)"
28735
28736 #. type: =head2
28737 #: ../src/guestfs-actions.pod:2141
28738 msgid "guestfs_filesize"
28739 msgstr ""
28740
28741 #. type: verbatim
28742 #: ../src/guestfs-actions.pod:2143
28743 #, no-wrap
28744 msgid ""
28745 " int64_t\n"
28746 " guestfs_filesize (guestfs_h *g,\n"
28747 "                   const char *file);\n"
28748 "\n"
28749 msgstr ""
28750
28751 #. type: textblock
28752 #: ../src/guestfs-actions.pod:2149
28753 msgid ""
28754 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28755 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28756 "devices, use C<guestfs_blockdev_getsize64>."
28757 msgstr ""
28758
28759 #. type: textblock
28760 #: ../src/guestfs-actions.pod:2155
28761 msgid "(Added in 1.0.82)"
28762 msgstr "(Додано у 1.0.82)"
28763
28764 #. type: =head2
28765 #: ../src/guestfs-actions.pod:2157
28766 msgid "guestfs_fill"
28767 msgstr ""
28768
28769 #. type: verbatim
28770 #: ../src/guestfs-actions.pod:2159
28771 #, no-wrap
28772 msgid ""
28773 " int\n"
28774 " guestfs_fill (guestfs_h *g,\n"
28775 "               int c,\n"
28776 "               int len,\n"
28777 "               const char *path);\n"
28778 "\n"
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../src/guestfs-actions.pod:2169
28783 msgid ""
28784 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28785 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28786 "bytes use C<guestfs_fill_pattern>."
28787 msgstr ""
28788
28789 #. type: textblock
28790 #: ../src/guestfs-actions.pod:2181
28791 msgid "(Added in 1.0.79)"
28792 msgstr "(Додано у 1.0.79)"
28793
28794 #. type: =head2
28795 #: ../src/guestfs-actions.pod:2183
28796 msgid "guestfs_fill_pattern"
28797 msgstr ""
28798
28799 #. type: verbatim
28800 #: ../src/guestfs-actions.pod:2185
28801 #, no-wrap
28802 msgid ""
28803 " int\n"
28804 " guestfs_fill_pattern (guestfs_h *g,\n"
28805 "                       const char *pattern,\n"
28806 "                       int len,\n"
28807 "                       const char *path);\n"
28808 "\n"
28809 msgstr ""
28810
28811 #. type: textblock
28812 #: ../src/guestfs-actions.pod:2191
28813 msgid ""
28814 "This function is like C<guestfs_fill> except that it creates a new file of "
28815 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28816 "pattern is truncated if necessary to ensure the length of the file is "
28817 "exactly C<len> bytes."
28818 msgstr ""
28819
28820 #. type: textblock
28821 #: ../src/guestfs-actions.pod:2203
28822 msgid "(Added in 1.3.12)"
28823 msgstr "(Додано у 1.3.12)"
28824
28825 #. type: =head2
28826 #: ../src/guestfs-actions.pod:2205
28827 msgid "guestfs_find"
28828 msgstr ""
28829
28830 #. type: verbatim
28831 #: ../src/guestfs-actions.pod:2207
28832 #, no-wrap
28833 msgid ""
28834 " char **\n"
28835 " guestfs_find (guestfs_h *g,\n"
28836 "               const char *directory);\n"
28837 "\n"
28838 msgstr ""
28839
28840 #. type: textblock
28841 #: ../src/guestfs-actions.pod:2223
28842 msgid ""
28843 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28844 msgstr ""
28845
28846 #. type: textblock
28847 #: ../src/guestfs-actions.pod:2236
28848 msgid "See also C<guestfs_find0>."
28849 msgstr ""
28850
28851 #. type: textblock
28852 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
28853 #: ../src/guestfs-actions.pod:6474
28854 msgid "(Added in 1.0.27)"
28855 msgstr "(Додано у 1.0.27)"
28856
28857 #. type: =head2
28858 #: ../src/guestfs-actions.pod:2247
28859 msgid "guestfs_find0"
28860 msgstr ""
28861
28862 #. type: verbatim
28863 #: ../src/guestfs-actions.pod:2249
28864 #, no-wrap
28865 msgid ""
28866 " int\n"
28867 " guestfs_find0 (guestfs_h *g,\n"
28868 "                const char *directory,\n"
28869 "                const char *files);\n"
28870 "\n"
28871 msgstr ""
28872
28873 #. type: textblock
28874 #: ../src/guestfs-actions.pod:2258
28875 msgid ""
28876 "This command works the same way as C<guestfs_find> with the following "
28877 "exceptions:"
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../src/guestfs-actions.pod:2285
28882 msgid "(Added in 1.0.74)"
28883 msgstr "(Додано у 1.0.74)"
28884
28885 #. type: =head2
28886 #: ../src/guestfs-actions.pod:2287
28887 msgid "guestfs_findfs_label"
28888 msgstr ""
28889
28890 #. type: verbatim
28891 #: ../src/guestfs-actions.pod:2289
28892 #, no-wrap
28893 msgid ""
28894 " char *\n"
28895 " guestfs_findfs_label (guestfs_h *g,\n"
28896 "                       const char *label);\n"
28897 "\n"
28898 msgstr ""
28899
28900 #. type: textblock
28901 #: ../src/guestfs-actions.pod:2297
28902 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28903 msgstr ""
28904
28905 #. type: =head2
28906 #: ../src/guestfs-actions.pod:2304
28907 msgid "guestfs_findfs_uuid"
28908 msgstr ""
28909
28910 #. type: verbatim
28911 #: ../src/guestfs-actions.pod:2306
28912 #, no-wrap
28913 msgid ""
28914 " char *\n"
28915 " guestfs_findfs_uuid (guestfs_h *g,\n"
28916 "                      const char *uuid);\n"
28917 "\n"
28918 msgstr ""
28919
28920 #. type: textblock
28921 #: ../src/guestfs-actions.pod:2314
28922 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28923 msgstr ""
28924
28925 #. type: =head2
28926 #: ../src/guestfs-actions.pod:2321
28927 msgid "guestfs_fsck"
28928 msgstr ""
28929
28930 #. type: verbatim
28931 #: ../src/guestfs-actions.pod:2323
28932 #, no-wrap
28933 msgid ""
28934 " int\n"
28935 " guestfs_fsck (guestfs_h *g,\n"
28936 "               const char *fstype,\n"
28937 "               const char *device);\n"
28938 "\n"
28939 msgstr ""
28940
28941 #. type: textblock
28942 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
28943 msgid "(Added in 1.0.16)"
28944 msgstr "(Додано у 1.0.16)"
28945
28946 #. type: =head2
28947 #: ../src/guestfs-actions.pod:2360
28948 msgid "guestfs_get_append"
28949 msgstr ""
28950
28951 #. type: verbatim
28952 #: ../src/guestfs-actions.pod:2362
28953 #, no-wrap
28954 msgid ""
28955 " const char *\n"
28956 " guestfs_get_append (guestfs_h *g);\n"
28957 "\n"
28958 msgstr ""
28959
28960 #. type: textblock
28961 #: ../src/guestfs-actions.pod:2370
28962 msgid ""
28963 "This function returns a string which may be NULL.  There is no way to return "
28964 "an error from this function.  The string is owned by the guest handle and "
28965 "must I<not> be freed."
28966 msgstr ""
28967
28968 #. type: textblock
28969 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
28970 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
28971 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
28972 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
28973 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
28974 msgid "(Added in 1.0.26)"
28975 msgstr "(Додано у 1.0.26)"
28976
28977 #. type: =head2
28978 #: ../src/guestfs-actions.pod:2376
28979 msgid "guestfs_get_attach_method"
28980 msgstr ""
28981
28982 #. type: verbatim
28983 #: ../src/guestfs-actions.pod:2378
28984 #, no-wrap
28985 msgid ""
28986 " char *\n"
28987 " guestfs_get_attach_method (guestfs_h *g);\n"
28988 "\n"
28989 msgstr ""
28990
28991 #. type: textblock
28992 #: ../src/guestfs-actions.pod:2381
28993 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28994 msgstr ""
28995
28996 #. type: textblock
28997 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
28998 msgid "(Added in 1.9.8)"
28999 msgstr "(Додано у 1.9.8)"
29000
29001 #. type: =head2
29002 #: ../src/guestfs-actions.pod:2388
29003 msgid "guestfs_get_autosync"
29004 msgstr ""
29005
29006 #. type: verbatim
29007 #: ../src/guestfs-actions.pod:2390
29008 #, no-wrap
29009 msgid ""
29010 " int\n"
29011 " guestfs_get_autosync (guestfs_h *g);\n"
29012 "\n"
29013 msgstr ""
29014
29015 #. type: =head2
29016 #: ../src/guestfs-actions.pod:2399
29017 msgid "guestfs_get_direct"
29018 msgstr ""
29019
29020 #. type: verbatim
29021 #: ../src/guestfs-actions.pod:2401
29022 #, no-wrap
29023 msgid ""
29024 " int\n"
29025 " guestfs_get_direct (guestfs_h *g);\n"
29026 "\n"
29027 msgstr ""
29028
29029 #. type: textblock
29030 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
29031 msgid "(Added in 1.0.72)"
29032 msgstr "(Додано у 1.0.72)"
29033
29034 #. type: =head2
29035 #: ../src/guestfs-actions.pod:2410
29036 msgid "guestfs_get_e2label"
29037 msgstr ""
29038
29039 #. type: verbatim
29040 #: ../src/guestfs-actions.pod:2412
29041 #, no-wrap
29042 msgid ""
29043 " char *\n"
29044 " guestfs_get_e2label (guestfs_h *g,\n"
29045 "                      const char *device);\n"
29046 "\n"
29047 msgstr ""
29048
29049 #. type: textblock
29050 #: ../src/guestfs-actions.pod:2416
29051 msgid ""
29052 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29053 "call instead."
29054 msgstr ""
29055
29056 #. type: textblock
29057 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
29058 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
29059 msgid "(Added in 1.0.15)"
29060 msgstr "(Додано у 1.0.15)"
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:2431
29064 msgid "guestfs_get_e2uuid"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:2433
29069 #, no-wrap
29070 msgid ""
29071 " char *\n"
29072 " guestfs_get_e2uuid (guestfs_h *g,\n"
29073 "                     const char *device);\n"
29074 "\n"
29075 msgstr ""
29076
29077 #. type: textblock
29078 #: ../src/guestfs-actions.pod:2437
29079 msgid ""
29080 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29081 "call instead."
29082 msgstr ""
29083
29084 #. type: =head2
29085 #: ../src/guestfs-actions.pod:2452
29086 msgid "guestfs_get_memsize"
29087 msgstr ""
29088
29089 #. type: verbatim
29090 #: ../src/guestfs-actions.pod:2454
29091 #, no-wrap
29092 msgid ""
29093 " int\n"
29094 " guestfs_get_memsize (guestfs_h *g);\n"
29095 "\n"
29096 msgstr ""
29097
29098 #. type: textblock
29099 #: ../src/guestfs-actions.pod:2460
29100 msgid ""
29101 "If C<guestfs_set_memsize> was not called on this handle, and if "
29102 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29103 "value for memsize."
29104 msgstr ""
29105
29106 #. type: textblock
29107 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
29108 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
29109 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
29110 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
29111 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
29112 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
29113 msgid "(Added in 1.0.55)"
29114 msgstr "(Додано у 1.0.55)"
29115
29116 #. type: =head2
29117 #: ../src/guestfs-actions.pod:2471
29118 msgid "guestfs_get_network"
29119 msgstr ""
29120
29121 #. type: verbatim
29122 #: ../src/guestfs-actions.pod:2473
29123 #, no-wrap
29124 msgid ""
29125 " int\n"
29126 " guestfs_get_network (guestfs_h *g);\n"
29127 "\n"
29128 msgstr ""
29129
29130 #. type: textblock
29131 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
29132 msgid "(Added in 1.5.4)"
29133 msgstr "(Додано у 1.5.4)"
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:2482
29137 msgid "guestfs_get_path"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:2484
29142 #, no-wrap
29143 msgid ""
29144 " const char *\n"
29145 " guestfs_get_path (guestfs_h *g);\n"
29146 "\n"
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
29151 msgid ""
29152 "This function returns a string, or NULL on error.  The string is owned by "
29153 "the guest handle and must I<not> be freed."
29154 msgstr ""
29155
29156 #. type: =head2
29157 #: ../src/guestfs-actions.pod:2497
29158 msgid "guestfs_get_pgroup"
29159 msgstr ""
29160
29161 #. type: verbatim
29162 #: ../src/guestfs-actions.pod:2499
29163 #, no-wrap
29164 msgid ""
29165 " int\n"
29166 " guestfs_get_pgroup (guestfs_h *g);\n"
29167 "\n"
29168 msgstr ""
29169
29170 #. type: textblock
29171 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
29172 #: ../src/guestfs-actions.pod:8154
29173 msgid "(Added in 1.11.18)"
29174 msgstr "(Додано у 1.11.18)"
29175
29176 #. type: =head2
29177 #: ../src/guestfs-actions.pod:2508
29178 msgid "guestfs_get_pid"
29179 msgstr ""
29180
29181 #. type: verbatim
29182 #: ../src/guestfs-actions.pod:2510
29183 #, no-wrap
29184 msgid ""
29185 " int\n"
29186 " guestfs_get_pid (guestfs_h *g);\n"
29187 "\n"
29188 msgstr ""
29189
29190 #. type: textblock
29191 #: ../src/guestfs-actions.pod:2520
29192 msgid "(Added in 1.0.56)"
29193 msgstr "(Додано у 1.0.56)"
29194
29195 #. type: =head2
29196 #: ../src/guestfs-actions.pod:2522
29197 msgid "guestfs_get_qemu"
29198 msgstr ""
29199
29200 #. type: verbatim
29201 #: ../src/guestfs-actions.pod:2524
29202 #, no-wrap
29203 msgid ""
29204 " const char *\n"
29205 " guestfs_get_qemu (guestfs_h *g);\n"
29206 "\n"
29207 msgstr ""
29208
29209 #. type: textblock
29210 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
29211 msgid "(Added in 1.0.6)"
29212 msgstr "(Додано у 1.0.6)"
29213
29214 #. type: =head2
29215 #: ../src/guestfs-actions.pod:2537
29216 msgid "guestfs_get_recovery_proc"
29217 msgstr ""
29218
29219 #. type: verbatim
29220 #: ../src/guestfs-actions.pod:2539
29221 #, no-wrap
29222 msgid ""
29223 " int\n"
29224 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29225 "\n"
29226 msgstr ""
29227
29228 #. type: textblock
29229 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
29230 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
29231 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
29232 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
29233 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
29234 #: ../src/guestfs-actions.pod:7777
29235 msgid "(Added in 1.0.77)"
29236 msgstr "(Додано у 1.0.77)"
29237
29238 #. type: =head2
29239 #: ../src/guestfs-actions.pod:2548
29240 msgid "guestfs_get_selinux"
29241 msgstr ""
29242
29243 #. type: verbatim
29244 #: ../src/guestfs-actions.pod:2550
29245 #, no-wrap
29246 msgid ""
29247 " int\n"
29248 " guestfs_get_selinux (guestfs_h *g);\n"
29249 "\n"
29250 msgstr ""
29251
29252 #. type: textblock
29253 #: ../src/guestfs-actions.pod:2553
29254 msgid ""
29255 "This returns the current setting of the selinux flag which is passed to the "
29256 "appliance at boot time.  See C<guestfs_set_selinux>."
29257 msgstr ""
29258
29259 #. type: textblock
29260 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
29261 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
29262 msgid "(Added in 1.0.67)"
29263 msgstr "(Додано у 1.0.67)"
29264
29265 #. type: =head2
29266 #: ../src/guestfs-actions.pod:2563
29267 msgid "guestfs_get_smp"
29268 msgstr ""
29269
29270 #. type: verbatim
29271 #: ../src/guestfs-actions.pod:2565
29272 #, no-wrap
29273 msgid ""
29274 " int\n"
29275 " guestfs_get_smp (guestfs_h *g);\n"
29276 "\n"
29277 msgstr ""
29278
29279 #. type: =head2
29280 #: ../src/guestfs-actions.pod:2574
29281 msgid "guestfs_get_state"
29282 msgstr ""
29283
29284 #. type: verbatim
29285 #: ../src/guestfs-actions.pod:2576
29286 #, no-wrap
29287 msgid ""
29288 " int\n"
29289 " guestfs_get_state (guestfs_h *g);\n"
29290 "\n"
29291 msgstr ""
29292
29293 #. type: =head2
29294 #: ../src/guestfs-actions.pod:2588
29295 msgid "guestfs_get_trace"
29296 msgstr ""
29297
29298 #. type: verbatim
29299 #: ../src/guestfs-actions.pod:2590
29300 #, no-wrap
29301 msgid ""
29302 " int\n"
29303 " guestfs_get_trace (guestfs_h *g);\n"
29304 "\n"
29305 msgstr ""
29306
29307 #. type: =head2
29308 #: ../src/guestfs-actions.pod:2599
29309 msgid "guestfs_get_umask"
29310 msgstr ""
29311
29312 #. type: verbatim
29313 #: ../src/guestfs-actions.pod:2601
29314 #, no-wrap
29315 msgid ""
29316 " int\n"
29317 " guestfs_get_umask (guestfs_h *g);\n"
29318 "\n"
29319 msgstr ""
29320
29321 #. type: textblock
29322 #: ../src/guestfs-actions.pod:2604
29323 msgid ""
29324 "Return the current umask.  By default the umask is C<022> unless it has been "
29325 "set by calling C<guestfs_umask>."
29326 msgstr ""
29327
29328 #. type: =head2
29329 #: ../src/guestfs-actions.pod:2611
29330 msgid "guestfs_get_verbose"
29331 msgstr ""
29332
29333 #. type: verbatim
29334 #: ../src/guestfs-actions.pod:2613
29335 #, no-wrap
29336 msgid ""
29337 " int\n"
29338 " guestfs_get_verbose (guestfs_h *g);\n"
29339 "\n"
29340 msgstr ""
29341
29342 #. type: =head2
29343 #: ../src/guestfs-actions.pod:2622
29344 msgid "guestfs_getcon"
29345 msgstr ""
29346
29347 #. type: verbatim
29348 #: ../src/guestfs-actions.pod:2624
29349 #, no-wrap
29350 msgid ""
29351 " char *\n"
29352 " guestfs_getcon (guestfs_h *g);\n"
29353 "\n"
29354 msgstr ""
29355
29356 #. type: textblock
29357 #: ../src/guestfs-actions.pod:2629
29358 msgid ""
29359 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29360 msgstr ""
29361
29362 #. type: =head2
29363 #: ../src/guestfs-actions.pod:2637
29364 msgid "guestfs_getxattr"
29365 msgstr ""
29366
29367 #. type: verbatim
29368 #: ../src/guestfs-actions.pod:2639
29369 #, no-wrap
29370 msgid ""
29371 " char *\n"
29372 " guestfs_getxattr (guestfs_h *g,\n"
29373 "                   const char *path,\n"
29374 "                   const char *name,\n"
29375 "                   size_t *size_r);\n"
29376 "\n"
29377 msgstr ""
29378
29379 #. type: textblock
29380 #: ../src/guestfs-actions.pod:2645
29381 msgid ""
29382 "Get a single extended attribute from file C<path> named C<name>.  This call "
29383 "follows symlinks.  If you want to lookup an extended attribute for the "
29384 "symlink itself, use C<guestfs_lgetxattr>."
29385 msgstr ""
29386
29387 #. type: textblock
29388 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
29389 msgid ""
29390 "Normally it is better to get all extended attributes from a file in one go "
29391 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29392 "implementations are buggy and do not provide a way to list out attributes.  "
29393 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29394 "extended attributes you want in advance and call this function."
29395 msgstr ""
29396
29397 #. type: textblock
29398 #: ../src/guestfs-actions.pod:2659
29399 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29400 msgstr ""
29401
29402 #. type: textblock
29403 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29404 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
29405 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
29406 #: ../src/guestfs-actions.pod:6282
29407 msgid ""
29408 "This function returns a buffer, or NULL on error.  The size of the returned "
29409 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29410 "after use>."
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
29415 msgid "(Added in 1.7.24)"
29416 msgstr "(Додано у 1.7.24)"
29417
29418 #. type: =head2
29419 #: ../src/guestfs-actions.pod:2667
29420 msgid "guestfs_getxattrs"
29421 msgstr ""
29422
29423 #. type: verbatim
29424 #: ../src/guestfs-actions.pod:2669
29425 #, no-wrap
29426 msgid ""
29427 " struct guestfs_xattr_list *\n"
29428 " guestfs_getxattrs (guestfs_h *g,\n"
29429 "                    const char *path);\n"
29430 "\n"
29431 msgstr ""
29432
29433 #. type: textblock
29434 #: ../src/guestfs-actions.pod:2679
29435 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29436 msgstr ""
29437
29438 #. type: textblock
29439 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
29440 #: ../src/guestfs-actions.pod:4851
29441 msgid ""
29442 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29443 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
29444 msgstr ""
29445
29446 #. type: textblock
29447 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
29448 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
29449 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
29450 #: ../src/guestfs-actions.pod:8362
29451 msgid "(Added in 1.0.59)"
29452 msgstr "(Додано у 1.0.59)"
29453
29454 #. type: =head2
29455 #: ../src/guestfs-actions.pod:2687
29456 msgid "guestfs_glob_expand"
29457 msgstr ""
29458
29459 #. type: verbatim
29460 #: ../src/guestfs-actions.pod:2689
29461 #, no-wrap
29462 msgid ""
29463 " char **\n"
29464 " guestfs_glob_expand (guestfs_h *g,\n"
29465 "                      const char *pattern);\n"
29466 "\n"
29467 msgstr ""
29468
29469 #. type: textblock
29470 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
29471 #: ../src/guestfs-actions.pod:7180
29472 msgid "(Added in 1.0.50)"
29473 msgstr "(Додано у 1.0.50)"
29474
29475 #. type: =head2
29476 #: ../src/guestfs-actions.pod:2710
29477 msgid "guestfs_grep"
29478 msgstr ""
29479
29480 #. type: verbatim
29481 #: ../src/guestfs-actions.pod:2712
29482 #, no-wrap
29483 msgid ""
29484 " char **\n"
29485 " guestfs_grep (guestfs_h *g,\n"
29486 "               const char *regex,\n"
29487 "               const char *path);\n"
29488 "\n"
29489 msgstr ""
29490
29491 #. type: =head2
29492 #: ../src/guestfs-actions.pod:2729
29493 msgid "guestfs_grepi"
29494 msgstr ""
29495
29496 #. type: verbatim
29497 #: ../src/guestfs-actions.pod:2731
29498 #, no-wrap
29499 msgid ""
29500 " char **\n"
29501 " guestfs_grepi (guestfs_h *g,\n"
29502 "                const char *regex,\n"
29503 "                const char *path);\n"
29504 "\n"
29505 msgstr ""
29506
29507 #. type: =head2
29508 #: ../src/guestfs-actions.pod:2748
29509 msgid "guestfs_grub_install"
29510 msgstr ""
29511
29512 #. type: verbatim
29513 #: ../src/guestfs-actions.pod:2750
29514 #, no-wrap
29515 msgid ""
29516 " int\n"
29517 " guestfs_grub_install (guestfs_h *g,\n"
29518 "                       const char *root,\n"
29519 "                       const char *device);\n"
29520 "\n"
29521 msgstr ""
29522
29523 #. type: textblock
29524 #: ../src/guestfs-actions.pod:2793
29525 msgid "(Added in 1.0.17)"
29526 msgstr "(Додано у 1.0.17)"
29527
29528 #. type: =head2
29529 #: ../src/guestfs-actions.pod:2795
29530 msgid "guestfs_head"
29531 msgstr ""
29532
29533 #. type: verbatim
29534 #: ../src/guestfs-actions.pod:2797
29535 #, no-wrap
29536 msgid ""
29537 " char **\n"
29538 " guestfs_head (guestfs_h *g,\n"
29539 "               const char *path);\n"
29540 "\n"
29541 msgstr ""
29542
29543 #. type: =head2
29544 #: ../src/guestfs-actions.pod:2813
29545 msgid "guestfs_head_n"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../src/guestfs-actions.pod:2815
29550 #, no-wrap
29551 msgid ""
29552 " char **\n"
29553 " guestfs_head_n (guestfs_h *g,\n"
29554 "                 int nrlines,\n"
29555 "                 const char *path);\n"
29556 "\n"
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:2837
29561 msgid "guestfs_hexdump"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:2839
29566 #, no-wrap
29567 msgid ""
29568 " char *\n"
29569 " guestfs_hexdump (guestfs_h *g,\n"
29570 "                  const char *path);\n"
29571 "\n"
29572 msgstr ""
29573
29574 #. type: textblock
29575 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
29576 #: ../src/guestfs-actions.pod:7299
29577 msgid "(Added in 1.0.22)"
29578 msgstr "(Додано у 1.0.22)"
29579
29580 #. type: =head2
29581 #: ../src/guestfs-actions.pod:2854
29582 msgid "guestfs_initrd_cat"
29583 msgstr ""
29584
29585 #. type: verbatim
29586 #: ../src/guestfs-actions.pod:2856
29587 #, no-wrap
29588 msgid ""
29589 " char *\n"
29590 " guestfs_initrd_cat (guestfs_h *g,\n"
29591 "                     const char *initrdpath,\n"
29592 "                     const char *filename,\n"
29593 "                     size_t *size_r);\n"
29594 "\n"
29595 msgstr ""
29596
29597 #. type: textblock
29598 #: ../src/guestfs-actions.pod:2872
29599 msgid "See also C<guestfs_initrd_list>."
29600 msgstr ""
29601
29602 #. type: =head2
29603 #: ../src/guestfs-actions.pod:2883
29604 msgid "guestfs_initrd_list"
29605 msgstr ""
29606
29607 #. type: verbatim
29608 #: ../src/guestfs-actions.pod:2885
29609 #, no-wrap
29610 msgid ""
29611 " char **\n"
29612 " guestfs_initrd_list (guestfs_h *g,\n"
29613 "                      const char *path);\n"
29614 "\n"
29615 msgstr ""
29616
29617 #. type: =head2
29618 #: ../src/guestfs-actions.pod:2905
29619 msgid "guestfs_inotify_add_watch"
29620 msgstr ""
29621
29622 #. type: verbatim
29623 #: ../src/guestfs-actions.pod:2907
29624 #, no-wrap
29625 msgid ""
29626 " int64_t\n"
29627 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29628 "                            const char *path,\n"
29629 "                            int mask);\n"
29630 "\n"
29631 msgstr ""
29632
29633 #. type: =head2
29634 #: ../src/guestfs-actions.pod:2926
29635 msgid "guestfs_inotify_close"
29636 msgstr ""
29637
29638 #. type: verbatim
29639 #: ../src/guestfs-actions.pod:2928
29640 #, no-wrap
29641 msgid ""
29642 " int\n"
29643 " guestfs_inotify_close (guestfs_h *g);\n"
29644 "\n"
29645 msgstr ""
29646
29647 #. type: =head2
29648 #: ../src/guestfs-actions.pod:2939
29649 msgid "guestfs_inotify_files"
29650 msgstr ""
29651
29652 #. type: verbatim
29653 #: ../src/guestfs-actions.pod:2941
29654 #, no-wrap
29655 msgid ""
29656 " char **\n"
29657 " guestfs_inotify_files (guestfs_h *g);\n"
29658 "\n"
29659 msgstr ""
29660
29661 #. type: textblock
29662 #: ../src/guestfs-actions.pod:2944
29663 msgid ""
29664 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29665 "returns a list of pathnames of objects that were touched.  The returned "
29666 "pathnames are sorted and deduplicated."
29667 msgstr ""
29668
29669 #. type: =head2
29670 #: ../src/guestfs-actions.pod:2954
29671 msgid "guestfs_inotify_init"
29672 msgstr ""
29673
29674 #. type: verbatim
29675 #: ../src/guestfs-actions.pod:2956
29676 #, no-wrap
29677 msgid ""
29678 " int\n"
29679 " guestfs_inotify_init (guestfs_h *g,\n"
29680 "                       int maxevents);\n"
29681 "\n"
29682 msgstr ""
29683
29684 #. type: textblock
29685 #: ../src/guestfs-actions.pod:2964
29686 msgid ""
29687 "C<maxevents> is the maximum number of events which will be queued up between "
29688 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
29689 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
29690 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
29691 "throws away events, but records the fact that it threw them away by setting "
29692 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29693 "C<guestfs_inotify_read>)."
29694 msgstr ""
29695
29696 #. type: textblock
29697 #: ../src/guestfs-actions.pod:2974
29698 msgid ""
29699 "Before any events are generated, you have to add some watches to the "
29700 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
29701 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29702 msgstr ""
29703
29704 #. type: textblock
29705 #: ../src/guestfs-actions.pod:2980
29706 msgid ""
29707 "Queued up events should be read periodically by calling "
29708 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29709 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29710 "often enough then you risk the internal queue overflowing."
29711 msgstr ""
29712
29713 #. type: textblock
29714 #: ../src/guestfs-actions.pod:2987
29715 msgid ""
29716 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29717 "This also removes any watches automatically."
29718 msgstr ""
29719
29720 #. type: =head2
29721 #: ../src/guestfs-actions.pod:3000
29722 msgid "guestfs_inotify_read"
29723 msgstr ""
29724
29725 #. type: verbatim
29726 #: ../src/guestfs-actions.pod:3002
29727 #, no-wrap
29728 msgid ""
29729 " struct guestfs_inotify_event_list *\n"
29730 " guestfs_inotify_read (guestfs_h *g);\n"
29731 "\n"
29732 msgstr ""
29733
29734 #. type: textblock
29735 #: ../src/guestfs-actions.pod:3016
29736 msgid ""
29737 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29738 "there was an error.  I<The caller must call "
29739 "C<guestfs_free_inotify_event_list> after use>."
29740 msgstr ""
29741
29742 #. type: =head2
29743 #: ../src/guestfs-actions.pod:3022
29744 msgid "guestfs_inotify_rm_watch"
29745 msgstr ""
29746
29747 #. type: verbatim
29748 #: ../src/guestfs-actions.pod:3024
29749 #, no-wrap
29750 msgid ""
29751 " int\n"
29752 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29753 "                           int wd);\n"
29754 "\n"
29755 msgstr ""
29756
29757 #. type: textblock
29758 #: ../src/guestfs-actions.pod:3028
29759 msgid ""
29760 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29761 msgstr ""
29762
29763 #. type: =head2
29764 #: ../src/guestfs-actions.pod:3035
29765 msgid "guestfs_inspect_get_arch"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-actions.pod:3037
29770 #, no-wrap
29771 msgid ""
29772 " char *\n"
29773 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29774 "                           const char *root);\n"
29775 "\n"
29776 msgstr ""
29777
29778 #. type: textblock
29779 #: ../src/guestfs-actions.pod:3041
29780 msgid ""
29781 "This returns the architecture of the inspected operating system.  The "
29782 "possible return values are listed under C<guestfs_file_architecture>."
29783 msgstr ""
29784
29785 #. type: =head2
29786 #: ../src/guestfs-actions.pod:3055
29787 msgid "guestfs_inspect_get_distro"
29788 msgstr ""
29789
29790 #. type: verbatim
29791 #: ../src/guestfs-actions.pod:3057
29792 #, no-wrap
29793 msgid ""
29794 " char *\n"
29795 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29796 "                             const char *root);\n"
29797 "\n"
29798 msgstr ""
29799
29800 #. type: =head2
29801 #: ../src/guestfs-actions.pod:3157
29802 msgid "guestfs_inspect_get_drive_mappings"
29803 msgstr ""
29804
29805 #. type: verbatim
29806 #: ../src/guestfs-actions.pod:3159
29807 #, no-wrap
29808 msgid ""
29809 " char **\n"
29810 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29811 "                                     const char *root);\n"
29812 "\n"
29813 msgstr ""
29814
29815 #. type: textblock
29816 #: ../src/guestfs-actions.pod:3188
29817 msgid ""
29818 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29819 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29820 msgstr ""
29821
29822 #. type: textblock
29823 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29824 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
29825 #: ../src/guestfs-actions.pod:7601
29826 msgid ""
29827 "This function returns a NULL-terminated array of strings, or NULL if there "
29828 "was an error.  The array of strings will always have length C<2n+1>, where "
29829 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29830 "caller must free the strings and the array after use>."
29831 msgstr ""
29832
29833 #. type: textblock
29834 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29835 msgid "(Added in 1.9.17)"
29836 msgstr "(Додано у 1.9.17)"
29837
29838 #. type: =head2
29839 #: ../src/guestfs-actions.pod:3200
29840 msgid "guestfs_inspect_get_filesystems"
29841 msgstr ""
29842
29843 #. type: verbatim
29844 #: ../src/guestfs-actions.pod:3202
29845 #, no-wrap
29846 msgid ""
29847 " char **\n"
29848 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29849 "                                  const char *root);\n"
29850 "\n"
29851 msgstr ""
29852
29853 #. type: textblock
29854 #: ../src/guestfs-actions.pod:3214
29855 msgid ""
29856 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29857 "C<guestfs_inspect_get_mountpoints>."
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:3223
29862 msgid "guestfs_inspect_get_format"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:3225
29867 #, no-wrap
29868 msgid ""
29869 " char *\n"
29870 " guestfs_inspect_get_format (guestfs_h *g,\n"
29871 "                             const char *root);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: textblock
29876 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29877 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29878 #: ../src/guestfs-actions.pod:6493
29879 msgid "(Added in 1.9.4)"
29880 msgstr "(Додано у 1.9.4)"
29881
29882 #. type: =head2
29883 #: ../src/guestfs-actions.pod:3261
29884 msgid "guestfs_inspect_get_hostname"
29885 msgstr ""
29886
29887 #. type: verbatim
29888 #: ../src/guestfs-actions.pod:3263
29889 #, no-wrap
29890 msgid ""
29891 " char *\n"
29892 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29893 "                               const char *root);\n"
29894 "\n"
29895 msgstr ""
29896
29897 #. type: textblock
29898 #: ../src/guestfs-actions.pod:3278
29899 msgid "(Added in 1.7.9)"
29900 msgstr "(Додано у 1.7.9)"
29901
29902 #. type: =head2
29903 #: ../src/guestfs-actions.pod:3280
29904 msgid "guestfs_inspect_get_icon"
29905 msgstr ""
29906
29907 #. type: verbatim
29908 #: ../src/guestfs-actions.pod:3282
29909 #, no-wrap
29910 msgid ""
29911 " char *\n"
29912 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29913 "                           const char *root,\n"
29914 "                           size_t *size_r,\n"
29915 "                           ...);\n"
29916 "\n"
29917 msgstr ""
29918
29919 #. type: verbatim
29920 #: ../src/guestfs-actions.pod:3293
29921 #, no-wrap
29922 msgid ""
29923 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29924 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29925 "\n"
29926 msgstr ""
29927
29928 #. type: textblock
29929 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29930 #: ../src/guestfs-actions.pod:5425
29931 msgid "(Added in 1.11.12)"
29932 msgstr "(Додано у 1.11.12)"
29933
29934 #. type: =head2
29935 #: ../src/guestfs-actions.pod:3362
29936 msgid "guestfs_inspect_get_icon_va"
29937 msgstr ""
29938
29939 #. type: verbatim
29940 #: ../src/guestfs-actions.pod:3364
29941 #, no-wrap
29942 msgid ""
29943 " char *\n"
29944 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29945 "                              const char *root,\n"
29946 "                              size_t *size_r,\n"
29947 "                              va_list args);\n"
29948 "\n"
29949 msgstr ""
29950
29951 #. type: textblock
29952 #: ../src/guestfs-actions.pod:3370
29953 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29954 msgstr ""
29955
29956 #. type: =head2
29957 #: ../src/guestfs-actions.pod:3374
29958 msgid "guestfs_inspect_get_icon_argv"
29959 msgstr ""
29960
29961 #. type: verbatim
29962 #: ../src/guestfs-actions.pod:3376
29963 #, no-wrap
29964 msgid ""
29965 " char *\n"
29966 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29967 "                                const char *root,\n"
29968 "                                size_t *size_r,\n"
29969 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29970 "\n"
29971 msgstr ""
29972
29973 #. type: textblock
29974 #: ../src/guestfs-actions.pod:3382
29975 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29976 msgstr ""
29977
29978 #. type: =head2
29979 #: ../src/guestfs-actions.pod:3386
29980 msgid "guestfs_inspect_get_major_version"
29981 msgstr ""
29982
29983 #. type: verbatim
29984 #: ../src/guestfs-actions.pod:3388
29985 #, no-wrap
29986 msgid ""
29987 " int\n"
29988 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29989 "                                    const char *root);\n"
29990 "\n"
29991 msgstr ""
29992
29993 #. type: =head2
29994 #: ../src/guestfs-actions.pod:3410
29995 msgid "guestfs_inspect_get_minor_version"
29996 msgstr ""
29997
29998 #. type: verbatim
29999 #: ../src/guestfs-actions.pod:3412
30000 #, no-wrap
30001 msgid ""
30002 " int\n"
30003 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
30004 "                                    const char *root);\n"
30005 "\n"
30006 msgstr ""
30007
30008 #. type: textblock
30009 #: ../src/guestfs-actions.pod:3421
30010 msgid ""
30011 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30012 "C<guestfs_inspect_get_major_version>."
30013 msgstr ""
30014
30015 #. type: =head2
30016 #: ../src/guestfs-actions.pod:3428
30017 msgid "guestfs_inspect_get_mountpoints"
30018 msgstr ""
30019
30020 #. type: verbatim
30021 #: ../src/guestfs-actions.pod:3430
30022 #, no-wrap
30023 msgid ""
30024 " char **\n"
30025 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30026 "                                  const char *root);\n"
30027 "\n"
30028 msgstr ""
30029
30030 #. type: textblock
30031 #: ../src/guestfs-actions.pod:3451
30032 msgid ""
30033 "For operating systems like Windows which still use drive letters, this call "
30034 "will only return an entry for the first drive \"mounted on\" C</>.  For "
30035 "information about the mapping of drive letters to partitions, see "
30036 "C<guestfs_inspect_get_drive_mappings>."
30037 msgstr ""
30038
30039 #. type: textblock
30040 #: ../src/guestfs-actions.pod:3457
30041 msgid ""
30042 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30043 "C<guestfs_inspect_get_filesystems>."
30044 msgstr ""
30045
30046 #. type: =head2
30047 #: ../src/guestfs-actions.pod:3468
30048 msgid "guestfs_inspect_get_package_format"
30049 msgstr ""
30050
30051 #. type: verbatim
30052 #: ../src/guestfs-actions.pod:3470
30053 #, no-wrap
30054 msgid ""
30055 " char *\n"
30056 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30057 "                                     const char *root);\n"
30058 "\n"
30059 msgstr ""
30060
30061 #. type: textblock
30062 #: ../src/guestfs-actions.pod:3474
30063 msgid ""
30064 "This function and C<guestfs_inspect_get_package_management> return the "
30065 "package format and package management tool used by the inspected operating "
30066 "system.  For example for Fedora these functions would return C<rpm> (package "
30067 "format) and C<yum> (package management)."
30068 msgstr ""
30069
30070 #. type: textblock
30071 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
30072 msgid "(Added in 1.7.5)"
30073 msgstr "(Додано у 1.7.5)"
30074
30075 #. type: =head2
30076 #: ../src/guestfs-actions.pod:3495
30077 msgid "guestfs_inspect_get_package_management"
30078 msgstr ""
30079
30080 #. type: verbatim
30081 #: ../src/guestfs-actions.pod:3497
30082 #, no-wrap
30083 msgid ""
30084 " char *\n"
30085 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30086 "                                         const char *root);\n"
30087 "\n"
30088 msgstr ""
30089
30090 #. type: textblock
30091 #: ../src/guestfs-actions.pod:3501
30092 msgid ""
30093 "C<guestfs_inspect_get_package_format> and this function return the package "
30094 "format and package management tool used by the inspected operating system.  "
30095 "For example for Fedora these functions would return C<rpm> (package format) "
30096 "and C<yum> (package management)."
30097 msgstr ""
30098
30099 #. type: =head2
30100 #: ../src/guestfs-actions.pod:3523
30101 msgid "guestfs_inspect_get_product_name"
30102 msgstr ""
30103
30104 #. type: verbatim
30105 #: ../src/guestfs-actions.pod:3525
30106 #, no-wrap
30107 msgid ""
30108 " char *\n"
30109 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30110 "                                   const char *root);\n"
30111 "\n"
30112 msgstr ""
30113
30114 #. type: =head2
30115 #: ../src/guestfs-actions.pod:3544
30116 msgid "guestfs_inspect_get_product_variant"
30117 msgstr ""
30118
30119 #. type: verbatim
30120 #: ../src/guestfs-actions.pod:3546
30121 #, no-wrap
30122 msgid ""
30123 " char *\n"
30124 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30125 "                                      const char *root);\n"
30126 "\n"
30127 msgstr ""
30128
30129 #. type: textblock
30130 #: ../src/guestfs-actions.pod:3569
30131 msgid ""
30132 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30133 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30134 msgstr ""
30135
30136 #. type: textblock
30137 #: ../src/guestfs-actions.pod:3576
30138 msgid "(Added in 1.9.13)"
30139 msgstr "(Додано у 1.9.13)"
30140
30141 #. type: =head2
30142 #: ../src/guestfs-actions.pod:3578
30143 msgid "guestfs_inspect_get_roots"
30144 msgstr ""
30145
30146 #. type: verbatim
30147 #: ../src/guestfs-actions.pod:3580
30148 #, no-wrap
30149 msgid ""
30150 " char **\n"
30151 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30152 "\n"
30153 msgstr ""
30154
30155 #. type: textblock
30156 #: ../src/guestfs-actions.pod:3583
30157 msgid ""
30158 "This function is a convenient way to get the list of root devices, as "
30159 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30160 "the whole inspection process."
30161 msgstr ""
30162
30163 #. type: textblock
30164 #: ../src/guestfs-actions.pod:3587
30165 msgid ""
30166 "This returns an empty list if either no root devices were found or the "
30167 "caller has not called C<guestfs_inspect_os>."
30168 msgstr ""
30169
30170 #. type: textblock
30171 #: ../src/guestfs-actions.pod:3596
30172 msgid "(Added in 1.7.3)"
30173 msgstr "(Додано у 1.7.3)"
30174
30175 #. type: =head2
30176 #: ../src/guestfs-actions.pod:3598
30177 msgid "guestfs_inspect_get_type"
30178 msgstr ""
30179
30180 #. type: verbatim
30181 #: ../src/guestfs-actions.pod:3600
30182 #, no-wrap
30183 msgid ""
30184 " char *\n"
30185 " guestfs_inspect_get_type (guestfs_h *g,\n"
30186 "                           const char *root);\n"
30187 "\n"
30188 msgstr ""
30189
30190 #. type: =head2
30191 #: ../src/guestfs-actions.pod:3641
30192 msgid "guestfs_inspect_get_windows_current_control_set"
30193 msgstr ""
30194
30195 #. type: verbatim
30196 #: ../src/guestfs-actions.pod:3643
30197 #, no-wrap
30198 msgid ""
30199 " char *\n"
30200 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30201 "                                                  const char *root);\n"
30202 "\n"
30203 msgstr ""
30204
30205 #. type: =head2
30206 #: ../src/guestfs-actions.pod:3661
30207 msgid "guestfs_inspect_get_windows_systemroot"
30208 msgstr ""
30209
30210 #. type: verbatim
30211 #: ../src/guestfs-actions.pod:3663
30212 #, no-wrap
30213 msgid ""
30214 " char *\n"
30215 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30216 "                                         const char *root);\n"
30217 "\n"
30218 msgstr ""
30219
30220 #. type: textblock
30221 #: ../src/guestfs-actions.pod:3679
30222 msgid "(Added in 1.5.25)"
30223 msgstr "(Додано у 1.5.25)"
30224
30225 #. type: =head2
30226 #: ../src/guestfs-actions.pod:3681
30227 msgid "guestfs_inspect_is_live"
30228 msgstr ""
30229
30230 #. type: verbatim
30231 #: ../src/guestfs-actions.pod:3683
30232 #, no-wrap
30233 msgid ""
30234 " int\n"
30235 " guestfs_inspect_is_live (guestfs_h *g,\n"
30236 "                          const char *root);\n"
30237 "\n"
30238 msgstr ""
30239
30240 #. type: textblock
30241 #: ../src/guestfs-actions.pod:3687
30242 msgid ""
30243 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30244 "disk), then this returns true if a live image was detected on the disk."
30245 msgstr ""
30246
30247 #. type: =head2
30248 #: ../src/guestfs-actions.pod:3697
30249 msgid "guestfs_inspect_is_multipart"
30250 msgstr ""
30251
30252 #. type: verbatim
30253 #: ../src/guestfs-actions.pod:3699
30254 #, no-wrap
30255 msgid ""
30256 " int\n"
30257 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30258 "                               const char *root);\n"
30259 "\n"
30260 msgstr ""
30261
30262 #. type: textblock
30263 #: ../src/guestfs-actions.pod:3703
30264 msgid ""
30265 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30266 "disk), then this returns true if the disk is part of a set."
30267 msgstr ""
30268
30269 #. type: =head2
30270 #: ../src/guestfs-actions.pod:3713
30271 msgid "guestfs_inspect_is_netinst"
30272 msgstr ""
30273
30274 #. type: verbatim
30275 #: ../src/guestfs-actions.pod:3715
30276 #, no-wrap
30277 msgid ""
30278 " int\n"
30279 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30280 "                             const char *root);\n"
30281 "\n"
30282 msgstr ""
30283
30284 #. type: textblock
30285 #: ../src/guestfs-actions.pod:3719
30286 msgid ""
30287 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30288 "disk), then this returns true if the disk is a network installer, ie. not a "
30289 "self-contained install CD but one which is likely to require network access "
30290 "to complete the install."
30291 msgstr ""
30292
30293 #. type: =head2
30294 #: ../src/guestfs-actions.pod:3731
30295 msgid "guestfs_inspect_list_applications"
30296 msgstr ""
30297
30298 #. type: verbatim
30299 #: ../src/guestfs-actions.pod:3733
30300 #, no-wrap
30301 msgid ""
30302 " struct guestfs_application_list *\n"
30303 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30304 "                                    const char *root);\n"
30305 "\n"
30306 msgstr ""
30307
30308 #. type: textblock
30309 #: ../src/guestfs-actions.pod:3739
30310 msgid ""
30311 "I<Note:> This call works differently from other parts of the inspection "
30312 "API.  You have to call C<guestfs_inspect_os>, then "
30313 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30314 "this.  Listing applications is a significantly more difficult operation "
30315 "which requires access to the full filesystem.  Also note that unlike the "
30316 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30317 "the libguestfs handle, this call actually reads parts of the mounted "
30318 "filesystems during the call."
30319 msgstr ""
30320
30321 #. type: textblock
30322 #: ../src/guestfs-actions.pod:3829
30323 msgid ""
30324 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30325 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
30326 "after use>."
30327 msgstr ""
30328
30329 #. type: textblock
30330 #: ../src/guestfs-actions.pod:3833
30331 msgid "(Added in 1.7.8)"
30332 msgstr "(Додано у 1.7.8)"
30333
30334 #. type: =head2
30335 #: ../src/guestfs-actions.pod:3835
30336 msgid "guestfs_inspect_os"
30337 msgstr ""
30338
30339 #. type: verbatim
30340 #: ../src/guestfs-actions.pod:3837
30341 #, no-wrap
30342 msgid ""
30343 " char **\n"
30344 " guestfs_inspect_os (guestfs_h *g);\n"
30345 "\n"
30346 msgstr ""
30347
30348 #. type: textblock
30349 #: ../src/guestfs-actions.pod:3853
30350 msgid ""
30351 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30352 "functions in order to query further information about each operating system, "
30353 "such as the name and version."
30354 msgstr ""
30355
30356 #. type: textblock
30357 #: ../src/guestfs-actions.pod:3858
30358 msgid ""
30359 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30360 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30361 "the contents.  This should be called with no disks currently mounted.  The "
30362 "function may also use Augeas, so any existing Augeas handle will be closed."
30363 msgstr ""
30364
30365 #. type: textblock
30366 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
30367 #: ../src/guestfs-actions.pod:4283
30368 msgid "See also C<guestfs_list_filesystems>."
30369 msgstr ""
30370
30371 #. type: =head2
30372 #: ../src/guestfs-actions.pod:3878
30373 msgid "guestfs_is_blockdev"
30374 msgstr ""
30375
30376 #. type: verbatim
30377 #: ../src/guestfs-actions.pod:3880
30378 #, no-wrap
30379 msgid ""
30380 " int\n"
30381 " guestfs_is_blockdev (guestfs_h *g,\n"
30382 "                      const char *path);\n"
30383 "\n"
30384 msgstr ""
30385
30386 #. type: textblock
30387 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
30388 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
30389 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
30390 #: ../src/guestfs-actions.pod:4048
30391 msgid "See also C<guestfs_stat>."
30392 msgstr ""
30393
30394 #. type: textblock
30395 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30396 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
30397 #: ../src/guestfs-actions.pod:4052
30398 msgid "(Added in 1.5.10)"
30399 msgstr "(Додано у 1.5.10)"
30400
30401 #. type: =head2
30402 #: ../src/guestfs-actions.pod:3893
30403 msgid "guestfs_is_busy"
30404 msgstr ""
30405
30406 #. type: verbatim
30407 #: ../src/guestfs-actions.pod:3895
30408 #, no-wrap
30409 msgid ""
30410 " int\n"
30411 " guestfs_is_busy (guestfs_h *g);\n"
30412 "\n"
30413 msgstr ""
30414
30415 #. type: =head2
30416 #: ../src/guestfs-actions.pod:3907
30417 msgid "guestfs_is_chardev"
30418 msgstr ""
30419
30420 #. type: verbatim
30421 #: ../src/guestfs-actions.pod:3909
30422 #, no-wrap
30423 msgid ""
30424 " int\n"
30425 " guestfs_is_chardev (guestfs_h *g,\n"
30426 "                     const char *path);\n"
30427 "\n"
30428 msgstr ""
30429
30430 #. type: =head2
30431 #: ../src/guestfs-actions.pod:3922
30432 msgid "guestfs_is_config"
30433 msgstr ""
30434
30435 #. type: verbatim
30436 #: ../src/guestfs-actions.pod:3924
30437 #, no-wrap
30438 msgid ""
30439 " int\n"
30440 " guestfs_is_config (guestfs_h *g);\n"
30441 "\n"
30442 msgstr ""
30443
30444 #. type: =head2
30445 #: ../src/guestfs-actions.pod:3936
30446 msgid "guestfs_is_dir"
30447 msgstr ""
30448
30449 #. type: verbatim
30450 #: ../src/guestfs-actions.pod:3938
30451 #, no-wrap
30452 msgid ""
30453 " int\n"
30454 " guestfs_is_dir (guestfs_h *g,\n"
30455 "                 const char *path);\n"
30456 "\n"
30457 msgstr ""
30458
30459 #. type: =head2
30460 #: ../src/guestfs-actions.pod:3952
30461 msgid "guestfs_is_fifo"
30462 msgstr ""
30463
30464 #. type: verbatim
30465 #: ../src/guestfs-actions.pod:3954
30466 #, no-wrap
30467 msgid ""
30468 " int\n"
30469 " guestfs_is_fifo (guestfs_h *g,\n"
30470 "                  const char *path);\n"
30471 "\n"
30472 msgstr ""
30473
30474 #. type: =head2
30475 #: ../src/guestfs-actions.pod:3967
30476 msgid "guestfs_is_file"
30477 msgstr ""
30478
30479 #. type: verbatim
30480 #: ../src/guestfs-actions.pod:3969
30481 #, no-wrap
30482 msgid ""
30483 " int\n"
30484 " guestfs_is_file (guestfs_h *g,\n"
30485 "                  const char *path);\n"
30486 "\n"
30487 msgstr ""
30488
30489 #. type: =head2
30490 #: ../src/guestfs-actions.pod:3983
30491 msgid "guestfs_is_launching"
30492 msgstr ""
30493
30494 #. type: verbatim
30495 #: ../src/guestfs-actions.pod:3985
30496 #, no-wrap
30497 msgid ""
30498 " int\n"
30499 " guestfs_is_launching (guestfs_h *g);\n"
30500 "\n"
30501 msgstr ""
30502
30503 #. type: =head2
30504 #: ../src/guestfs-actions.pod:3997
30505 msgid "guestfs_is_lv"
30506 msgstr ""
30507
30508 #. type: verbatim
30509 #: ../src/guestfs-actions.pod:3999
30510 #, no-wrap
30511 msgid ""
30512 " int\n"
30513 " guestfs_is_lv (guestfs_h *g,\n"
30514 "                const char *device);\n"
30515 "\n"
30516 msgstr ""
30517
30518 #. type: =head2
30519 #: ../src/guestfs-actions.pod:4010
30520 msgid "guestfs_is_ready"
30521 msgstr ""
30522
30523 #. type: verbatim
30524 #: ../src/guestfs-actions.pod:4012
30525 #, no-wrap
30526 msgid ""
30527 " int\n"
30528 " guestfs_is_ready (guestfs_h *g);\n"
30529 "\n"
30530 msgstr ""
30531
30532 #. type: =head2
30533 #: ../src/guestfs-actions.pod:4024
30534 msgid "guestfs_is_socket"
30535 msgstr ""
30536
30537 #. type: verbatim
30538 #: ../src/guestfs-actions.pod:4026
30539 #, no-wrap
30540 msgid ""
30541 " int\n"
30542 " guestfs_is_socket (guestfs_h *g,\n"
30543 "                    const char *path);\n"
30544 "\n"
30545 msgstr ""
30546
30547 #. type: =head2
30548 #: ../src/guestfs-actions.pod:4039
30549 msgid "guestfs_is_symlink"
30550 msgstr ""
30551
30552 #. type: verbatim
30553 #: ../src/guestfs-actions.pod:4041
30554 #, no-wrap
30555 msgid ""
30556 " int\n"
30557 " guestfs_is_symlink (guestfs_h *g,\n"
30558 "                     const char *path);\n"
30559 "\n"
30560 msgstr ""
30561
30562 #. type: =head2
30563 #: ../src/guestfs-actions.pod:4054
30564 msgid "guestfs_is_zero"
30565 msgstr ""
30566
30567 #. type: verbatim
30568 #: ../src/guestfs-actions.pod:4056
30569 #, no-wrap
30570 msgid ""
30571 " int\n"
30572 " guestfs_is_zero (guestfs_h *g,\n"
30573 "                  const char *path);\n"
30574 "\n"
30575 msgstr ""
30576
30577 #. type: textblock
30578 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
30579 msgid "(Added in 1.11.8)"
30580 msgstr "(Додано у 1.11.8)"
30581
30582 #. type: =head2
30583 #: ../src/guestfs-actions.pod:4067
30584 msgid "guestfs_is_zero_device"
30585 msgstr ""
30586
30587 #. type: verbatim
30588 #: ../src/guestfs-actions.pod:4069
30589 #, no-wrap
30590 msgid ""
30591 " int\n"
30592 " guestfs_is_zero_device (guestfs_h *g,\n"
30593 "                         const char *device);\n"
30594 "\n"
30595 msgstr ""
30596
30597 #. type: =head2
30598 #: ../src/guestfs-actions.pod:4081
30599 msgid "guestfs_kill_subprocess"
30600 msgstr ""
30601
30602 #. type: verbatim
30603 #: ../src/guestfs-actions.pod:4083
30604 #, no-wrap
30605 msgid ""
30606 " int\n"
30607 " guestfs_kill_subprocess (guestfs_h *g);\n"
30608 "\n"
30609 msgstr ""
30610
30611 #. type: =head2
30612 #: ../src/guestfs-actions.pod:4092
30613 msgid "guestfs_launch"
30614 msgstr ""
30615
30616 #. type: verbatim
30617 #: ../src/guestfs-actions.pod:4094
30618 #, no-wrap
30619 msgid ""
30620 " int\n"
30621 " guestfs_launch (guestfs_h *g);\n"
30622 "\n"
30623 msgstr ""
30624
30625 #. type: =head2
30626 #: ../src/guestfs-actions.pod:4112
30627 msgid "guestfs_lchown"
30628 msgstr ""
30629
30630 #. type: verbatim
30631 #: ../src/guestfs-actions.pod:4114
30632 #, no-wrap
30633 msgid ""
30634 " int\n"
30635 " guestfs_lchown (guestfs_h *g,\n"
30636 "                 int owner,\n"
30637 "                 int group,\n"
30638 "                 const char *path);\n"
30639 "\n"
30640 msgstr ""
30641
30642 #. type: textblock
30643 #: ../src/guestfs-actions.pod:4120
30644 msgid ""
30645 "Change the file owner to C<owner> and group to C<group>.  This is like "
30646 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30647 "changed, not the target."
30648 msgstr ""
30649
30650 #. type: =head2
30651 #: ../src/guestfs-actions.pod:4132
30652 msgid "guestfs_lgetxattr"
30653 msgstr ""
30654
30655 #. type: verbatim
30656 #: ../src/guestfs-actions.pod:4134
30657 #, no-wrap
30658 msgid ""
30659 " char *\n"
30660 " guestfs_lgetxattr (guestfs_h *g,\n"
30661 "                    const char *path,\n"
30662 "                    const char *name,\n"
30663 "                    size_t *size_r);\n"
30664 "\n"
30665 msgstr ""
30666
30667 #. type: textblock
30668 #: ../src/guestfs-actions.pod:4154
30669 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30670 msgstr ""
30671
30672 #. type: =head2
30673 #: ../src/guestfs-actions.pod:4162
30674 msgid "guestfs_lgetxattrs"
30675 msgstr ""
30676
30677 #. type: verbatim
30678 #: ../src/guestfs-actions.pod:4164
30679 #, no-wrap
30680 msgid ""
30681 " struct guestfs_xattr_list *\n"
30682 " guestfs_lgetxattrs (guestfs_h *g,\n"
30683 "                     const char *path);\n"
30684 "\n"
30685 msgstr ""
30686
30687 #. type: textblock
30688 #: ../src/guestfs-actions.pod:4168
30689 msgid ""
30690 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30691 "then it returns the extended attributes of the link itself."
30692 msgstr ""
30693
30694 #. type: =head2
30695 #: ../src/guestfs-actions.pod:4178
30696 msgid "guestfs_list_9p"
30697 msgstr ""
30698
30699 #. type: verbatim
30700 #: ../src/guestfs-actions.pod:4180
30701 #, no-wrap
30702 msgid ""
30703 " char **\n"
30704 " guestfs_list_9p (guestfs_h *g);\n"
30705 "\n"
30706 msgstr ""
30707
30708 #. type: =head2
30709 #: ../src/guestfs-actions.pod:4192
30710 msgid "guestfs_list_devices"
30711 msgstr ""
30712
30713 #. type: verbatim
30714 #: ../src/guestfs-actions.pod:4194
30715 #, no-wrap
30716 msgid ""
30717 " char **\n"
30718 " guestfs_list_devices (guestfs_h *g);\n"
30719 "\n"
30720 msgstr ""
30721
30722 #. type: =head2
30723 #: ../src/guestfs-actions.pod:4209
30724 msgid "guestfs_list_dm_devices"
30725 msgstr ""
30726
30727 #. type: verbatim
30728 #: ../src/guestfs-actions.pod:4211
30729 #, no-wrap
30730 msgid ""
30731 " char **\n"
30732 " guestfs_list_dm_devices (guestfs_h *g);\n"
30733 "\n"
30734 msgstr ""
30735
30736 #. type: textblock
30737 #: ../src/guestfs-actions.pod:4216
30738 msgid ""
30739 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30740 "previous call to C<guestfs_luks_open>."
30741 msgstr ""
30742
30743 #. type: textblock
30744 #: ../src/guestfs-actions.pod:4219
30745 msgid ""
30746 "Device mapper devices which correspond to logical volumes are I<not> "
30747 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30748 "volumes."
30749 msgstr ""
30750
30751 #. type: textblock
30752 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
30753 msgid "(Added in 1.11.15)"
30754 msgstr "(Додано у 1.11.15)"
30755
30756 #. type: =head2
30757 #: ../src/guestfs-actions.pod:4229
30758 msgid "guestfs_list_filesystems"
30759 msgstr ""
30760
30761 #. type: verbatim
30762 #: ../src/guestfs-actions.pod:4231
30763 #, no-wrap
30764 msgid ""
30765 " char **\n"
30766 " guestfs_list_filesystems (guestfs_h *g);\n"
30767 "\n"
30768 msgstr ""
30769
30770 #. type: textblock
30771 #: ../src/guestfs-actions.pod:4251
30772 msgid ""
30773 "This command runs other libguestfs commands, which might include "
30774 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30775 "soon after launch and only when nothing is mounted."
30776 msgstr ""
30777
30778 #. type: textblock
30779 #: ../src/guestfs-actions.pod:4255
30780 msgid ""
30781 "Not all of the filesystems returned will be mountable.  In particular, swap "
30782 "partitions are returned in the list.  Also this command does not check that "
30783 "each filesystem found is valid and mountable, and some filesystems might be "
30784 "mountable but require special options.  Filesystems may not all belong to a "
30785 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30786 msgstr ""
30787
30788 #. type: textblock
30789 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
30790 msgid "(Added in 1.5.15)"
30791 msgstr "(Додано у 1.5.15)"
30792
30793 #. type: =head2
30794 #: ../src/guestfs-actions.pod:4271
30795 msgid "guestfs_list_partitions"
30796 msgstr "guestfs_list_partitions"
30797
30798 #. type: verbatim
30799 #: ../src/guestfs-actions.pod:4273
30800 #, no-wrap
30801 msgid ""
30802 " char **\n"
30803 " guestfs_list_partitions (guestfs_h *g);\n"
30804 "\n"
30805 msgstr ""
30806 " char **\n"
30807 " guestfs_list_partitions (guestfs_h *g);\n"
30808 "\n"
30809
30810 #. type: textblock
30811 #: ../src/guestfs-actions.pod:4280
30812 msgid ""
30813 "This does not return logical volumes.  For that you will need to call "
30814 "C<guestfs_lvs>."
30815 msgstr ""
30816
30817 #. type: =head2
30818 #: ../src/guestfs-actions.pod:4291
30819 msgid "guestfs_ll"
30820 msgstr "guestfs_ll"
30821
30822 #. type: verbatim
30823 #: ../src/guestfs-actions.pod:4293
30824 #, no-wrap
30825 msgid ""
30826 " char *\n"
30827 " guestfs_ll (guestfs_h *g,\n"
30828 "             const char *directory);\n"
30829 "\n"
30830 msgstr ""
30831 " char *\n"
30832 " guestfs_ll (guestfs_h *g,\n"
30833 "             const char *directory);\n"
30834 "\n"
30835
30836 #. type: =head2
30837 #: ../src/guestfs-actions.pod:4308
30838 msgid "guestfs_ln"
30839 msgstr "guestfs_ln"
30840
30841 #. type: verbatim
30842 #: ../src/guestfs-actions.pod:4310
30843 #, no-wrap
30844 msgid ""
30845 " int\n"
30846 " guestfs_ln (guestfs_h *g,\n"
30847 "             const char *target,\n"
30848 "             const char *linkname);\n"
30849 "\n"
30850 msgstr ""
30851 " int\n"
30852 " guestfs_ln (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:4321
30859 msgid "guestfs_ln_f"
30860 msgstr "guestfs_ln_f"
30861
30862 #. type: verbatim
30863 #: ../src/guestfs-actions.pod:4323
30864 #, no-wrap
30865 msgid ""
30866 " int\n"
30867 " guestfs_ln_f (guestfs_h *g,\n"
30868 "               const char *target,\n"
30869 "               const char *linkname);\n"
30870 "\n"
30871 msgstr ""
30872 " int\n"
30873 " guestfs_ln_f (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:4335
30880 msgid "guestfs_ln_s"
30881 msgstr "guestfs_ln_s"
30882
30883 #. type: verbatim
30884 #: ../src/guestfs-actions.pod:4337
30885 #, no-wrap
30886 msgid ""
30887 " int\n"
30888 " guestfs_ln_s (guestfs_h *g,\n"
30889 "               const char *target,\n"
30890 "               const char *linkname);\n"
30891 "\n"
30892 msgstr ""
30893 " int\n"
30894 " guestfs_ln_s (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:4348
30901 msgid "guestfs_ln_sf"
30902 msgstr "guestfs_ln_sf"
30903
30904 #. type: verbatim
30905 #: ../src/guestfs-actions.pod:4350
30906 #, no-wrap
30907 msgid ""
30908 " int\n"
30909 " guestfs_ln_sf (guestfs_h *g,\n"
30910 "                const char *target,\n"
30911 "                const char *linkname);\n"
30912 "\n"
30913 msgstr ""
30914 " int\n"
30915 " guestfs_ln_sf (guestfs_h *g,\n"
30916 "                const char *target,\n"
30917 "                const char *linkname);\n"
30918 "\n"
30919
30920 #. type: =head2
30921 #: ../src/guestfs-actions.pod:4362
30922 msgid "guestfs_lremovexattr"
30923 msgstr "guestfs_lremovexattr"
30924
30925 #. type: verbatim
30926 #: ../src/guestfs-actions.pod:4364
30927 #, no-wrap
30928 msgid ""
30929 " int\n"
30930 " guestfs_lremovexattr (guestfs_h *g,\n"
30931 "                       const char *xattr,\n"
30932 "                       const char *path);\n"
30933 "\n"
30934 msgstr ""
30935 " int\n"
30936 " guestfs_lremovexattr (guestfs_h *g,\n"
30937 "                       const char *xattr,\n"
30938 "                       const char *path);\n"
30939 "\n"
30940
30941 #. type: textblock
30942 #: ../src/guestfs-actions.pod:4369
30943 msgid ""
30944 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30945 "link, then it removes an extended attribute of the link itself."
30946 msgstr ""
30947
30948 #. type: =head2
30949 #: ../src/guestfs-actions.pod:4377
30950 msgid "guestfs_ls"
30951 msgstr "guestfs_ls"
30952
30953 #. type: verbatim
30954 #: ../src/guestfs-actions.pod:4379
30955 #, no-wrap
30956 msgid ""
30957 " char **\n"
30958 " guestfs_ls (guestfs_h *g,\n"
30959 "             const char *directory);\n"
30960 "\n"
30961 msgstr ""
30962 " char **\n"
30963 " guestfs_ls (guestfs_h *g,\n"
30964 "             const char *directory);\n"
30965 "\n"
30966
30967 #. type: textblock
30968 #: ../src/guestfs-actions.pod:4387
30969 msgid ""
30970 "This command is mostly useful for interactive sessions.  Programs should "
30971 "probably use C<guestfs_readdir> instead."
30972 msgstr ""
30973
30974 #. type: =head2
30975 #: ../src/guestfs-actions.pod:4396
30976 msgid "guestfs_lsetxattr"
30977 msgstr "guestfs_lsetxattr"
30978
30979 #. type: verbatim
30980 #: ../src/guestfs-actions.pod:4398
30981 #, no-wrap
30982 msgid ""
30983 " int\n"
30984 " guestfs_lsetxattr (guestfs_h *g,\n"
30985 "                    const char *xattr,\n"
30986 "                    const char *val,\n"
30987 "                    int vallen,\n"
30988 "                    const char *path);\n"
30989 "\n"
30990 msgstr ""
30991 " int\n"
30992 " guestfs_lsetxattr (guestfs_h *g,\n"
30993 "                    const char *xattr,\n"
30994 "                    const char *val,\n"
30995 "                    int vallen,\n"
30996 "                    const char *path);\n"
30997 "\n"
30998
30999 #. type: textblock
31000 #: ../src/guestfs-actions.pod:4405
31001 msgid ""
31002 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
31003 "then it sets an extended attribute of the link itself."
31004 msgstr ""
31005
31006 #. type: =head2
31007 #: ../src/guestfs-actions.pod:4413
31008 msgid "guestfs_lstat"
31009 msgstr "guestfs_lstat"
31010
31011 #. type: verbatim
31012 #: ../src/guestfs-actions.pod:4415
31013 #, no-wrap
31014 msgid ""
31015 " struct guestfs_stat *\n"
31016 " guestfs_lstat (guestfs_h *g,\n"
31017 "                const char *path);\n"
31018 "\n"
31019 msgstr ""
31020 " struct guestfs_stat *\n"
31021 " guestfs_lstat (guestfs_h *g,\n"
31022 "                const char *path);\n"
31023 "\n"
31024
31025 #. type: textblock
31026 #: ../src/guestfs-actions.pod:4421
31027 msgid ""
31028 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31029 "link, then the link is stat-ed, not the file it refers to."
31030 msgstr ""
31031
31032 #. type: textblock
31033 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
31034 msgid ""
31035 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31036 "error.  I<The caller must call C<guestfs_free_stat> after use>."
31037 msgstr ""
31038
31039 #. type: textblock
31040 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
31041 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
31042 msgid "(Added in 0.9.2)"
31043 msgstr "(Додано у 0.9.2)"
31044
31045 #. type: =head2
31046 #: ../src/guestfs-actions.pod:4433
31047 msgid "guestfs_lstatlist"
31048 msgstr "guestfs_lstatlist"
31049
31050 #. type: verbatim
31051 #: ../src/guestfs-actions.pod:4435
31052 #, no-wrap
31053 msgid ""
31054 " struct guestfs_stat_list *\n"
31055 " guestfs_lstatlist (guestfs_h *g,\n"
31056 "                    const char *path,\n"
31057 "                    char *const *names);\n"
31058 "\n"
31059 msgstr ""
31060 " struct guestfs_stat_list *\n"
31061 " guestfs_lstatlist (guestfs_h *g,\n"
31062 "                    const char *path,\n"
31063 "                    char *const *names);\n"
31064 "\n"
31065
31066 #. type: textblock
31067 #: ../src/guestfs-actions.pod:4440
31068 msgid ""
31069 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31070 "files, where all files are in the directory C<path>.  C<names> is the list "
31071 "of files from this directory."
31072 msgstr ""
31073
31074 #. type: textblock
31075 #: ../src/guestfs-actions.pod:4449
31076 msgid ""
31077 "This call is intended for programs that want to efficiently list a directory "
31078 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
31079 "for a similarly efficient call for getting extended attributes.  Very long "
31080 "directory listings might cause the protocol message size to be exceeded, "
31081 "causing this call to fail.  The caller must split up such requests into "
31082 "smaller groups of names."
31083 msgstr ""
31084
31085 #. type: textblock
31086 #: ../src/guestfs-actions.pod:4457
31087 msgid ""
31088 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31089 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
31090 msgstr ""
31091
31092 #. type: =head2
31093 #: ../src/guestfs-actions.pod:4463
31094 msgid "guestfs_luks_add_key"
31095 msgstr "guestfs_luks_add_key"
31096
31097 #. type: verbatim
31098 #: ../src/guestfs-actions.pod:4465
31099 #, no-wrap
31100 msgid ""
31101 " int\n"
31102 " guestfs_luks_add_key (guestfs_h *g,\n"
31103 "                       const char *device,\n"
31104 "                       const char *key,\n"
31105 "                       const char *newkey,\n"
31106 "                       int keyslot);\n"
31107 "\n"
31108 msgstr ""
31109 " int\n"
31110 " guestfs_luks_add_key (guestfs_h *g,\n"
31111 "                       const char *device,\n"
31112 "                       const char *key,\n"
31113 "                       const char *newkey,\n"
31114 "                       int keyslot);\n"
31115 "\n"
31116
31117 #. type: textblock
31118 #: ../src/guestfs-actions.pod:4477
31119 msgid ""
31120 "Note that if C<keyslot> already contains a key, then this command will "
31121 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
31122 msgstr ""
31123
31124 #. type: textblock
31125 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
31126 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
31127 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
31128 msgid ""
31129 "This function takes a key or passphrase parameter which could contain "
31130 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
31131 "information."
31132 msgstr ""
31133
31134 #. type: textblock
31135 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
31136 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
31137 msgid "(Added in 1.5.2)"
31138 msgstr "(Додано у 1.5.2)"
31139
31140 #. type: =head2
31141 #: ../src/guestfs-actions.pod:4489
31142 msgid "guestfs_luks_close"
31143 msgstr "guestfs_luks_close"
31144
31145 #. type: verbatim
31146 #: ../src/guestfs-actions.pod:4491
31147 #, no-wrap
31148 msgid ""
31149 " int\n"
31150 " guestfs_luks_close (guestfs_h *g,\n"
31151 "                     const char *device);\n"
31152 "\n"
31153 msgstr ""
31154 " int\n"
31155 " guestfs_luks_close (guestfs_h *g,\n"
31156 "                     const char *device);\n"
31157 "\n"
31158
31159 #. type: textblock
31160 #: ../src/guestfs-actions.pod:4495
31161 msgid ""
31162 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31163 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
31164 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31165 "underlying block device."
31166 msgstr ""
31167
31168 #. type: textblock
31169 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
31170 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
31171 #: ../src/guestfs-actions.pod:4713
31172 msgid "(Added in 1.5.1)"
31173 msgstr "(Додано у 1.5.1)"
31174
31175 #. type: =head2
31176 #: ../src/guestfs-actions.pod:4505
31177 msgid "guestfs_luks_format"
31178 msgstr "guestfs_luks_format"
31179
31180 #. type: verbatim
31181 #: ../src/guestfs-actions.pod:4507
31182 #, no-wrap
31183 msgid ""
31184 " int\n"
31185 " guestfs_luks_format (guestfs_h *g,\n"
31186 "                      const char *device,\n"
31187 "                      const char *key,\n"
31188 "                      int keyslot);\n"
31189 "\n"
31190 msgstr ""
31191 " int\n"
31192 " guestfs_luks_format (guestfs_h *g,\n"
31193 "                      const char *device,\n"
31194 "                      const char *key,\n"
31195 "                      int keyslot);\n"
31196 "\n"
31197
31198 #. type: =head2
31199 #: ../src/guestfs-actions.pod:4526
31200 msgid "guestfs_luks_format_cipher"
31201 msgstr "guestfs_luks_format_cipher"
31202
31203 #. type: verbatim
31204 #: ../src/guestfs-actions.pod:4528
31205 #, no-wrap
31206 msgid ""
31207 " int\n"
31208 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31209 "                             const char *device,\n"
31210 "                             const char *key,\n"
31211 "                             int keyslot,\n"
31212 "                             const char *cipher);\n"
31213 "\n"
31214 msgstr ""
31215 " int\n"
31216 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31217 "                             const char *device,\n"
31218 "                             const char *key,\n"
31219 "                             int keyslot,\n"
31220 "                             const char *cipher);\n"
31221 "\n"
31222
31223 #. type: textblock
31224 #: ../src/guestfs-actions.pod:4535
31225 msgid ""
31226 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31227 "set the C<cipher> used."
31228 msgstr ""
31229
31230 #. type: =head2
31231 #: ../src/guestfs-actions.pod:4546
31232 msgid "guestfs_luks_kill_slot"
31233 msgstr "guestfs_luks_kill_slot"
31234
31235 #. type: verbatim
31236 #: ../src/guestfs-actions.pod:4548
31237 #, no-wrap
31238 msgid ""
31239 " int\n"
31240 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31241 "                         const char *device,\n"
31242 "                         const char *key,\n"
31243 "                         int keyslot);\n"
31244 "\n"
31245 msgstr ""
31246 " int\n"
31247 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31248 "                         const char *device,\n"
31249 "                         const char *key,\n"
31250 "                         int keyslot);\n"
31251 "\n"
31252
31253 #. type: =head2
31254 #: ../src/guestfs-actions.pod:4566
31255 msgid "guestfs_luks_open"
31256 msgstr "guestfs_luks_open"
31257
31258 #. type: verbatim
31259 #: ../src/guestfs-actions.pod:4568
31260 #, no-wrap
31261 msgid ""
31262 " int\n"
31263 " guestfs_luks_open (guestfs_h *g,\n"
31264 "                    const char *device,\n"
31265 "                    const char *key,\n"
31266 "                    const char *mapname);\n"
31267 "\n"
31268 msgstr ""
31269 " int\n"
31270 " guestfs_luks_open (guestfs_h *g,\n"
31271 "                    const char *device,\n"
31272 "                    const char *key,\n"
31273 "                    const char *mapname);\n"
31274 "\n"
31275
31276 #. type: textblock
31277 #: ../src/guestfs-actions.pod:4586
31278 msgid ""
31279 "If this block device contains LVM volume groups, then calling "
31280 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
31281 "visible."
31282 msgstr ""
31283
31284 #. type: textblock
31285 #: ../src/guestfs-actions.pod:4590
31286 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31287 msgstr ""
31288
31289 #. type: =head2
31290 #: ../src/guestfs-actions.pod:4601
31291 msgid "guestfs_luks_open_ro"
31292 msgstr "guestfs_luks_open_ro"
31293
31294 #. type: verbatim
31295 #: ../src/guestfs-actions.pod:4603
31296 #, no-wrap
31297 msgid ""
31298 " int\n"
31299 " guestfs_luks_open_ro (guestfs_h *g,\n"
31300 "                       const char *device,\n"
31301 "                       const char *key,\n"
31302 "                       const char *mapname);\n"
31303 "\n"
31304 msgstr ""
31305 " int\n"
31306 " guestfs_luks_open_ro (guestfs_h *g,\n"
31307 "                       const char *device,\n"
31308 "                       const char *key,\n"
31309 "                       const char *mapname);\n"
31310 "\n"
31311
31312 #. type: textblock
31313 #: ../src/guestfs-actions.pod:4609
31314 msgid ""
31315 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31316 "created."
31317 msgstr ""
31318
31319 #. type: =head2
31320 #: ../src/guestfs-actions.pod:4620
31321 msgid "guestfs_lvcreate"
31322 msgstr "guestfs_lvcreate"
31323
31324 #. type: verbatim
31325 #: ../src/guestfs-actions.pod:4622
31326 #, no-wrap
31327 msgid ""
31328 " int\n"
31329 " guestfs_lvcreate (guestfs_h *g,\n"
31330 "                   const char *logvol,\n"
31331 "                   const char *volgroup,\n"
31332 "                   int mbytes);\n"
31333 "\n"
31334 msgstr ""
31335 " int\n"
31336 " guestfs_lvcreate (guestfs_h *g,\n"
31337 "                   const char *logvol,\n"
31338 "                   const char *volgroup,\n"
31339 "                   int mbytes);\n"
31340 "\n"
31341
31342 #. type: =head2
31343 #: ../src/guestfs-actions.pod:4635
31344 msgid "guestfs_lvm_canonical_lv_name"
31345 msgstr "guestfs_lvm_canonical_lv_name"
31346
31347 #. type: verbatim
31348 #: ../src/guestfs-actions.pod:4637
31349 #, no-wrap
31350 msgid ""
31351 " char *\n"
31352 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31353 "                                const char *lvname);\n"
31354 "\n"
31355 msgstr ""
31356 " char *\n"
31357 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31358 "                                const char *lvname);\n"
31359 "\n"
31360
31361 #. type: textblock
31362 #: ../src/guestfs-actions.pod:4648
31363 msgid "See also C<guestfs_is_lv>."
31364 msgstr ""
31365
31366 #. type: textblock
31367 #: ../src/guestfs-actions.pod:4653
31368 msgid "(Added in 1.5.24)"
31369 msgstr "(Додано у 1.5.24)"
31370
31371 #. type: =head2
31372 #: ../src/guestfs-actions.pod:4655
31373 msgid "guestfs_lvm_clear_filter"
31374 msgstr "guestfs_lvm_clear_filter"
31375
31376 #. type: verbatim
31377 #: ../src/guestfs-actions.pod:4657
31378 #, no-wrap
31379 msgid ""
31380 " int\n"
31381 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31382 "\n"
31383 msgstr ""
31384 " int\n"
31385 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31386 "\n"
31387
31388 #. type: textblock
31389 #: ../src/guestfs-actions.pod:4660
31390 msgid ""
31391 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
31392 "see every block device."
31393 msgstr ""
31394
31395 #. type: =head2
31396 #: ../src/guestfs-actions.pod:4670
31397 msgid "guestfs_lvm_remove_all"
31398 msgstr "guestfs_lvm_remove_all"
31399
31400 #. type: verbatim
31401 #: ../src/guestfs-actions.pod:4672
31402 #, no-wrap
31403 msgid ""
31404 " int\n"
31405 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31406 "\n"
31407 msgstr ""
31408 " int\n"
31409 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31410 "\n"
31411
31412 #. type: =head2
31413 #: ../src/guestfs-actions.pod:4682
31414 msgid "guestfs_lvm_set_filter"
31415 msgstr "guestfs_lvm_set_filter"
31416
31417 #. type: verbatim
31418 #: ../src/guestfs-actions.pod:4684
31419 #, no-wrap
31420 msgid ""
31421 " int\n"
31422 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31423 "                         char *const *devices);\n"
31424 "\n"
31425 msgstr ""
31426 " int\n"
31427 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31428 "                         char *const *devices);\n"
31429 "\n"
31430
31431 #. type: =head2
31432 #: ../src/guestfs-actions.pod:4715
31433 msgid "guestfs_lvremove"
31434 msgstr "guestfs_lvremove"
31435
31436 #. type: verbatim
31437 #: ../src/guestfs-actions.pod:4717
31438 #, no-wrap
31439 msgid ""
31440 " int\n"
31441 " guestfs_lvremove (guestfs_h *g,\n"
31442 "                   const char *device);\n"
31443 "\n"
31444 msgstr ""
31445 " int\n"
31446 " guestfs_lvremove (guestfs_h *g,\n"
31447 "                   const char *device);\n"
31448 "\n"
31449
31450 #. type: textblock
31451 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
31452 #: ../src/guestfs-actions.pod:7977
31453 msgid "(Added in 1.0.13)"
31454 msgstr "(Додано у 1.0.13)"
31455
31456 #. type: =head2
31457 #: ../src/guestfs-actions.pod:4731
31458 msgid "guestfs_lvrename"
31459 msgstr "guestfs_lvrename"
31460
31461 #. type: verbatim
31462 #: ../src/guestfs-actions.pod:4733
31463 #, no-wrap
31464 msgid ""
31465 " int\n"
31466 " guestfs_lvrename (guestfs_h *g,\n"
31467 "                   const char *logvol,\n"
31468 "                   const char *newlogvol);\n"
31469 "\n"
31470 msgstr ""
31471 " int\n"
31472 " guestfs_lvrename (guestfs_h *g,\n"
31473 "                   const char *logvol,\n"
31474 "                   const char *newlogvol);\n"
31475 "\n"
31476
31477 #. type: textblock
31478 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
31479 msgid "(Added in 1.0.83)"
31480 msgstr "(Додано у 1.0.83)"
31481
31482 #. type: =head2
31483 #: ../src/guestfs-actions.pod:4744
31484 msgid "guestfs_lvresize"
31485 msgstr "guestfs_lvresize"
31486
31487 #. type: verbatim
31488 #: ../src/guestfs-actions.pod:4746
31489 #, no-wrap
31490 msgid ""
31491 " int\n"
31492 " guestfs_lvresize (guestfs_h *g,\n"
31493 "                   const char *device,\n"
31494 "                   int mbytes);\n"
31495 "\n"
31496 msgstr ""
31497 " int\n"
31498 " guestfs_lvresize (guestfs_h *g,\n"
31499 "                   const char *device,\n"
31500 "                   int mbytes);\n"
31501 "\n"
31502
31503 #. type: =head2
31504 #: ../src/guestfs-actions.pod:4759
31505 msgid "guestfs_lvresize_free"
31506 msgstr "guestfs_lvresize_free"
31507
31508 #. type: verbatim
31509 #: ../src/guestfs-actions.pod:4761
31510 #, no-wrap
31511 msgid ""
31512 " int\n"
31513 " guestfs_lvresize_free (guestfs_h *g,\n"
31514 "                        const char *lv,\n"
31515 "                        int percent);\n"
31516 "\n"
31517 msgstr ""
31518 " int\n"
31519 " guestfs_lvresize_free (guestfs_h *g,\n"
31520 "                        const char *lv,\n"
31521 "                        int percent);\n"
31522 "\n"
31523
31524 #. type: textblock
31525 #: ../src/guestfs-actions.pod:4774
31526 msgid "(Added in 1.3.3)"
31527 msgstr "(Додано у 1.3.3)"
31528
31529 #. type: =head2
31530 #: ../src/guestfs-actions.pod:4776
31531 msgid "guestfs_lvs"
31532 msgstr "guestfs_lvs"
31533
31534 #. type: verbatim
31535 #: ../src/guestfs-actions.pod:4778
31536 #, no-wrap
31537 msgid ""
31538 " char **\n"
31539 " guestfs_lvs (guestfs_h *g);\n"
31540 "\n"
31541 msgstr ""
31542 " char **\n"
31543 " guestfs_lvs (guestfs_h *g);\n"
31544 "\n"
31545
31546 #. type: textblock
31547 #: ../src/guestfs-actions.pod:4787
31548 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31549 msgstr ""
31550
31551 #. type: =head2
31552 #: ../src/guestfs-actions.pod:4795
31553 msgid "guestfs_lvs_full"
31554 msgstr "guestfs_lvs_full"
31555
31556 #. type: verbatim
31557 #: ../src/guestfs-actions.pod:4797
31558 #, no-wrap
31559 msgid ""
31560 " struct guestfs_lvm_lv_list *\n"
31561 " guestfs_lvs_full (guestfs_h *g);\n"
31562 "\n"
31563 msgstr ""
31564 " struct guestfs_lvm_lv_list *\n"
31565 " guestfs_lvs_full (guestfs_h *g);\n"
31566 "\n"
31567
31568 #. type: textblock
31569 #: ../src/guestfs-actions.pod:4803
31570 msgid ""
31571 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31572 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31573 msgstr ""
31574
31575 #. type: =head2
31576 #: ../src/guestfs-actions.pod:4809
31577 msgid "guestfs_lvuuid"
31578 msgstr "guestfs_lvuuid"
31579
31580 #. type: verbatim
31581 #: ../src/guestfs-actions.pod:4811
31582 #, no-wrap
31583 msgid ""
31584 " char *\n"
31585 " guestfs_lvuuid (guestfs_h *g,\n"
31586 "                 const char *device);\n"
31587 "\n"
31588 msgstr ""
31589 " char *\n"
31590 " guestfs_lvuuid (guestfs_h *g,\n"
31591 "                 const char *device);\n"
31592 "\n"
31593
31594 #. type: =head2
31595 #: ../src/guestfs-actions.pod:4822
31596 msgid "guestfs_lxattrlist"
31597 msgstr "guestfs_lxattrlist"
31598
31599 #. type: verbatim
31600 #: ../src/guestfs-actions.pod:4824
31601 #, no-wrap
31602 msgid ""
31603 " struct guestfs_xattr_list *\n"
31604 " guestfs_lxattrlist (guestfs_h *g,\n"
31605 "                     const char *path,\n"
31606 "                     char *const *names);\n"
31607 "\n"
31608 msgstr ""
31609 " struct guestfs_xattr_list *\n"
31610 " guestfs_lxattrlist (guestfs_h *g,\n"
31611 "                     const char *path,\n"
31612 "                     char *const *names);\n"
31613 "\n"
31614
31615 #. type: textblock
31616 #: ../src/guestfs-actions.pod:4843
31617 msgid ""
31618 "This call is intended for programs that want to efficiently list a directory "
31619 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
31620 "a similarly efficient call for getting standard stats.  Very long directory "
31621 "listings might cause the protocol message size to be exceeded, causing this "
31622 "call to fail.  The caller must split up such requests into smaller groups of "
31623 "names."
31624 msgstr ""
31625
31626 #. type: =head2
31627 #: ../src/guestfs-actions.pod:4857
31628 msgid "guestfs_mkdir"
31629 msgstr "guestfs_mkdir"
31630
31631 #. type: verbatim
31632 #: ../src/guestfs-actions.pod:4859
31633 #, no-wrap
31634 msgid ""
31635 " int\n"
31636 " guestfs_mkdir (guestfs_h *g,\n"
31637 "                const char *path);\n"
31638 "\n"
31639 msgstr ""
31640 " int\n"
31641 " guestfs_mkdir (guestfs_h *g,\n"
31642 "                const char *path);\n"
31643 "\n"
31644
31645 #. type: =head2
31646 #: ../src/guestfs-actions.pod:4869
31647 msgid "guestfs_mkdir_mode"
31648 msgstr "guestfs_mkdir_mode"
31649
31650 #. type: verbatim
31651 #: ../src/guestfs-actions.pod:4871
31652 #, no-wrap
31653 msgid ""
31654 " int\n"
31655 " guestfs_mkdir_mode (guestfs_h *g,\n"
31656 "                     const char *path,\n"
31657 "                     int mode);\n"
31658 "\n"
31659 msgstr ""
31660 " int\n"
31661 " guestfs_mkdir_mode (guestfs_h *g,\n"
31662 "                     const char *path,\n"
31663 "                     int mode);\n"
31664 "\n"
31665
31666 #. type: textblock
31667 #: ../src/guestfs-actions.pod:4883
31668 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31669 msgstr ""
31670
31671 #. type: =head2
31672 #: ../src/guestfs-actions.pod:4889
31673 msgid "guestfs_mkdir_p"
31674 msgstr "guestfs_mkdir_p"
31675
31676 #. type: verbatim
31677 #: ../src/guestfs-actions.pod:4891
31678 #, no-wrap
31679 msgid ""
31680 " int\n"
31681 " guestfs_mkdir_p (guestfs_h *g,\n"
31682 "                  const char *path);\n"
31683 "\n"
31684 msgstr ""
31685 " int\n"
31686 " guestfs_mkdir_p (guestfs_h *g,\n"
31687 "                  const char *path);\n"
31688 "\n"
31689
31690 #. type: =head2
31691 #: ../src/guestfs-actions.pod:4902
31692 msgid "guestfs_mkdtemp"
31693 msgstr "guestfs_mkdtemp"
31694
31695 #. type: verbatim
31696 #: ../src/guestfs-actions.pod:4904
31697 #, no-wrap
31698 msgid ""
31699 " char *\n"
31700 " guestfs_mkdtemp (guestfs_h *g,\n"
31701 "                  const char *template);\n"
31702 "\n"
31703 msgstr ""
31704 " char *\n"
31705 " guestfs_mkdtemp (guestfs_h *g,\n"
31706 "                  const char *template);\n"
31707 "\n"
31708
31709 #. type: =head2
31710 #: ../src/guestfs-actions.pod:4932
31711 msgid "guestfs_mke2fs_J"
31712 msgstr "guestfs_mke2fs_J"
31713
31714 #. type: verbatim
31715 #: ../src/guestfs-actions.pod:4934
31716 #, no-wrap
31717 msgid ""
31718 " int\n"
31719 " guestfs_mke2fs_J (guestfs_h *g,\n"
31720 "                   const char *fstype,\n"
31721 "                   int blocksize,\n"
31722 "                   const char *device,\n"
31723 "                   const char *journal);\n"
31724 "\n"
31725 msgstr ""
31726 " int\n"
31727 " guestfs_mke2fs_J (guestfs_h *g,\n"
31728 "                   const char *fstype,\n"
31729 "                   int blocksize,\n"
31730 "                   const char *device,\n"
31731 "                   const char *journal);\n"
31732 "\n"
31733
31734 #. type: textblock
31735 #: ../src/guestfs-actions.pod:4947
31736 msgid "See also C<guestfs_mke2journal>."
31737 msgstr ""
31738
31739 #. type: textblock
31740 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
31741 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
31742 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
31743 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
31744 msgid "(Added in 1.0.68)"
31745 msgstr "(Додано у 1.0.68)"
31746
31747 #. type: =head2
31748 #: ../src/guestfs-actions.pod:4953
31749 msgid "guestfs_mke2fs_JL"
31750 msgstr "guestfs_mke2fs_JL"
31751
31752 #. type: verbatim
31753 #: ../src/guestfs-actions.pod:4955
31754 #, no-wrap
31755 msgid ""
31756 " int\n"
31757 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31758 "                    const char *fstype,\n"
31759 "                    int blocksize,\n"
31760 "                    const char *device,\n"
31761 "                    const char *label);\n"
31762 "\n"
31763 msgstr ""
31764 " int\n"
31765 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31766 "                    const char *fstype,\n"
31767 "                    int blocksize,\n"
31768 "                    const char *device,\n"
31769 "                    const char *label);\n"
31770 "\n"
31771
31772 #. type: textblock
31773 #: ../src/guestfs-actions.pod:4965
31774 msgid "See also C<guestfs_mke2journal_L>."
31775 msgstr ""
31776
31777 #. type: =head2
31778 #: ../src/guestfs-actions.pod:4971
31779 msgid "guestfs_mke2fs_JU"
31780 msgstr "guestfs_mke2fs_JU"
31781
31782 #. type: verbatim
31783 #: ../src/guestfs-actions.pod:4973
31784 #, no-wrap
31785 msgid ""
31786 " int\n"
31787 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31788 "                    const char *fstype,\n"
31789 "                    int blocksize,\n"
31790 "                    const char *device,\n"
31791 "                    const char *uuid);\n"
31792 "\n"
31793 msgstr ""
31794 " int\n"
31795 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31796 "                    const char *fstype,\n"
31797 "                    int blocksize,\n"
31798 "                    const char *device,\n"
31799 "                    const char *uuid);\n"
31800 "\n"
31801
31802 #. type: textblock
31803 #: ../src/guestfs-actions.pod:4983
31804 msgid "See also C<guestfs_mke2journal_U>."
31805 msgstr ""
31806
31807 #. type: =head2
31808 #: ../src/guestfs-actions.pod:4989
31809 msgid "guestfs_mke2journal"
31810 msgstr "guestfs_mke2journal"
31811
31812 #. type: verbatim
31813 #: ../src/guestfs-actions.pod:4991
31814 #, no-wrap
31815 msgid ""
31816 " int\n"
31817 " guestfs_mke2journal (guestfs_h *g,\n"
31818 "                      int blocksize,\n"
31819 "                      const char *device);\n"
31820 "\n"
31821 msgstr ""
31822 " int\n"
31823 " guestfs_mke2journal (guestfs_h *g,\n"
31824 "                      int blocksize,\n"
31825 "                      const char *device);\n"
31826 "\n"
31827
31828 #. type: =head2
31829 #: ../src/guestfs-actions.pod:5005
31830 msgid "guestfs_mke2journal_L"
31831 msgstr "guestfs_mke2journal_L"
31832
31833 #. type: verbatim
31834 #: ../src/guestfs-actions.pod:5007
31835 #, no-wrap
31836 msgid ""
31837 " int\n"
31838 " guestfs_mke2journal_L (guestfs_h *g,\n"
31839 "                        int blocksize,\n"
31840 "                        const char *label,\n"
31841 "                        const char *device);\n"
31842 "\n"
31843 msgstr ""
31844 " int\n"
31845 " guestfs_mke2journal_L (guestfs_h *g,\n"
31846 "                        int blocksize,\n"
31847 "                        const char *label,\n"
31848 "                        const char *device);\n"
31849 "\n"
31850
31851 #. type: =head2
31852 #: ../src/guestfs-actions.pod:5019
31853 msgid "guestfs_mke2journal_U"
31854 msgstr "guestfs_mke2journal_U"
31855
31856 #. type: verbatim
31857 #: ../src/guestfs-actions.pod:5021
31858 #, no-wrap
31859 msgid ""
31860 " int\n"
31861 " guestfs_mke2journal_U (guestfs_h *g,\n"
31862 "                        int blocksize,\n"
31863 "                        const char *uuid,\n"
31864 "                        const char *device);\n"
31865 "\n"
31866 msgstr ""
31867 " int\n"
31868 " guestfs_mke2journal_U (guestfs_h *g,\n"
31869 "                        int blocksize,\n"
31870 "                        const char *uuid,\n"
31871 "                        const char *device);\n"
31872 "\n"
31873
31874 #. type: =head2
31875 #: ../src/guestfs-actions.pod:5033
31876 msgid "guestfs_mkfifo"
31877 msgstr "guestfs_mkfifo"
31878
31879 #. type: verbatim
31880 #: ../src/guestfs-actions.pod:5035
31881 #, no-wrap
31882 msgid ""
31883 " int\n"
31884 " guestfs_mkfifo (guestfs_h *g,\n"
31885 "                 int mode,\n"
31886 "                 const char *path);\n"
31887 "\n"
31888 msgstr ""
31889 " int\n"
31890 " guestfs_mkfifo (guestfs_h *g,\n"
31891 "                 int mode,\n"
31892 "                 const char *path);\n"
31893 "\n"
31894
31895 #. type: textblock
31896 #: ../src/guestfs-actions.pod:5040
31897 msgid ""
31898 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31899 "is just a convenient wrapper around C<guestfs_mknod>."
31900 msgstr ""
31901
31902 #. type: =head2
31903 #: ../src/guestfs-actions.pod:5050
31904 msgid "guestfs_mkfs"
31905 msgstr "guestfs_mkfs"
31906
31907 #. type: verbatim
31908 #: ../src/guestfs-actions.pod:5052
31909 #, no-wrap
31910 msgid ""
31911 " int\n"
31912 " guestfs_mkfs (guestfs_h *g,\n"
31913 "               const char *fstype,\n"
31914 "               const char *device);\n"
31915 "\n"
31916 msgstr ""
31917 " int\n"
31918 " guestfs_mkfs (guestfs_h *g,\n"
31919 "               const char *fstype,\n"
31920 "               const char *device);\n"
31921 "\n"
31922
31923 #. type: =head2
31924 #: ../src/guestfs-actions.pod:5065
31925 msgid "guestfs_mkfs_b"
31926 msgstr "guestfs_mkfs_b"
31927
31928 #. type: verbatim
31929 #: ../src/guestfs-actions.pod:5067
31930 #, no-wrap
31931 msgid ""
31932 " int\n"
31933 " guestfs_mkfs_b (guestfs_h *g,\n"
31934 "                 const char *fstype,\n"
31935 "                 int blocksize,\n"
31936 "                 const char *device);\n"
31937 "\n"
31938 msgstr ""
31939 " int\n"
31940 " guestfs_mkfs_b (guestfs_h *g,\n"
31941 "                 const char *fstype,\n"
31942 "                 int blocksize,\n"
31943 "                 const char *device);\n"
31944 "\n"
31945
31946 #. type: textblock
31947 #: ../src/guestfs-actions.pod:5073
31948 msgid ""
31949 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31950 "call instead."
31951 msgstr ""
31952
31953 #. type: textblock
31954 #: ../src/guestfs-actions.pod:5080
31955 msgid ""
31956 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31957 "block size of the resulting filesystem.  Supported block sizes depend on the "
31958 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31959 msgstr ""
31960
31961 #. type: =head2
31962 #: ../src/guestfs-actions.pod:5092
31963 msgid "guestfs_mkfs_opts"
31964 msgstr "guestfs_mkfs_opts"
31965
31966 #. type: verbatim
31967 #: ../src/guestfs-actions.pod:5094
31968 #, no-wrap
31969 msgid ""
31970 " int\n"
31971 " guestfs_mkfs_opts (guestfs_h *g,\n"
31972 "                    const char *fstype,\n"
31973 "                    const char *device,\n"
31974 "                    ...);\n"
31975 "\n"
31976 msgstr ""
31977 " int\n"
31978 " guestfs_mkfs_opts (guestfs_h *g,\n"
31979 "                    const char *fstype,\n"
31980 "                    const char *device,\n"
31981 "                    ...);\n"
31982 "\n"
31983
31984 #. type: verbatim
31985 #: ../src/guestfs-actions.pod:5105
31986 #, no-wrap
31987 msgid ""
31988 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31989 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31990 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31991 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31992 "\n"
31993 msgstr ""
31994
31995 #. type: textblock
31996 #: ../src/guestfs-actions.pod:5153
31997 msgid "(Added in 1.7.19)"
31998 msgstr "(Додано у 1.7.19)"
31999
32000 #. type: =head2
32001 #: ../src/guestfs-actions.pod:5155
32002 msgid "guestfs_mkfs_opts_va"
32003 msgstr "guestfs_mkfs_opts_va"
32004
32005 #. type: verbatim
32006 #: ../src/guestfs-actions.pod:5157
32007 #, no-wrap
32008 msgid ""
32009 " int\n"
32010 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32011 "                       const char *fstype,\n"
32012 "                       const char *device,\n"
32013 "                       va_list args);\n"
32014 "\n"
32015 msgstr ""
32016 " int\n"
32017 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32018 "                       const char *fstype,\n"
32019 "                       const char *device,\n"
32020 "                       va_list args);\n"
32021 "\n"
32022
32023 #. type: textblock
32024 #: ../src/guestfs-actions.pod:5163
32025 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
32026 msgstr ""
32027
32028 #. type: =head2
32029 #: ../src/guestfs-actions.pod:5167
32030 msgid "guestfs_mkfs_opts_argv"
32031 msgstr "guestfs_mkfs_opts_argv"
32032
32033 #. type: verbatim
32034 #: ../src/guestfs-actions.pod:5169
32035 #, no-wrap
32036 msgid ""
32037 " int\n"
32038 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32039 "                         const char *fstype,\n"
32040 "                         const char *device,\n"
32041 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32042 "\n"
32043 msgstr ""
32044 " int\n"
32045 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32046 "                         const char *fstype,\n"
32047 "                         const char *device,\n"
32048 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32049 "\n"
32050
32051 #. type: textblock
32052 #: ../src/guestfs-actions.pod:5175
32053 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
32054 msgstr ""
32055
32056 #. type: =head2
32057 #: ../src/guestfs-actions.pod:5179
32058 msgid "guestfs_mkmountpoint"
32059 msgstr "guestfs_mkmountpoint"
32060
32061 #. type: verbatim
32062 #: ../src/guestfs-actions.pod:5181
32063 #, no-wrap
32064 msgid ""
32065 " int\n"
32066 " guestfs_mkmountpoint (guestfs_h *g,\n"
32067 "                       const char *exemptpath);\n"
32068 "\n"
32069 msgstr ""
32070 " int\n"
32071 " guestfs_mkmountpoint (guestfs_h *g,\n"
32072 "                       const char *exemptpath);\n"
32073 "\n"
32074
32075 #. type: textblock
32076 #: ../src/guestfs-actions.pod:5185
32077 msgid ""
32078 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
32079 "that can be used to create extra mountpoints before mounting the first "
32080 "filesystem."
32081 msgstr ""
32082
32083 #. type: textblock
32084 #: ../src/guestfs-actions.pod:5209
32085 msgid ""
32086 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
32087 "may get unexpected errors if you try to mix these calls.  It is safest to "
32088 "manually unmount filesystems and remove mountpoints after use."
32089 msgstr ""
32090
32091 #. type: textblock
32092 #: ../src/guestfs-actions.pod:5213
32093 msgid ""
32094 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
32095 "first, so for this to work for manual mountpoints, you must ensure that the "
32096 "innermost mountpoints have the longest pathnames, as in the example code "
32097 "above."
32098 msgstr ""
32099
32100 #. type: textblock
32101 #: ../src/guestfs-actions.pod:5220
32102 msgid ""
32103 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
32104 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
32105 "can also trigger these issues."
32106 msgstr ""
32107
32108 #. type: textblock
32109 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
32110 #: ../src/guestfs-actions.pod:6559
32111 msgid "(Added in 1.0.62)"
32112 msgstr "(Додано у 1.0.62)"
32113
32114 #. type: =head2
32115 #: ../src/guestfs-actions.pod:5228
32116 msgid "guestfs_mknod"
32117 msgstr ""
32118
32119 #. type: verbatim
32120 #: ../src/guestfs-actions.pod:5230
32121 #, no-wrap
32122 msgid ""
32123 " int\n"
32124 " guestfs_mknod (guestfs_h *g,\n"
32125 "                int mode,\n"
32126 "                int devmajor,\n"
32127 "                int devminor,\n"
32128 "                const char *path);\n"
32129 "\n"
32130 msgstr ""
32131
32132 #. type: textblock
32133 #: ../src/guestfs-actions.pod:5245
32134 msgid ""
32135 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
32136 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
32137 "regular file).  These constants are available in the standard Linux header "
32138 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
32139 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
32140 "the appropriate constant for you."
32141 msgstr ""
32142
32143 #. type: =head2
32144 #: ../src/guestfs-actions.pod:5259
32145 msgid "guestfs_mknod_b"
32146 msgstr ""
32147
32148 #. type: verbatim
32149 #: ../src/guestfs-actions.pod:5261
32150 #, no-wrap
32151 msgid ""
32152 " int\n"
32153 " guestfs_mknod_b (guestfs_h *g,\n"
32154 "                  int mode,\n"
32155 "                  int devmajor,\n"
32156 "                  int devminor,\n"
32157 "                  const char *path);\n"
32158 "\n"
32159 msgstr ""
32160
32161 #. type: textblock
32162 #: ../src/guestfs-actions.pod:5268
32163 msgid ""
32164 "This call creates a block device node called C<path> with mode C<mode> and "
32165 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
32166 "wrapper around C<guestfs_mknod>."
32167 msgstr ""
32168
32169 #. type: =head2
32170 #: ../src/guestfs-actions.pod:5278
32171 msgid "guestfs_mknod_c"
32172 msgstr ""
32173
32174 #. type: verbatim
32175 #: ../src/guestfs-actions.pod:5280
32176 #, no-wrap
32177 msgid ""
32178 " int\n"
32179 " guestfs_mknod_c (guestfs_h *g,\n"
32180 "                  int mode,\n"
32181 "                  int devmajor,\n"
32182 "                  int devminor,\n"
32183 "                  const char *path);\n"
32184 "\n"
32185 msgstr ""
32186
32187 #. type: textblock
32188 #: ../src/guestfs-actions.pod:5287
32189 msgid ""
32190 "This call creates a char device node called C<path> with mode C<mode> and "
32191 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
32192 "wrapper around C<guestfs_mknod>."
32193 msgstr ""
32194
32195 #. type: =head2
32196 #: ../src/guestfs-actions.pod:5297
32197 msgid "guestfs_mkswap"
32198 msgstr ""
32199
32200 #. type: verbatim
32201 #: ../src/guestfs-actions.pod:5299
32202 #, no-wrap
32203 msgid ""
32204 " int\n"
32205 " guestfs_mkswap (guestfs_h *g,\n"
32206 "                 const char *device);\n"
32207 "\n"
32208 msgstr ""
32209
32210 #. type: =head2
32211 #: ../src/guestfs-actions.pod:5309
32212 msgid "guestfs_mkswap_L"
32213 msgstr ""
32214
32215 #. type: verbatim
32216 #: ../src/guestfs-actions.pod:5311
32217 #, no-wrap
32218 msgid ""
32219 " int\n"
32220 " guestfs_mkswap_L (guestfs_h *g,\n"
32221 "                   const char *label,\n"
32222 "                   const char *device);\n"
32223 "\n"
32224 msgstr ""
32225
32226 #. type: =head2
32227 #: ../src/guestfs-actions.pod:5326
32228 msgid "guestfs_mkswap_U"
32229 msgstr ""
32230
32231 #. type: verbatim
32232 #: ../src/guestfs-actions.pod:5328
32233 #, no-wrap
32234 msgid ""
32235 " int\n"
32236 " guestfs_mkswap_U (guestfs_h *g,\n"
32237 "                   const char *uuid,\n"
32238 "                   const char *device);\n"
32239 "\n"
32240 msgstr ""
32241
32242 #. type: =head2
32243 #: ../src/guestfs-actions.pod:5339
32244 msgid "guestfs_mkswap_file"
32245 msgstr ""
32246
32247 #. type: verbatim
32248 #: ../src/guestfs-actions.pod:5341
32249 #, no-wrap
32250 msgid ""
32251 " int\n"
32252 " guestfs_mkswap_file (guestfs_h *g,\n"
32253 "                      const char *path);\n"
32254 "\n"
32255 msgstr ""
32256
32257 #. type: textblock
32258 #: ../src/guestfs-actions.pod:5347
32259 msgid ""
32260 "This command just writes a swap file signature to an existing file.  To "
32261 "create the file itself, use something like C<guestfs_fallocate>."
32262 msgstr ""
32263
32264 #. type: =head2
32265 #: ../src/guestfs-actions.pod:5354
32266 msgid "guestfs_modprobe"
32267 msgstr ""
32268
32269 #. type: verbatim
32270 #: ../src/guestfs-actions.pod:5356
32271 #, no-wrap
32272 msgid ""
32273 " int\n"
32274 " guestfs_modprobe (guestfs_h *g,\n"
32275 "                   const char *modulename);\n"
32276 "\n"
32277 msgstr ""
32278
32279 #. type: =head2
32280 #: ../src/guestfs-actions.pod:5369
32281 msgid "guestfs_mount"
32282 msgstr ""
32283
32284 #. type: verbatim
32285 #: ../src/guestfs-actions.pod:5371
32286 #, no-wrap
32287 msgid ""
32288 " int\n"
32289 " guestfs_mount (guestfs_h *g,\n"
32290 "                const char *device,\n"
32291 "                const char *mountpoint);\n"
32292 "\n"
32293 msgstr ""
32294
32295 #. type: textblock
32296 #: ../src/guestfs-actions.pod:5390
32297 msgid ""
32298 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
32299 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
32300 "problems for users.  If your program might need to work with older versions "
32301 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
32302 "for the first parameter if you don't want any options)."
32303 msgstr ""
32304
32305 #. type: =head2
32306 #: ../src/guestfs-actions.pod:5401
32307 msgid "guestfs_mount_9p"
32308 msgstr ""
32309
32310 #. type: verbatim
32311 #: ../src/guestfs-actions.pod:5403
32312 #, no-wrap
32313 msgid ""
32314 " int\n"
32315 " guestfs_mount_9p (guestfs_h *g,\n"
32316 "                   const char *mounttag,\n"
32317 "                   const char *mountpoint,\n"
32318 "                   ...);\n"
32319 "\n"
32320 msgstr ""
32321
32322 #. type: verbatim
32323 #: ../src/guestfs-actions.pod:5414
32324 #, no-wrap
32325 msgid ""
32326 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
32327 "\n"
32328 msgstr ""
32329
32330 #. type: =head2
32331 #: ../src/guestfs-actions.pod:5427
32332 msgid "guestfs_mount_9p_va"
32333 msgstr ""
32334
32335 #. type: verbatim
32336 #: ../src/guestfs-actions.pod:5429
32337 #, no-wrap
32338 msgid ""
32339 " int\n"
32340 " guestfs_mount_9p_va (guestfs_h *g,\n"
32341 "                      const char *mounttag,\n"
32342 "                      const char *mountpoint,\n"
32343 "                      va_list args);\n"
32344 "\n"
32345 msgstr ""
32346
32347 #. type: textblock
32348 #: ../src/guestfs-actions.pod:5435
32349 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
32350 msgstr ""
32351
32352 #. type: =head2
32353 #: ../src/guestfs-actions.pod:5439
32354 msgid "guestfs_mount_9p_argv"
32355 msgstr ""
32356
32357 #. type: verbatim
32358 #: ../src/guestfs-actions.pod:5441
32359 #, no-wrap
32360 msgid ""
32361 " int\n"
32362 " guestfs_mount_9p_argv (guestfs_h *g,\n"
32363 "                        const char *mounttag,\n"
32364 "                        const char *mountpoint,\n"
32365 "                        const struct guestfs_mount_9p_argv *optargs);\n"
32366 "\n"
32367 msgstr ""
32368
32369 #. type: textblock
32370 #: ../src/guestfs-actions.pod:5447
32371 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
32372 msgstr ""
32373
32374 #. type: =head2
32375 #: ../src/guestfs-actions.pod:5451
32376 msgid "guestfs_mount_loop"
32377 msgstr ""
32378
32379 #. type: verbatim
32380 #: ../src/guestfs-actions.pod:5453
32381 #, no-wrap
32382 msgid ""
32383 " int\n"
32384 " guestfs_mount_loop (guestfs_h *g,\n"
32385 "                     const char *file,\n"
32386 "                     const char *mountpoint);\n"
32387 "\n"
32388 msgstr ""
32389
32390 #. type: =head2
32391 #: ../src/guestfs-actions.pod:5466
32392 msgid "guestfs_mount_options"
32393 msgstr ""
32394
32395 #. type: verbatim
32396 #: ../src/guestfs-actions.pod:5468
32397 #, no-wrap
32398 msgid ""
32399 " int\n"
32400 " guestfs_mount_options (guestfs_h *g,\n"
32401 "                        const char *options,\n"
32402 "                        const char *device,\n"
32403 "                        const char *mountpoint);\n"
32404 "\n"
32405 msgstr ""
32406
32407 #. type: textblock
32408 #: ../src/guestfs-actions.pod:5474
32409 msgid ""
32410 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32411 "the mount options as for the L<mount(8)> I<-o> flag."
32412 msgstr ""
32413
32414 #. type: textblock
32415 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
32416 #: ../src/guestfs-actions.pod:5515
32417 msgid "(Added in 1.0.10)"
32418 msgstr "(Додано у 1.0.10)"
32419
32420 #. type: =head2
32421 #: ../src/guestfs-actions.pod:5486
32422 msgid "guestfs_mount_ro"
32423 msgstr ""
32424
32425 #. type: verbatim
32426 #: ../src/guestfs-actions.pod:5488
32427 #, no-wrap
32428 msgid ""
32429 " int\n"
32430 " guestfs_mount_ro (guestfs_h *g,\n"
32431 "                   const char *device,\n"
32432 "                   const char *mountpoint);\n"
32433 "\n"
32434 msgstr ""
32435
32436 #. type: textblock
32437 #: ../src/guestfs-actions.pod:5493
32438 msgid ""
32439 "This is the same as the C<guestfs_mount> command, but it mounts the "
32440 "filesystem with the read-only (I<-o ro>) flag."
32441 msgstr ""
32442
32443 #. type: =head2
32444 #: ../src/guestfs-actions.pod:5500
32445 msgid "guestfs_mount_vfs"
32446 msgstr ""
32447
32448 #. type: verbatim
32449 #: ../src/guestfs-actions.pod:5502
32450 #, no-wrap
32451 msgid ""
32452 " int\n"
32453 " guestfs_mount_vfs (guestfs_h *g,\n"
32454 "                    const char *options,\n"
32455 "                    const char *vfstype,\n"
32456 "                    const char *device,\n"
32457 "                    const char *mountpoint);\n"
32458 "\n"
32459 msgstr ""
32460
32461 #. type: textblock
32462 #: ../src/guestfs-actions.pod:5509
32463 msgid ""
32464 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32465 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32466 "t> flags."
32467 msgstr ""
32468
32469 #. type: =head2
32470 #: ../src/guestfs-actions.pod:5517
32471 msgid "guestfs_mountpoints"
32472 msgstr ""
32473
32474 #. type: verbatim
32475 #: ../src/guestfs-actions.pod:5519
32476 #, no-wrap
32477 msgid ""
32478 " char **\n"
32479 " guestfs_mountpoints (guestfs_h *g);\n"
32480 "\n"
32481 msgstr ""
32482
32483 #. type: textblock
32484 #: ../src/guestfs-actions.pod:5522
32485 msgid ""
32486 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
32487 "devices.  This one returns a hash table (map) of device name to directory "
32488 "where the device is mounted."
32489 msgstr ""
32490
32491 #. type: =head2
32492 #: ../src/guestfs-actions.pod:5534
32493 msgid "guestfs_mounts"
32494 msgstr ""
32495
32496 #. type: verbatim
32497 #: ../src/guestfs-actions.pod:5536
32498 #, no-wrap
32499 msgid ""
32500 " char **\n"
32501 " guestfs_mounts (guestfs_h *g);\n"
32502 "\n"
32503 msgstr ""
32504
32505 #. type: textblock
32506 #: ../src/guestfs-actions.pod:5544
32507 msgid "See also: C<guestfs_mountpoints>"
32508 msgstr ""
32509
32510 #. type: =head2
32511 #: ../src/guestfs-actions.pod:5552
32512 msgid "guestfs_mv"
32513 msgstr ""
32514
32515 #. type: verbatim
32516 #: ../src/guestfs-actions.pod:5554
32517 #, no-wrap
32518 msgid ""
32519 " int\n"
32520 " guestfs_mv (guestfs_h *g,\n"
32521 "             const char *src,\n"
32522 "             const char *dest);\n"
32523 "\n"
32524 msgstr ""
32525
32526 #. type: =head2
32527 #: ../src/guestfs-actions.pod:5566
32528 msgid "guestfs_ntfs_3g_probe"
32529 msgstr ""
32530
32531 #. type: verbatim
32532 #: ../src/guestfs-actions.pod:5568
32533 #, no-wrap
32534 msgid ""
32535 " int\n"
32536 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32537 "                        int rw,\n"
32538 "                        const char *device);\n"
32539 "\n"
32540 msgstr ""
32541
32542 #. type: textblock
32543 #: ../src/guestfs-actions.pod:5587
32544 msgid "(Added in 1.0.43)"
32545 msgstr "(Додано у 1.0.43)"
32546
32547 #. type: =head2
32548 #: ../src/guestfs-actions.pod:5589
32549 msgid "guestfs_ntfsresize"
32550 msgstr ""
32551
32552 #. type: verbatim
32553 #: ../src/guestfs-actions.pod:5591
32554 #, no-wrap
32555 msgid ""
32556 " int\n"
32557 " guestfs_ntfsresize (guestfs_h *g,\n"
32558 "                     const char *device);\n"
32559 "\n"
32560 msgstr ""
32561
32562 #. type: textblock
32563 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
32564 msgid ""
32565 "I<This function is deprecated.> In new code, use the L</"
32566 "guestfs_ntfsresize_opts> call instead."
32567 msgstr ""
32568
32569 #. type: =head2
32570 #: ../src/guestfs-actions.pod:5619
32571 msgid "guestfs_ntfsresize_opts"
32572 msgstr ""
32573
32574 #. type: verbatim
32575 #: ../src/guestfs-actions.pod:5621
32576 #, no-wrap
32577 msgid ""
32578 " int\n"
32579 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32580 "                          const char *device,\n"
32581 "                          ...);\n"
32582 "\n"
32583 msgstr ""
32584
32585 #. type: verbatim
32586 #: ../src/guestfs-actions.pod:5631
32587 #, no-wrap
32588 msgid ""
32589 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32590 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32591 "\n"
32592 msgstr ""
32593
32594 #. type: textblock
32595 #: ../src/guestfs-actions.pod:5651
32596 msgid ""
32597 "After the resize operation, the filesystem is always marked as requiring a "
32598 "consistency check (for safety).  You have to boot into Windows to perform "
32599 "this check and clear this condition.  If you I<don't> set the C<force> "
32600 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32601 "times on a single filesystem without booting into Windows between each "
32602 "resize."
32603 msgstr ""
32604
32605 #. type: =head2
32606 #: ../src/guestfs-actions.pod:5666
32607 msgid "guestfs_ntfsresize_opts_va"
32608 msgstr ""
32609
32610 #. type: verbatim
32611 #: ../src/guestfs-actions.pod:5668
32612 #, no-wrap
32613 msgid ""
32614 " int\n"
32615 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32616 "                             const char *device,\n"
32617 "                             va_list args);\n"
32618 "\n"
32619 msgstr ""
32620
32621 #. type: textblock
32622 #: ../src/guestfs-actions.pod:5673
32623 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32624 msgstr ""
32625
32626 #. type: =head2
32627 #: ../src/guestfs-actions.pod:5677
32628 msgid "guestfs_ntfsresize_opts_argv"
32629 msgstr ""
32630
32631 #. type: verbatim
32632 #: ../src/guestfs-actions.pod:5679
32633 #, no-wrap
32634 msgid ""
32635 " int\n"
32636 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32637 "                               const char *device,\n"
32638 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32639 "\n"
32640 msgstr ""
32641
32642 #. type: textblock
32643 #: ../src/guestfs-actions.pod:5684
32644 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32645 msgstr ""
32646
32647 #. type: =head2
32648 #: ../src/guestfs-actions.pod:5688
32649 msgid "guestfs_ntfsresize_size"
32650 msgstr ""
32651
32652 #. type: verbatim
32653 #: ../src/guestfs-actions.pod:5690
32654 #, no-wrap
32655 msgid ""
32656 " int\n"
32657 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32658 "                          const char *device,\n"
32659 "                          int64_t size);\n"
32660 "\n"
32661 msgstr ""
32662
32663 #. type: textblock
32664 #: ../src/guestfs-actions.pod:5702
32665 msgid ""
32666 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32667 "to specify the new size (in bytes) explicitly."
32668 msgstr ""
32669
32670 #. type: textblock
32671 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
32672 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
32673 #: ../src/guestfs-actions.pod:8134
32674 msgid "(Added in 1.3.14)"
32675 msgstr "(Додано у 1.3.14)"
32676
32677 #. type: =head2
32678 #: ../src/guestfs-actions.pod:5709
32679 msgid "guestfs_part_add"
32680 msgstr ""
32681
32682 #. type: verbatim
32683 #: ../src/guestfs-actions.pod:5711
32684 #, no-wrap
32685 msgid ""
32686 " int\n"
32687 " guestfs_part_add (guestfs_h *g,\n"
32688 "                   const char *device,\n"
32689 "                   const char *prlogex,\n"
32690 "                   int64_t startsect,\n"
32691 "                   int64_t endsect);\n"
32692 "\n"
32693 msgstr ""
32694
32695 #. type: textblock
32696 #: ../src/guestfs-actions.pod:5718
32697 msgid ""
32698 "This command adds a partition to C<device>.  If there is no partition table "
32699 "on the device, call C<guestfs_part_init> first."
32700 msgstr ""
32701
32702 #. type: textblock
32703 #: ../src/guestfs-actions.pod:5730
32704 msgid ""
32705 "Creating a partition which covers the whole disk is not so easy.  Use "
32706 "C<guestfs_part_disk> to do that."
32707 msgstr ""
32708
32709 #. type: textblock
32710 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
32711 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
32712 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
32713 #: ../src/guestfs-actions.pod:6004
32714 msgid "(Added in 1.0.78)"
32715 msgstr "(Додано у 1.0.78)"
32716
32717 #. type: =head2
32718 #: ../src/guestfs-actions.pod:5737
32719 msgid "guestfs_part_del"
32720 msgstr ""
32721
32722 #. type: verbatim
32723 #: ../src/guestfs-actions.pod:5739
32724 #, no-wrap
32725 msgid ""
32726 " int\n"
32727 " guestfs_part_del (guestfs_h *g,\n"
32728 "                   const char *device,\n"
32729 "                   int partnum);\n"
32730 "\n"
32731 msgstr ""
32732
32733 #. type: =head2
32734 #: ../src/guestfs-actions.pod:5754
32735 msgid "guestfs_part_disk"
32736 msgstr ""
32737
32738 #. type: verbatim
32739 #: ../src/guestfs-actions.pod:5756
32740 #, no-wrap
32741 msgid ""
32742 " int\n"
32743 " guestfs_part_disk (guestfs_h *g,\n"
32744 "                    const char *device,\n"
32745 "                    const char *parttype);\n"
32746 "\n"
32747 msgstr ""
32748
32749 #. type: textblock
32750 #: ../src/guestfs-actions.pod:5761
32751 msgid ""
32752 "This command is simply a combination of C<guestfs_part_init> followed by "
32753 "C<guestfs_part_add> to create a single primary partition covering the whole "
32754 "disk."
32755 msgstr ""
32756
32757 #. type: textblock
32758 #: ../src/guestfs-actions.pod:5765
32759 msgid ""
32760 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32761 "possible values are described in C<guestfs_part_init>."
32762 msgstr ""
32763
32764 #. type: =head2
32765 #: ../src/guestfs-actions.pod:5772
32766 msgid "guestfs_part_get_bootable"
32767 msgstr ""
32768
32769 #. type: verbatim
32770 #: ../src/guestfs-actions.pod:5774
32771 #, no-wrap
32772 msgid ""
32773 " int\n"
32774 " guestfs_part_get_bootable (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:5782
32782 msgid "See also C<guestfs_part_set_bootable>."
32783 msgstr ""
32784
32785 #. type: =head2
32786 #: ../src/guestfs-actions.pod:5788
32787 msgid "guestfs_part_get_mbr_id"
32788 msgstr ""
32789
32790 #. type: verbatim
32791 #: ../src/guestfs-actions.pod:5790
32792 #, no-wrap
32793 msgid ""
32794 " int\n"
32795 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32796 "                          const char *device,\n"
32797 "                          int partnum);\n"
32798 "\n"
32799 msgstr ""
32800
32801 #. type: textblock
32802 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
32803 msgid ""
32804 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32805 "undefined results for other partition table types (see "
32806 "C<guestfs_part_get_parttype>)."
32807 msgstr ""
32808
32809 #. type: =head2
32810 #: ../src/guestfs-actions.pod:5806
32811 msgid "guestfs_part_get_parttype"
32812 msgstr ""
32813
32814 #. type: verbatim
32815 #: ../src/guestfs-actions.pod:5808
32816 #, no-wrap
32817 msgid ""
32818 " char *\n"
32819 " guestfs_part_get_parttype (guestfs_h *g,\n"
32820 "                            const char *device);\n"
32821 "\n"
32822 msgstr ""
32823
32824 #. type: textblock
32825 #: ../src/guestfs-actions.pod:5815
32826 msgid ""
32827 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32828 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32829 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32830 msgstr ""
32831
32832 #. type: =head2
32833 #: ../src/guestfs-actions.pod:5825
32834 msgid "guestfs_part_init"
32835 msgstr ""
32836
32837 #. type: verbatim
32838 #: ../src/guestfs-actions.pod:5827
32839 #, no-wrap
32840 msgid ""
32841 " int\n"
32842 " guestfs_part_init (guestfs_h *g,\n"
32843 "                    const char *device,\n"
32844 "                    const char *parttype);\n"
32845 "\n"
32846 msgstr ""
32847
32848 #. type: textblock
32849 #: ../src/guestfs-actions.pod:5836
32850 msgid ""
32851 "Initially there are no partitions.  Following this, you should call "
32852 "C<guestfs_part_add> for each partition required."
32853 msgstr ""
32854
32855 #. type: =head2
32856 #: ../src/guestfs-actions.pod:5909
32857 msgid "guestfs_part_list"
32858 msgstr "guestfs_part_list"
32859
32860 #. type: verbatim
32861 #: ../src/guestfs-actions.pod:5911
32862 #, no-wrap
32863 msgid ""
32864 " struct guestfs_partition_list *\n"
32865 " guestfs_part_list (guestfs_h *g,\n"
32866 "                    const char *device);\n"
32867 "\n"
32868 msgstr ""
32869 " struct guestfs_partition_list *\n"
32870 " guestfs_part_list (guestfs_h *g,\n"
32871 "                    const char *device);\n"
32872 "\n"
32873
32874 #. type: textblock
32875 #: ../src/guestfs-actions.pod:5928
32876 msgid ""
32877 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32878 "the device's sector size, see C<guestfs_blockdev_getss>."
32879 msgstr ""
32880
32881 #. type: textblock
32882 #: ../src/guestfs-actions.pod:5941
32883 msgid ""
32884 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32885 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32886 "use>."
32887 msgstr ""
32888
32889 #. type: =head2
32890 #: ../src/guestfs-actions.pod:5947
32891 msgid "guestfs_part_set_bootable"
32892 msgstr ""
32893
32894 #. type: verbatim
32895 #: ../src/guestfs-actions.pod:5949
32896 #, no-wrap
32897 msgid ""
32898 " int\n"
32899 " guestfs_part_set_bootable (guestfs_h *g,\n"
32900 "                            const char *device,\n"
32901 "                            int partnum,\n"
32902 "                            int bootable);\n"
32903 "\n"
32904 msgstr ""
32905
32906 #. type: =head2
32907 #: ../src/guestfs-actions.pod:5966
32908 msgid "guestfs_part_set_mbr_id"
32909 msgstr ""
32910
32911 #. type: verbatim
32912 #: ../src/guestfs-actions.pod:5968
32913 #, no-wrap
32914 msgid ""
32915 " int\n"
32916 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32917 "                          const char *device,\n"
32918 "                          int partnum,\n"
32919 "                          int idbyte);\n"
32920 "\n"
32921 msgstr ""
32922
32923 #. type: =head2
32924 #: ../src/guestfs-actions.pod:5988
32925 msgid "guestfs_part_set_name"
32926 msgstr ""
32927
32928 #. type: verbatim
32929 #: ../src/guestfs-actions.pod:5990
32930 #, no-wrap
32931 msgid ""
32932 " int\n"
32933 " guestfs_part_set_name (guestfs_h *g,\n"
32934 "                        const char *device,\n"
32935 "                        int partnum,\n"
32936 "                        const char *name);\n"
32937 "\n"
32938 msgstr ""
32939
32940 #. type: =head2
32941 #: ../src/guestfs-actions.pod:6006
32942 msgid "guestfs_part_to_dev"
32943 msgstr ""
32944
32945 #. type: verbatim
32946 #: ../src/guestfs-actions.pod:6008
32947 #, no-wrap
32948 msgid ""
32949 " char *\n"
32950 " guestfs_part_to_dev (guestfs_h *g,\n"
32951 "                      const char *partition);\n"
32952 "\n"
32953 msgstr ""
32954
32955 #. type: textblock
32956 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
32957 msgid ""
32958 "The named partition must exist, for example as a string returned from "
32959 "C<guestfs_list_partitions>."
32960 msgstr ""
32961
32962 #. type: textblock
32963 #: ../src/guestfs-actions.pod:6019
32964 msgid "See also C<guestfs_part_to_partnum>."
32965 msgstr ""
32966
32967 #. type: =head2
32968 #: ../src/guestfs-actions.pod:6026
32969 msgid "guestfs_part_to_partnum"
32970 msgstr ""
32971
32972 #. type: verbatim
32973 #: ../src/guestfs-actions.pod:6028
32974 #, no-wrap
32975 msgid ""
32976 " int\n"
32977 " guestfs_part_to_partnum (guestfs_h *g,\n"
32978 "                          const char *partition);\n"
32979 "\n"
32980 msgstr ""
32981
32982 #. type: textblock
32983 #: ../src/guestfs-actions.pod:6038
32984 msgid "See also C<guestfs_part_to_dev>."
32985 msgstr ""
32986
32987 #. type: =head2
32988 #: ../src/guestfs-actions.pod:6044
32989 msgid "guestfs_ping_daemon"
32990 msgstr ""
32991
32992 #. type: verbatim
32993 #: ../src/guestfs-actions.pod:6046
32994 #, no-wrap
32995 msgid ""
32996 " int\n"
32997 " guestfs_ping_daemon (guestfs_h *g);\n"
32998 "\n"
32999 msgstr ""
33000
33001 #. type: =head2
33002 #: ../src/guestfs-actions.pod:6058
33003 msgid "guestfs_pread"
33004 msgstr ""
33005
33006 #. type: verbatim
33007 #: ../src/guestfs-actions.pod:6060
33008 #, no-wrap
33009 msgid ""
33010 " char *\n"
33011 " guestfs_pread (guestfs_h *g,\n"
33012 "                const char *path,\n"
33013 "                int count,\n"
33014 "                int64_t offset,\n"
33015 "                size_t *size_r);\n"
33016 "\n"
33017 msgstr ""
33018
33019 #. type: textblock
33020 #: ../src/guestfs-actions.pod:6073
33021 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
33022 msgstr ""
33023
33024 #. type: =head2
33025 #: ../src/guestfs-actions.pod:6084
33026 msgid "guestfs_pread_device"
33027 msgstr ""
33028
33029 #. type: verbatim
33030 #: ../src/guestfs-actions.pod:6086
33031 #, no-wrap
33032 msgid ""
33033 " char *\n"
33034 " guestfs_pread_device (guestfs_h *g,\n"
33035 "                       const char *device,\n"
33036 "                       int count,\n"
33037 "                       int64_t offset,\n"
33038 "                       size_t *size_r);\n"
33039 "\n"
33040 msgstr ""
33041
33042 #. type: textblock
33043 #: ../src/guestfs-actions.pod:6099
33044 msgid "See also C<guestfs_pread>."
33045 msgstr ""
33046
33047 #. type: textblock
33048 #: ../src/guestfs-actions.pod:6108
33049 msgid "(Added in 1.5.21)"
33050 msgstr "(Додано у 1.5.21)"
33051
33052 #. type: =head2
33053 #: ../src/guestfs-actions.pod:6110
33054 msgid "guestfs_pvcreate"
33055 msgstr ""
33056
33057 #. type: verbatim
33058 #: ../src/guestfs-actions.pod:6112
33059 #, no-wrap
33060 msgid ""
33061 " int\n"
33062 " guestfs_pvcreate (guestfs_h *g,\n"
33063 "                   const char *device);\n"
33064 "\n"
33065 msgstr ""
33066
33067 #. type: =head2
33068 #: ../src/guestfs-actions.pod:6124
33069 msgid "guestfs_pvremove"
33070 msgstr ""
33071
33072 #. type: verbatim
33073 #: ../src/guestfs-actions.pod:6126
33074 #, no-wrap
33075 msgid ""
33076 " int\n"
33077 " guestfs_pvremove (guestfs_h *g,\n"
33078 "                   const char *device);\n"
33079 "\n"
33080 msgstr ""
33081
33082 #. type: =head2
33083 #: ../src/guestfs-actions.pod:6141
33084 msgid "guestfs_pvresize"
33085 msgstr ""
33086
33087 #. type: verbatim
33088 #: ../src/guestfs-actions.pod:6143
33089 #, no-wrap
33090 msgid ""
33091 " int\n"
33092 " guestfs_pvresize (guestfs_h *g,\n"
33093 "                   const char *device);\n"
33094 "\n"
33095 msgstr ""
33096
33097 #. type: =head2
33098 #: ../src/guestfs-actions.pod:6154
33099 msgid "guestfs_pvresize_size"
33100 msgstr ""
33101
33102 #. type: verbatim
33103 #: ../src/guestfs-actions.pod:6156
33104 #, no-wrap
33105 msgid ""
33106 " int\n"
33107 " guestfs_pvresize_size (guestfs_h *g,\n"
33108 "                        const char *device,\n"
33109 "                        int64_t size);\n"
33110 "\n"
33111 msgstr ""
33112
33113 #. type: textblock
33114 #: ../src/guestfs-actions.pod:6161
33115 msgid ""
33116 "This command is the same as C<guestfs_pvresize> except that it allows you to "
33117 "specify the new size (in bytes) explicitly."
33118 msgstr ""
33119
33120 #. type: =head2
33121 #: ../src/guestfs-actions.pod:6168
33122 msgid "guestfs_pvs"
33123 msgstr ""
33124
33125 #. type: verbatim
33126 #: ../src/guestfs-actions.pod:6170
33127 #, no-wrap
33128 msgid ""
33129 " char **\n"
33130 " guestfs_pvs (guestfs_h *g);\n"
33131 "\n"
33132 msgstr ""
33133
33134 #. type: textblock
33135 #: ../src/guestfs-actions.pod:6179
33136 msgid "See also C<guestfs_pvs_full>."
33137 msgstr ""
33138
33139 #. type: =head2
33140 #: ../src/guestfs-actions.pod:6187
33141 msgid "guestfs_pvs_full"
33142 msgstr ""
33143
33144 #. type: verbatim
33145 #: ../src/guestfs-actions.pod:6189
33146 #, no-wrap
33147 msgid ""
33148 " struct guestfs_lvm_pv_list *\n"
33149 " guestfs_pvs_full (guestfs_h *g);\n"
33150 "\n"
33151 msgstr ""
33152
33153 #. type: textblock
33154 #: ../src/guestfs-actions.pod:6195
33155 msgid ""
33156 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
33157 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
33158 msgstr ""
33159
33160 #. type: =head2
33161 #: ../src/guestfs-actions.pod:6201
33162 msgid "guestfs_pvuuid"
33163 msgstr ""
33164
33165 #. type: verbatim
33166 #: ../src/guestfs-actions.pod:6203
33167 #, no-wrap
33168 msgid ""
33169 " char *\n"
33170 " guestfs_pvuuid (guestfs_h *g,\n"
33171 "                 const char *device);\n"
33172 "\n"
33173 msgstr ""
33174
33175 #. type: =head2
33176 #: ../src/guestfs-actions.pod:6214
33177 msgid "guestfs_pwrite"
33178 msgstr ""
33179
33180 #. type: verbatim
33181 #: ../src/guestfs-actions.pod:6216
33182 #, no-wrap
33183 msgid ""
33184 " int\n"
33185 " guestfs_pwrite (guestfs_h *g,\n"
33186 "                 const char *path,\n"
33187 "                 const char *content,\n"
33188 "                 size_t content_size,\n"
33189 "                 int64_t offset);\n"
33190 "\n"
33191 msgstr ""
33192
33193 #. type: textblock
33194 #: ../src/guestfs-actions.pod:6232
33195 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
33196 msgstr ""
33197
33198 #. type: =head2
33199 #: ../src/guestfs-actions.pod:6241
33200 msgid "guestfs_pwrite_device"
33201 msgstr ""
33202
33203 #. type: verbatim
33204 #: ../src/guestfs-actions.pod:6243
33205 #, no-wrap
33206 msgid ""
33207 " int\n"
33208 " guestfs_pwrite_device (guestfs_h *g,\n"
33209 "                        const char *device,\n"
33210 "                        const char *content,\n"
33211 "                        size_t content_size,\n"
33212 "                        int64_t offset);\n"
33213 "\n"
33214 msgstr ""
33215
33216 #. type: textblock
33217 #: ../src/guestfs-actions.pod:6258
33218 msgid "See also C<guestfs_pwrite>."
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs-actions.pod:6265
33223 msgid "(Added in 1.5.20)"
33224 msgstr "(Додано у 1.5.20)"
33225
33226 #. type: =head2
33227 #: ../src/guestfs-actions.pod:6267
33228 msgid "guestfs_read_file"
33229 msgstr ""
33230
33231 #. type: verbatim
33232 #: ../src/guestfs-actions.pod:6269
33233 #, no-wrap
33234 msgid ""
33235 " char *\n"
33236 " guestfs_read_file (guestfs_h *g,\n"
33237 "                    const char *path,\n"
33238 "                    size_t *size_r);\n"
33239 "\n"
33240 msgstr ""
33241
33242 #. type: textblock
33243 #: ../src/guestfs-actions.pod:6277
33244 msgid ""
33245 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
33246 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
33247 "function is limited in the total size of file that can be handled."
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs-actions.pod:6289
33252 msgid "(Added in 1.0.63)"
33253 msgstr "(Додано у 1.0.63)"
33254
33255 #. type: =head2
33256 #: ../src/guestfs-actions.pod:6291
33257 msgid "guestfs_read_lines"
33258 msgstr ""
33259
33260 #. type: verbatim
33261 #: ../src/guestfs-actions.pod:6293
33262 #, no-wrap
33263 msgid ""
33264 " char **\n"
33265 " guestfs_read_lines (guestfs_h *g,\n"
33266 "                     const char *path);\n"
33267 "\n"
33268 msgstr ""
33269
33270 #. type: textblock
33271 #: ../src/guestfs-actions.pod:6302
33272 msgid ""
33273 "Note that this function cannot correctly handle binary files (specifically, "
33274 "files containing C<\\0> character which is treated as end of line).  For "
33275 "those you need to use the C<guestfs_read_file> function which has a more "
33276 "complex interface."
33277 msgstr ""
33278
33279 #. type: =head2
33280 #: ../src/guestfs-actions.pod:6313
33281 msgid "guestfs_readdir"
33282 msgstr ""
33283
33284 #. type: verbatim
33285 #: ../src/guestfs-actions.pod:6315
33286 #, no-wrap
33287 msgid ""
33288 " struct guestfs_dirent_list *\n"
33289 " guestfs_readdir (guestfs_h *g,\n"
33290 "                  const char *dir);\n"
33291 "\n"
33292 msgstr ""
33293
33294 #. type: textblock
33295 #: ../src/guestfs-actions.pod:6369
33296 msgid ""
33297 "This function is primarily intended for use by programs.  To get a simple "
33298 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
33299 "consumption, use C<guestfs_ll>."
33300 msgstr ""
33301
33302 #. type: textblock
33303 #: ../src/guestfs-actions.pod:6373
33304 msgid ""
33305 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
33306 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
33307 msgstr ""
33308
33309 #. type: =head2
33310 #: ../src/guestfs-actions.pod:6379
33311 msgid "guestfs_readlink"
33312 msgstr ""
33313
33314 #. type: verbatim
33315 #: ../src/guestfs-actions.pod:6381
33316 #, no-wrap
33317 msgid ""
33318 " char *\n"
33319 " guestfs_readlink (guestfs_h *g,\n"
33320 "                   const char *path);\n"
33321 "\n"
33322 msgstr ""
33323
33324 #. type: =head2
33325 #: ../src/guestfs-actions.pod:6392
33326 msgid "guestfs_readlinklist"
33327 msgstr ""
33328
33329 #. type: verbatim
33330 #: ../src/guestfs-actions.pod:6394
33331 #, no-wrap
33332 msgid ""
33333 " char **\n"
33334 " guestfs_readlinklist (guestfs_h *g,\n"
33335 "                       const char *path,\n"
33336 "                       char *const *names);\n"
33337 "\n"
33338 msgstr ""
33339
33340 #. type: =head2
33341 #: ../src/guestfs-actions.pod:6427
33342 msgid "guestfs_realpath"
33343 msgstr ""
33344
33345 #. type: verbatim
33346 #: ../src/guestfs-actions.pod:6429
33347 #, no-wrap
33348 msgid ""
33349 " char *\n"
33350 " guestfs_realpath (guestfs_h *g,\n"
33351 "                   const char *path);\n"
33352 "\n"
33353 msgstr ""
33354
33355 #. type: =head2
33356 #: ../src/guestfs-actions.pod:6441
33357 msgid "guestfs_removexattr"
33358 msgstr ""
33359
33360 #. type: verbatim
33361 #: ../src/guestfs-actions.pod:6443
33362 #, no-wrap
33363 msgid ""
33364 " int\n"
33365 " guestfs_removexattr (guestfs_h *g,\n"
33366 "                      const char *xattr,\n"
33367 "                      const char *path);\n"
33368 "\n"
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs-actions.pod:6451
33373 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
33374 msgstr ""
33375
33376 #. type: =head2
33377 #: ../src/guestfs-actions.pod:6457
33378 msgid "guestfs_resize2fs"
33379 msgstr ""
33380
33381 #. type: verbatim
33382 #: ../src/guestfs-actions.pod:6459
33383 #, no-wrap
33384 msgid ""
33385 " int\n"
33386 " guestfs_resize2fs (guestfs_h *g,\n"
33387 "                    const char *device);\n"
33388 "\n"
33389 msgstr ""
33390
33391 #. type: textblock
33392 #: ../src/guestfs-actions.pod:6466
33393 msgid ""
33394 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
33395 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
33396 "sometimes gives an error about this and sometimes not.  In any case, it is "
33397 "always safe to call C<guestfs_e2fsck_f> before calling this function."
33398 msgstr ""
33399
33400 #. type: =head2
33401 #: ../src/guestfs-actions.pod:6476
33402 msgid "guestfs_resize2fs_M"
33403 msgstr ""
33404
33405 #. type: verbatim
33406 #: ../src/guestfs-actions.pod:6478
33407 #, no-wrap
33408 msgid ""
33409 " int\n"
33410 " guestfs_resize2fs_M (guestfs_h *g,\n"
33411 "                      const char *device);\n"
33412 "\n"
33413 msgstr ""
33414
33415 #. type: textblock
33416 #: ../src/guestfs-actions.pod:6482
33417 msgid ""
33418 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
33419 "resized to its minimum size.  This works like the I<-M> option to the "
33420 "C<resize2fs> command."
33421 msgstr ""
33422
33423 #. type: textblock
33424 #: ../src/guestfs-actions.pod:6486
33425 msgid ""
33426 "To get the resulting size of the filesystem you should call "
33427 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
33428 "These two numbers, multiplied together, give the resulting size of the "
33429 "minimal filesystem in bytes."
33430 msgstr ""
33431
33432 #. type: =head2
33433 #: ../src/guestfs-actions.pod:6495
33434 msgid "guestfs_resize2fs_size"
33435 msgstr ""
33436
33437 #. type: verbatim
33438 #: ../src/guestfs-actions.pod:6497
33439 #, no-wrap
33440 msgid ""
33441 " int\n"
33442 " guestfs_resize2fs_size (guestfs_h *g,\n"
33443 "                         const char *device,\n"
33444 "                         int64_t size);\n"
33445 "\n"
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs-actions.pod:6502
33450 msgid ""
33451 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33452 "to specify the new size (in bytes) explicitly."
33453 msgstr ""
33454
33455 #. type: =head2
33456 #: ../src/guestfs-actions.pod:6509
33457 msgid "guestfs_rm"
33458 msgstr ""
33459
33460 #. type: verbatim
33461 #: ../src/guestfs-actions.pod:6511
33462 #, no-wrap
33463 msgid ""
33464 " int\n"
33465 " guestfs_rm (guestfs_h *g,\n"
33466 "             const char *path);\n"
33467 "\n"
33468 msgstr ""
33469
33470 #. type: =head2
33471 #: ../src/guestfs-actions.pod:6521
33472 msgid "guestfs_rm_rf"
33473 msgstr ""
33474
33475 #. type: verbatim
33476 #: ../src/guestfs-actions.pod:6523
33477 #, no-wrap
33478 msgid ""
33479 " int\n"
33480 " guestfs_rm_rf (guestfs_h *g,\n"
33481 "                const char *path);\n"
33482 "\n"
33483 msgstr ""
33484
33485 #. type: =head2
33486 #: ../src/guestfs-actions.pod:6535
33487 msgid "guestfs_rmdir"
33488 msgstr ""
33489
33490 #. type: verbatim
33491 #: ../src/guestfs-actions.pod:6537
33492 #, no-wrap
33493 msgid ""
33494 " int\n"
33495 " guestfs_rmdir (guestfs_h *g,\n"
33496 "                const char *path);\n"
33497 "\n"
33498 msgstr ""
33499
33500 #. type: =head2
33501 #: ../src/guestfs-actions.pod:6547
33502 msgid "guestfs_rmmountpoint"
33503 msgstr ""
33504
33505 #. type: verbatim
33506 #: ../src/guestfs-actions.pod:6549
33507 #, no-wrap
33508 msgid ""
33509 " int\n"
33510 " guestfs_rmmountpoint (guestfs_h *g,\n"
33511 "                       const char *exemptpath);\n"
33512 "\n"
33513 msgstr ""
33514
33515 #. type: textblock
33516 #: ../src/guestfs-actions.pod:6553
33517 msgid ""
33518 "This calls removes a mountpoint that was previously created with "
33519 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
33520 msgstr ""
33521
33522 #. type: =head2
33523 #: ../src/guestfs-actions.pod:6561
33524 msgid "guestfs_scrub_device"
33525 msgstr ""
33526
33527 #. type: verbatim
33528 #: ../src/guestfs-actions.pod:6563
33529 #, no-wrap
33530 msgid ""
33531 " int\n"
33532 " guestfs_scrub_device (guestfs_h *g,\n"
33533 "                       const char *device);\n"
33534 "\n"
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
33539 #: ../src/guestfs-actions.pod:6612
33540 msgid "(Added in 1.0.52)"
33541 msgstr "(Додано у 1.0.52)"
33542
33543 #. type: =head2
33544 #: ../src/guestfs-actions.pod:6577
33545 msgid "guestfs_scrub_file"
33546 msgstr ""
33547
33548 #. type: verbatim
33549 #: ../src/guestfs-actions.pod:6579
33550 #, no-wrap
33551 msgid ""
33552 " int\n"
33553 " guestfs_scrub_file (guestfs_h *g,\n"
33554 "                     const char *file);\n"
33555 "\n"
33556 msgstr ""
33557
33558 #. type: =head2
33559 #: ../src/guestfs-actions.pod:6595
33560 msgid "guestfs_scrub_freespace"
33561 msgstr ""
33562
33563 #. type: verbatim
33564 #: ../src/guestfs-actions.pod:6597
33565 #, no-wrap
33566 msgid ""
33567 " int\n"
33568 " guestfs_scrub_freespace (guestfs_h *g,\n"
33569 "                          const char *dir);\n"
33570 "\n"
33571 msgstr ""
33572
33573 #. type: textblock
33574 #: ../src/guestfs-actions.pod:6601
33575 msgid ""
33576 "This command creates the directory C<dir> and then fills it with files until "
33577 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33578 "and deletes them.  The intention is to scrub any free space on the partition "
33579 "containing C<dir>."
33580 msgstr ""
33581
33582 #. type: =head2
33583 #: ../src/guestfs-actions.pod:6614
33584 msgid "guestfs_set_append"
33585 msgstr ""
33586
33587 #. type: verbatim
33588 #: ../src/guestfs-actions.pod:6616
33589 #, no-wrap
33590 msgid ""
33591 " int\n"
33592 " guestfs_set_append (guestfs_h *g,\n"
33593 "                     const char *append);\n"
33594 "\n"
33595 msgstr ""
33596
33597 #. type: =head2
33598 #: ../src/guestfs-actions.pod:6633
33599 msgid "guestfs_set_attach_method"
33600 msgstr ""
33601
33602 #. type: verbatim
33603 #: ../src/guestfs-actions.pod:6635
33604 #, no-wrap
33605 msgid ""
33606 " int\n"
33607 " guestfs_set_attach_method (guestfs_h *g,\n"
33608 "                            const char *attachmethod);\n"
33609 "\n"
33610 msgstr ""
33611
33612 #. type: =head2
33613 #: ../src/guestfs-actions.pod:6663
33614 msgid "guestfs_set_autosync"
33615 msgstr ""
33616
33617 #. type: verbatim
33618 #: ../src/guestfs-actions.pod:6665
33619 #, no-wrap
33620 msgid ""
33621 " int\n"
33622 " guestfs_set_autosync (guestfs_h *g,\n"
33623 "                       int autosync);\n"
33624 "\n"
33625 msgstr ""
33626
33627 #. type: =head2
33628 #: ../src/guestfs-actions.pod:6681
33629 msgid "guestfs_set_direct"
33630 msgstr ""
33631
33632 #. type: verbatim
33633 #: ../src/guestfs-actions.pod:6683
33634 #, no-wrap
33635 msgid ""
33636 " int\n"
33637 " guestfs_set_direct (guestfs_h *g,\n"
33638 "                     int direct);\n"
33639 "\n"
33640 msgstr ""
33641
33642 #. type: textblock
33643 #: ../src/guestfs-actions.pod:6691
33644 msgid ""
33645 "One consequence of this is that log messages aren't caught by the library "
33646 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33647 "stdout."
33648 msgstr ""
33649
33650 #. type: =head2
33651 #: ../src/guestfs-actions.pod:6704
33652 msgid "guestfs_set_e2label"
33653 msgstr ""
33654
33655 #. type: verbatim
33656 #: ../src/guestfs-actions.pod:6706
33657 #, no-wrap
33658 msgid ""
33659 " int\n"
33660 " guestfs_set_e2label (guestfs_h *g,\n"
33661 "                      const char *device,\n"
33662 "                      const char *label);\n"
33663 "\n"
33664 msgstr ""
33665
33666 #. type: textblock
33667 #: ../src/guestfs-actions.pod:6715
33668 msgid ""
33669 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33670 "the existing label on a filesystem."
33671 msgstr ""
33672
33673 #. type: =head2
33674 #: ../src/guestfs-actions.pod:6722
33675 msgid "guestfs_set_e2uuid"
33676 msgstr ""
33677
33678 #. type: verbatim
33679 #: ../src/guestfs-actions.pod:6724
33680 #, no-wrap
33681 msgid ""
33682 " int\n"
33683 " guestfs_set_e2uuid (guestfs_h *g,\n"
33684 "                     const char *device,\n"
33685 "                     const char *uuid);\n"
33686 "\n"
33687 msgstr ""
33688
33689 #. type: textblock
33690 #: ../src/guestfs-actions.pod:6734
33691 msgid ""
33692 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33693 "the existing UUID of a filesystem."
33694 msgstr ""
33695
33696 #. type: =head2
33697 #: ../src/guestfs-actions.pod:6741
33698 msgid "guestfs_set_memsize"
33699 msgstr ""
33700
33701 #. type: verbatim
33702 #: ../src/guestfs-actions.pod:6743
33703 #, no-wrap
33704 msgid ""
33705 " int\n"
33706 " guestfs_set_memsize (guestfs_h *g,\n"
33707 "                      int memsize);\n"
33708 "\n"
33709 msgstr ""
33710
33711 #. type: textblock
33712 #: ../src/guestfs-actions.pod:6747
33713 msgid ""
33714 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33715 "This only has any effect if called before C<guestfs_launch>."
33716 msgstr ""
33717
33718 #. type: =head2
33719 #: ../src/guestfs-actions.pod:6762
33720 msgid "guestfs_set_network"
33721 msgstr ""
33722
33723 #. type: verbatim
33724 #: ../src/guestfs-actions.pod:6764
33725 #, no-wrap
33726 msgid ""
33727 " int\n"
33728 " guestfs_set_network (guestfs_h *g,\n"
33729 "                      int network);\n"
33730 "\n"
33731 msgstr ""
33732
33733 #. type: textblock
33734 #: ../src/guestfs-actions.pod:6774
33735 msgid ""
33736 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33737 "effect."
33738 msgstr ""
33739
33740 #. type: =head2
33741 #: ../src/guestfs-actions.pod:6781
33742 msgid "guestfs_set_path"
33743 msgstr ""
33744
33745 #. type: verbatim
33746 #: ../src/guestfs-actions.pod:6783
33747 #, no-wrap
33748 msgid ""
33749 " int\n"
33750 " guestfs_set_path (guestfs_h *g,\n"
33751 "                   const char *searchpath);\n"
33752 "\n"
33753 msgstr ""
33754
33755 #. type: =head2
33756 #: ../src/guestfs-actions.pod:6798
33757 msgid "guestfs_set_pgroup"
33758 msgstr ""
33759
33760 #. type: verbatim
33761 #: ../src/guestfs-actions.pod:6800
33762 #, no-wrap
33763 msgid ""
33764 " int\n"
33765 " guestfs_set_pgroup (guestfs_h *g,\n"
33766 "                     int pgroup);\n"
33767 "\n"
33768 msgstr ""
33769
33770 #. type: =head2
33771 #: ../src/guestfs-actions.pod:6817
33772 msgid "guestfs_set_qemu"
33773 msgstr ""
33774
33775 #. type: verbatim
33776 #: ../src/guestfs-actions.pod:6819
33777 #, no-wrap
33778 msgid ""
33779 " int\n"
33780 " guestfs_set_qemu (guestfs_h *g,\n"
33781 "                   const char *qemu);\n"
33782 "\n"
33783 msgstr ""
33784
33785 #. type: =head2
33786 #: ../src/guestfs-actions.pod:6845
33787 msgid "guestfs_set_recovery_proc"
33788 msgstr ""
33789
33790 #. type: verbatim
33791 #: ../src/guestfs-actions.pod:6847
33792 #, no-wrap
33793 msgid ""
33794 " int\n"
33795 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33796 "                            int recoveryproc);\n"
33797 "\n"
33798 msgstr ""
33799
33800 #. type: textblock
33801 #: ../src/guestfs-actions.pod:6851
33802 msgid ""
33803 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33804 "not create a recovery process.  The purpose of the recovery process is to "
33805 "stop runaway qemu processes in the case where the main program aborts "
33806 "abruptly."
33807 msgstr ""
33808
33809 #. type: textblock
33810 #: ../src/guestfs-actions.pod:6856
33811 msgid ""
33812 "This only has any effect if called before C<guestfs_launch>, and the default "
33813 "is true."
33814 msgstr ""
33815
33816 #. type: =head2
33817 #: ../src/guestfs-actions.pod:6869
33818 msgid "guestfs_set_selinux"
33819 msgstr ""
33820
33821 #. type: verbatim
33822 #: ../src/guestfs-actions.pod:6871
33823 #, no-wrap
33824 msgid ""
33825 " int\n"
33826 " guestfs_set_selinux (guestfs_h *g,\n"
33827 "                      int selinux);\n"
33828 "\n"
33829 msgstr ""
33830
33831 #. type: =head2
33832 #: ../src/guestfs-actions.pod:6888
33833 msgid "guestfs_set_smp"
33834 msgstr ""
33835
33836 #. type: verbatim
33837 #: ../src/guestfs-actions.pod:6890
33838 #, no-wrap
33839 msgid ""
33840 " int\n"
33841 " guestfs_set_smp (guestfs_h *g,\n"
33842 "                  int smp);\n"
33843 "\n"
33844 msgstr ""
33845
33846 #. type: textblock
33847 #: ../src/guestfs-actions.pod:6898
33848 msgid "This function must be called before C<guestfs_launch>."
33849 msgstr ""
33850
33851 #. type: =head2
33852 #: ../src/guestfs-actions.pod:6904
33853 msgid "guestfs_set_trace"
33854 msgstr ""
33855
33856 #. type: verbatim
33857 #: ../src/guestfs-actions.pod:6906
33858 #, no-wrap
33859 msgid ""
33860 " int\n"
33861 " guestfs_set_trace (guestfs_h *g,\n"
33862 "                    int trace);\n"
33863 "\n"
33864 msgstr ""
33865
33866 #. type: textblock
33867 #: ../src/guestfs-actions.pod:6920
33868 msgid ""
33869 "Trace messages are normally sent to C<stderr>, unless you register a "
33870 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33871 msgstr ""
33872
33873 #. type: =head2
33874 #: ../src/guestfs-actions.pod:6928
33875 msgid "guestfs_set_verbose"
33876 msgstr ""
33877
33878 #. type: verbatim
33879 #: ../src/guestfs-actions.pod:6930
33880 #, no-wrap
33881 msgid ""
33882 " int\n"
33883 " guestfs_set_verbose (guestfs_h *g,\n"
33884 "                      int verbose);\n"
33885 "\n"
33886 msgstr ""
33887
33888 #. type: textblock
33889 #: ../src/guestfs-actions.pod:6939
33890 msgid ""
33891 "Verbose messages are normally sent to C<stderr>, unless you register a "
33892 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33893 msgstr ""
33894
33895 #. type: =head2
33896 #: ../src/guestfs-actions.pod:6947
33897 msgid "guestfs_setcon"
33898 msgstr ""
33899
33900 #. type: verbatim
33901 #: ../src/guestfs-actions.pod:6949
33902 #, no-wrap
33903 msgid ""
33904 " int\n"
33905 " guestfs_setcon (guestfs_h *g,\n"
33906 "                 const char *context);\n"
33907 "\n"
33908 msgstr ""
33909
33910 #. type: =head2
33911 #: ../src/guestfs-actions.pod:6962
33912 msgid "guestfs_setxattr"
33913 msgstr ""
33914
33915 #. type: verbatim
33916 #: ../src/guestfs-actions.pod:6964
33917 #, no-wrap
33918 msgid ""
33919 " int\n"
33920 " guestfs_setxattr (guestfs_h *g,\n"
33921 "                   const char *xattr,\n"
33922 "                   const char *val,\n"
33923 "                   int vallen,\n"
33924 "                   const char *path);\n"
33925 "\n"
33926 msgstr ""
33927
33928 #. type: textblock
33929 #: ../src/guestfs-actions.pod:6975
33930 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33931 msgstr ""
33932
33933 #. type: =head2
33934 #: ../src/guestfs-actions.pod:6981
33935 msgid "guestfs_sfdisk"
33936 msgstr ""
33937
33938 #. type: verbatim
33939 #: ../src/guestfs-actions.pod:6983
33940 #, no-wrap
33941 msgid ""
33942 " int\n"
33943 " guestfs_sfdisk (guestfs_h *g,\n"
33944 "                 const char *device,\n"
33945 "                 int cyls,\n"
33946 "                 int heads,\n"
33947 "                 int sectors,\n"
33948 "                 char *const *lines);\n"
33949 "\n"
33950 msgstr ""
33951
33952 #. type: textblock
33953 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
33954 #: ../src/guestfs-actions.pod:7063
33955 msgid ""
33956 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33957 "call instead."
33958 msgstr ""
33959
33960 #. type: textblock
33961 #: ../src/guestfs-actions.pod:7018
33962 msgid ""
33963 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33964 msgstr ""
33965
33966 #. type: =head2
33967 #: ../src/guestfs-actions.pod:7025
33968 msgid "guestfs_sfdiskM"
33969 msgstr ""
33970
33971 #. type: verbatim
33972 #: ../src/guestfs-actions.pod:7027
33973 #, no-wrap
33974 msgid ""
33975 " int\n"
33976 " guestfs_sfdiskM (guestfs_h *g,\n"
33977 "                  const char *device,\n"
33978 "                  char *const *lines);\n"
33979 "\n"
33980 msgstr ""
33981
33982 #. type: textblock
33983 #: ../src/guestfs-actions.pod:7039
33984 msgid ""
33985 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33986 "partition sizes are specified in megabytes only (rounded to the nearest "
33987 "cylinder) and you don't need to specify the cyls, heads and sectors "
33988 "parameters which were rarely if ever used anyway."
33989 msgstr ""
33990
33991 #. type: textblock
33992 #: ../src/guestfs-actions.pod:7045
33993 msgid ""
33994 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33995 "C<guestfs_part_disk>"
33996 msgstr ""
33997
33998 #. type: =head2
33999 #: ../src/guestfs-actions.pod:7052
34000 msgid "guestfs_sfdisk_N"
34001 msgstr ""
34002
34003 #. type: verbatim
34004 #: ../src/guestfs-actions.pod:7054
34005 #, no-wrap
34006 msgid ""
34007 " int\n"
34008 " guestfs_sfdisk_N (guestfs_h *g,\n"
34009 "                   const char *device,\n"
34010 "                   int partnum,\n"
34011 "                   int cyls,\n"
34012 "                   int heads,\n"
34013 "                   int sectors,\n"
34014 "                   const char *line);\n"
34015 "\n"
34016 msgstr ""
34017
34018 #. type: textblock
34019 #: ../src/guestfs-actions.pod:7073
34020 msgid ""
34021 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
34022 "for the cyls/heads/sectors parameters."
34023 msgstr ""
34024
34025 #. type: textblock
34026 #: ../src/guestfs-actions.pod:7076
34027 msgid "See also: C<guestfs_part_add>"
34028 msgstr ""
34029
34030 #. type: =head2
34031 #: ../src/guestfs-actions.pod:7082
34032 msgid "guestfs_sfdisk_disk_geometry"
34033 msgstr ""
34034
34035 #. type: verbatim
34036 #: ../src/guestfs-actions.pod:7084
34037 #, no-wrap
34038 msgid ""
34039 " char *\n"
34040 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
34041 "                               const char *device);\n"
34042 "\n"
34043 msgstr ""
34044
34045 #. type: textblock
34046 #: ../src/guestfs-actions.pod:7088
34047 msgid ""
34048 "This displays the disk geometry of C<device> read from the partition table.  "
34049 "Especially in the case where the underlying block device has been resized, "
34050 "this can be different from the kernel's idea of the geometry (see "
34051 "C<guestfs_sfdisk_kernel_geometry>)."
34052 msgstr ""
34053
34054 #. type: =head2
34055 #: ../src/guestfs-actions.pod:7101
34056 msgid "guestfs_sfdisk_kernel_geometry"
34057 msgstr ""
34058
34059 #. type: verbatim
34060 #: ../src/guestfs-actions.pod:7103
34061 #, no-wrap
34062 msgid ""
34063 " char *\n"
34064 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
34065 "                                 const char *device);\n"
34066 "\n"
34067 msgstr ""
34068
34069 #. type: =head2
34070 #: ../src/guestfs-actions.pod:7117
34071 msgid "guestfs_sfdisk_l"
34072 msgstr ""
34073
34074 #. type: verbatim
34075 #: ../src/guestfs-actions.pod:7119
34076 #, no-wrap
34077 msgid ""
34078 " char *\n"
34079 " guestfs_sfdisk_l (guestfs_h *g,\n"
34080 "                   const char *device);\n"
34081 "\n"
34082 msgstr ""
34083
34084 #. type: textblock
34085 #: ../src/guestfs-actions.pod:7123
34086 msgid ""
34087 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
34088 "call instead."
34089 msgstr ""
34090
34091 #. type: textblock
34092 #: ../src/guestfs-actions.pod:7134
34093 msgid "See also: C<guestfs_part_list>"
34094 msgstr ""
34095
34096 #. type: =head2
34097 #: ../src/guestfs-actions.pod:7141
34098 msgid "guestfs_sh"
34099 msgstr ""
34100
34101 #. type: verbatim
34102 #: ../src/guestfs-actions.pod:7143
34103 #, no-wrap
34104 msgid ""
34105 " char *\n"
34106 " guestfs_sh (guestfs_h *g,\n"
34107 "             const char *command);\n"
34108 "\n"
34109 msgstr ""
34110
34111 #. type: textblock
34112 #: ../src/guestfs-actions.pod:7150
34113 msgid "This is like C<guestfs_command>, but passes the command to:"
34114 msgstr ""
34115
34116 #. type: textblock
34117 #: ../src/guestfs-actions.pod:7158
34118 msgid "All the provisos about C<guestfs_command> apply to this call."
34119 msgstr ""
34120
34121 #. type: =head2
34122 #: ../src/guestfs-actions.pod:7165
34123 msgid "guestfs_sh_lines"
34124 msgstr ""
34125
34126 #. type: verbatim
34127 #: ../src/guestfs-actions.pod:7167
34128 #, no-wrap
34129 msgid ""
34130 " char **\n"
34131 " guestfs_sh_lines (guestfs_h *g,\n"
34132 "                   const char *command);\n"
34133 "\n"
34134 msgstr ""
34135
34136 #. type: textblock
34137 #: ../src/guestfs-actions.pod:7171
34138 msgid ""
34139 "This is the same as C<guestfs_sh>, but splits the result into a list of "
34140 "lines."
34141 msgstr ""
34142
34143 #. type: textblock
34144 #: ../src/guestfs-actions.pod:7174
34145 msgid "See also: C<guestfs_command_lines>"
34146 msgstr ""
34147
34148 #. type: =head2
34149 #: ../src/guestfs-actions.pod:7182
34150 msgid "guestfs_sleep"
34151 msgstr ""
34152
34153 #. type: verbatim
34154 #: ../src/guestfs-actions.pod:7184
34155 #, no-wrap
34156 msgid ""
34157 " int\n"
34158 " guestfs_sleep (guestfs_h *g,\n"
34159 "                int secs);\n"
34160 "\n"
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs-actions.pod:7192
34165 msgid "(Added in 1.0.41)"
34166 msgstr "(Додано у 1.0.41)"
34167
34168 #. type: =head2
34169 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
34170 msgid "guestfs_stat"
34171 msgstr ""
34172
34173 #. type: verbatim
34174 #: ../src/guestfs-actions.pod:7196
34175 #, no-wrap
34176 msgid ""
34177 " struct guestfs_stat *\n"
34178 " guestfs_stat (guestfs_h *g,\n"
34179 "               const char *path);\n"
34180 "\n"
34181 msgstr ""
34182
34183 #. type: =head2
34184 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
34185 msgid "guestfs_statvfs"
34186 msgstr ""
34187
34188 #. type: verbatim
34189 #: ../src/guestfs-actions.pod:7212
34190 #, no-wrap
34191 msgid ""
34192 " struct guestfs_statvfs *\n"
34193 " guestfs_statvfs (guestfs_h *g,\n"
34194 "                  const char *path);\n"
34195 "\n"
34196 msgstr ""
34197
34198 #. type: textblock
34199 #: ../src/guestfs-actions.pod:7222
34200 msgid ""
34201 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
34202 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
34203 msgstr ""
34204
34205 #. type: =head2
34206 #: ../src/guestfs-actions.pod:7228
34207 msgid "guestfs_strings"
34208 msgstr ""
34209
34210 #. type: verbatim
34211 #: ../src/guestfs-actions.pod:7230
34212 #, no-wrap
34213 msgid ""
34214 " char **\n"
34215 " guestfs_strings (guestfs_h *g,\n"
34216 "                  const char *path);\n"
34217 "\n"
34218 msgstr ""
34219
34220 #. type: =head2
34221 #: ../src/guestfs-actions.pod:7246
34222 msgid "guestfs_strings_e"
34223 msgstr ""
34224
34225 #. type: verbatim
34226 #: ../src/guestfs-actions.pod:7248
34227 #, no-wrap
34228 msgid ""
34229 " char **\n"
34230 " guestfs_strings_e (guestfs_h *g,\n"
34231 "                    const char *encoding,\n"
34232 "                    const char *path);\n"
34233 "\n"
34234 msgstr ""
34235
34236 #. type: textblock
34237 #: ../src/guestfs-actions.pod:7253
34238 msgid ""
34239 "This is like the C<guestfs_strings> command, but allows you to specify the "
34240 "encoding of strings that are looked for in the source file C<path>."
34241 msgstr ""
34242
34243 #. type: textblock
34244 #: ../src/guestfs-actions.pod:7263
34245 msgid ""
34246 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
34247 "ISO-8859-X (this is what C<guestfs_strings> uses)."
34248 msgstr ""
34249
34250 #. type: =head2
34251 #: ../src/guestfs-actions.pod:7301
34252 msgid "guestfs_swapoff_device"
34253 msgstr ""
34254
34255 #. type: verbatim
34256 #: ../src/guestfs-actions.pod:7303
34257 #, no-wrap
34258 msgid ""
34259 " int\n"
34260 " guestfs_swapoff_device (guestfs_h *g,\n"
34261 "                         const char *device);\n"
34262 "\n"
34263 msgstr ""
34264
34265 #. type: textblock
34266 #: ../src/guestfs-actions.pod:7307
34267 msgid ""
34268 "This command disables the libguestfs appliance swap device or partition "
34269 "named C<device>.  See C<guestfs_swapon_device>."
34270 msgstr ""
34271
34272 #. type: =head2
34273 #: ../src/guestfs-actions.pod:7315
34274 msgid "guestfs_swapoff_file"
34275 msgstr ""
34276
34277 #. type: verbatim
34278 #: ../src/guestfs-actions.pod:7317
34279 #, no-wrap
34280 msgid ""
34281 " int\n"
34282 " guestfs_swapoff_file (guestfs_h *g,\n"
34283 "                       const char *file);\n"
34284 "\n"
34285 msgstr ""
34286
34287 #. type: =head2
34288 #: ../src/guestfs-actions.pod:7327
34289 msgid "guestfs_swapoff_label"
34290 msgstr ""
34291
34292 #. type: verbatim
34293 #: ../src/guestfs-actions.pod:7329
34294 #, no-wrap
34295 msgid ""
34296 " int\n"
34297 " guestfs_swapoff_label (guestfs_h *g,\n"
34298 "                        const char *label);\n"
34299 "\n"
34300 msgstr ""
34301
34302 #. type: =head2
34303 #: ../src/guestfs-actions.pod:7340
34304 msgid "guestfs_swapoff_uuid"
34305 msgstr ""
34306
34307 #. type: verbatim
34308 #: ../src/guestfs-actions.pod:7342
34309 #, no-wrap
34310 msgid ""
34311 " int\n"
34312 " guestfs_swapoff_uuid (guestfs_h *g,\n"
34313 "                       const char *uuid);\n"
34314 "\n"
34315 msgstr ""
34316
34317 #. type: =head2
34318 #: ../src/guestfs-actions.pod:7353
34319 msgid "guestfs_swapon_device"
34320 msgstr ""
34321
34322 #. type: verbatim
34323 #: ../src/guestfs-actions.pod:7355
34324 #, no-wrap
34325 msgid ""
34326 " int\n"
34327 " guestfs_swapon_device (guestfs_h *g,\n"
34328 "                        const char *device);\n"
34329 "\n"
34330 msgstr ""
34331
34332 #. type: textblock
34333 #: ../src/guestfs-actions.pod:7359
34334 msgid ""
34335 "This command enables the libguestfs appliance to use the swap device or "
34336 "partition named C<device>.  The increased memory is made available for all "
34337 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
34338 msgstr ""
34339
34340 #. type: =head2
34341 #: ../src/guestfs-actions.pod:7375
34342 msgid "guestfs_swapon_file"
34343 msgstr ""
34344
34345 #. type: verbatim
34346 #: ../src/guestfs-actions.pod:7377
34347 #, no-wrap
34348 msgid ""
34349 " int\n"
34350 " guestfs_swapon_file (guestfs_h *g,\n"
34351 "                      const char *file);\n"
34352 "\n"
34353 msgstr ""
34354
34355 #. type: textblock
34356 #: ../src/guestfs-actions.pod:7381
34357 msgid ""
34358 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
34359 "notes."
34360 msgstr ""
34361
34362 #. type: =head2
34363 #: ../src/guestfs-actions.pod:7388
34364 msgid "guestfs_swapon_label"
34365 msgstr ""
34366
34367 #. type: verbatim
34368 #: ../src/guestfs-actions.pod:7390
34369 #, no-wrap
34370 msgid ""
34371 " int\n"
34372 " guestfs_swapon_label (guestfs_h *g,\n"
34373 "                       const char *label);\n"
34374 "\n"
34375 msgstr ""
34376
34377 #. type: textblock
34378 #: ../src/guestfs-actions.pod:7394
34379 msgid ""
34380 "This command enables swap to a labeled swap partition.  See "
34381 "C<guestfs_swapon_device> for other notes."
34382 msgstr ""
34383
34384 #. type: =head2
34385 #: ../src/guestfs-actions.pod:7401
34386 msgid "guestfs_swapon_uuid"
34387 msgstr ""
34388
34389 #. type: verbatim
34390 #: ../src/guestfs-actions.pod:7403
34391 #, no-wrap
34392 msgid ""
34393 " int\n"
34394 " guestfs_swapon_uuid (guestfs_h *g,\n"
34395 "                      const char *uuid);\n"
34396 "\n"
34397 msgstr ""
34398
34399 #. type: textblock
34400 #: ../src/guestfs-actions.pod:7407
34401 msgid ""
34402 "This command enables swap to a swap partition with the given UUID.  See "
34403 "C<guestfs_swapon_device> for other notes."
34404 msgstr ""
34405
34406 #. type: =head2
34407 #: ../src/guestfs-actions.pod:7414
34408 msgid "guestfs_sync"
34409 msgstr ""
34410
34411 #. type: verbatim
34412 #: ../src/guestfs-actions.pod:7416
34413 #, no-wrap
34414 msgid ""
34415 " int\n"
34416 " guestfs_sync (guestfs_h *g);\n"
34417 "\n"
34418 msgstr ""
34419
34420 #. type: =head2
34421 #: ../src/guestfs-actions.pod:7429
34422 msgid "guestfs_tail"
34423 msgstr ""
34424
34425 #. type: verbatim
34426 #: ../src/guestfs-actions.pod:7431
34427 #, no-wrap
34428 msgid ""
34429 " char **\n"
34430 " guestfs_tail (guestfs_h *g,\n"
34431 "               const char *path);\n"
34432 "\n"
34433 msgstr ""
34434
34435 #. type: =head2
34436 #: ../src/guestfs-actions.pod:7447
34437 msgid "guestfs_tail_n"
34438 msgstr ""
34439
34440 #. type: verbatim
34441 #: ../src/guestfs-actions.pod:7449
34442 #, no-wrap
34443 msgid ""
34444 " char **\n"
34445 " guestfs_tail_n (guestfs_h *g,\n"
34446 "                 int nrlines,\n"
34447 "                 const char *path);\n"
34448 "\n"
34449 msgstr ""
34450
34451 #. type: =head2
34452 #: ../src/guestfs-actions.pod:7471
34453 msgid "guestfs_tar_in"
34454 msgstr ""
34455
34456 #. type: verbatim
34457 #: ../src/guestfs-actions.pod:7473
34458 #, no-wrap
34459 msgid ""
34460 " int\n"
34461 " guestfs_tar_in (guestfs_h *g,\n"
34462 "                 const char *tarfile,\n"
34463 "                 const char *directory);\n"
34464 "\n"
34465 msgstr ""
34466
34467 #. type: textblock
34468 #: ../src/guestfs-actions.pod:7481
34469 msgid ""
34470 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34471 msgstr ""
34472
34473 #. type: textblock
34474 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
34475 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
34476 msgid "(Added in 1.0.3)"
34477 msgstr "(Додано у 1.0.3)"
34478
34479 #. type: =head2
34480 #: ../src/guestfs-actions.pod:7488
34481 msgid "guestfs_tar_out"
34482 msgstr ""
34483
34484 #. type: verbatim
34485 #: ../src/guestfs-actions.pod:7490
34486 #, no-wrap
34487 msgid ""
34488 " int\n"
34489 " guestfs_tar_out (guestfs_h *g,\n"
34490 "                  const char *directory,\n"
34491 "                  const char *tarfile);\n"
34492 "\n"
34493 msgstr ""
34494
34495 #. type: textblock
34496 #: ../src/guestfs-actions.pod:7498
34497 msgid ""
34498 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34499 "C<guestfs_txz_out>."
34500 msgstr ""
34501
34502 #. type: =head2
34503 #: ../src/guestfs-actions.pod:7505
34504 msgid "guestfs_tgz_in"
34505 msgstr ""
34506
34507 #. type: verbatim
34508 #: ../src/guestfs-actions.pod:7507
34509 #, no-wrap
34510 msgid ""
34511 " int\n"
34512 " guestfs_tgz_in (guestfs_h *g,\n"
34513 "                 const char *tarball,\n"
34514 "                 const char *directory);\n"
34515 "\n"
34516 msgstr ""
34517
34518 #. type: textblock
34519 #: ../src/guestfs-actions.pod:7515
34520 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34521 msgstr ""
34522
34523 #. type: =head2
34524 #: ../src/guestfs-actions.pod:7521
34525 msgid "guestfs_tgz_out"
34526 msgstr ""
34527
34528 #. type: verbatim
34529 #: ../src/guestfs-actions.pod:7523
34530 #, no-wrap
34531 msgid ""
34532 " int\n"
34533 " guestfs_tgz_out (guestfs_h *g,\n"
34534 "                  const char *directory,\n"
34535 "                  const char *tarball);\n"
34536 "\n"
34537 msgstr ""
34538
34539 #. type: textblock
34540 #: ../src/guestfs-actions.pod:7531
34541 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34542 msgstr ""
34543
34544 #. type: =head2
34545 #: ../src/guestfs-actions.pod:7537
34546 msgid "guestfs_touch"
34547 msgstr ""
34548
34549 #. type: verbatim
34550 #: ../src/guestfs-actions.pod:7539
34551 #, no-wrap
34552 msgid ""
34553 " int\n"
34554 " guestfs_touch (guestfs_h *g,\n"
34555 "                const char *path);\n"
34556 "\n"
34557 msgstr ""
34558
34559 #. type: =head2
34560 #: ../src/guestfs-actions.pod:7554
34561 msgid "guestfs_truncate"
34562 msgstr ""
34563
34564 #. type: verbatim
34565 #: ../src/guestfs-actions.pod:7556
34566 #, no-wrap
34567 msgid ""
34568 " int\n"
34569 " guestfs_truncate (guestfs_h *g,\n"
34570 "                   const char *path);\n"
34571 "\n"
34572 msgstr ""
34573
34574 #. type: =head2
34575 #: ../src/guestfs-actions.pod:7567
34576 msgid "guestfs_truncate_size"
34577 msgstr ""
34578
34579 #. type: verbatim
34580 #: ../src/guestfs-actions.pod:7569
34581 #, no-wrap
34582 msgid ""
34583 " int\n"
34584 " guestfs_truncate_size (guestfs_h *g,\n"
34585 "                        const char *path,\n"
34586 "                        int64_t size);\n"
34587 "\n"
34588 msgstr ""
34589
34590 #. type: textblock
34591 #: ../src/guestfs-actions.pod:7577
34592 msgid ""
34593 "If the current file size is less than C<size> then the file is extended to "
34594 "the required size with zero bytes.  This creates a sparse file (ie. disk "
34595 "blocks are not allocated for the file until you write to it).  To create a "
34596 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34597 msgstr ""
34598
34599 #. type: =head2
34600 #: ../src/guestfs-actions.pod:7587
34601 msgid "guestfs_tune2fs_l"
34602 msgstr ""
34603
34604 #. type: verbatim
34605 #: ../src/guestfs-actions.pod:7589
34606 #, no-wrap
34607 msgid ""
34608 " char **\n"
34609 " guestfs_tune2fs_l (guestfs_h *g,\n"
34610 "                    const char *device);\n"
34611 "\n"
34612 msgstr ""
34613
34614 #. type: =head2
34615 #: ../src/guestfs-actions.pod:7609
34616 msgid "guestfs_txz_in"
34617 msgstr ""
34618
34619 #. type: verbatim
34620 #: ../src/guestfs-actions.pod:7611
34621 #, no-wrap
34622 msgid ""
34623 " int\n"
34624 " guestfs_txz_in (guestfs_h *g,\n"
34625 "                 const char *tarball,\n"
34626 "                 const char *directory);\n"
34627 "\n"
34628 msgstr ""
34629
34630 #. type: =head2
34631 #: ../src/guestfs-actions.pod:7623
34632 msgid "guestfs_txz_out"
34633 msgstr ""
34634
34635 #. type: verbatim
34636 #: ../src/guestfs-actions.pod:7625
34637 #, no-wrap
34638 msgid ""
34639 " int\n"
34640 " guestfs_txz_out (guestfs_h *g,\n"
34641 "                  const char *directory,\n"
34642 "                  const char *tarball);\n"
34643 "\n"
34644 msgstr ""
34645
34646 #. type: =head2
34647 #: ../src/guestfs-actions.pod:7637
34648 msgid "guestfs_umask"
34649 msgstr ""
34650
34651 #. type: verbatim
34652 #: ../src/guestfs-actions.pod:7639
34653 #, no-wrap
34654 msgid ""
34655 " int\n"
34656 " guestfs_umask (guestfs_h *g,\n"
34657 "                int mask);\n"
34658 "\n"
34659 msgstr ""
34660
34661 #. type: textblock
34662 #: ../src/guestfs-actions.pod:7655
34663 msgid ""
34664 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34665 "C<guestfs_mkdir>."
34666 msgstr ""
34667
34668 #. type: =head2
34669 #: ../src/guestfs-actions.pod:7664
34670 msgid "guestfs_umount"
34671 msgstr ""
34672
34673 #. type: verbatim
34674 #: ../src/guestfs-actions.pod:7666
34675 #, no-wrap
34676 msgid ""
34677 " int\n"
34678 " guestfs_umount (guestfs_h *g,\n"
34679 "                 const char *pathordevice);\n"
34680 "\n"
34681 msgstr ""
34682
34683 #. type: =head2
34684 #: ../src/guestfs-actions.pod:7678
34685 msgid "guestfs_umount_all"
34686 msgstr ""
34687
34688 #. type: verbatim
34689 #: ../src/guestfs-actions.pod:7680
34690 #, no-wrap
34691 msgid ""
34692 " int\n"
34693 " guestfs_umount_all (guestfs_h *g);\n"
34694 "\n"
34695 msgstr ""
34696
34697 #. type: =head2
34698 #: ../src/guestfs-actions.pod:7691
34699 msgid "guestfs_upload"
34700 msgstr ""
34701
34702 #. type: verbatim
34703 #: ../src/guestfs-actions.pod:7693
34704 #, no-wrap
34705 msgid ""
34706 " int\n"
34707 " guestfs_upload (guestfs_h *g,\n"
34708 "                 const char *filename,\n"
34709 "                 const char *remotefilename);\n"
34710 "\n"
34711 msgstr ""
34712
34713 #. type: textblock
34714 #: ../src/guestfs-actions.pod:7703
34715 msgid "See also C<guestfs_download>."
34716 msgstr ""
34717
34718 #. type: =head2
34719 #: ../src/guestfs-actions.pod:7714
34720 msgid "guestfs_upload_offset"
34721 msgstr ""
34722
34723 #. type: verbatim
34724 #: ../src/guestfs-actions.pod:7716
34725 #, no-wrap
34726 msgid ""
34727 " int\n"
34728 " guestfs_upload_offset (guestfs_h *g,\n"
34729 "                        const char *filename,\n"
34730 "                        const char *remotefilename,\n"
34731 "                        int64_t offset);\n"
34732 "\n"
34733 msgstr ""
34734
34735 #. type: textblock
34736 #: ../src/guestfs-actions.pod:7732
34737 msgid ""
34738 "Note that there is no limit on the amount of data that can be uploaded with "
34739 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34740 "full amount unless an error occurs."
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs-actions.pod:7737
34745 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34746 msgstr ""
34747
34748 #. type: =head2
34749 #: ../src/guestfs-actions.pod:7748
34750 msgid "guestfs_utimens"
34751 msgstr ""
34752
34753 #. type: verbatim
34754 #: ../src/guestfs-actions.pod:7750
34755 #, no-wrap
34756 msgid ""
34757 " int\n"
34758 " guestfs_utimens (guestfs_h *g,\n"
34759 "                  const char *path,\n"
34760 "                  int64_t atsecs,\n"
34761 "                  int64_t atnsecs,\n"
34762 "                  int64_t mtsecs,\n"
34763 "                  int64_t mtnsecs);\n"
34764 "\n"
34765 msgstr ""
34766
34767 #. type: =head2
34768 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
34769 msgid "guestfs_version"
34770 msgstr ""
34771
34772 #. type: verbatim
34773 #: ../src/guestfs-actions.pod:7781
34774 #, no-wrap
34775 msgid ""
34776 " struct guestfs_version *\n"
34777 " guestfs_version (guestfs_h *g);\n"
34778 "\n"
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs-actions.pod:7809
34783 msgid ""
34784 "I<Note:> Don't use this call to test for availability of features.  In "
34785 "enterprise distributions we backport features from later versions into "
34786 "earlier versions, making this an unreliable way to test for features.  Use "
34787 "C<guestfs_available> instead."
34788 msgstr ""
34789
34790 #. type: textblock
34791 #: ../src/guestfs-actions.pod:7815
34792 msgid ""
34793 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34794 "error.  I<The caller must call C<guestfs_free_version> after use>."
34795 msgstr ""
34796
34797 #. type: textblock
34798 #: ../src/guestfs-actions.pod:7819
34799 msgid "(Added in 1.0.58)"
34800 msgstr "(Додано у 1.0.58)"
34801
34802 #. type: =head2
34803 #: ../src/guestfs-actions.pod:7821
34804 msgid "guestfs_vfs_label"
34805 msgstr ""
34806
34807 #. type: verbatim
34808 #: ../src/guestfs-actions.pod:7823
34809 #, no-wrap
34810 msgid ""
34811 " char *\n"
34812 " guestfs_vfs_label (guestfs_h *g,\n"
34813 "                    const char *device);\n"
34814 "\n"
34815 msgstr ""
34816
34817 #. type: textblock
34818 #: ../src/guestfs-actions.pod:7832
34819 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34820 msgstr ""
34821
34822 #. type: textblock
34823 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
34824 msgid "(Added in 1.3.18)"
34825 msgstr "(Додано у 1.3.18)"
34826
34827 #. type: =head2
34828 #: ../src/guestfs-actions.pod:7839
34829 msgid "guestfs_vfs_type"
34830 msgstr ""
34831
34832 #. type: verbatim
34833 #: ../src/guestfs-actions.pod:7841
34834 #, no-wrap
34835 msgid ""
34836 " char *\n"
34837 " guestfs_vfs_type (guestfs_h *g,\n"
34838 "                   const char *device);\n"
34839 "\n"
34840 msgstr ""
34841
34842 #. type: =head2
34843 #: ../src/guestfs-actions.pod:7858
34844 msgid "guestfs_vfs_uuid"
34845 msgstr ""
34846
34847 #. type: verbatim
34848 #: ../src/guestfs-actions.pod:7860
34849 #, no-wrap
34850 msgid ""
34851 " char *\n"
34852 " guestfs_vfs_uuid (guestfs_h *g,\n"
34853 "                   const char *device);\n"
34854 "\n"
34855 msgstr ""
34856
34857 #. type: textblock
34858 #: ../src/guestfs-actions.pod:7869
34859 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34860 msgstr ""
34861
34862 #. type: =head2
34863 #: ../src/guestfs-actions.pod:7876
34864 msgid "guestfs_vg_activate"
34865 msgstr ""
34866
34867 #. type: verbatim
34868 #: ../src/guestfs-actions.pod:7878
34869 #, no-wrap
34870 msgid ""
34871 " int\n"
34872 " guestfs_vg_activate (guestfs_h *g,\n"
34873 "                      int activate,\n"
34874 "                      char *const *volgroups);\n"
34875 "\n"
34876 msgstr ""
34877
34878 #. type: =head2
34879 #: ../src/guestfs-actions.pod:7895
34880 msgid "guestfs_vg_activate_all"
34881 msgstr ""
34882
34883 #. type: verbatim
34884 #: ../src/guestfs-actions.pod:7897
34885 #, no-wrap
34886 msgid ""
34887 " int\n"
34888 " guestfs_vg_activate_all (guestfs_h *g,\n"
34889 "                          int activate);\n"
34890 "\n"
34891 msgstr ""
34892
34893 #. type: =head2
34894 #: ../src/guestfs-actions.pod:7910
34895 msgid "guestfs_vgcreate"
34896 msgstr ""
34897
34898 #. type: verbatim
34899 #: ../src/guestfs-actions.pod:7912
34900 #, no-wrap
34901 msgid ""
34902 " int\n"
34903 " guestfs_vgcreate (guestfs_h *g,\n"
34904 "                   const char *volgroup,\n"
34905 "                   char *const *physvols);\n"
34906 "\n"
34907 msgstr ""
34908
34909 #. type: =head2
34910 #: ../src/guestfs-actions.pod:7924
34911 msgid "guestfs_vglvuuids"
34912 msgstr ""
34913
34914 #. type: verbatim
34915 #: ../src/guestfs-actions.pod:7926
34916 #, no-wrap
34917 msgid ""
34918 " char **\n"
34919 " guestfs_vglvuuids (guestfs_h *g,\n"
34920 "                    const char *vgname);\n"
34921 "\n"
34922 msgstr ""
34923
34924 #. type: textblock
34925 #: ../src/guestfs-actions.pod:7933
34926 msgid ""
34927 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34928 "associate logical volumes and volume groups."
34929 msgstr ""
34930
34931 #. type: textblock
34932 #: ../src/guestfs-actions.pod:7936
34933 msgid "See also C<guestfs_vgpvuuids>."
34934 msgstr ""
34935
34936 #. type: =head2
34937 #: ../src/guestfs-actions.pod:7944
34938 msgid "guestfs_vgpvuuids"
34939 msgstr ""
34940
34941 #. type: verbatim
34942 #: ../src/guestfs-actions.pod:7946
34943 #, no-wrap
34944 msgid ""
34945 " char **\n"
34946 " guestfs_vgpvuuids (guestfs_h *g,\n"
34947 "                    const char *vgname);\n"
34948 "\n"
34949 msgstr ""
34950
34951 #. type: textblock
34952 #: ../src/guestfs-actions.pod:7953
34953 msgid ""
34954 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34955 "associate physical volumes and volume groups."
34956 msgstr ""
34957
34958 #. type: textblock
34959 #: ../src/guestfs-actions.pod:7956
34960 msgid "See also C<guestfs_vglvuuids>."
34961 msgstr ""
34962
34963 #. type: =head2
34964 #: ../src/guestfs-actions.pod:7964
34965 msgid "guestfs_vgremove"
34966 msgstr ""
34967
34968 #. type: verbatim
34969 #: ../src/guestfs-actions.pod:7966
34970 #, no-wrap
34971 msgid ""
34972 " int\n"
34973 " guestfs_vgremove (guestfs_h *g,\n"
34974 "                   const char *vgname);\n"
34975 "\n"
34976 msgstr ""
34977
34978 #. type: =head2
34979 #: ../src/guestfs-actions.pod:7979
34980 msgid "guestfs_vgrename"
34981 msgstr ""
34982
34983 #. type: verbatim
34984 #: ../src/guestfs-actions.pod:7981
34985 #, no-wrap
34986 msgid ""
34987 " int\n"
34988 " guestfs_vgrename (guestfs_h *g,\n"
34989 "                   const char *volgroup,\n"
34990 "                   const char *newvolgroup);\n"
34991 "\n"
34992 msgstr ""
34993
34994 #. type: =head2
34995 #: ../src/guestfs-actions.pod:7992
34996 msgid "guestfs_vgs"
34997 msgstr ""
34998
34999 #. type: verbatim
35000 #: ../src/guestfs-actions.pod:7994
35001 #, no-wrap
35002 msgid ""
35003 " char **\n"
35004 " guestfs_vgs (guestfs_h *g);\n"
35005 "\n"
35006 msgstr ""
35007
35008 #. type: textblock
35009 #: ../src/guestfs-actions.pod:8003
35010 msgid "See also C<guestfs_vgs_full>."
35011 msgstr ""
35012
35013 #. type: =head2
35014 #: ../src/guestfs-actions.pod:8011
35015 msgid "guestfs_vgs_full"
35016 msgstr ""
35017
35018 #. type: verbatim
35019 #: ../src/guestfs-actions.pod:8013
35020 #, no-wrap
35021 msgid ""
35022 " struct guestfs_lvm_vg_list *\n"
35023 " guestfs_vgs_full (guestfs_h *g);\n"
35024 "\n"
35025 msgstr ""
35026
35027 #. type: textblock
35028 #: ../src/guestfs-actions.pod:8019
35029 msgid ""
35030 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
35031 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
35032 msgstr ""
35033
35034 #. type: =head2
35035 #: ../src/guestfs-actions.pod:8025
35036 msgid "guestfs_vgscan"
35037 msgstr ""
35038
35039 #. type: verbatim
35040 #: ../src/guestfs-actions.pod:8027
35041 #, no-wrap
35042 msgid ""
35043 " int\n"
35044 " guestfs_vgscan (guestfs_h *g);\n"
35045 "\n"
35046 msgstr ""
35047
35048 #. type: =head2
35049 #: ../src/guestfs-actions.pod:8037
35050 msgid "guestfs_vguuid"
35051 msgstr ""
35052
35053 #. type: verbatim
35054 #: ../src/guestfs-actions.pod:8039
35055 #, no-wrap
35056 msgid ""
35057 " char *\n"
35058 " guestfs_vguuid (guestfs_h *g,\n"
35059 "                 const char *vgname);\n"
35060 "\n"
35061 msgstr ""
35062
35063 #. type: =head2
35064 #: ../src/guestfs-actions.pod:8050
35065 msgid "guestfs_wait_ready"
35066 msgstr ""
35067
35068 #. type: verbatim
35069 #: ../src/guestfs-actions.pod:8052
35070 #, no-wrap
35071 msgid ""
35072 " int\n"
35073 " guestfs_wait_ready (guestfs_h *g);\n"
35074 "\n"
35075 msgstr ""
35076
35077 #. type: textblock
35078 #: ../src/guestfs-actions.pod:8055
35079 msgid ""
35080 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
35081 "instead."
35082 msgstr ""
35083
35084 #. type: textblock
35085 #: ../src/guestfs-actions.pod:8062
35086 msgid "This function is a no op."
35087 msgstr ""
35088
35089 #. type: textblock
35090 #: ../src/guestfs-actions.pod:8064
35091 msgid ""
35092 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
35093 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
35094 "is no longer necessary because C<guestfs_launch> now does the waiting."
35095 msgstr ""
35096
35097 #. type: textblock
35098 #: ../src/guestfs-actions.pod:8069
35099 msgid ""
35100 "If you see any calls to this function in code then you can just remove them, "
35101 "unless you want to retain compatibility with older versions of the API."
35102 msgstr ""
35103
35104 #. type: =head2
35105 #: ../src/guestfs-actions.pod:8077
35106 msgid "guestfs_wc_c"
35107 msgstr ""
35108
35109 #. type: verbatim
35110 #: ../src/guestfs-actions.pod:8079
35111 #, no-wrap
35112 msgid ""
35113 " int\n"
35114 " guestfs_wc_c (guestfs_h *g,\n"
35115 "               const char *path);\n"
35116 "\n"
35117 msgstr ""
35118
35119 #. type: =head2
35120 #: ../src/guestfs-actions.pod:8090
35121 msgid "guestfs_wc_l"
35122 msgstr ""
35123
35124 #. type: verbatim
35125 #: ../src/guestfs-actions.pod:8092
35126 #, no-wrap
35127 msgid ""
35128 " int\n"
35129 " guestfs_wc_l (guestfs_h *g,\n"
35130 "               const char *path);\n"
35131 "\n"
35132 msgstr ""
35133
35134 #. type: =head2
35135 #: ../src/guestfs-actions.pod:8103
35136 msgid "guestfs_wc_w"
35137 msgstr ""
35138
35139 #. type: verbatim
35140 #: ../src/guestfs-actions.pod:8105
35141 #, no-wrap
35142 msgid ""
35143 " int\n"
35144 " guestfs_wc_w (guestfs_h *g,\n"
35145 "               const char *path);\n"
35146 "\n"
35147 msgstr ""
35148
35149 #. type: =head2
35150 #: ../src/guestfs-actions.pod:8116
35151 msgid "guestfs_write"
35152 msgstr ""
35153
35154 #. type: verbatim
35155 #: ../src/guestfs-actions.pod:8118
35156 #, no-wrap
35157 msgid ""
35158 " int\n"
35159 " guestfs_write (guestfs_h *g,\n"
35160 "                const char *path,\n"
35161 "                const char *content,\n"
35162 "                size_t content_size);\n"
35163 "\n"
35164 msgstr ""
35165
35166 #. type: textblock
35167 #: ../src/guestfs-actions.pod:8127
35168 msgid "See also C<guestfs_write_append>."
35169 msgstr ""
35170
35171 #. type: =head2
35172 #: ../src/guestfs-actions.pod:8136
35173 msgid "guestfs_write_append"
35174 msgstr ""
35175
35176 #. type: verbatim
35177 #: ../src/guestfs-actions.pod:8138
35178 #, no-wrap
35179 msgid ""
35180 " int\n"
35181 " guestfs_write_append (guestfs_h *g,\n"
35182 "                       const char *path,\n"
35183 "                       const char *content,\n"
35184 "                       size_t content_size);\n"
35185 "\n"
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs-actions.pod:8147
35190 msgid "See also C<guestfs_write>."
35191 msgstr ""
35192
35193 #. type: =head2
35194 #: ../src/guestfs-actions.pod:8156
35195 msgid "guestfs_write_file"
35196 msgstr "guestfs_write_file"
35197
35198 #. type: verbatim
35199 #: ../src/guestfs-actions.pod:8158
35200 #, no-wrap
35201 msgid ""
35202 " int\n"
35203 " guestfs_write_file (guestfs_h *g,\n"
35204 "                     const char *path,\n"
35205 "                     const char *content,\n"
35206 "                     int size);\n"
35207 "\n"
35208 msgstr ""
35209 " int\n"
35210 " guestfs_write_file (guestfs_h *g,\n"
35211 "                     const char *path,\n"
35212 "                     const char *content,\n"
35213 "                     int size);\n"
35214 "\n"
35215
35216 #. type: textblock
35217 #: ../src/guestfs-actions.pod:8164
35218 msgid ""
35219 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
35220 "instead."
35221 msgstr ""
35222
35223 #. type: =head2
35224 #: ../src/guestfs-actions.pod:8189
35225 msgid "guestfs_zegrep"
35226 msgstr "guestfs_zegrep"
35227
35228 #. type: verbatim
35229 #: ../src/guestfs-actions.pod:8191
35230 #, no-wrap
35231 msgid ""
35232 " char **\n"
35233 " guestfs_zegrep (guestfs_h *g,\n"
35234 "                 const char *regex,\n"
35235 "                 const char *path);\n"
35236 "\n"
35237 msgstr ""
35238 " char **\n"
35239 " guestfs_zegrep (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:8208
35246 msgid "guestfs_zegrepi"
35247 msgstr "guestfs_zegrepi"
35248
35249 #. type: verbatim
35250 #: ../src/guestfs-actions.pod:8210
35251 #, no-wrap
35252 msgid ""
35253 " char **\n"
35254 " guestfs_zegrepi (guestfs_h *g,\n"
35255 "                  const char *regex,\n"
35256 "                  const char *path);\n"
35257 "\n"
35258 msgstr ""
35259 " char **\n"
35260 " guestfs_zegrepi (guestfs_h *g,\n"
35261 "                  const char *regex,\n"
35262 "                  const char *path);\n"
35263 "\n"
35264
35265 #. type: =head2
35266 #: ../src/guestfs-actions.pod:8227
35267 msgid "guestfs_zero"
35268 msgstr "guestfs_zero"
35269
35270 #. type: verbatim
35271 #: ../src/guestfs-actions.pod:8229
35272 #, no-wrap
35273 msgid ""
35274 " int\n"
35275 " guestfs_zero (guestfs_h *g,\n"
35276 "               const char *device);\n"
35277 "\n"
35278 msgstr ""
35279 " int\n"
35280 " guestfs_zero (guestfs_h *g,\n"
35281 "               const char *device);\n"
35282 "\n"
35283
35284 #. type: textblock
35285 #: ../src/guestfs-actions.pod:8243
35286 msgid ""
35287 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
35288 "C<guestfs_is_zero_device>"
35289 msgstr ""
35290
35291 #. type: =head2
35292 #: ../src/guestfs-actions.pod:8255
35293 msgid "guestfs_zero_device"
35294 msgstr "guestfs_zero_device"
35295
35296 #. type: verbatim
35297 #: ../src/guestfs-actions.pod:8257
35298 #, no-wrap
35299 msgid ""
35300 " int\n"
35301 " guestfs_zero_device (guestfs_h *g,\n"
35302 "                      const char *device);\n"
35303 "\n"
35304 msgstr ""
35305 " int\n"
35306 " guestfs_zero_device (guestfs_h *g,\n"
35307 "                      const char *device);\n"
35308 "\n"
35309
35310 #. type: textblock
35311 #: ../src/guestfs-actions.pod:8261
35312 msgid ""
35313 "This command writes zeroes over the entire C<device>.  Compare with "
35314 "C<guestfs_zero> which just zeroes the first few blocks of a device."
35315 msgstr ""
35316
35317 #. type: textblock
35318 #: ../src/guestfs-actions.pod:8276
35319 msgid "(Added in 1.3.1)"
35320 msgstr "(Додано у 1.3.1)"
35321
35322 #. type: =head2
35323 #: ../src/guestfs-actions.pod:8278
35324 msgid "guestfs_zerofree"
35325 msgstr "guestfs_zerofree"
35326
35327 #. type: verbatim
35328 #: ../src/guestfs-actions.pod:8280
35329 #, no-wrap
35330 msgid ""
35331 " int\n"
35332 " guestfs_zerofree (guestfs_h *g,\n"
35333 "                   const char *device);\n"
35334 "\n"
35335 msgstr ""
35336 " int\n"
35337 " guestfs_zerofree (guestfs_h *g,\n"
35338 "                   const char *device);\n"
35339 "\n"
35340
35341 #. type: =head2
35342 #: ../src/guestfs-actions.pod:8299
35343 msgid "guestfs_zfgrep"
35344 msgstr "guestfs_zfgrep"
35345
35346 #. type: verbatim
35347 #: ../src/guestfs-actions.pod:8301
35348 #, no-wrap
35349 msgid ""
35350 " char **\n"
35351 " guestfs_zfgrep (guestfs_h *g,\n"
35352 "                 const char *pattern,\n"
35353 "                 const char *path);\n"
35354 "\n"
35355 msgstr ""
35356 " char **\n"
35357 " guestfs_zfgrep (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:8318
35364 msgid "guestfs_zfgrepi"
35365 msgstr "guestfs_zfgrepi"
35366
35367 #. type: verbatim
35368 #: ../src/guestfs-actions.pod:8320
35369 #, no-wrap
35370 msgid ""
35371 " char **\n"
35372 " guestfs_zfgrepi (guestfs_h *g,\n"
35373 "                  const char *pattern,\n"
35374 "                  const char *path);\n"
35375 "\n"
35376 msgstr ""
35377 " char **\n"
35378 " guestfs_zfgrepi (guestfs_h *g,\n"
35379 "                  const char *pattern,\n"
35380 "                  const char *path);\n"
35381 "\n"
35382
35383 #. type: =head2
35384 #: ../src/guestfs-actions.pod:8337
35385 msgid "guestfs_zfile"
35386 msgstr "guestfs_zfile"
35387
35388 #. type: verbatim
35389 #: ../src/guestfs-actions.pod:8339
35390 #, no-wrap
35391 msgid ""
35392 " char *\n"
35393 " guestfs_zfile (guestfs_h *g,\n"
35394 "                const char *meth,\n"
35395 "                const char *path);\n"
35396 "\n"
35397 msgstr ""
35398 " char *\n"
35399 " guestfs_zfile (guestfs_h *g,\n"
35400 "                const char *meth,\n"
35401 "                const char *path);\n"
35402 "\n"
35403
35404 #. type: textblock
35405 #: ../src/guestfs-actions.pod:8344
35406 msgid ""
35407 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35408 "instead."
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs-actions.pod:8356
35413 msgid ""
35414 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35415 "files."
35416 msgstr ""
35417
35418 #. type: =head2
35419 #: ../src/guestfs-actions.pod:8364
35420 msgid "guestfs_zgrep"
35421 msgstr "guestfs_zgrep"
35422
35423 #. type: verbatim
35424 #: ../src/guestfs-actions.pod:8366
35425 #, no-wrap
35426 msgid ""
35427 " char **\n"
35428 " guestfs_zgrep (guestfs_h *g,\n"
35429 "                const char *regex,\n"
35430 "                const char *path);\n"
35431 "\n"
35432 msgstr ""
35433 " char **\n"
35434 " guestfs_zgrep (guestfs_h *g,\n"
35435 "                const char *regex,\n"
35436 "                const char *path);\n"
35437 "\n"
35438
35439 #. type: =head2
35440 #: ../src/guestfs-actions.pod:8383
35441 msgid "guestfs_zgrepi"
35442 msgstr "guestfs_zgrepi"
35443
35444 #. type: verbatim
35445 #: ../src/guestfs-actions.pod:8385
35446 #, no-wrap
35447 msgid ""
35448 " char **\n"
35449 " guestfs_zgrepi (guestfs_h *g,\n"
35450 "                 const char *regex,\n"
35451 "                 const char *path);\n"
35452 "\n"
35453 msgstr ""
35454 " char **\n"
35455 " guestfs_zgrepi (guestfs_h *g,\n"
35456 "                 const char *regex,\n"
35457 "                 const char *path);\n"
35458 "\n"
35459
35460 #. type: =item
35461 #: ../src/guestfs-availability.pod:3
35462 msgid "B<augeas>"
35463 msgstr "B<augeas>"
35464
35465 #. type: textblock
35466 #: ../src/guestfs-availability.pod:5
35467 msgid ""
35468 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35469 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35470 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35471 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35472 "L</guestfs_aug_save> L</guestfs_aug_set>"
35473 msgstr ""
35474
35475 #. type: =item
35476 #: ../src/guestfs-availability.pod:21
35477 msgid "B<btrfs>"
35478 msgstr "B<btrfs>"
35479
35480 #. type: textblock
35481 #: ../src/guestfs-availability.pod:23
35482 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35483 msgstr ""
35484
35485 #. type: =item
35486 #: ../src/guestfs-availability.pod:26
35487 msgid "B<grub>"
35488 msgstr ""
35489
35490 #. type: textblock
35491 #: ../src/guestfs-availability.pod:28
35492 msgid "The following functions: L</guestfs_grub_install>"
35493 msgstr ""
35494
35495 #. type: =item
35496 #: ../src/guestfs-availability.pod:31
35497 msgid "B<inotify>"
35498 msgstr "B<inotify>"
35499
35500 #. type: textblock
35501 #: ../src/guestfs-availability.pod:33
35502 msgid ""
35503 "The following functions: L</guestfs_inotify_add_watch> L</"
35504 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35505 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35506 msgstr ""
35507
35508 #. type: =item
35509 #: ../src/guestfs-availability.pod:41
35510 msgid "B<linuxfsuuid>"
35511 msgstr "B<linuxfsuuid>"
35512
35513 #. type: textblock
35514 #: ../src/guestfs-availability.pod:43
35515 msgid ""
35516 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35517 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35518 msgstr ""
35519
35520 #. type: =item
35521 #: ../src/guestfs-availability.pod:50
35522 msgid "B<linuxmodules>"
35523 msgstr "B<linuxmodules>"
35524
35525 #. type: textblock
35526 #: ../src/guestfs-availability.pod:52
35527 msgid "The following functions: L</guestfs_modprobe>"
35528 msgstr ""
35529
35530 #. type: =item
35531 #: ../src/guestfs-availability.pod:55
35532 msgid "B<linuxxattrs>"
35533 msgstr "B<linuxxattrs>"
35534
35535 #. type: textblock
35536 #: ../src/guestfs-availability.pod:57
35537 msgid ""
35538 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35539 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35540 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35541 "guestfs_setxattr>"
35542 msgstr ""
35543
35544 #. type: =item
35545 #: ../src/guestfs-availability.pod:68
35546 msgid "B<luks>"
35547 msgstr "B<luks>"
35548
35549 #. type: textblock
35550 #: ../src/guestfs-availability.pod:70
35551 msgid ""
35552 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35553 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35554 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35555 msgstr ""
35556
35557 #. type: =item
35558 #: ../src/guestfs-availability.pod:79
35559 msgid "B<lvm2>"
35560 msgstr "B<lvm2>"
35561
35562 #. type: textblock
35563 #: ../src/guestfs-availability.pod:81
35564 msgid ""
35565 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35566 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35567 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35568 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35569 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35570 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35571 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35572 msgstr ""
35573
35574 #. type: =item
35575 #: ../src/guestfs-availability.pod:104
35576 msgid "B<mknod>"
35577 msgstr "B<mknod>"
35578
35579 #. type: textblock
35580 #: ../src/guestfs-availability.pod:106
35581 msgid ""
35582 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35583 "guestfs_mknod_b> L</guestfs_mknod_c>"
35584 msgstr ""
35585
35586 #. type: =item
35587 #: ../src/guestfs-availability.pod:112
35588 msgid "B<ntfs3g>"
35589 msgstr "B<ntfs3g>"
35590
35591 #. type: textblock
35592 #: ../src/guestfs-availability.pod:114
35593 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35594 msgstr ""
35595
35596 #. type: =item
35597 #: ../src/guestfs-availability.pod:117
35598 msgid "B<ntfsprogs>"
35599 msgstr "B<ntfsprogs>"
35600
35601 #. type: textblock
35602 #: ../src/guestfs-availability.pod:119
35603 msgid ""
35604 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35605 "L</guestfs_ntfsresize_size>"
35606 msgstr ""
35607
35608 #. type: =item
35609 #: ../src/guestfs-availability.pod:124
35610 msgid "B<realpath>"
35611 msgstr "B<realpath>"
35612
35613 #. type: textblock
35614 #: ../src/guestfs-availability.pod:126
35615 msgid "The following functions: L</guestfs_realpath>"
35616 msgstr ""
35617
35618 #. type: =item
35619 #: ../src/guestfs-availability.pod:129
35620 msgid "B<scrub>"
35621 msgstr "B<scrub>"
35622
35623 #. type: textblock
35624 #: ../src/guestfs-availability.pod:131
35625 msgid ""
35626 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35627 "guestfs_scrub_freespace>"
35628 msgstr ""
35629
35630 #. type: =item
35631 #: ../src/guestfs-availability.pod:136
35632 msgid "B<selinux>"
35633 msgstr "B<selinux>"
35634
35635 #. type: textblock
35636 #: ../src/guestfs-availability.pod:138
35637 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35638 msgstr ""
35639
35640 #. type: =item
35641 #: ../src/guestfs-availability.pod:142
35642 msgid "B<xz>"
35643 msgstr "B<xz>"
35644
35645 #. type: textblock
35646 #: ../src/guestfs-availability.pod:144
35647 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35648 msgstr ""
35649
35650 #. type: =item
35651 #: ../src/guestfs-availability.pod:148
35652 msgid "B<zerofree>"
35653 msgstr "B<zerofree>"
35654
35655 #. type: textblock
35656 #: ../src/guestfs-availability.pod:150
35657 msgid "The following functions: L</guestfs_zerofree>"
35658 msgstr ""
35659
35660 #. type: =head2
35661 #: ../src/guestfs-structs.pod:1
35662 msgid "guestfs_int_bool"
35663 msgstr ""
35664
35665 #. type: verbatim
35666 #: ../src/guestfs-structs.pod:3
35667 #, no-wrap
35668 msgid ""
35669 " struct guestfs_int_bool {\n"
35670 "   int32_t i;\n"
35671 "   int32_t b;\n"
35672 " };\n"
35673 " \n"
35674 msgstr ""
35675
35676 #. type: verbatim
35677 #: ../src/guestfs-structs.pod:8
35678 #, no-wrap
35679 msgid ""
35680 " struct guestfs_int_bool_list {\n"
35681 "   uint32_t len; /* Number of elements in list. */\n"
35682 "   struct guestfs_int_bool *val; /* Elements. */\n"
35683 " };\n"
35684 " \n"
35685 msgstr ""
35686
35687 #. type: verbatim
35688 #: ../src/guestfs-structs.pod:13
35689 #, no-wrap
35690 msgid ""
35691 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35692 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35693 "\n"
35694 msgstr ""
35695
35696 #. type: =head2
35697 #: ../src/guestfs-structs.pod:16
35698 msgid "guestfs_lvm_pv"
35699 msgstr ""
35700
35701 #. type: verbatim
35702 #: ../src/guestfs-structs.pod:18
35703 #, no-wrap
35704 msgid ""
35705 " struct guestfs_lvm_pv {\n"
35706 "   char *pv_name;\n"
35707 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35708 "   char pv_uuid[32];\n"
35709 "   char *pv_fmt;\n"
35710 "   uint64_t pv_size;\n"
35711 "   uint64_t dev_size;\n"
35712 "   uint64_t pv_free;\n"
35713 "   uint64_t pv_used;\n"
35714 "   char *pv_attr;\n"
35715 "   int64_t pv_pe_count;\n"
35716 "   int64_t pv_pe_alloc_count;\n"
35717 "   char *pv_tags;\n"
35718 "   uint64_t pe_start;\n"
35719 "   int64_t pv_mda_count;\n"
35720 "   uint64_t pv_mda_free;\n"
35721 " };\n"
35722 " \n"
35723 msgstr ""
35724
35725 #. type: verbatim
35726 #: ../src/guestfs-structs.pod:36
35727 #, no-wrap
35728 msgid ""
35729 " struct guestfs_lvm_pv_list {\n"
35730 "   uint32_t len; /* Number of elements in list. */\n"
35731 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35732 " };\n"
35733 " \n"
35734 msgstr ""
35735
35736 #. type: verbatim
35737 #: ../src/guestfs-structs.pod:41
35738 #, no-wrap
35739 msgid ""
35740 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35741 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35742 "\n"
35743 msgstr ""
35744
35745 #. type: =head2
35746 #: ../src/guestfs-structs.pod:44
35747 msgid "guestfs_lvm_vg"
35748 msgstr ""
35749
35750 #. type: verbatim
35751 #: ../src/guestfs-structs.pod:46
35752 #, no-wrap
35753 msgid ""
35754 " struct guestfs_lvm_vg {\n"
35755 "   char *vg_name;\n"
35756 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35757 "   char vg_uuid[32];\n"
35758 "   char *vg_fmt;\n"
35759 "   char *vg_attr;\n"
35760 "   uint64_t vg_size;\n"
35761 "   uint64_t vg_free;\n"
35762 "   char *vg_sysid;\n"
35763 "   uint64_t vg_extent_size;\n"
35764 "   int64_t vg_extent_count;\n"
35765 "   int64_t vg_free_count;\n"
35766 "   int64_t max_lv;\n"
35767 "   int64_t max_pv;\n"
35768 "   int64_t pv_count;\n"
35769 "   int64_t lv_count;\n"
35770 "   int64_t snap_count;\n"
35771 "   int64_t vg_seqno;\n"
35772 "   char *vg_tags;\n"
35773 "   int64_t vg_mda_count;\n"
35774 "   uint64_t vg_mda_free;\n"
35775 " };\n"
35776 " \n"
35777 msgstr ""
35778
35779 #. type: verbatim
35780 #: ../src/guestfs-structs.pod:69
35781 #, no-wrap
35782 msgid ""
35783 " struct guestfs_lvm_vg_list {\n"
35784 "   uint32_t len; /* Number of elements in list. */\n"
35785 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35786 " };\n"
35787 " \n"
35788 msgstr ""
35789
35790 #. type: verbatim
35791 #: ../src/guestfs-structs.pod:74
35792 #, no-wrap
35793 msgid ""
35794 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35795 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35796 "\n"
35797 msgstr ""
35798
35799 #. type: =head2
35800 #: ../src/guestfs-structs.pod:77
35801 msgid "guestfs_lvm_lv"
35802 msgstr ""
35803
35804 #. type: verbatim
35805 #: ../src/guestfs-structs.pod:79
35806 #, no-wrap
35807 msgid ""
35808 " struct guestfs_lvm_lv {\n"
35809 "   char *lv_name;\n"
35810 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35811 "   char lv_uuid[32];\n"
35812 "   char *lv_attr;\n"
35813 "   int64_t lv_major;\n"
35814 "   int64_t lv_minor;\n"
35815 "   int64_t lv_kernel_major;\n"
35816 "   int64_t lv_kernel_minor;\n"
35817 "   uint64_t lv_size;\n"
35818 "   int64_t seg_count;\n"
35819 "   char *origin;\n"
35820 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35821 "   float snap_percent;\n"
35822 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35823 "   float copy_percent;\n"
35824 "   char *move_pv;\n"
35825 "   char *lv_tags;\n"
35826 "   char *mirror_log;\n"
35827 "   char *modules;\n"
35828 " };\n"
35829 " \n"
35830 msgstr ""
35831
35832 #. type: verbatim
35833 #: ../src/guestfs-structs.pod:101
35834 #, no-wrap
35835 msgid ""
35836 " struct guestfs_lvm_lv_list {\n"
35837 "   uint32_t len; /* Number of elements in list. */\n"
35838 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35839 " };\n"
35840 " \n"
35841 msgstr ""
35842
35843 #. type: verbatim
35844 #: ../src/guestfs-structs.pod:106
35845 #, no-wrap
35846 msgid ""
35847 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35848 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35849 "\n"
35850 msgstr ""
35851
35852 #. type: verbatim
35853 #: ../src/guestfs-structs.pod:111
35854 #, no-wrap
35855 msgid ""
35856 " struct guestfs_stat {\n"
35857 "   int64_t dev;\n"
35858 "   int64_t ino;\n"
35859 "   int64_t mode;\n"
35860 "   int64_t nlink;\n"
35861 "   int64_t uid;\n"
35862 "   int64_t gid;\n"
35863 "   int64_t rdev;\n"
35864 "   int64_t size;\n"
35865 "   int64_t blksize;\n"
35866 "   int64_t blocks;\n"
35867 "   int64_t atime;\n"
35868 "   int64_t mtime;\n"
35869 "   int64_t ctime;\n"
35870 " };\n"
35871 " \n"
35872 msgstr ""
35873
35874 #. type: verbatim
35875 #: ../src/guestfs-structs.pod:127
35876 #, no-wrap
35877 msgid ""
35878 " struct guestfs_stat_list {\n"
35879 "   uint32_t len; /* Number of elements in list. */\n"
35880 "   struct guestfs_stat *val; /* Elements. */\n"
35881 " };\n"
35882 " \n"
35883 msgstr ""
35884
35885 #. type: verbatim
35886 #: ../src/guestfs-structs.pod:132
35887 #, no-wrap
35888 msgid ""
35889 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35890 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35891 "\n"
35892 msgstr ""
35893
35894 #. type: verbatim
35895 #: ../src/guestfs-structs.pod:137
35896 #, no-wrap
35897 msgid ""
35898 " struct guestfs_statvfs {\n"
35899 "   int64_t bsize;\n"
35900 "   int64_t frsize;\n"
35901 "   int64_t blocks;\n"
35902 "   int64_t bfree;\n"
35903 "   int64_t bavail;\n"
35904 "   int64_t files;\n"
35905 "   int64_t ffree;\n"
35906 "   int64_t favail;\n"
35907 "   int64_t fsid;\n"
35908 "   int64_t flag;\n"
35909 "   int64_t namemax;\n"
35910 " };\n"
35911 " \n"
35912 msgstr ""
35913
35914 #. type: verbatim
35915 #: ../src/guestfs-structs.pod:151
35916 #, no-wrap
35917 msgid ""
35918 " struct guestfs_statvfs_list {\n"
35919 "   uint32_t len; /* Number of elements in list. */\n"
35920 "   struct guestfs_statvfs *val; /* Elements. */\n"
35921 " };\n"
35922 " \n"
35923 msgstr ""
35924
35925 #. type: verbatim
35926 #: ../src/guestfs-structs.pod:156
35927 #, no-wrap
35928 msgid ""
35929 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35930 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35931 "\n"
35932 msgstr ""
35933
35934 #. type: =head2
35935 #: ../src/guestfs-structs.pod:159
35936 msgid "guestfs_dirent"
35937 msgstr ""
35938
35939 #. type: verbatim
35940 #: ../src/guestfs-structs.pod:161
35941 #, no-wrap
35942 msgid ""
35943 " struct guestfs_dirent {\n"
35944 "   int64_t ino;\n"
35945 "   char ftyp;\n"
35946 "   char *name;\n"
35947 " };\n"
35948 " \n"
35949 msgstr ""
35950
35951 #. type: verbatim
35952 #: ../src/guestfs-structs.pod:167
35953 #, no-wrap
35954 msgid ""
35955 " struct guestfs_dirent_list {\n"
35956 "   uint32_t len; /* Number of elements in list. */\n"
35957 "   struct guestfs_dirent *val; /* Elements. */\n"
35958 " };\n"
35959 " \n"
35960 msgstr ""
35961
35962 #. type: verbatim
35963 #: ../src/guestfs-structs.pod:172
35964 #, no-wrap
35965 msgid ""
35966 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35967 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35968 "\n"
35969 msgstr ""
35970
35971 #. type: verbatim
35972 #: ../src/guestfs-structs.pod:177
35973 #, no-wrap
35974 msgid ""
35975 " struct guestfs_version {\n"
35976 "   int64_t major;\n"
35977 "   int64_t minor;\n"
35978 "   int64_t release;\n"
35979 "   char *extra;\n"
35980 " };\n"
35981 " \n"
35982 msgstr ""
35983
35984 #. type: verbatim
35985 #: ../src/guestfs-structs.pod:184
35986 #, no-wrap
35987 msgid ""
35988 " struct guestfs_version_list {\n"
35989 "   uint32_t len; /* Number of elements in list. */\n"
35990 "   struct guestfs_version *val; /* Elements. */\n"
35991 " };\n"
35992 " \n"
35993 msgstr ""
35994
35995 #. type: verbatim
35996 #: ../src/guestfs-structs.pod:189
35997 #, no-wrap
35998 msgid ""
35999 " void guestfs_free_version (struct guestfs_free_version *);\n"
36000 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
36001 "\n"
36002 msgstr ""
36003
36004 #. type: =head2
36005 #: ../src/guestfs-structs.pod:192
36006 msgid "guestfs_xattr"
36007 msgstr ""
36008
36009 #. type: verbatim
36010 #: ../src/guestfs-structs.pod:194
36011 #, no-wrap
36012 msgid ""
36013 " struct guestfs_xattr {\n"
36014 "   char *attrname;\n"
36015 "   /* The next two fields describe a byte array. */\n"
36016 "   uint32_t attrval_len;\n"
36017 "   char *attrval;\n"
36018 " };\n"
36019 " \n"
36020 msgstr ""
36021
36022 #. type: verbatim
36023 #: ../src/guestfs-structs.pod:201
36024 #, no-wrap
36025 msgid ""
36026 " struct guestfs_xattr_list {\n"
36027 "   uint32_t len; /* Number of elements in list. */\n"
36028 "   struct guestfs_xattr *val; /* Elements. */\n"
36029 " };\n"
36030 " \n"
36031 msgstr ""
36032
36033 #. type: verbatim
36034 #: ../src/guestfs-structs.pod:206
36035 #, no-wrap
36036 msgid ""
36037 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
36038 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
36039 "\n"
36040 msgstr ""
36041
36042 #. type: =head2
36043 #: ../src/guestfs-structs.pod:209
36044 msgid "guestfs_inotify_event"
36045 msgstr ""
36046
36047 #. type: verbatim
36048 #: ../src/guestfs-structs.pod:211
36049 #, no-wrap
36050 msgid ""
36051 " struct guestfs_inotify_event {\n"
36052 "   int64_t in_wd;\n"
36053 "   uint32_t in_mask;\n"
36054 "   uint32_t in_cookie;\n"
36055 "   char *in_name;\n"
36056 " };\n"
36057 " \n"
36058 msgstr ""
36059
36060 #. type: verbatim
36061 #: ../src/guestfs-structs.pod:218
36062 #, no-wrap
36063 msgid ""
36064 " struct guestfs_inotify_event_list {\n"
36065 "   uint32_t len; /* Number of elements in list. */\n"
36066 "   struct guestfs_inotify_event *val; /* Elements. */\n"
36067 " };\n"
36068 " \n"
36069 msgstr ""
36070
36071 #. type: verbatim
36072 #: ../src/guestfs-structs.pod:223
36073 #, no-wrap
36074 msgid ""
36075 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36076 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
36077 "\n"
36078 msgstr ""
36079
36080 #. type: =head2
36081 #: ../src/guestfs-structs.pod:226
36082 msgid "guestfs_partition"
36083 msgstr ""
36084
36085 #. type: verbatim
36086 #: ../src/guestfs-structs.pod:228
36087 #, no-wrap
36088 msgid ""
36089 " struct guestfs_partition {\n"
36090 "   int32_t part_num;\n"
36091 "   uint64_t part_start;\n"
36092 "   uint64_t part_end;\n"
36093 "   uint64_t part_size;\n"
36094 " };\n"
36095 " \n"
36096 msgstr ""
36097
36098 #. type: verbatim
36099 #: ../src/guestfs-structs.pod:235
36100 #, no-wrap
36101 msgid ""
36102 " struct guestfs_partition_list {\n"
36103 "   uint32_t len; /* Number of elements in list. */\n"
36104 "   struct guestfs_partition *val; /* Elements. */\n"
36105 " };\n"
36106 " \n"
36107 msgstr ""
36108
36109 #. type: verbatim
36110 #: ../src/guestfs-structs.pod:240
36111 #, no-wrap
36112 msgid ""
36113 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
36114 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
36115 "\n"
36116 msgstr ""
36117
36118 #. type: =head2
36119 #: ../src/guestfs-structs.pod:243
36120 msgid "guestfs_application"
36121 msgstr ""
36122
36123 #. type: verbatim
36124 #: ../src/guestfs-structs.pod:245
36125 #, no-wrap
36126 msgid ""
36127 " struct guestfs_application {\n"
36128 "   char *app_name;\n"
36129 "   char *app_display_name;\n"
36130 "   int32_t app_epoch;\n"
36131 "   char *app_version;\n"
36132 "   char *app_release;\n"
36133 "   char *app_install_path;\n"
36134 "   char *app_trans_path;\n"
36135 "   char *app_publisher;\n"
36136 "   char *app_url;\n"
36137 "   char *app_source_package;\n"
36138 "   char *app_summary;\n"
36139 "   char *app_description;\n"
36140 " };\n"
36141 " \n"
36142 msgstr ""
36143
36144 #. type: verbatim
36145 #: ../src/guestfs-structs.pod:260
36146 #, no-wrap
36147 msgid ""
36148 " struct guestfs_application_list {\n"
36149 "   uint32_t len; /* Number of elements in list. */\n"
36150 "   struct guestfs_application *val; /* Elements. */\n"
36151 " };\n"
36152 " \n"
36153 msgstr ""
36154
36155 #. type: verbatim
36156 #: ../src/guestfs-structs.pod:265
36157 #, no-wrap
36158 msgid ""
36159 " void guestfs_free_application (struct guestfs_free_application *);\n"
36160 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
36161 "\n"
36162 msgstr ""
36163
36164 #. type: textblock
36165 #: ../src/guestfs.pod:5
36166 msgid "guestfs - Library for accessing and modifying virtual machine images"
36167 msgstr ""
36168 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
36169 "машин"
36170
36171 #. type: verbatim
36172 #: ../src/guestfs.pod:11
36173 #, no-wrap
36174 msgid ""
36175 " guestfs_h *g = guestfs_create ();\n"
36176 " guestfs_add_drive (g, \"guest.img\");\n"
36177 " guestfs_launch (g);\n"
36178 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36179 " guestfs_touch (g, \"/hello\");\n"
36180 " guestfs_umount (g, \"/\");\n"
36181 " guestfs_close (g);\n"
36182 "\n"
36183 msgstr ""
36184 " guestfs_h *g = guestfs_create ();\n"
36185 " guestfs_add_drive (g, \"guest.img\");\n"
36186 " guestfs_launch (g);\n"
36187 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36188 " guestfs_touch (g, \"/hello\");\n"
36189 " guestfs_umount (g, \"/\");\n"
36190 " guestfs_close (g);\n"
36191 "\n"
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:25
36195 msgid ""
36196 "Libguestfs is a library for accessing and modifying guest disk images.  "
36197 "Amongst the things this is good for: making batch configuration changes to "
36198 "guests, getting disk used/free statistics (see also: virt-df), migrating "
36199 "between virtualization systems (see also: virt-p2v), performing partial "
36200 "backups, performing partial guest clones, cloning guests and changing "
36201 "registry/UUID/hostname info, and much else besides."
36202 msgstr ""
36203
36204 #. type: textblock
36205 #: ../src/guestfs.pod:33
36206 msgid ""
36207 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
36208 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
36209 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
36210 "qcow2, vmdk."
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:38
36215 msgid ""
36216 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
36217 "what filesystem is in each LV, etc.).  It can also run commands in the "
36218 "context of the guest.  Also you can access filesystems over FUSE."
36219 msgstr ""
36220
36221 #. type: textblock
36222 #: ../src/guestfs.pod:43
36223 msgid ""
36224 "Libguestfs is a library that can be linked with C and C++ management "
36225 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
36226 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
36227 "command line."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:48
36232 msgid ""
36233 "You don't need to be root to use libguestfs, although obviously you do need "
36234 "enough permissions to access the disk images."
36235 msgstr ""
36236
36237 #. type: textblock
36238 #: ../src/guestfs.pod:51
36239 msgid ""
36240 "Libguestfs is a large API because it can do many things.  For a gentle "
36241 "introduction, please read the L</API OVERVIEW> section next."
36242 msgstr ""
36243
36244 #. type: textblock
36245 #: ../src/guestfs.pod:54
36246 msgid ""
36247 "There are also some example programs in the L<guestfs-examples(3)> manual "
36248 "page."
36249 msgstr ""
36250
36251 #. type: =head1
36252 #: ../src/guestfs.pod:57
36253 msgid "API OVERVIEW"
36254 msgstr "ОГЛЯД API"
36255
36256 #. type: textblock
36257 #: ../src/guestfs.pod:59
36258 msgid ""
36259 "This section provides a gentler overview of the libguestfs API.  We also try "
36260 "to group API calls together, where that may not be obvious from reading "
36261 "about the individual calls in the main section of this manual."
36262 msgstr ""
36263
36264 #. type: =head2
36265 #: ../src/guestfs.pod:64
36266 msgid "HANDLES"
36267 msgstr "ОБРОБНИКИ"
36268
36269 #. type: textblock
36270 #: ../src/guestfs.pod:66
36271 msgid ""
36272 "Before you can use libguestfs calls, you have to create a handle.  Then you "
36273 "must add at least one disk image to the handle, followed by launching the "
36274 "handle, then performing whatever operations you want, and finally closing "
36275 "the handle.  By convention we use the single letter C<g> for the name of the "
36276 "handle variable, although of course you can use any name you want."
36277 msgstr ""
36278
36279 #. type: textblock
36280 #: ../src/guestfs.pod:73
36281 msgid "The general structure of all libguestfs-using programs looks like this:"
36282 msgstr ""
36283
36284 #. type: verbatim
36285 #: ../src/guestfs.pod:76
36286 #, no-wrap
36287 msgid ""
36288 " guestfs_h *g = guestfs_create ();\n"
36289 " \n"
36290 msgstr ""
36291 " guestfs_h *g = guestfs_create ();\n"
36292 " \n"
36293
36294 #. type: verbatim
36295 #: ../src/guestfs.pod:78
36296 #, no-wrap
36297 msgid ""
36298 " /* Call guestfs_add_drive additional times if there are\n"
36299 "  * multiple disk images.\n"
36300 "  */\n"
36301 " guestfs_add_drive (g, \"guest.img\");\n"
36302 " \n"
36303 msgstr ""
36304
36305 #. type: verbatim
36306 #: ../src/guestfs.pod:83
36307 #, no-wrap
36308 msgid ""
36309 " /* Most manipulation calls won't work until you've launched\n"
36310 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
36311 "  * and _before_ other commands.\n"
36312 "  */\n"
36313 " guestfs_launch (g);\n"
36314 " \n"
36315 msgstr ""
36316
36317 #. type: verbatim
36318 #: ../src/guestfs.pod:89
36319 #, no-wrap
36320 msgid ""
36321 " /* Now you can examine what partitions, LVs etc are available.\n"
36322 "  */\n"
36323 " char **partitions = guestfs_list_partitions (g);\n"
36324 " char **logvols = guestfs_lvs (g);\n"
36325 " \n"
36326 msgstr ""
36327 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
36328 "  */\n"
36329 " char **partitions = guestfs_list_partitions (g);\n"
36330 " char **logvols = guestfs_lvs (g);\n"
36331 " \n"
36332
36333 #. type: verbatim
36334 #: ../src/guestfs.pod:94
36335 #, no-wrap
36336 msgid ""
36337 " /* To access a filesystem in the image, you must mount it.\n"
36338 "  */\n"
36339 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36340 " \n"
36341 msgstr ""
36342 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
36343 "  */\n"
36344 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36345 " \n"
36346
36347 #. type: verbatim
36348 #: ../src/guestfs.pod:98
36349 #, no-wrap
36350 msgid ""
36351 " /* Now you can perform filesystem actions on the guest\n"
36352 "  * disk image.\n"
36353 "  */\n"
36354 " guestfs_touch (g, \"/hello\");\n"
36355 " \n"
36356 msgstr ""
36357 " /* Тепер ви можете виконувати дії з файловою системою на\n"
36358 "  * образі диска операційної системи.\n"
36359 "  */\n"
36360 " guestfs_touch (g, \"/hello\");\n"
36361 " \n"
36362
36363 #. type: verbatim
36364 #: ../src/guestfs.pod:103
36365 #, no-wrap
36366 msgid ""
36367 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
36368 "  * it is done automatically when you close the handle.  See\n"
36369 "  * discussion of autosync in this page.\n"
36370 "  */\n"
36371 " guestfs_sync (g);\n"
36372 " \n"
36373 msgstr ""
36374
36375 #. type: verbatim
36376 #: ../src/guestfs.pod:109
36377 #, no-wrap
36378 msgid ""
36379 " /* Close the handle 'g'. */\n"
36380 " guestfs_close (g);\n"
36381 "\n"
36382 msgstr ""
36383 " /* Закрити дескриптор 'g'. */\n"
36384 " guestfs_close (g);\n"
36385 "\n"
36386
36387 #. type: textblock
36388 #: ../src/guestfs.pod:112
36389 msgid ""
36390 "The code above doesn't include any error checking.  In real code you should "
36391 "check return values carefully for errors.  In general all functions that "
36392 "return integers return C<-1> on error, and all functions that return "
36393 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
36394 "how to handle errors, and consult the documentation for each function call "
36395 "below to see precisely how they return error indications.  See L<guestfs-"
36396 "examples(3)> for fully worked examples."
36397 msgstr ""
36398
36399 #. type: =head2
36400 #: ../src/guestfs.pod:121
36401 msgid "DISK IMAGES"
36402 msgstr "ОБРАЗИ ДИСКІВ"
36403
36404 #. type: textblock
36405 #: ../src/guestfs.pod:123
36406 msgid ""
36407 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
36408 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
36409 "actual block device, or simply an empty file of zeroes that you have created "
36410 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
36411 "of these."
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:129
36416 msgid ""
36417 "The call you should use in modern code for adding drives is L</"
36418 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
36419 "specifying that the format is raw, do:"
36420 msgstr ""
36421
36422 #. type: verbatim
36423 #: ../src/guestfs.pod:133
36424 #, no-wrap
36425 msgid ""
36426 " guestfs_add_drive_opts (g, filename,\n"
36427 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36428 "                         -1);\n"
36429 "\n"
36430 msgstr ""
36431 " guestfs_add_drive_opts (g, filename,\n"
36432 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36433 "                         -1);\n"
36434 "\n"
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:137
36438 msgid "You can add a disk read-only using:"
36439 msgstr "Ви можете додати диск у режимі лише читання:"
36440
36441 #. type: verbatim
36442 #: ../src/guestfs.pod:139
36443 #, no-wrap
36444 msgid ""
36445 " guestfs_add_drive_opts (g, filename,\n"
36446 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36447 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36448 "                         -1);\n"
36449 "\n"
36450 msgstr ""
36451 " guestfs_add_drive_opts (g, filename,\n"
36452 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36453 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36454 "                         -1);\n"
36455 "\n"
36456
36457 #. type: textblock
36458 #: ../src/guestfs.pod:144
36459 msgid ""
36460 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
36461 "libguestfs won't modify the file."
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:147
36466 msgid ""
36467 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36468 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
36469 "corruption, but adding it read-only is safe."
36470 msgstr ""
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:151
36474 msgid ""
36475 "You must add at least one disk image, and you may add multiple disk images.  "
36476 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36477 "first one you added), C</dev/sdb> (for the second one you added), etc."
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../src/guestfs.pod:156
36482 msgid ""
36483 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
36484 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36485 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
36486 msgstr ""
36487
36488 #. type: =head2
36489 #: ../src/guestfs.pod:161
36490 msgid "MOUNTING"
36491 msgstr "МОНТУВАННЯ"
36492
36493 #. type: textblock
36494 #: ../src/guestfs.pod:163
36495 msgid ""
36496 "Before you can read or write files, create directories and so on in a disk "
36497 "image that contains filesystems, you have to mount those filesystems using "
36498 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
36499 "a disk image contains (for example) one partition with a filesystem on that "
36500 "partition, then you can mount it directly:"
36501 msgstr ""
36502
36503 #. type: verbatim
36504 #: ../src/guestfs.pod:170
36505 #, no-wrap
36506 msgid ""
36507 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36508 "\n"
36509 msgstr ""
36510 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36511 "\n"
36512
36513 #. type: textblock
36514 #: ../src/guestfs.pod:172
36515 msgid ""
36516 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36517 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
36518 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
36519 "that these are libguestfs virtual devices, and are nothing to do with host "
36520 "devices."
36521 msgstr ""
36522
36523 #. type: textblock
36524 #: ../src/guestfs.pod:178
36525 msgid ""
36526 "If you are given a disk image and you don't know what it contains then you "
36527 "have to find out.  Libguestfs can do that too: use L</"
36528 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36529 "LVs, and either try mounting each to see what is mountable, or else examine "
36530 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
36531 "filesystems, use L</guestfs_list_filesystems>."
36532 msgstr ""
36533
36534 #. type: textblock
36535 #: ../src/guestfs.pod:186
36536 msgid ""
36537 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36538 "L</INSPECTION> below).  But you might find it easier to look at higher level "
36539 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36540 msgstr ""
36541
36542 #. type: textblock
36543 #: ../src/guestfs.pod:191
36544 msgid ""
36545 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
36546 "several other variations of the C<guestfs_mount_*> call."
36547 msgstr ""
36548
36549 #. type: =head2
36550 #: ../src/guestfs.pod:194
36551 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36552 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:196
36556 msgid ""
36557 "The majority of the libguestfs API consists of fairly low-level calls for "
36558 "accessing and modifying the files, directories, symlinks etc on mounted "
36559 "filesystems.  There are over a hundred such calls which you can find listed "
36560 "in detail below in this man page, and we don't even pretend to cover them "
36561 "all in this overview."
36562 msgstr ""
36563
36564 #. type: textblock
36565 #: ../src/guestfs.pod:202
36566 msgid ""
36567 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36568 "mount point."
36569 msgstr ""
36570 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
36571 "точкою монтування."
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:205
36575 msgid ""
36576 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36577 "the file called C<\"etc/passwd\"> then you could do:"
36578 msgstr ""
36579 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
36580 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
36581 "таким кодом:"
36582
36583 #. type: verbatim
36584 #: ../src/guestfs.pod:208
36585 #, no-wrap
36586 msgid ""
36587 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36588 "\n"
36589 msgstr ""
36590 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36591 "\n"
36592
36593 #. type: textblock
36594 #: ../src/guestfs.pod:210
36595 msgid ""
36596 "This would return C<data> as a newly allocated buffer containing the full "
36597 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36598 "or C<NULL> if there was an error."
36599 msgstr ""
36600
36601 #. type: textblock
36602 #: ../src/guestfs.pod:214
36603 msgid ""
36604 "As another example, to create a top-level directory on that filesystem "
36605 "called C<\"var\"> you would do:"
36606 msgstr ""
36607
36608 #. type: verbatim
36609 #: ../src/guestfs.pod:217
36610 #, no-wrap
36611 msgid ""
36612 " guestfs_mkdir (g, \"/var\");\n"
36613 "\n"
36614 msgstr ""
36615 " guestfs_mkdir (g, \"/var\");\n"
36616 "\n"
36617
36618 #. type: textblock
36619 #: ../src/guestfs.pod:219
36620 msgid "To create a symlink you could do:"
36621 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
36622
36623 #. type: verbatim
36624 #: ../src/guestfs.pod:221
36625 #, no-wrap
36626 msgid ""
36627 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36628 "               \"/etc/rc3.d/S30portmap\");\n"
36629 "\n"
36630 msgstr ""
36631 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36632 "               \"/etc/rc3.d/S30portmap\");\n"
36633 "\n"
36634
36635 #. type: textblock
36636 #: ../src/guestfs.pod:224
36637 msgid ""
36638 "Libguestfs will reject attempts to use relative paths and there is no "
36639 "concept of a current working directory."
36640 msgstr ""
36641
36642 #. type: textblock
36643 #: ../src/guestfs.pod:227
36644 msgid ""
36645 "Libguestfs can return errors in many situations: for example if the "
36646 "filesystem isn't writable, or if a file or directory that you requested "
36647 "doesn't exist.  If you are using the C API (documented here)  you have to "
36648 "check for those error conditions after each call.  (Other language bindings "
36649 "turn these errors into exceptions)."
36650 msgstr ""
36651
36652 #. type: textblock
36653 #: ../src/guestfs.pod:233
36654 msgid ""
36655 "File writes are affected by the per-handle umask, set by calling L</"
36656 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
36657 msgstr ""
36658
36659 #. type: =head2
36660 #: ../src/guestfs.pod:236
36661 msgid "PARTITIONING"
36662 msgstr "ПОДІЛ НА РОЗДІЛИ"
36663
36664 #. type: textblock
36665 #: ../src/guestfs.pod:238
36666 msgid ""
36667 "Libguestfs contains API calls to read, create and modify partition tables on "
36668 "disk images."
36669 msgstr ""
36670
36671 #. type: textblock
36672 #: ../src/guestfs.pod:241
36673 msgid ""
36674 "In the common case where you want to create a single partition covering the "
36675 "whole disk, you should use the L</guestfs_part_disk> call:"
36676 msgstr ""
36677
36678 #. type: verbatim
36679 #: ../src/guestfs.pod:245
36680 #, no-wrap
36681 msgid ""
36682 " const char *parttype = \"mbr\";\n"
36683 " if (disk_is_larger_than_2TB)\n"
36684 "   parttype = \"gpt\";\n"
36685 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36686 "\n"
36687 msgstr ""
36688 " const char *parttype = \"mbr\";\n"
36689 " if (disk_is_larger_than_2TB)\n"
36690 "   parttype = \"gpt\";\n"
36691 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36692 "\n"
36693
36694 #. type: textblock
36695 #: ../src/guestfs.pod:250
36696 msgid ""
36697 "Obviously this effectively wipes anything that was on that disk image before."
36698 msgstr ""
36699
36700 #. type: =head2
36701 #: ../src/guestfs.pod:253
36702 msgid "LVM2"
36703 msgstr "LVM2"
36704
36705 #. type: textblock
36706 #: ../src/guestfs.pod:255
36707 msgid ""
36708 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36709 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36710 "you familiarize yourself with the concepts of physical volumes, volume "
36711 "groups and logical volumes."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../src/guestfs.pod:260
36716 msgid ""
36717 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36718 "tldp.org/HOWTO/LVM-HOWTO/>."
36719 msgstr ""
36720
36721 #. type: =head2
36722 #: ../src/guestfs.pod:263
36723 msgid "DOWNLOADING"
36724 msgstr "ОТРИМАННЯ ДАНИХ"
36725
36726 #. type: textblock
36727 #: ../src/guestfs.pod:265
36728 msgid ""
36729 "Use L</guestfs_cat> to download small, text only files.  This call is "
36730 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36731 "NUL (C<\\0>) characters.  However the API is very simple to use."
36732 msgstr ""
36733
36734 #. type: textblock
36735 #: ../src/guestfs.pod:269
36736 msgid ""
36737 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36738 "bit data, since it returns a (pointer, size) pair.  However it is still "
36739 "limited to \"small\" files, less than 2 MB."
36740 msgstr ""
36741
36742 #. type: textblock
36743 #: ../src/guestfs.pod:273
36744 msgid ""
36745 "L</guestfs_download> can be used to download any file, with no limits on "
36746 "content or size (even files larger than 4 GB)."
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:276
36751 msgid ""
36752 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36753 msgstr ""
36754
36755 #. type: =head2
36756 #: ../src/guestfs.pod:279
36757 msgid "UPLOADING"
36758 msgstr "ВИВАНТАЖЕННЯ"
36759
36760 #. type: textblock
36761 #: ../src/guestfs.pod:281
36762 msgid ""
36763 "It's often the case that you want to write a file or files to the disk image."
36764 msgstr ""
36765
36766 #. type: textblock
36767 #: ../src/guestfs.pod:284
36768 msgid ""
36769 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36770 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36771 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36772 "of other functions for creating test files, for example L</guestfs_fill> and "
36773 "L</guestfs_fill_pattern>."
36774 msgstr ""
36775
36776 #. type: textblock
36777 #: ../src/guestfs.pod:290
36778 msgid ""
36779 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36780 "file content or size (even files larger than 4 GB)."
36781 msgstr ""
36782
36783 #. type: textblock
36784 #: ../src/guestfs.pod:293
36785 msgid ""
36786 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:295
36791 msgid ""
36792 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36793 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36794 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36795 "in a predictable way (eg. adding it last after all other drives) then you "
36796 "can get the device name from L</guestfs_list_devices> and mount it directly "
36797 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36798 "portable between kernel versions, and they don't support labels or UUIDs.  "
36799 "If you want to pre-build an image or you need to mount it using a label or "
36800 "UUID, use an ISO image instead."
36801 msgstr ""
36802
36803 #. type: =head2
36804 #: ../src/guestfs.pod:306
36805 msgid "COPYING"
36806 msgstr "КОПІЮВАННЯ"
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:308
36810 msgid ""
36811 "There are various different commands for copying between files and devices "
36812 "and in and out of the guest filesystem.  These are summarised in the table "
36813 "below."
36814 msgstr ""
36815
36816 #. type: =item
36817 #: ../src/guestfs.pod:314
36818 msgid "B<file> to B<file>"
36819 msgstr "B<файл> у B<файл>"
36820
36821 #. type: textblock
36822 #: ../src/guestfs.pod:316
36823 msgid ""
36824 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36825 "directories recursively."
36826 msgstr ""
36827
36828 #. type: textblock
36829 #: ../src/guestfs.pod:319
36830 msgid ""
36831 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36832 msgstr ""
36833
36834 #. type: =item
36835 #: ../src/guestfs.pod:322
36836 msgid "B<file> to B<device>"
36837 msgstr ""
36838
36839 #. type: =item
36840 #: ../src/guestfs.pod:324
36841 msgid "B<device> to B<file>"
36842 msgstr ""
36843
36844 #. type: =item
36845 #: ../src/guestfs.pod:326
36846 msgid "B<device> to B<device>"
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:328
36851 msgid ""
36852 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36853 "guestfs_copy_device_to_device>."
36854 msgstr ""
36855
36856 #. type: textblock
36857 #: ../src/guestfs.pod:331
36858 msgid "Example: duplicate the contents of an LV:"
36859 msgstr ""
36860
36861 #. type: verbatim
36862 #: ../src/guestfs.pod:333
36863 #, no-wrap
36864 msgid ""
36865 " guestfs_copy_device_to_device (g,\n"
36866 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36867 "         /* -1 marks the end of the list of optional parameters */\n"
36868 "         -1);\n"
36869 "\n"
36870 msgstr ""
36871
36872 #. type: textblock
36873 #: ../src/guestfs.pod:338
36874 msgid ""
36875 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36876 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36877 "optional C<size> parameter:"
36878 msgstr ""
36879
36880 #. type: verbatim
36881 #: ../src/guestfs.pod:342
36882 #, no-wrap
36883 msgid ""
36884 " guestfs_copy_device_to_device (g,\n"
36885 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36886 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36887 "         -1);\n"
36888 "\n"
36889 msgstr ""
36890
36891 #. type: =item
36892 #: ../src/guestfs.pod:347
36893 msgid "B<file on the host> to B<file or device>"
36894 msgstr ""
36895
36896 #. type: textblock
36897 #: ../src/guestfs.pod:349
36898 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36899 msgstr ""
36900
36901 #. type: =item
36902 #: ../src/guestfs.pod:351
36903 msgid "B<file or device> to B<file on the host>"
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:353
36908 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36909 msgstr ""
36910
36911 #. type: =head2
36912 #: ../src/guestfs.pod:357
36913 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36914 msgstr ""
36915
36916 #. type: textblock
36917 #: ../src/guestfs.pod:359
36918 msgid ""
36919 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36920 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36921 "appears you can only upload and download to files.  However many Un*x-like "
36922 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36923 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36924 "and arbitrary file descriptor N."
36925 msgstr ""
36926
36927 #. type: textblock
36928 #: ../src/guestfs.pod:367
36929 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36930 msgstr ""
36931
36932 #. type: verbatim
36933 #: ../src/guestfs.pod:370
36934 #, no-wrap
36935 msgid ""
36936 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36937 "\n"
36938 msgstr ""
36939 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36940 "\n"
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:372
36944 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36945 msgstr ""
36946
36947 #. type: verbatim
36948 #: ../src/guestfs.pod:374
36949 #, no-wrap
36950 msgid ""
36951 " char devfd[64];\n"
36952 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36953 " guestfs_tar_out (g, \"/\", devfd);\n"
36954 "\n"
36955 msgstr ""
36956 " char devfd[64];\n"
36957 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36958 " guestfs_tar_out (g, \"/\", devfd);\n"
36959 "\n"
36960
36961 #. type: =head2
36962 #: ../src/guestfs.pod:378
36963 msgid "LISTING FILES"
36964 msgstr "СПИСКИ ФАЙЛІВ"
36965
36966 #. type: textblock
36967 #: ../src/guestfs.pod:380
36968 msgid ""
36969 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36970 "L<guestfish(1)>-equivalent command C<ll>)."
36971 msgstr ""
36972
36973 #. type: textblock
36974 #: ../src/guestfs.pod:383
36975 msgid ""
36976 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36977 "programs, as a flat list of strings."
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:386
36982 msgid ""
36983 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36984 "directory, plus additional information about each one.  It is more "
36985 "equivalent to using the L<readdir(3)> call on a local filesystem."
36986 msgstr ""
36987
36988 #. type: textblock
36989 #: ../src/guestfs.pod:390
36990 msgid ""
36991 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36992 msgstr ""
36993
36994 #. type: =head2
36995 #: ../src/guestfs.pod:393
36996 msgid "RUNNING COMMANDS"
36997 msgstr "ВИКОНАННЯ КОМАНД"
36998
36999 #. type: textblock
37000 #: ../src/guestfs.pod:395
37001 msgid ""
37002 "Although libguestfs is primarily an API for manipulating files inside guest "
37003 "images, we also provide some limited facilities for running commands inside "
37004 "guests."
37005 msgstr ""
37006
37007 #. type: textblock
37008 #: ../src/guestfs.pod:399
37009 msgid "There are many limitations to this:"
37010 msgstr ""
37011
37012 #. type: textblock
37013 #: ../src/guestfs.pod:405
37014 msgid ""
37015 "The kernel version that the command runs under will be different from what "
37016 "it expects."
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:410
37021 msgid ""
37022 "If the command needs to communicate with daemons, then most likely they "
37023 "won't be running."
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../src/guestfs.pod:415
37028 msgid "The command will be running in limited memory."
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../src/guestfs.pod:419
37033 msgid ""
37034 "The network may not be available unless you enable it (see L</"
37035 "guestfs_set_network>)."
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../src/guestfs.pod:424
37040 msgid "Only supports Linux guests (not Windows, BSD, etc)."
37041 msgstr ""
37042
37043 #. type: textblock
37044 #: ../src/guestfs.pod:428
37045 msgid ""
37046 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:433
37051 msgid ""
37052 "For SELinux guests, you may need to enable SELinux and load policy first.  "
37053 "See L</SELINUX> in this manpage."
37054 msgstr ""
37055
37056 #. type: textblock
37057 #: ../src/guestfs.pod:438
37058 msgid ""
37059 "I<Security:> It is not safe to run commands from untrusted, possibly "
37060 "malicious guests.  These commands may attempt to exploit your program by "
37061 "sending unexpected output.  They could also try to exploit the Linux kernel "
37062 "or qemu provided by the libguestfs appliance.  They could use the network "
37063 "provided by the libguestfs appliance to bypass ordinary network partitions "
37064 "and firewalls.  They could use the elevated privileges or different SELinux "
37065 "context of your program to their advantage."
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:447
37070 msgid ""
37071 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
37072 "(a script which runs when the guest next boots normally), and to have this "
37073 "script run the commands you want in the normal context of the running guest, "
37074 "network security and so on.  For information about other security issues, "
37075 "see L</SECURITY>."
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../src/guestfs.pod:455
37080 msgid ""
37081 "The two main API calls to run commands are L</guestfs_command> and L</"
37082 "guestfs_sh> (there are also variations)."
37083 msgstr ""
37084
37085 #. type: textblock
37086 #: ../src/guestfs.pod:458
37087 msgid ""
37088 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
37089 "shell globs, redirections, etc will work."
37090 msgstr ""
37091
37092 #. type: =head2
37093 #: ../src/guestfs.pod:461
37094 msgid "CONFIGURATION FILES"
37095 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
37096
37097 #. type: textblock
37098 #: ../src/guestfs.pod:463
37099 msgid ""
37100 "To read and write configuration files in Linux guest filesystems, we "
37101 "strongly recommend using Augeas.  For example, Augeas understands how to "
37102 "read and write, say, a Linux shadow password file or X.org configuration "
37103 "file, and so avoids you having to write that code."
37104 msgstr ""
37105
37106 #. type: textblock
37107 #: ../src/guestfs.pod:468
37108 msgid ""
37109 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
37110 "document Augeas itself here because there is excellent documentation on the "
37111 "L<http://augeas.net/> website."
37112 msgstr ""
37113
37114 #. type: textblock
37115 #: ../src/guestfs.pod:472
37116 msgid ""
37117 "If you don't want to use Augeas (you fool!) then try calling L</"
37118 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
37119 "over."
37120 msgstr ""
37121
37122 #. type: =head2
37123 #: ../src/guestfs.pod:476
37124 msgid "SELINUX"
37125 msgstr "SELINUX"
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:478
37129 msgid ""
37130 "We support SELinux guests.  To ensure that labeling happens correctly in "
37131 "SELinux guests, you need to enable SELinux and load the guest's policy:"
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:486
37136 msgid "Before launching, do:"
37137 msgstr ""
37138
37139 #. type: verbatim
37140 #: ../src/guestfs.pod:488
37141 #, no-wrap
37142 msgid ""
37143 " guestfs_set_selinux (g, 1);\n"
37144 "\n"
37145 msgstr ""
37146 " guestfs_set_selinux (g, 1);\n"
37147 "\n"
37148
37149 #. type: textblock
37150 #: ../src/guestfs.pod:492
37151 msgid ""
37152 "After mounting the guest's filesystem(s), load the policy.  This is best "
37153 "done by running the L<load_policy(8)> command in the guest itself:"
37154 msgstr ""
37155
37156 #. type: verbatim
37157 #: ../src/guestfs.pod:496
37158 #, no-wrap
37159 msgid ""
37160 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37161 "\n"
37162 msgstr ""
37163 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37164 "\n"
37165
37166 #. type: textblock
37167 #: ../src/guestfs.pod:498
37168 msgid ""
37169 "(Older versions of C<load_policy> require you to specify the name of the "
37170 "policy file)."
37171 msgstr ""
37172
37173 #. type: textblock
37174 #: ../src/guestfs.pod:503
37175 msgid ""
37176 "Optionally, set the security context for the API.  The correct security "
37177 "context to use can only be known by inspecting the guest.  As an example:"
37178 msgstr ""
37179
37180 #. type: verbatim
37181 #: ../src/guestfs.pod:507
37182 #, no-wrap
37183 msgid ""
37184 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37185 "\n"
37186 msgstr ""
37187 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37188 "\n"
37189
37190 #. type: textblock
37191 #: ../src/guestfs.pod:511
37192 msgid "This will work for running commands and editing existing files."
37193 msgstr ""
37194
37195 #. type: textblock
37196 #: ../src/guestfs.pod:513
37197 msgid ""
37198 "When new files are created, you may need to label them explicitly, for "
37199 "example by running the external command C<restorecon pathname>."
37200 msgstr ""
37201
37202 #. type: =head2
37203 #: ../src/guestfs.pod:517
37204 msgid "UMASK"
37205 msgstr "UMASK"
37206
37207 #. type: textblock
37208 #: ../src/guestfs.pod:519
37209 msgid ""
37210 "Certain calls are affected by the current file mode creation mask (the "
37211 "\"umask\").  In particular ones which create files or directories, such as "
37212 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
37213 "either the default mode that the file is created with or modifies the mode "
37214 "that you supply."
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:525
37219 msgid ""
37220 "The default umask is C<022>, so files are created with modes such as C<0644> "
37221 "and directories with C<0755>."
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../src/guestfs.pod:528
37226 msgid ""
37227 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
37228 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
37229 "guestfs_chmod> after creating each file or directory."
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:532
37234 msgid "For more information about umask, see L<umask(2)>."
37235 msgstr ""
37236
37237 #. type: textblock
37238 #: ../src/guestfs.pod:536
37239 msgid ""
37240 "Libguestfs allows you to access Linux guests which have been encrypted using "
37241 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
37242 "standard.  This includes nearly all whole disk encryption systems used by "
37243 "modern Linux guests."
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../src/guestfs.pod:542
37248 msgid ""
37249 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
37250 "returns the string C<crypto_LUKS>)."
37251 msgstr ""
37252
37253 #. type: textblock
37254 #: ../src/guestfs.pod:545
37255 msgid ""
37256 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
37257 "will require the passphrase!"
37258 msgstr ""
37259
37260 #. type: textblock
37261 #: ../src/guestfs.pod:548
37262 msgid ""
37263 "Opening a LUKS device creates a new device mapper device called C</dev/"
37264 "mapper/mapname> (where C<mapname> is the string you supply to L</"
37265 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
37266 "from and encrypted to the underlying block device respectively."
37267 msgstr ""
37268
37269 #. type: textblock
37270 #: ../src/guestfs.pod:554
37271 msgid ""
37272 "LVM volume groups on the device can be made visible by calling L</"
37273 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
37274 "(s) can now be mounted in the usual way."
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../src/guestfs.pod:558
37279 msgid ""
37280 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
37281 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
37282 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
37283 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
37284 "underlying encrypted block device)."
37285 msgstr ""
37286
37287 #. type: =head2
37288 #: ../src/guestfs.pod:565
37289 msgid "INSPECTION"
37290 msgstr "ПЕРЕВІРКА"
37291
37292 #. type: textblock
37293 #: ../src/guestfs.pod:567
37294 msgid ""
37295 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
37296 "contains operating systems, an install CD or a live CD.  (These APIs used to "
37297 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
37298 "version 1.5.3 the most frequently used part of this library has been "
37299 "rewritten in C and moved into the core code)."
37300 msgstr ""
37301
37302 #. type: textblock
37303 #: ../src/guestfs.pod:574
37304 msgid ""
37305 "Add all disks belonging to the unknown virtual machine and call L</"
37306 "guestfs_launch> in the usual way."
37307 msgstr ""
37308
37309 #. type: textblock
37310 #: ../src/guestfs.pod:577
37311 msgid ""
37312 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
37313 "and certain heuristics, and returns a list of operating systems that were "
37314 "found.  An empty list means none were found.  A single element is the root "
37315 "filesystem of the operating system.  For dual- or multi-boot guests, "
37316 "multiple roots can be returned, each one corresponding to a separate "
37317 "operating system.  (Multi-boot virtual machines are extremely rare in the "
37318 "world of virtualization, but since this scenario can happen, we have built "
37319 "libguestfs to deal with it.)"
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../src/guestfs.pod:586
37324 msgid ""
37325 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
37326 "to get additional details about that operating system.  For example, call L</"
37327 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
37328 "Windows and Linux-based operating systems respectively."
37329 msgstr ""
37330
37331 #. type: textblock
37332 #: ../src/guestfs.pod:592
37333 msgid ""
37334 "Un*x-like and Linux-based operating systems usually consist of several "
37335 "filesystems which are mounted at boot time (for example, a separate boot "
37336 "partition mounted on C</boot>).  The inspection rules are able to detect how "
37337 "filesystems correspond to mount points.  Call "
37338 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
37339 "hash table like this example:"
37340 msgstr ""
37341
37342 #. type: verbatim
37343 #: ../src/guestfs.pod:599
37344 #, no-wrap
37345 msgid ""
37346 " /boot => /dev/sda1\n"
37347 " /     => /dev/vg_guest/lv_root\n"
37348 " /usr  => /dev/vg_guest/lv_usr\n"
37349 "\n"
37350 msgstr ""
37351 " /boot => /dev/sda1\n"
37352 " /     => /dev/vg_guest/lv_root\n"
37353 " /usr  => /dev/vg_guest/lv_usr\n"
37354 "\n"
37355
37356 #. type: textblock
37357 #: ../src/guestfs.pod:603
37358 msgid ""
37359 "The caller can then make calls to L</guestfs_mount_options> to mount the "
37360 "filesystems as suggested."
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../src/guestfs.pod:606
37365 msgid ""
37366 "Be careful to mount filesystems in the right order (eg. C</> before C</"
37367 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
37368 msgstr ""
37369
37370 #. type: textblock
37371 #: ../src/guestfs.pod:610
37372 msgid ""
37373 "Inspection currently only works for some common operating systems.  "
37374 "Contributors are welcome to send patches for other operating systems that we "
37375 "currently cannot detect."
37376 msgstr ""
37377
37378 #. type: textblock
37379 #: ../src/guestfs.pod:614
37380 msgid ""
37381 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
37382 "for more details.  The L</guestfs_inspect_os> function just ignores any "
37383 "encrypted devices."
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:618
37388 msgid ""
37389 "A note on the implementation: The call L</guestfs_inspect_os> performs "
37390 "inspection and caches the results in the guest handle.  Subsequent calls to "
37391 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
37392 "read the disks.  If you change the content of the guest disks, you can redo "
37393 "inspection by calling L</guestfs_inspect_os> again.  (L</"
37394 "guestfs_inspect_list_applications> works a little differently from the other "
37395 "calls and does read the disks.  See documentation for that function for "
37396 "details)."
37397 msgstr ""
37398
37399 #. type: =head3
37400 #: ../src/guestfs.pod:627
37401 msgid "INSPECTING INSTALL DISKS"
37402 msgstr ""
37403
37404 #. type: textblock
37405 #: ../src/guestfs.pod:629
37406 msgid ""
37407 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
37408 "CDs and more."
37409 msgstr ""
37410
37411 #. type: textblock
37412 #: ../src/guestfs.pod:632
37413 msgid ""
37414 "Call L</guestfs_inspect_get_format> to return the format of the operating "
37415 "system, which currently can be C<installed> (a regular operating system) or "
37416 "C<installer> (some sort of install disk)."
37417 msgstr ""
37418
37419 #. type: textblock
37420 #: ../src/guestfs.pod:636
37421 msgid ""
37422 "Further information is available about the operating system that can be "
37423 "installed using the regular inspection APIs like L</"
37424 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
37425 msgstr ""
37426
37427 #. type: textblock
37428 #: ../src/guestfs.pod:641
37429 msgid ""
37430 "Some additional information specific to installer disks is also available "
37431 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
37432 "guestfs_inspect_is_multipart> calls."
37433 msgstr ""
37434
37435 #. type: =head2
37436 #: ../src/guestfs.pod:646
37437 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
37438 msgstr ""
37439
37440 #. type: textblock
37441 #: ../src/guestfs.pod:648
37442 msgid ""
37443 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
37444 "ntfs-3g.org/> driver."
37445 msgstr ""
37446
37447 #. type: =head3
37448 #: ../src/guestfs.pod:651
37449 msgid "DRIVE LETTERS AND PATHS"
37450 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
37451
37452 #. type: textblock
37453 #: ../src/guestfs.pod:653
37454 msgid ""
37455 "DOS and Windows still use drive letters, and the filesystems are always "
37456 "treated as case insensitive by Windows itself, and therefore you might find "
37457 "a Windows configuration file referring to a path like C<c:\\windows"
37458 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
37459 "might be referred to as C</WINDOWS/System32>."
37460 msgstr ""
37461
37462 #. type: textblock
37463 #: ../src/guestfs.pod:659
37464 msgid ""
37465 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37466 "L</guestfs_inspect_get_drive_mappings>)"
37467 msgstr ""
37468
37469 #. type: textblock
37470 #: ../src/guestfs.pod:662
37471 msgid ""
37472 "Dealing with separator characters (backslash vs forward slash) is outside "
37473 "the scope of libguestfs, but usually a simple character replacement will "
37474 "work."
37475 msgstr ""
37476
37477 #. type: textblock
37478 #: ../src/guestfs.pod:666
37479 msgid ""
37480 "To resolve the case insensitivity of paths, call L</"
37481 "guestfs_case_sensitive_path>."
37482 msgstr ""
37483
37484 #. type: =head3
37485 #: ../src/guestfs.pod:669
37486 msgid "ACCESSING THE WINDOWS REGISTRY"
37487 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
37488
37489 #. type: textblock
37490 #: ../src/guestfs.pod:671
37491 msgid ""
37492 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37493 "files, through the library C<hivex> which is part of the libguestfs project "
37494 "although ships as a separate tarball.  You have to locate and download the "
37495 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
37496 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37497 "reg(1)> for more help on this issue."
37498 msgstr ""
37499
37500 #. type: =head3
37501 #: ../src/guestfs.pod:679
37502 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37503 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
37504
37505 #. type: textblock
37506 #: ../src/guestfs.pod:681
37507 msgid ""
37508 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37509 "provide something which looks like a Linux symlink.  The way it tries to do "
37510 "the rewriting is described here:"
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:685
37515 msgid ""
37516 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37517 "symbolic-links/>"
37518 msgstr ""
37519 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37520 "symbolic-links/>"
37521
37522 #. type: textblock
37523 #: ../src/guestfs.pod:687
37524 msgid ""
37525 "The essential problem is that ntfs-3g simply does not have enough "
37526 "information to do a correct job.  NTFS links can contain drive letters and "
37527 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
37528 "It is almost certainly the case that libguestfs callers should ignore what "
37529 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37530 msgstr ""
37531
37532 #. type: textblock
37533 #: ../src/guestfs.pod:694
37534 msgid ""
37535 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37536 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37537 "attribute, and read the raw reparse data from that (you can find the format "
37538 "documented in various places around the web)."
37539 msgstr ""
37540
37541 #. type: =head3
37542 #: ../src/guestfs.pod:699
37543 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37544 msgstr ""
37545
37546 #. type: textblock
37547 #: ../src/guestfs.pod:701
37548 msgid ""
37549 "There are other useful extended attributes that can be read from ntfs-3g "
37550 "filesystems (using L</guestfs_getxattr>).  See:"
37551 msgstr ""
37552
37553 #. type: textblock
37554 #: ../src/guestfs.pod:704
37555 msgid ""
37556 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37557 msgstr ""
37558 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37559
37560 #. type: =head2
37561 #: ../src/guestfs.pod:706
37562 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37563 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
37564
37565 #. type: textblock
37566 #: ../src/guestfs.pod:708
37567 msgid ""
37568 "Although we don't want to discourage you from using the C API, we will "
37569 "mention here that the same API is also available in other languages."
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:711
37574 msgid ""
37575 "The API is broadly identical in all supported languages.  This means that "
37576 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37577 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37578 "OCaml.  In other words, a straightforward, predictable isomorphism between "
37579 "each language."
37580 msgstr ""
37581
37582 #. type: textblock
37583 #: ../src/guestfs.pod:717
37584 msgid ""
37585 "Error messages are automatically transformed into exceptions if the language "
37586 "supports it."
37587 msgstr ""
37588
37589 #. type: textblock
37590 #: ../src/guestfs.pod:720
37591 msgid ""
37592 "We don't try to \"object orientify\" parts of the API in OO languages, "
37593 "although contributors are welcome to write higher level APIs above what we "
37594 "provide in their favourite languages if they wish."
37595 msgstr ""
37596
37597 #. type: =item
37598 #: ../src/guestfs.pod:726
37599 msgid "B<C++>"
37600 msgstr "B<C++>"
37601
37602 #. type: textblock
37603 #: ../src/guestfs.pod:728
37604 msgid ""
37605 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
37606 "identical to the C API.  C++ classes and exceptions are not used."
37607 msgstr ""
37608
37609 #. type: =item
37610 #: ../src/guestfs.pod:732
37611 msgid "B<C#>"
37612 msgstr "B<C#>"
37613
37614 #. type: textblock
37615 #: ../src/guestfs.pod:734
37616 msgid ""
37617 "The C# bindings are highly experimental.  Please read the warnings at the "
37618 "top of C<csharp/Libguestfs.cs>."
37619 msgstr ""
37620
37621 #. type: =item
37622 #: ../src/guestfs.pod:737
37623 msgid "B<Erlang>"
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../src/guestfs.pod:739
37628 msgid "See L<guestfs-erlang(3)>."
37629 msgstr ""
37630
37631 #. type: =item
37632 #: ../src/guestfs.pod:741
37633 msgid "B<Haskell>"
37634 msgstr "B<Haskell>"
37635
37636 #. type: textblock
37637 #: ../src/guestfs.pod:743
37638 msgid ""
37639 "This is the only language binding that is working but incomplete.  Only "
37640 "calls which return simple integers have been bound in Haskell, and we are "
37641 "looking for help to complete this binding."
37642 msgstr ""
37643
37644 #. type: =item
37645 #: ../src/guestfs.pod:747
37646 msgid "B<Java>"
37647 msgstr "B<Java>"
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:749
37651 msgid ""
37652 "Full documentation is contained in the Javadoc which is distributed with "
37653 "libguestfs.  For examples, see L<guestfs-java(3)>."
37654 msgstr ""
37655
37656 #. type: =item
37657 #: ../src/guestfs.pod:752
37658 msgid "B<OCaml>"
37659 msgstr "B<OCaml>"
37660
37661 #. type: textblock
37662 #: ../src/guestfs.pod:754
37663 msgid "See L<guestfs-ocaml(3)>."
37664 msgstr "Див. L<guestfs-ocaml(3)>."
37665
37666 #. type: =item
37667 #: ../src/guestfs.pod:756
37668 msgid "B<Perl>"
37669 msgstr "B<Perl>"
37670
37671 #. type: textblock
37672 #: ../src/guestfs.pod:758
37673 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37674 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
37675
37676 #. type: =item
37677 #: ../src/guestfs.pod:760
37678 msgid "B<PHP>"
37679 msgstr "B<PHP>"
37680
37681 #. type: textblock
37682 #: ../src/guestfs.pod:762
37683 msgid ""
37684 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37685 "the php-libguestfs package for your distribution."
37686 msgstr ""
37687
37688 #. type: textblock
37689 #: ../src/guestfs.pod:765
37690 msgid "The PHP binding only works correctly on 64 bit machines."
37691 msgstr ""
37692
37693 #. type: =item
37694 #: ../src/guestfs.pod:767
37695 msgid "B<Python>"
37696 msgstr "B<Python>"
37697
37698 #. type: textblock
37699 #: ../src/guestfs.pod:769
37700 msgid "See L<guestfs-python(3)>."
37701 msgstr "Див. L<guestfs-python(3)>."
37702
37703 #. type: =item
37704 #: ../src/guestfs.pod:771
37705 msgid "B<Ruby>"
37706 msgstr "B<Ruby>"
37707
37708 #. type: textblock
37709 #: ../src/guestfs.pod:773
37710 msgid "See L<guestfs-ruby(3)>."
37711 msgstr "Див. L<guestfs-ruby(3)>."
37712
37713 #. type: =item
37714 #: ../src/guestfs.pod:775
37715 msgid "B<shell scripts>"
37716 msgstr "B<скрипти оболонки>"
37717
37718 #. type: textblock
37719 #: ../src/guestfs.pod:777
37720 msgid "See L<guestfish(1)>."
37721 msgstr "Див. L<guestfish(1)>."
37722
37723 #. type: =head2
37724 #: ../src/guestfs.pod:781
37725 msgid "LIBGUESTFS GOTCHAS"
37726 msgstr ""
37727
37728 #. type: textblock
37729 #: ../src/guestfs.pod:783
37730 msgid ""
37731 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37732 "system [...] that works in the way it is documented but is counterintuitive "
37733 "and almost invites mistakes.\""
37734 msgstr ""
37735
37736 #. type: textblock
37737 #: ../src/guestfs.pod:787
37738 msgid ""
37739 "Since we developed libguestfs and the associated tools, there are several "
37740 "things we would have designed differently, but are now stuck with for "
37741 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37742 "release, you can expect these to change.  Beware of them."
37743 msgstr ""
37744
37745 #. type: =item
37746 #: ../src/guestfs.pod:795
37747 msgid "Autosync / forgetting to sync."
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../src/guestfs.pod:797
37752 msgid ""
37753 "I<Update:> Autosync is enabled by default for all API users starting from "
37754 "libguestfs 1.5.24.  This section only applies to older versions."
37755 msgstr ""
37756
37757 #. type: textblock
37758 #: ../src/guestfs.pod:800
37759 msgid ""
37760 "When modifying a filesystem from C or another language, you B<must> unmount "
37761 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37762 "libguestfs handle.  You can also call:"
37763 msgstr ""
37764
37765 #. type: verbatim
37766 #: ../src/guestfs.pod:804
37767 #, no-wrap
37768 msgid ""
37769 " guestfs_set_autosync (g, 1);\n"
37770 "\n"
37771 msgstr ""
37772 " guestfs_set_autosync (g, 1);\n"
37773 "\n"
37774
37775 #. type: textblock
37776 #: ../src/guestfs.pod:806
37777 msgid ""
37778 "to have the unmount/sync done automatically for you when the handle 'g' is "
37779 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:810
37784 msgid ""
37785 "If you forget to do this, then it is entirely possible that your changes "
37786 "won't be written out, or will be partially written, or (very rarely) that "
37787 "you'll get disk corruption."
37788 msgstr ""
37789
37790 #. type: textblock
37791 #: ../src/guestfs.pod:814
37792 msgid ""
37793 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37794 "guestfish scripts that forget to sync will work just fine, which can make "
37795 "this very puzzling if you are trying to debug a problem."
37796 msgstr ""
37797
37798 #. type: =item
37799 #: ../src/guestfs.pod:818
37800 msgid "Mount option C<-o sync> should not be the default."
37801 msgstr ""
37802
37803 #. type: textblock
37804 #: ../src/guestfs.pod:820
37805 msgid ""
37806 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37807 "libguestfs 1.13.16.  This section only applies to older versions."
37808 msgstr ""
37809
37810 #. type: textblock
37811 #: ../src/guestfs.pod:823
37812 msgid ""
37813 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37814 "However C<-o sync> does not add any reliability benefit, but does have a "
37815 "very large performance impact."
37816 msgstr ""
37817
37818 #. type: textblock
37819 #: ../src/guestfs.pod:827
37820 msgid ""
37821 "The work around is to use L</guestfs_mount_options> and set the mount "
37822 "options that you actually want to use."
37823 msgstr ""
37824
37825 #. type: =item
37826 #: ../src/guestfs.pod:830
37827 msgid "Read-only should be the default."
37828 msgstr ""
37829
37830 #. type: textblock
37831 #: ../src/guestfs.pod:832
37832 msgid ""
37833 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37834 "specify I<--rw> if you want to make changes to the image."
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:835
37839 msgid "This would reduce the potential to corrupt live VM images."
37840 msgstr ""
37841
37842 #. type: textblock
37843 #: ../src/guestfs.pod:837
37844 msgid ""
37845 "Note that many filesystems change the disk when you just mount and unmount, "
37846 "even if you didn't perform any writes.  You need to use L</"
37847 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37848 msgstr ""
37849
37850 #. type: =item
37851 #: ../src/guestfs.pod:841
37852 msgid "guestfish command line is hard to use."
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../src/guestfs.pod:843
37857 msgid ""
37858 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37859 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37860 "exist, so it fails.  In earlier versions of guestfish the error message was "
37861 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37862 "we should have used C<guestfish -c command> to run commands."
37863 msgstr ""
37864
37865 #. type: =item
37866 #: ../src/guestfs.pod:850
37867 msgid "guestfish megabyte modifiers don't work right on all commands"
37868 msgstr ""
37869
37870 #. type: textblock
37871 #: ../src/guestfs.pod:852
37872 msgid ""
37873 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37874 "other modifiers).  What guestfish actually does is to multiply the number "
37875 "part by the modifier part and pass the result to the C API.  However this "
37876 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37877 "expecting some other unit (eg. megabytes)."
37878 msgstr ""
37879
37880 #. type: textblock
37881 #: ../src/guestfs.pod:859
37882 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37883 msgstr ""
37884
37885 #. type: verbatim
37886 #: ../src/guestfs.pod:861
37887 #, no-wrap
37888 msgid ""
37889 " lvcreate LV VG 100M\n"
37890 "\n"
37891 msgstr ""
37892 " lvcreate LV VG 100M\n"
37893 "\n"
37894
37895 #. type: textblock
37896 #: ../src/guestfs.pod:863
37897 msgid ""
37898 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37899 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37900 "megabytes * megabytes) logical volume.  The error message you get from this "
37901 "is also a little obscure."
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:868
37906 msgid ""
37907 "This could be fixed in the generator by specially marking parameters and "
37908 "return values which take bytes or other units."
37909 msgstr ""
37910
37911 #. type: =item
37912 #: ../src/guestfs.pod:871
37913 msgid "Ambiguity between devices and paths"
37914 msgstr ""
37915
37916 #. type: textblock
37917 #: ../src/guestfs.pod:873
37918 msgid ""
37919 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37920 "sdb2>) and a similar pathname.  A file might just happen to be called "
37921 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:878
37926 msgid ""
37927 "In the current API we usually resolve this ambiguity by having two separate "
37928 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37929 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37930 "detecting if the path supplied begins with C</dev/>."
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../src/guestfs.pod:884
37935 msgid ""
37936 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37937 "make paths/devices into structured names.  One way to do this would be to "
37938 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37939 "aspect of grub.  Another way would be to use a structured type, equivalent "
37940 "to this OCaml type:"
37941 msgstr ""
37942
37943 #. type: verbatim
37944 #: ../src/guestfs.pod:890
37945 #, no-wrap
37946 msgid ""
37947 " type path = Path of string | Device of int | Partition of int * int\n"
37948 "\n"
37949 msgstr ""
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:892
37953 msgid "which would allow you to pass arguments like:"
37954 msgstr ""
37955
37956 #. type: verbatim
37957 #: ../src/guestfs.pod:894
37958 #, no-wrap
37959 msgid ""
37960 " Path \"/foo/bar\"\n"
37961 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37962 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37963 " Path \"/dev/sdb2\"    (* not a device *)\n"
37964 "\n"
37965 msgstr ""
37966
37967 #. type: textblock
37968 #: ../src/guestfs.pod:899
37969 msgid ""
37970 "As you can see there are still problems to resolve even with this "
37971 "representation.  Also consider how it might work in guestfish."
37972 msgstr ""
37973
37974 #. type: =head2
37975 #: ../src/guestfs.pod:904
37976 msgid "KEYS AND PASSPHRASES"
37977 msgstr "КЛЮЧІ І ПАРОЛІ"
37978
37979 #. type: textblock
37980 #: ../src/guestfs.pod:906
37981 msgid ""
37982 "Certain libguestfs calls take a parameter that contains sensitive key "
37983 "material, passed in as a C string."
37984 msgstr ""
37985
37986 #. type: textblock
37987 #: ../src/guestfs.pod:909
37988 msgid ""
37989 "In the future we would hope to change the libguestfs implementation so that "
37990 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37991 "swap.  However this is I<not> done at the moment, because of the complexity "
37992 "of such an implementation."
37993 msgstr ""
37994
37995 #. type: textblock
37996 #: ../src/guestfs.pod:914
37997 msgid ""
37998 "Therefore you should be aware that any key parameter you pass to libguestfs "
37999 "might end up being written out to the swap partition.  If this is a concern, "
38000 "scrub the swap partition or don't use libguestfs on encrypted devices."
38001 msgstr ""
38002
38003 #. type: =head2
38004 #: ../src/guestfs.pod:919
38005 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
38006 msgstr ""
38007
38008 #. type: textblock
38009 #: ../src/guestfs.pod:921
38010 msgid ""
38011 "All high-level libguestfs actions are synchronous.  If you want to use "
38012 "libguestfs asynchronously then you must create a thread."
38013 msgstr ""
38014
38015 #. type: textblock
38016 #: ../src/guestfs.pod:924
38017 msgid ""
38018 "Only use the handle from a single thread.  Either use the handle exclusively "
38019 "from one thread, or provide your own mutex so that two threads cannot issue "
38020 "calls on the same handle at the same time."
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:928
38025 msgid ""
38026 "See the graphical program guestfs-browser for one possible architecture for "
38027 "multithreaded programs using libvirt and libguestfs."
38028 msgstr ""
38029
38030 #. type: =head2
38031 #: ../src/guestfs.pod:931
38032 msgid "PATH"
38033 msgstr "ШЛЯХ"
38034
38035 #. type: textblock
38036 #: ../src/guestfs.pod:933
38037 msgid ""
38038 "Libguestfs needs a supermin appliance, which it finds by looking along an "
38039 "internal path."
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../src/guestfs.pod:936
38044 msgid ""
38045 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
38046 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
38047 msgstr ""
38048
38049 #. type: textblock
38050 #: ../src/guestfs.pod:939
38051 msgid ""
38052 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
38053 "to change the directories that libguestfs will search in.  The value is a "
38054 "colon-separated list of paths.  The current directory is I<not> searched "
38055 "unless the path contains an empty element or C<.>.  For example "
38056 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
38057 "then C</usr/lib/guestfs>."
38058 msgstr ""
38059
38060 #. type: =head2
38061 #: ../src/guestfs.pod:946
38062 msgid "QEMU WRAPPERS"
38063 msgstr ""
38064
38065 #. type: textblock
38066 #: ../src/guestfs.pod:948
38067 msgid ""
38068 "If you want to compile your own qemu, run qemu from a non-standard location, "
38069 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
38070 "around qemu."
38071 msgstr ""
38072
38073 #. type: textblock
38074 #: ../src/guestfs.pod:952
38075 msgid ""
38076 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38077 "last command in the shell script (so that qemu replaces the shell and "
38078 "becomes the direct child of the libguestfs-using program).  If you don't do "
38079 "this, then the qemu process won't be cleaned up correctly."
38080 msgstr ""
38081
38082 #. type: textblock
38083 #: ../src/guestfs.pod:957
38084 msgid ""
38085 "Here is an example of a wrapper, where I have built my own copy of qemu from "
38086 "source:"
38087 msgstr ""
38088
38089 #. type: verbatim
38090 #: ../src/guestfs.pod:960
38091 #, no-wrap
38092 msgid ""
38093 " #!/bin/sh -\n"
38094 " qemudir=/home/rjones/d/qemu\n"
38095 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38096 "\n"
38097 msgstr ""
38098 " #!/bin/sh -\n"
38099 " qemudir=/home/rjones/d/qemu\n"
38100 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38101 "\n"
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:964
38105 msgid ""
38106 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
38107 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
38108 "example:"
38109 msgstr ""
38110
38111 #. type: verbatim
38112 #: ../src/guestfs.pod:968
38113 #, no-wrap
38114 msgid ""
38115 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38116 "\n"
38117 msgstr ""
38118 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38119 "\n"
38120
38121 #. type: textblock
38122 #: ../src/guestfs.pod:970
38123 msgid ""
38124 "Note that libguestfs also calls qemu with the -help and -version options in "
38125 "order to determine features."
38126 msgstr ""
38127
38128 #. type: textblock
38129 #: ../src/guestfs.pod:973
38130 msgid ""
38131 "Wrappers can also be used to edit the options passed to qemu.  In the "
38132 "following example, the C<-machine ...> option (C<-machine> and the following "
38133 "argument) are removed from the command line and replaced with C<-machine pc,"
38134 "accel=tcg>.  The while loop iterates over the options until it finds the "
38135 "right one to remove, putting the remaining options into the C<args> array."
38136 msgstr ""
38137
38138 #. type: verbatim
38139 #: ../src/guestfs.pod:982
38140 #, no-wrap
38141 msgid ""
38142 " i=0\n"
38143 " while [ $# -gt 0 ]; do\n"
38144 "     case \"$1\" in\n"
38145 "     -machine)\n"
38146 "         shift 2;;\n"
38147 "     *)\n"
38148 "         args[i]=\"$1\"\n"
38149 "         (( i++ ))\n"
38150 "         shift ;;\n"
38151 "     esac\n"
38152 " done\n"
38153 " \n"
38154 msgstr ""
38155
38156 #. type: verbatim
38157 #: ../src/guestfs.pod:994
38158 #, no-wrap
38159 msgid ""
38160 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
38161 "\n"
38162 msgstr ""
38163
38164 #. type: =head2
38165 #: ../src/guestfs.pod:996
38166 msgid "ATTACHING TO RUNNING DAEMONS"
38167 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
38168
38169 #. type: textblock
38170 #: ../src/guestfs.pod:998
38171 msgid ""
38172 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
38173 "babies.  Use with caution."
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../src/guestfs.pod:1001
38178 msgid ""
38179 "I<Note (2):> This section explains how to attach to a running daemon from a "
38180 "low level perspective.  For most users, simply using virt tools such as "
38181 "L<guestfish(1)> with the I<--live> option will \"just work\"."
38182 msgstr ""
38183
38184 #. type: =head3
38185 #: ../src/guestfs.pod:1005
38186 msgid "Using guestfs_set_attach_method"
38187 msgstr "За допомогою guestfs_set_attach_method"
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:1007
38191 msgid ""
38192 "By calling L</guestfs_set_attach_method> you can change how the library "
38193 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
38194 "ARCHITECTURE> for some background)."
38195 msgstr ""
38196
38197 #. type: textblock
38198 #: ../src/guestfs.pod:1011
38199 msgid ""
38200 "The normal attach method is C<appliance>, where a small appliance is created "
38201 "containing the daemon, and then the library connects to this."
38202 msgstr ""
38203
38204 #. type: textblock
38205 #: ../src/guestfs.pod:1014
38206 msgid ""
38207 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
38208 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
38209 "daemon over the Unix domain socket."
38210 msgstr ""
38211
38212 #. type: textblock
38213 #: ../src/guestfs.pod:1018
38214 msgid ""
38215 "The normal use for this is to connect to a running virtual machine that "
38216 "contains a C<guestfsd> daemon, and send commands so you can read and write "
38217 "files inside the live virtual machine."
38218 msgstr ""
38219
38220 #. type: =head3
38221 #: ../src/guestfs.pod:1022
38222 msgid "Using guestfs_add_domain with live flag"
38223 msgstr "За допомогою guestfs_add_domain з прапорцем live"
38224
38225 #. type: textblock
38226 #: ../src/guestfs.pod:1024
38227 msgid ""
38228 "L</guestfs_add_domain> provides some help for getting the correct attach "
38229 "method.  If you pass the C<live> option to this function, then (if the "
38230 "virtual machine is running) it will examine the libvirt XML looking for a "
38231 "virtio-serial channel to connect to:"
38232 msgstr ""
38233
38234 #. type: verbatim
38235 #: ../src/guestfs.pod:1030
38236 #, no-wrap
38237 msgid ""
38238 " <domain>\n"
38239 "   ...\n"
38240 "   <devices>\n"
38241 "     ...\n"
38242 "     <channel type='unix'>\n"
38243 "       <source mode='bind' path='/path/to/socket'/>\n"
38244 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38245 "     </channel>\n"
38246 "     ...\n"
38247 "   </devices>\n"
38248 " </domain>\n"
38249 "\n"
38250 msgstr ""
38251 " <domain>\n"
38252 "   ...\n"
38253 "   <devices>\n"
38254 "     ...\n"
38255 "     <channel type='unix'>\n"
38256 "       <source mode='bind' path='/path/to/socket'/>\n"
38257 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38258 "     </channel>\n"
38259 "     ...\n"
38260 "   </devices>\n"
38261 " </domain>\n"
38262 "\n"
38263
38264 #. type: textblock
38265 #: ../src/guestfs.pod:1042
38266 msgid ""
38267 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
38268 "method to C<unix:/path/to/socket>."
38269 msgstr ""
38270
38271 #. type: textblock
38272 #: ../src/guestfs.pod:1045
38273 msgid ""
38274 "Some of the libguestfs tools (including guestfish) support a I<--live> "
38275 "option which is passed through to L</guestfs_add_domain> thus allowing you "
38276 "to attach to and modify live virtual machines."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:1049
38281 msgid ""
38282 "The virtual machine needs to have been set up beforehand so that it has the "
38283 "virtio-serial channel and so that guestfsd is running inside it."
38284 msgstr ""
38285
38286 #. type: =head2
38287 #: ../src/guestfs.pod:1053
38288 msgid "ABI GUARANTEE"
38289 msgstr "ГАРАНТІЯ ЩОДО ABI"
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:1055
38293 msgid ""
38294 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
38295 "actions as outlined in this section.  Although we will deprecate some "
38296 "actions, for example if they get replaced by newer calls, we will keep the "
38297 "old actions forever.  This allows you the developer to program in confidence "
38298 "against the libguestfs API."
38299 msgstr ""
38300
38301 #. type: =head2
38302 #: ../src/guestfs.pod:1061
38303 msgid "BLOCK DEVICE NAMING"
38304 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
38305
38306 #. type: textblock
38307 #: ../src/guestfs.pod:1063
38308 msgid ""
38309 "In the kernel there is now quite a profusion of schemata for naming block "
38310 "devices (in this context, by I<block device> I mean a physical or virtual "
38311 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
38312 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
38313 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
38314 "for the old IDE driver (particularly for SATA devices) those devices also "
38315 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
38316 "paravirtualized drivers.  This has created several different naming systems, "
38317 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
38318 msgstr ""
38319
38320 #. type: textblock
38321 #: ../src/guestfs.pod:1075
38322 msgid ""
38323 "As discussed above, libguestfs uses a qemu appliance running an embedded "
38324 "Linux kernel to access block devices.  We can run a variety of appliances "
38325 "based on a variety of Linux kernels."
38326 msgstr ""
38327
38328 #. type: textblock
38329 #: ../src/guestfs.pod:1079
38330 msgid ""
38331 "This causes a problem for libguestfs because many API calls use device or "
38332 "partition names.  Working scripts and the recipe (example) scripts that we "
38333 "make available over the internet could fail if the naming scheme changes."
38334 msgstr ""
38335
38336 #. type: textblock
38337 #: ../src/guestfs.pod:1084
38338 msgid ""
38339 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
38340 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
38341 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
38342 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:1090
38347 msgid ""
38348 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
38349 "L</guestfs_list_partitions> and similar calls return the true names of the "
38350 "devices and partitions as known to the appliance."
38351 msgstr ""
38352
38353 #. type: =head3
38354 #: ../src/guestfs.pod:1095
38355 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
38356 msgstr ""
38357
38358 #. type: textblock
38359 #: ../src/guestfs.pod:1097
38360 msgid ""
38361 "Usually this translation is transparent.  However in some (very rare)  cases "
38362 "you may need to know the exact algorithm.  Such cases include where you use "
38363 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
38364 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
38365 msgstr ""
38366
38367 #. type: textblock
38368 #: ../src/guestfs.pod:1103
38369 msgid ""
38370 "The algorithm is applied only to I<parameters> which are known to be either "
38371 "device or partition names.  Return values from functions such as L</"
38372 "guestfs_list_devices> are never changed."
38373 msgstr ""
38374
38375 #. type: textblock
38376 #: ../src/guestfs.pod:1111
38377 msgid "Is the string a parameter which is a device or partition name?"
38378 msgstr ""
38379
38380 #. type: textblock
38381 #: ../src/guestfs.pod:1115
38382 msgid "Does the string begin with C</dev/sd>?"
38383 msgstr "Чи починається рядок з C</dev/sd>?"
38384
38385 #. type: textblock
38386 #: ../src/guestfs.pod:1119
38387 msgid ""
38388 "Does the named device exist? If so, we use that device.  However if I<not> "
38389 "then we continue with this algorithm."
38390 msgstr ""
38391
38392 #. type: textblock
38393 #: ../src/guestfs.pod:1124
38394 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
38395 msgstr ""
38396
38397 #. type: textblock
38398 #: ../src/guestfs.pod:1126
38399 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
38400 msgstr ""
38401
38402 #. type: textblock
38403 #: ../src/guestfs.pod:1128
38404 msgid "If that named device exists, use it.  If not, continue."
38405 msgstr ""
38406
38407 #. type: textblock
38408 #: ../src/guestfs.pod:1132
38409 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
38410 msgstr ""
38411
38412 #. type: textblock
38413 #: ../src/guestfs.pod:1134
38414 msgid "If that named device exists, use it.  If not, return an error."
38415 msgstr ""
38416
38417 #. type: =head3
38418 #: ../src/guestfs.pod:1138
38419 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
38420 msgstr ""
38421
38422 #. type: textblock
38423 #: ../src/guestfs.pod:1140
38424 msgid ""
38425 "Although the standard naming scheme and automatic translation is useful for "
38426 "simple programs and guestfish scripts, for larger programs it is best not to "
38427 "rely on this mechanism."
38428 msgstr ""
38429
38430 #. type: textblock
38431 #: ../src/guestfs.pod:1144
38432 msgid ""
38433 "Where possible for maximum future portability programs using libguestfs "
38434 "should use these future-proof techniques:"
38435 msgstr ""
38436
38437 #. type: textblock
38438 #: ../src/guestfs.pod:1151
38439 msgid ""
38440 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
38441 "device names, and then use those names directly."
38442 msgstr ""
38443
38444 #. type: textblock
38445 #: ../src/guestfs.pod:1154
38446 msgid ""
38447 "Since those device names exist by definition, they will never be translated."
38448 msgstr ""
38449
38450 #. type: textblock
38451 #: ../src/guestfs.pod:1159
38452 msgid ""
38453 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
38454 "filesystem labels."
38455 msgstr ""
38456
38457 #. type: textblock
38458 #: ../src/guestfs.pod:1166
38459 msgid ""
38460 "This section discusses security implications of using libguestfs, "
38461 "particularly with untrusted or malicious guests or disk images."
38462 msgstr ""
38463
38464 #. type: =head2
38465 #: ../src/guestfs.pod:1169
38466 msgid "GENERAL SECURITY CONSIDERATIONS"
38467 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
38468
38469 #. type: textblock
38470 #: ../src/guestfs.pod:1171
38471 msgid ""
38472 "Be careful with any files or data that you download from a guest (by "
38473 "\"download\" we mean not just the L</guestfs_download> command but any "
38474 "command that reads files, filenames, directories or anything else from a "
38475 "disk image).  An attacker could manipulate the data to fool your program "
38476 "into doing the wrong thing.  Consider cases such as:"
38477 msgstr ""
38478
38479 #. type: textblock
38480 #: ../src/guestfs.pod:1181
38481 msgid "the data (file etc) not being present"
38482 msgstr ""
38483
38484 #. type: textblock
38485 #: ../src/guestfs.pod:1185
38486 msgid "being present but empty"
38487 msgstr ""
38488
38489 #. type: textblock
38490 #: ../src/guestfs.pod:1189
38491 msgid "being much larger than normal"
38492 msgstr ""
38493
38494 #. type: textblock
38495 #: ../src/guestfs.pod:1193
38496 msgid "containing arbitrary 8 bit data"
38497 msgstr ""
38498
38499 #. type: textblock
38500 #: ../src/guestfs.pod:1197
38501 msgid "being in an unexpected character encoding"
38502 msgstr ""
38503
38504 #. type: textblock
38505 #: ../src/guestfs.pod:1201
38506 msgid "containing homoglyphs."
38507 msgstr ""
38508
38509 #. type: =head2
38510 #: ../src/guestfs.pod:1205
38511 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38512 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
38513
38514 #. type: textblock
38515 #: ../src/guestfs.pod:1207
38516 msgid ""
38517 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38518 "(VFS) module can sometimes be escalated into exploits by deliberately "
38519 "creating a malicious, malformed filesystem.  These exploits are very severe "
38520 "for two reasons.  Firstly there are very many filesystem drivers in the "
38521 "kernel, and many of them are infrequently used and not much developer "
38522 "attention has been paid to the code.  Linux userspace helps potential "
38523 "crackers by detecting the filesystem type and automatically choosing the "
38524 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38525 "the administrator.  Secondly, a kernel-level exploit is like a local root "
38526 "exploit (worse in some ways), giving immediate and total access to the "
38527 "system right down to the hardware level."
38528 msgstr ""
38529
38530 #. type: textblock
38531 #: ../src/guestfs.pod:1220
38532 msgid ""
38533 "That explains why you should never mount a filesystem from an untrusted "
38534 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
38535 "inside a qemu virtual machine, usually running as a non-root user.  The "
38536 "attacker would need to write a filesystem which first exploited the kernel, "
38537 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38538 "the libguestfs protocol, and finally to be as serious as the host kernel "
38539 "exploit it would need to escalate its privileges to root.  This multi-step "
38540 "escalation, performed by a static piece of data, is thought to be extremely "
38541 "hard to do, although we never say 'never' about security issues."
38542 msgstr ""
38543
38544 #. type: textblock
38545 #: ../src/guestfs.pod:1231
38546 msgid ""
38547 "In any case callers can reduce the attack surface by forcing the filesystem "
38548 "type when mounting (use L</guestfs_mount_vfs>)."
38549 msgstr ""
38550
38551 #. type: =head2
38552 #: ../src/guestfs.pod:1234
38553 msgid "PROTOCOL SECURITY"
38554 msgstr "ЗАХИСТ ПРОТОКОЛУ"
38555
38556 #. type: textblock
38557 #: ../src/guestfs.pod:1236
38558 msgid ""
38559 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
38560 "defined upper message size.  However a program that uses libguestfs must "
38561 "also take care - for example you can write a program that downloads a binary "
38562 "from a disk image and executes it locally, and no amount of protocol "
38563 "security will save you from the consequences."
38564 msgstr ""
38565
38566 #. type: =head2
38567 #: ../src/guestfs.pod:1242
38568 msgid "INSPECTION SECURITY"
38569 msgstr ""
38570
38571 #. type: textblock
38572 #: ../src/guestfs.pod:1244
38573 msgid ""
38574 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38575 "directly from the guest, and these could contain any 8 bit data.  Callers "
38576 "should be careful to escape these before printing them to a structured file "
38577 "(for example, use HTML escaping if creating a web page)."
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../src/guestfs.pod:1250
38582 msgid ""
38583 "Guest configuration may be altered in unusual ways by the administrator of "
38584 "the virtual machine, and may not reflect reality (particularly for untrusted "
38585 "or actively malicious guests).  For example we parse the hostname from "
38586 "configuration files like C</etc/sysconfig/network> that we find in the "
38587 "guest, but the guest administrator can easily manipulate these files to "
38588 "provide the wrong hostname."
38589 msgstr ""
38590
38591 #. type: textblock
38592 #: ../src/guestfs.pod:1258
38593 msgid ""
38594 "The inspection API parses guest configuration using two external libraries: "
38595 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
38596 "designed to be robust in the face of malicious data, although denial of "
38597 "service attacks are still possible, for example with oversized configuration "
38598 "files."
38599 msgstr ""
38600
38601 #. type: =head2
38602 #: ../src/guestfs.pod:1264
38603 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38604 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
38605
38606 #. type: textblock
38607 #: ../src/guestfs.pod:1266
38608 msgid ""
38609 "Be very cautious about running commands from the guest.  By running a "
38610 "command in the guest, you are giving CPU time to a binary that you do not "
38611 "control, under the same user account as the library, albeit wrapped in qemu "
38612 "virtualization.  More information and alternatives can be found in the "
38613 "section L</RUNNING COMMANDS>."
38614 msgstr ""
38615
38616 #. type: =head2
38617 #: ../src/guestfs.pod:1272
38618 msgid "CVE-2010-3851"
38619 msgstr "CVE-2010-3851"
38620
38621 #. type: textblock
38622 #: ../src/guestfs.pod:1274
38623 msgid "https://bugzilla.redhat.com/642934"
38624 msgstr "https://bugzilla.redhat.com/642934"
38625
38626 #. type: textblock
38627 #: ../src/guestfs.pod:1276
38628 msgid ""
38629 "This security bug concerns the automatic disk format detection that qemu "
38630 "does on disk images."
38631 msgstr ""
38632
38633 #. type: textblock
38634 #: ../src/guestfs.pod:1279
38635 msgid ""
38636 "A raw disk image is just the raw bytes, there is no header.  Other disk "
38637 "images like qcow2 contain a special header.  Qemu deals with this by looking "
38638 "for one of the known headers, and if none is found then assuming the disk "
38639 "image must be raw."
38640 msgstr ""
38641
38642 #. type: textblock
38643 #: ../src/guestfs.pod:1284
38644 msgid ""
38645 "This allows a guest which has been given a raw disk image to write some "
38646 "other header.  At next boot (or when the disk image is accessed by "
38647 "libguestfs) qemu would do autodetection and think the disk image format was, "
38648 "say, qcow2 based on the header written by the guest."
38649 msgstr ""
38650
38651 #. type: textblock
38652 #: ../src/guestfs.pod:1289
38653 msgid ""
38654 "This in itself would not be a problem, but qcow2 offers many features, one "
38655 "of which is to allow a disk image to refer to another image (called the "
38656 "\"backing disk\").  It does this by placing the path to the backing disk "
38657 "into the qcow2 header.  This path is not validated and could point to any "
38658 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
38659 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38660 "control of the attacker."
38661 msgstr ""
38662
38663 #. type: textblock
38664 #: ../src/guestfs.pod:1297
38665 msgid ""
38666 "In libguestfs this is rather hard to exploit except under two circumstances:"
38667 msgstr ""
38668
38669 #. type: textblock
38670 #: ../src/guestfs.pod:1304
38671 msgid "You have enabled the network or have opened the disk in write mode."
38672 msgstr ""
38673
38674 #. type: textblock
38675 #: ../src/guestfs.pod:1308
38676 msgid ""
38677 "You are also running untrusted code from the guest (see L</RUNNING "
38678 "COMMANDS>)."
38679 msgstr ""
38680
38681 #. type: textblock
38682 #: ../src/guestfs.pod:1313
38683 msgid ""
38684 "The way to avoid this is to specify the expected disk format when adding "
38685 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
38686 "should always do this if the disk is raw format, and it's a good idea for "
38687 "other cases too."
38688 msgstr ""
38689
38690 #. type: textblock
38691 #: ../src/guestfs.pod:1318
38692 msgid ""
38693 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38694 "format is fetched from libvirt and passed through."
38695 msgstr ""
38696
38697 #. type: textblock
38698 #: ../src/guestfs.pod:1321
38699 msgid ""
38700 "For libguestfs tools, use the I<--format> command line parameter as "
38701 "appropriate."
38702 msgstr ""
38703
38704 #. type: =head1
38705 #: ../src/guestfs.pod:1324
38706 msgid "CONNECTION MANAGEMENT"
38707 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
38708
38709 #. type: =head2
38710 #: ../src/guestfs.pod:1326
38711 msgid "guestfs_h *"
38712 msgstr "guestfs_h *"
38713
38714 #. type: textblock
38715 #: ../src/guestfs.pod:1328
38716 msgid ""
38717 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38718 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38719 "handle and release all resources used."
38720 msgstr ""
38721
38722 #. type: textblock
38723 #: ../src/guestfs.pod:1332
38724 msgid ""
38725 "For information on using multiple handles and threads, see the section L</"
38726 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38727 msgstr ""
38728
38729 #. type: =head2
38730 #: ../src/guestfs.pod:1335
38731 msgid "guestfs_create"
38732 msgstr "guestfs_create"
38733
38734 #. type: verbatim
38735 #: ../src/guestfs.pod:1337
38736 #, no-wrap
38737 msgid ""
38738 " guestfs_h *guestfs_create (void);\n"
38739 "\n"
38740 msgstr ""
38741 " guestfs_h *guestfs_create (void);\n"
38742 "\n"
38743
38744 #. type: textblock
38745 #: ../src/guestfs.pod:1339
38746 msgid "Create a connection handle."
38747 msgstr "Створити дескриптор з’єднання."
38748
38749 #. type: textblock
38750 #: ../src/guestfs.pod:1341
38751 msgid ""
38752 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38753 "NULL."
38754 msgstr ""
38755
38756 #. type: textblock
38757 #: ../src/guestfs.pod:1344
38758 msgid ""
38759 "You have to \"configure\" the handle after creating it.  This includes "
38760 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38761 "handle at least once."
38762 msgstr ""
38763
38764 #. type: textblock
38765 #: ../src/guestfs.pod:1348
38766 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38767 msgstr ""
38768
38769 #. type: textblock
38770 #: ../src/guestfs.pod:1350
38771 msgid ""
38772 "You may also want to configure error handling for the handle.  See the L</"
38773 "ERROR HANDLING> section below."
38774 msgstr ""
38775
38776 #. type: =head2
38777 #: ../src/guestfs.pod:1353
38778 msgid "guestfs_close"
38779 msgstr "guestfs_close"
38780
38781 #. type: verbatim
38782 #: ../src/guestfs.pod:1355
38783 #, no-wrap
38784 msgid ""
38785 " void guestfs_close (guestfs_h *g);\n"
38786 "\n"
38787 msgstr ""
38788 " void guestfs_close (guestfs_h *g);\n"
38789 "\n"
38790
38791 #. type: textblock
38792 #: ../src/guestfs.pod:1357
38793 msgid "This closes the connection handle and frees up all resources used."
38794 msgstr ""
38795
38796 #. type: textblock
38797 #: ../src/guestfs.pod:1359
38798 msgid ""
38799 "If autosync was set on the handle and the handle was launched, then this "
38800 "implicitly calls various functions to unmount filesystems and sync the "
38801 "disk.  See L</guestfs_set_autosync> for more details."
38802 msgstr ""
38803
38804 #. type: textblock
38805 #: ../src/guestfs.pod:1363
38806 msgid "If a close callback was set on the handle, then it is called."
38807 msgstr ""
38808
38809 #. type: =head1
38810 #: ../src/guestfs.pod:1365
38811 msgid "ERROR HANDLING"
38812 msgstr "ОБРОБКА ПОМИЛОК"
38813
38814 #. type: textblock
38815 #: ../src/guestfs.pod:1367
38816 msgid ""
38817 "API functions can return errors.  For example, almost all functions that "
38818 "return C<int> will return C<-1> to indicate an error."
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../src/guestfs.pod:1370
38823 msgid ""
38824 "Additional information is available for errors: an error message string and "
38825 "optionally an error number (errno) if the thing that failed was a system "
38826 "call."
38827 msgstr ""
38828
38829 #. type: textblock
38830 #: ../src/guestfs.pod:1374
38831 msgid ""
38832 "You can get at the additional information about the last error on the handle "
38833 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38834 "up an error handler with L</guestfs_set_error_handler>."
38835 msgstr ""
38836
38837 #. type: textblock
38838 #: ../src/guestfs.pod:1379
38839 msgid ""
38840 "When the handle is created, a default error handler is installed which "
38841 "prints the error message string to C<stderr>.  For small short-running "
38842 "command line programs it is sufficient to do:"
38843 msgstr ""
38844
38845 #. type: verbatim
38846 #: ../src/guestfs.pod:1383
38847 #, no-wrap
38848 msgid ""
38849 " if (guestfs_launch (g) == -1)\n"
38850 "   exit (EXIT_FAILURE);\n"
38851 "\n"
38852 msgstr ""
38853 " if (guestfs_launch (g) == -1)\n"
38854 "   exit (EXIT_FAILURE);\n"
38855 "\n"
38856
38857 #. type: textblock
38858 #: ../src/guestfs.pod:1386
38859 msgid ""
38860 "since the default error handler will ensure that an error message has been "
38861 "printed to C<stderr> before the program exits."
38862 msgstr ""
38863
38864 #. type: textblock
38865 #: ../src/guestfs.pod:1389
38866 msgid ""
38867 "For other programs the caller will almost certainly want to install an "
38868 "alternate error handler or do error handling in-line like this:"
38869 msgstr ""
38870
38871 #. type: verbatim
38872 #: ../src/guestfs.pod:1392
38873 #, no-wrap
38874 msgid ""
38875 " /* This disables the default behaviour of printing errors\n"
38876 "    on stderr. */\n"
38877 " guestfs_set_error_handler (g, NULL, NULL);\n"
38878 " \n"
38879 msgstr ""
38880
38881 #. type: verbatim
38882 #: ../src/guestfs.pod:1396
38883 #, no-wrap
38884 msgid ""
38885 " if (guestfs_launch (g) == -1) {\n"
38886 "   /* Examine the error message and print it etc. */\n"
38887 "   char *msg = guestfs_last_error (g);\n"
38888 "   int errnum = guestfs_last_errno (g);\n"
38889 "   fprintf (stderr, \"%s\", msg);\n"
38890 "   if (errnum != 0)\n"
38891 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38892 "   fprintf (stderr, \"\\n\");\n"
38893 "   /* ... */\n"
38894 " }\n"
38895 "\n"
38896 msgstr ""
38897
38898 #. type: textblock
38899 #: ../src/guestfs.pod:1407
38900 msgid ""
38901 "Out of memory errors are handled differently.  The default action is to call "
38902 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38903 "guestfs_set_out_of_memory_handler>."
38904 msgstr ""
38905
38906 #. type: textblock
38907 #: ../src/guestfs.pod:1411
38908 msgid ""
38909 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38910 "because there is no handle if this happens there is no way to get additional "
38911 "error information.  However L</guestfs_create> is supposed to be a "
38912 "lightweight operation which can only fail because of insufficient memory (it "
38913 "returns NULL in this case)."
38914 msgstr ""
38915
38916 #. type: =head2
38917 #: ../src/guestfs.pod:1417
38918 msgid "guestfs_last_error"
38919 msgstr "guestfs_last_error"
38920
38921 #. type: verbatim
38922 #: ../src/guestfs.pod:1419
38923 #, no-wrap
38924 msgid ""
38925 " const char *guestfs_last_error (guestfs_h *g);\n"
38926 "\n"
38927 msgstr ""
38928 " const char *guestfs_last_error (guestfs_h *g);\n"
38929 "\n"
38930
38931 #. type: textblock
38932 #: ../src/guestfs.pod:1421
38933 msgid ""
38934 "This returns the last error message that happened on C<g>.  If there has not "
38935 "been an error since the handle was created, then this returns C<NULL>."
38936 msgstr ""
38937
38938 #. type: textblock
38939 #: ../src/guestfs.pod:1425
38940 msgid ""
38941 "The lifetime of the returned string is until the next error occurs, or L</"
38942 "guestfs_close> is called."
38943 msgstr ""
38944
38945 #. type: =head2
38946 #: ../src/guestfs.pod:1428
38947 msgid "guestfs_last_errno"
38948 msgstr "guestfs_last_errno"
38949
38950 #. type: verbatim
38951 #: ../src/guestfs.pod:1430
38952 #, no-wrap
38953 msgid ""
38954 " int guestfs_last_errno (guestfs_h *g);\n"
38955 "\n"
38956 msgstr ""
38957 " int guestfs_last_errno (guestfs_h *g);\n"
38958 "\n"
38959
38960 #. type: textblock
38961 #: ../src/guestfs.pod:1432
38962 msgid "This returns the last error number (errno) that happened on C<g>."
38963 msgstr ""
38964
38965 #. type: textblock
38966 #: ../src/guestfs.pod:1434
38967 msgid "If successful, an errno integer not equal to zero is returned."
38968 msgstr ""
38969
38970 #. type: textblock
38971 #: ../src/guestfs.pod:1436
38972 msgid ""
38973 "If no error, this returns 0.  This call can return 0 in three situations:"
38974 msgstr ""
38975
38976 #. type: textblock
38977 #: ../src/guestfs.pod:1443
38978 msgid "There has not been any error on the handle."
38979 msgstr ""
38980
38981 #. type: textblock
38982 #: ../src/guestfs.pod:1447
38983 msgid ""
38984 "There has been an error but the errno was meaningless.  This corresponds to "
38985 "the case where the error did not come from a failed system call, but for "
38986 "some other reason."
38987 msgstr ""
38988
38989 #. type: textblock
38990 #: ../src/guestfs.pod:1453
38991 msgid ""
38992 "There was an error from a failed system call, but for some reason the errno "
38993 "was not captured and returned.  This usually indicates a bug in libguestfs."
38994 msgstr ""
38995
38996 #. type: textblock
38997 #: ../src/guestfs.pod:1459
38998 msgid ""
38999 "Libguestfs tries to convert the errno from inside the applicance into a "
39000 "corresponding errno for the caller (not entirely trivial: the appliance "
39001 "might be running a completely different operating system from the library "
39002 "and error numbers are not standardized across Un*xen).  If this could not be "
39003 "done, then the error is translated to C<EINVAL>.  In practice this should "
39004 "only happen in very rare circumstances."
39005 msgstr ""
39006
39007 #. type: =head2
39008 #: ../src/guestfs.pod:1467
39009 msgid "guestfs_set_error_handler"
39010 msgstr "guestfs_set_error_handler"
39011
39012 #. type: verbatim
39013 #: ../src/guestfs.pod:1469
39014 #, no-wrap
39015 msgid ""
39016 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39017 "                                           void *opaque,\n"
39018 "                                           const char *msg);\n"
39019 " void guestfs_set_error_handler (guestfs_h *g,\n"
39020 "                                 guestfs_error_handler_cb cb,\n"
39021 "                                 void *opaque);\n"
39022 "\n"
39023 msgstr ""
39024 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39025 "                                           void *opaque,\n"
39026 "                                           const char *msg);\n"
39027 " void guestfs_set_error_handler (guestfs_h *g,\n"
39028 "                                 guestfs_error_handler_cb cb,\n"
39029 "                                 void *opaque);\n"
39030 "\n"
39031
39032 #. type: textblock
39033 #: ../src/guestfs.pod:1476
39034 msgid ""
39035 "The callback C<cb> will be called if there is an error.  The parameters "
39036 "passed to the callback are an opaque data pointer and the error message "
39037 "string."
39038 msgstr ""
39039
39040 #. type: textblock
39041 #: ../src/guestfs.pod:1480
39042 msgid ""
39043 "C<errno> is not passed to the callback.  To get that the callback must call "
39044 "L</guestfs_last_errno>."
39045 msgstr ""
39046
39047 #. type: textblock
39048 #: ../src/guestfs.pod:1483
39049 msgid ""
39050 "Note that the message string C<msg> is freed as soon as the callback "
39051 "function returns, so if you want to stash it somewhere you must make your "
39052 "own copy."
39053 msgstr ""
39054
39055 #. type: textblock
39056 #: ../src/guestfs.pod:1487
39057 msgid "The default handler prints messages on C<stderr>."
39058 msgstr ""
39059
39060 #. type: textblock
39061 #: ../src/guestfs.pod:1489
39062 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
39063 msgstr ""
39064
39065 #. type: =head2
39066 #: ../src/guestfs.pod:1491
39067 msgid "guestfs_get_error_handler"
39068 msgstr "guestfs_get_error_handler"
39069
39070 #. type: verbatim
39071 #: ../src/guestfs.pod:1493
39072 #, no-wrap
39073 msgid ""
39074 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39075 "                                                     void **opaque_rtn);\n"
39076 "\n"
39077 msgstr ""
39078 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39079 "                                                     void **opaque_rtn);\n"
39080 "\n"
39081
39082 #. type: textblock
39083 #: ../src/guestfs.pod:1496
39084 msgid "Returns the current error handler callback."
39085 msgstr ""
39086
39087 #. type: =head2
39088 #: ../src/guestfs.pod:1498
39089 msgid "guestfs_set_out_of_memory_handler"
39090 msgstr "guestfs_set_out_of_memory_handler"
39091
39092 #. type: verbatim
39093 #: ../src/guestfs.pod:1500
39094 #, no-wrap
39095 msgid ""
39096 " typedef void (*guestfs_abort_cb) (void);\n"
39097 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
39098 "                                         guestfs_abort_cb);\n"
39099 "\n"
39100 msgstr ""
39101
39102 #. type: textblock
39103 #: ../src/guestfs.pod:1504
39104 msgid ""
39105 "The callback C<cb> will be called if there is an out of memory situation.  "
39106 "I<Note this callback must not return>."
39107 msgstr ""
39108
39109 #. type: textblock
39110 #: ../src/guestfs.pod:1507
39111 msgid "The default is to call L<abort(3)>."
39112 msgstr ""
39113
39114 #. type: textblock
39115 #: ../src/guestfs.pod:1509
39116 msgid ""
39117 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
39118 msgstr ""
39119
39120 #. type: =head2
39121 #: ../src/guestfs.pod:1512
39122 msgid "guestfs_get_out_of_memory_handler"
39123 msgstr "guestfs_get_out_of_memory_handler"
39124
39125 #. type: verbatim
39126 #: ../src/guestfs.pod:1514
39127 #, no-wrap
39128 msgid ""
39129 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39130 "\n"
39131 msgstr ""
39132 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39133 "\n"
39134
39135 #. type: textblock
39136 #: ../src/guestfs.pod:1516
39137 msgid "This returns the current out of memory handler."
39138 msgstr ""
39139
39140 #. type: =head1
39141 #: ../src/guestfs.pod:1518
39142 msgid "API CALLS"
39143 msgstr "ВИКЛИКИ API"
39144
39145 #. type: =head1
39146 #: ../src/guestfs.pod:1522
39147 msgid "STRUCTURES"
39148 msgstr "СТРУКТУРИ"
39149
39150 #. type: textblock
39151 #: ../src/guestfs.pod:1524
39152 msgid "@STRUCTS@"
39153 msgstr "@STRUCTS@"
39154
39155 #. type: =head1
39156 #: ../src/guestfs.pod:1526
39157 msgid "AVAILABILITY"
39158 msgstr "ДОСТУПНІСТЬ"
39159
39160 #. type: =head2
39161 #: ../src/guestfs.pod:1528
39162 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
39163 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
39164
39165 #. type: textblock
39166 #: ../src/guestfs.pod:1530
39167 msgid ""
39168 "Using L</guestfs_available> you can test availability of the following "
39169 "groups of functions.  This test queries the appliance to see if the "
39170 "appliance you are currently using supports the functionality."
39171 msgstr ""
39172
39173 #. type: textblock
39174 #: ../src/guestfs.pod:1535
39175 msgid "@AVAILABILITY@"
39176 msgstr "@AVAILABILITY@"
39177
39178 #. type: =head2
39179 #: ../src/guestfs.pod:1537
39180 msgid "GUESTFISH supported COMMAND"
39181 msgstr ""
39182
39183 #. type: textblock
39184 #: ../src/guestfs.pod:1539
39185 msgid ""
39186 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
39187 "prints out the available groups and whether they are supported by this build "
39188 "of libguestfs.  Note however that you have to do C<run> first."
39189 msgstr ""
39190
39191 #. type: =head2
39192 #: ../src/guestfs.pod:1544
39193 msgid "SINGLE CALLS AT COMPILE TIME"
39194 msgstr ""
39195
39196 #. type: textblock
39197 #: ../src/guestfs.pod:1546
39198 msgid ""
39199 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
39200 "function, such as:"
39201 msgstr ""
39202
39203 #. type: verbatim
39204 #: ../src/guestfs.pod:1549
39205 #, no-wrap
39206 msgid ""
39207 " #define LIBGUESTFS_HAVE_DD 1\n"
39208 "\n"
39209 msgstr ""
39210 " #define LIBGUESTFS_HAVE_DD 1\n"
39211 "\n"
39212
39213 #. type: textblock
39214 #: ../src/guestfs.pod:1551
39215 msgid "if L</guestfs_dd> is available."
39216 msgstr ""
39217
39218 #. type: textblock
39219 #: ../src/guestfs.pod:1553
39220 msgid ""
39221 "Before version 1.5.8, if you needed to test whether a single libguestfs "
39222 "function is available at compile time, we recommended using build tools such "
39223 "as autoconf or cmake.  For example in autotools you could use:"
39224 msgstr ""
39225
39226 #. type: verbatim
39227 #: ../src/guestfs.pod:1558
39228 #, no-wrap
39229 msgid ""
39230 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39231 " AC_CHECK_FUNCS([guestfs_dd])\n"
39232 "\n"
39233 msgstr ""
39234 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39235 " AC_CHECK_FUNCS([guestfs_dd])\n"
39236 "\n"
39237
39238 #. type: textblock
39239 #: ../src/guestfs.pod:1561
39240 msgid ""
39241 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
39242 "in your program."
39243 msgstr ""
39244
39245 #. type: =head2
39246 #: ../src/guestfs.pod:1564
39247 msgid "SINGLE CALLS AT RUN TIME"
39248 msgstr ""
39249
39250 #. type: textblock
39251 #: ../src/guestfs.pod:1566
39252 msgid ""
39253 "Testing at compile time doesn't guarantee that a function really exists in "
39254 "the library.  The reason is that you might be dynamically linked against a "
39255 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
39256 "This situation unfortunately results in a segmentation fault, which is a "
39257 "shortcoming of the C dynamic linking system itself."
39258 msgstr ""
39259
39260 #. type: textblock
39261 #: ../src/guestfs.pod:1573
39262 msgid ""
39263 "You can use L<dlopen(3)> to test if a function is available at run time, as "
39264 "in this example program (note that you still need the compile time check as "
39265 "well):"
39266 msgstr ""
39267
39268 #. type: verbatim
39269 #: ../src/guestfs.pod:1577
39270 #, no-wrap
39271 msgid ""
39272 " #include <stdio.h>\n"
39273 " #include <stdlib.h>\n"
39274 " #include <unistd.h>\n"
39275 " #include <dlfcn.h>\n"
39276 " #include <guestfs.h>\n"
39277 " \n"
39278 msgstr ""
39279 " #include <stdio.h>\n"
39280 " #include <stdlib.h>\n"
39281 " #include <unistd.h>\n"
39282 " #include <dlfcn.h>\n"
39283 " #include <guestfs.h>\n"
39284 " \n"
39285
39286 #. type: verbatim
39287 #: ../src/guestfs.pod:1583
39288 #, no-wrap
39289 msgid ""
39290 " main ()\n"
39291 " {\n"
39292 " #ifdef LIBGUESTFS_HAVE_DD\n"
39293 "   void *dl;\n"
39294 "   int has_function;\n"
39295 " \n"
39296 msgstr ""
39297 " main ()\n"
39298 " {\n"
39299 " #ifdef LIBGUESTFS_HAVE_DD\n"
39300 "   void *dl;\n"
39301 "   int has_function;\n"
39302 " \n"
39303
39304 #. type: verbatim
39305 #: ../src/guestfs.pod:1589
39306 #, no-wrap
39307 msgid ""
39308 "   /* Test if the function guestfs_dd is really available. */\n"
39309 "   dl = dlopen (NULL, RTLD_LAZY);\n"
39310 "   if (!dl) {\n"
39311 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
39312 "     exit (EXIT_FAILURE);\n"
39313 "   }\n"
39314 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
39315 "   dlclose (dl);\n"
39316 " \n"
39317 msgstr ""
39318
39319 #. type: verbatim
39320 #: ../src/guestfs.pod:1598
39321 #, no-wrap
39322 msgid ""
39323 "   if (!has_function)\n"
39324 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
39325 "   else {\n"
39326 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
39327 "     /* Now it's safe to call\n"
39328 "     guestfs_dd (g, \"foo\", \"bar\");\n"
39329 "     */\n"
39330 "   }\n"
39331 " #else\n"
39332 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
39333 " #endif\n"
39334 "  }\n"
39335 "\n"
39336 msgstr ""
39337
39338 #. type: textblock
39339 #: ../src/guestfs.pod:1611
39340 msgid ""
39341 "You may think the above is an awful lot of hassle, and it is.  There are "
39342 "other ways outside of the C linking system to ensure that this kind of "
39343 "incompatibility never arises, such as using package versioning:"
39344 msgstr ""
39345
39346 #. type: verbatim
39347 #: ../src/guestfs.pod:1616
39348 #, no-wrap
39349 msgid ""
39350 " Requires: libguestfs >= 1.0.80\n"
39351 "\n"
39352 msgstr ""
39353
39354 #. type: =head1
39355 #: ../src/guestfs.pod:1618
39356 msgid "CALLS WITH OPTIONAL ARGUMENTS"
39357 msgstr ""
39358
39359 #. type: textblock
39360 #: ../src/guestfs.pod:1620
39361 msgid ""
39362 "A recent feature of the API is the introduction of calls which take optional "
39363 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
39364 "takes variable arguments (ie. C<...>), as in this example:"
39365 msgstr ""
39366
39367 #. type: verbatim
39368 #: ../src/guestfs.pod:1625
39369 #, no-wrap
39370 msgid ""
39371 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39372 "\n"
39373 msgstr ""
39374 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39375 "\n"
39376
39377 #. type: textblock
39378 #: ../src/guestfs.pod:1627
39379 msgid ""
39380 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
39381 "call with no optional arguments specified:"
39382 msgstr ""
39383
39384 #. type: verbatim
39385 #: ../src/guestfs.pod:1630
39386 #, no-wrap
39387 msgid ""
39388 " guestfs_add_drive_opts (g, filename, -1);\n"
39389 "\n"
39390 msgstr ""
39391 " guestfs_add_drive_opts (g, filename, -1);\n"
39392 "\n"
39393
39394 #. type: textblock
39395 #: ../src/guestfs.pod:1632
39396 msgid "With a single optional argument:"
39397 msgstr ""
39398
39399 #. type: verbatim
39400 #: ../src/guestfs.pod:1634
39401 #, no-wrap
39402 msgid ""
39403 " guestfs_add_drive_opts (g, filename,\n"
39404 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39405 "                         -1);\n"
39406 "\n"
39407 msgstr ""
39408 " guestfs_add_drive_opts (g, filename,\n"
39409 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39410 "                         -1);\n"
39411 "\n"
39412
39413 #. type: textblock
39414 #: ../src/guestfs.pod:1638
39415 msgid "With two:"
39416 msgstr ""
39417
39418 #. type: verbatim
39419 #: ../src/guestfs.pod:1640
39420 #, no-wrap
39421 msgid ""
39422 " guestfs_add_drive_opts (g, filename,\n"
39423 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39424 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39425 "                         -1);\n"
39426 "\n"
39427 msgstr ""
39428 " guestfs_add_drive_opts (g, filename,\n"
39429 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39430 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39431 "                         -1);\n"
39432 "\n"
39433
39434 #. type: textblock
39435 #: ../src/guestfs.pod:1645
39436 msgid ""
39437 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
39438 "happen!"
39439 msgstr ""
39440
39441 #. type: =head2
39442 #: ../src/guestfs.pod:1648
39443 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
39444 msgstr ""
39445
39446 #. type: textblock
39447 #: ../src/guestfs.pod:1650
39448 msgid ""
39449 "The second variant has the same name with the suffix C<_va>, which works the "
39450 "same way but takes a C<va_list>.  See the C manual for details.  For the "
39451 "example function, this is declared:"
39452 msgstr ""
39453
39454 #. type: verbatim
39455 #: ../src/guestfs.pod:1654
39456 #, no-wrap
39457 msgid ""
39458 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39459 "                                va_list args);\n"
39460 "\n"
39461 msgstr ""
39462 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39463 "                                va_list args);\n"
39464 "\n"
39465
39466 #. type: =head2
39467 #: ../src/guestfs.pod:1657
39468 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
39469 msgstr ""
39470
39471 #. type: textblock
39472 #: ../src/guestfs.pod:1659
39473 msgid ""
39474 "The third variant is useful where you need to construct these calls.  You "
39475 "pass in a structure where you fill in the optional fields.  The structure "
39476 "has a bitmask as the first element which you must set to indicate which "
39477 "fields you have filled in.  For our example function the structure and call "
39478 "are declared:"
39479 msgstr ""
39480
39481 #. type: verbatim
39482 #: ../src/guestfs.pod:1665
39483 #, no-wrap
39484 msgid ""
39485 " struct guestfs_add_drive_opts_argv {\n"
39486 "   uint64_t bitmask;\n"
39487 "   int readonly;\n"
39488 "   const char *format;\n"
39489 "   /* ... */\n"
39490 " };\n"
39491 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39492 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
39493 "\n"
39494 msgstr ""
39495 " struct guestfs_add_drive_opts_argv {\n"
39496 "   uint64_t bitmask;\n"
39497 "   int readonly;\n"
39498 "   const char *format;\n"
39499 "   /* ... */\n"
39500 " };\n"
39501 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39502 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
39503 "\n"
39504
39505 #. type: textblock
39506 #: ../src/guestfs.pod:1674
39507 msgid "You could call it like this:"
39508 msgstr ""
39509
39510 #. type: verbatim
39511 #: ../src/guestfs.pod:1676
39512 #, no-wrap
39513 msgid ""
39514 " struct guestfs_add_drive_opts_argv optargs = {\n"
39515 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39516 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39517 "   .readonly = 1,\n"
39518 "   .format = \"qcow2\"\n"
39519 " };\n"
39520 " \n"
39521 msgstr ""
39522 " struct guestfs_add_drive_opts_argv optargs = {\n"
39523 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39524 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39525 "   .readonly = 1,\n"
39526 "   .format = \"qcow2\"\n"
39527 " };\n"
39528 " \n"
39529
39530 #. type: verbatim
39531 #: ../src/guestfs.pod:1683
39532 #, no-wrap
39533 msgid ""
39534 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39535 "\n"
39536 msgstr ""
39537 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39538 "\n"
39539
39540 #. type: textblock
39541 #: ../src/guestfs.pod:1691
39542 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
39543 msgstr ""
39544
39545 #. type: textblock
39546 #: ../src/guestfs.pod:1696
39547 msgid "You do not need to fill in all fields of the structure."
39548 msgstr ""
39549
39550 #. type: textblock
39551 #: ../src/guestfs.pod:1700
39552 msgid ""
39553 "There must be a one-to-one correspondence between fields of the structure "
39554 "that are filled in, and bits set in the bitmask."
39555 msgstr ""
39556
39557 #. type: =head2
39558 #: ../src/guestfs.pod:1705
39559 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
39560 msgstr ""
39561
39562 #. type: textblock
39563 #: ../src/guestfs.pod:1707
39564 msgid ""
39565 "In other languages, optional arguments are expressed in the way that is "
39566 "natural for that language.  We refer you to the language-specific "
39567 "documentation for more details on that."
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../src/guestfs.pod:1711
39572 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39573 msgstr ""
39574
39575 #. type: =head2
39576 #: ../src/guestfs.pod:1713
39577 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39578 msgstr ""
39579
39580 #. type: textblock
39581 #: ../src/guestfs.pod:1715
39582 msgid ""
39583 "B<Note:> This section documents the generic event mechanism introduced in "
39584 "libguestfs 1.10, which you should use in new code if possible.  The old "
39585 "functions C<guestfs_set_log_message_callback>, "
39586 "C<guestfs_set_subprocess_quit_callback>, "
39587 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39588 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39589 "page.  Because of the ABI guarantee, the old functions continue to work."
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../src/guestfs.pod:1724
39594 msgid ""
39595 "Handles generate events when certain things happen, such as log messages "
39596 "being generated, progress messages during long-running operations, or the "
39597 "handle being closed.  The API calls described below let you register a "
39598 "callback to be called when events happen.  You can register multiple "
39599 "callbacks (for the same, different or overlapping sets of events), and "
39600 "individually remove callbacks.  If callbacks are not removed, then they "
39601 "remain in force until the handle is closed."
39602 msgstr ""
39603
39604 #. type: textblock
39605 #: ../src/guestfs.pod:1732
39606 msgid ""
39607 "In the current implementation, events are only generated synchronously: that "
39608 "means that events (and hence callbacks) can only happen while you are in the "
39609 "middle of making another libguestfs call.  The callback is called in the "
39610 "same thread."
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../src/guestfs.pod:1737
39615 msgid ""
39616 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39617 "unsigned integers, or a message buffer.  Payloads are discussed later on."
39618 msgstr ""
39619
39620 #. type: =head3
39621 #: ../src/guestfs.pod:1741
39622 msgid "CLASSES OF EVENTS"
39623 msgstr ""
39624
39625 #. type: =item
39626 #: ../src/guestfs.pod:1745
39627 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39628 msgstr ""
39629
39630 #. type: textblock
39631 #: ../src/guestfs.pod:1748
39632 msgid ""
39633 "The callback function will be called while the handle is being closed "
39634 "(synchronously from L</guestfs_close>)."
39635 msgstr ""
39636
39637 #. type: textblock
39638 #: ../src/guestfs.pod:1751
39639 msgid ""
39640 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39641 "handles that are open when the program exits.  This means that this callback "
39642 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39643 "problems in higher-level languages (eg. if your HLL interpreter has already "
39644 "been cleaned up by the time this is called, and if your callback then jumps "
39645 "into some HLL function)."
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../src/guestfs.pod:1758
39650 msgid ""
39651 "If no callback is registered: the handle is closed without any callback "
39652 "being invoked."
39653 msgstr ""
39654
39655 #. type: =item
39656 #: ../src/guestfs.pod:1761
39657 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39658 msgstr ""
39659
39660 #. type: textblock
39661 #: ../src/guestfs.pod:1764
39662 msgid ""
39663 "The callback function will be called when the child process quits, either "
39664 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
39665 "corresponds to a transition from any state to the CONFIG state)."
39666 msgstr ""
39667
39668 #. type: textblock
39669 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39670 msgid "If no callback is registered: the event is ignored."
39671 msgstr ""
39672
39673 #. type: =item
39674 #: ../src/guestfs.pod:1770
39675 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39676 msgstr ""
39677
39678 #. type: textblock
39679 #: ../src/guestfs.pod:1773
39680 msgid ""
39681 "The callback function will be called when the child process becomes ready "
39682 "first time after it has been launched.  (This corresponds to a transition "
39683 "from LAUNCHING to the READY state)."
39684 msgstr ""
39685
39686 #. type: =item
39687 #: ../src/guestfs.pod:1779
39688 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:1782
39693 msgid ""
39694 "Some long-running operations can generate progress messages.  If this "
39695 "callback is registered, then it will be called each time a progress message "
39696 "is generated (usually two seconds after the operation started, and three "
39697 "times per second thereafter until it completes, although the frequency may "
39698 "change in future versions)."
39699 msgstr ""
39700
39701 #. type: textblock
39702 #: ../src/guestfs.pod:1788
39703 msgid ""
39704 "The callback receives in the payload four unsigned 64 bit numbers which are "
39705 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39706 msgstr ""
39707
39708 #. type: textblock
39709 #: ../src/guestfs.pod:1791
39710 msgid ""
39711 "The units of C<total> are not defined, although for some operations C<total> "
39712 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39713 "or megabytes), and C<position> may be the portion which has been transferred."
39714 msgstr ""
39715
39716 #. type: textblock
39717 #: ../src/guestfs.pod:1796
39718 msgid "The only defined and stable parts of the API are:"
39719 msgstr ""
39720
39721 #. type: textblock
39722 #: ../src/guestfs.pod:1802
39723 msgid ""
39724 "The callback can display to the user some type of progress bar or indicator "
39725 "which shows the ratio of C<position>:C<total>."
39726 msgstr ""
39727
39728 #. type: textblock
39729 #: ../src/guestfs.pod:1807
39730 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39731 msgstr ""
39732
39733 #. type: textblock
39734 #: ../src/guestfs.pod:1811
39735 msgid ""
39736 "If any progress notification is sent during a call, then a final progress "
39737 "notification is always sent when C<position> = C<total> (I<unless> the call "
39738 "fails with an error)."
39739 msgstr ""
39740
39741 #. type: textblock
39742 #: ../src/guestfs.pod:1815
39743 msgid ""
39744 "This is to simplify caller code, so callers can easily set the progress "
39745 "indicator to \"100%\" at the end of the operation, without requiring special "
39746 "code to detect this case."
39747 msgstr ""
39748
39749 #. type: textblock
39750 #: ../src/guestfs.pod:1821
39751 msgid ""
39752 "For some calls we are unable to estimate the progress of the call, but we "
39753 "can still generate progress messages to indicate activity.  This is known as "
39754 "\"pulse mode\", and is directly supported by certain progress bar "
39755 "implementations (eg. GtkProgressBar)."
39756 msgstr ""
39757
39758 #. type: textblock
39759 #: ../src/guestfs.pod:1826
39760 msgid ""
39761 "For these calls, zero or more progress messages are generated with "
39762 "C<position = 0> and C<total = 1>, followed by a final message with "
39763 "C<position = total = 1>."
39764 msgstr ""
39765
39766 #. type: textblock
39767 #: ../src/guestfs.pod:1830
39768 msgid ""
39769 "As noted above, if the call fails with an error then the final message may "
39770 "not be generated."
39771 msgstr ""
39772
39773 #. type: textblock
39774 #: ../src/guestfs.pod:1835
39775 msgid ""
39776 "The callback also receives the procedure number (C<proc_nr>) and serial "
39777 "number (C<serial>) of the call.  These are only useful for debugging "
39778 "protocol issues, and the callback can normally ignore them.  The callback "
39779 "may want to print these numbers in error messages or debugging messages."
39780 msgstr ""
39781
39782 #. type: textblock
39783 #: ../src/guestfs.pod:1841
39784 msgid "If no callback is registered: progress messages are discarded."
39785 msgstr ""
39786
39787 #. type: =item
39788 #: ../src/guestfs.pod:1843
39789 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39790 msgstr ""
39791
39792 #. type: textblock
39793 #: ../src/guestfs.pod:1846
39794 msgid ""
39795 "The callback function is called whenever a log message is generated by qemu, "
39796 "the appliance kernel, guestfsd (daemon), or utility programs."
39797 msgstr ""
39798
39799 #. type: textblock
39800 #: ../src/guestfs.pod:1849
39801 msgid ""
39802 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39803 "guestfs_launch>) then additional debug messages are generated."
39804 msgstr ""
39805
39806 #. type: textblock
39807 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39808 msgid ""
39809 "If no callback is registered: the messages are discarded unless the verbose "
39810 "flag is set in which case they are sent to stderr.  You can override the "
39811 "printing of verbose messages to stderr by setting up a callback."
39812 msgstr ""
39813
39814 #. type: =item
39815 #: ../src/guestfs.pod:1857
39816 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39817 msgstr ""
39818
39819 #. type: textblock
39820 #: ../src/guestfs.pod:1860
39821 msgid ""
39822 "The callback function is called whenever a log message is generated by the "
39823 "library part of libguestfs."
39824 msgstr ""
39825
39826 #. type: textblock
39827 #: ../src/guestfs.pod:1863
39828 msgid ""
39829 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39830 "messages are generated."
39831 msgstr ""
39832
39833 #. type: =item
39834 #: ../src/guestfs.pod:1871
39835 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../src/guestfs.pod:1874
39840 msgid ""
39841 "The callback function is called whenever a trace message is generated.  This "
39842 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39843 msgstr ""
39844
39845 #. type: textblock
39846 #: ../src/guestfs.pod:1877
39847 msgid ""
39848 "If no callback is registered: the messages are sent to stderr.  You can "
39849 "override the printing of trace messages to stderr by setting up a callback."
39850 msgstr ""
39851
39852 #. type: =item
39853 #: ../src/guestfs.pod:1881
39854 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39855 msgstr ""
39856
39857 #. type: textblock
39858 #: ../src/guestfs.pod:1884
39859 msgid ""
39860 "The callback function is called whenever a libguestfs function is entered."
39861 msgstr ""
39862
39863 #. type: textblock
39864 #: ../src/guestfs.pod:1887
39865 msgid ""
39866 "The payload is a string which contains the name of the function that we are "
39867 "entering (not including C<guestfs_> prefix)."
39868 msgstr ""
39869
39870 #. type: textblock
39871 #: ../src/guestfs.pod:1890
39872 msgid ""
39873 "Note that libguestfs functions can call themselves, so you may see many "
39874 "events from a single call.  A few libguestfs functions do not generate this "
39875 "event."
39876 msgstr ""
39877
39878 #. type: =head3
39879 #: ../src/guestfs.pod:1898
39880 msgid "guestfs_set_event_callback"
39881 msgstr ""
39882
39883 #. type: verbatim
39884 #: ../src/guestfs.pod:1900
39885 #, no-wrap
39886 msgid ""
39887 " int guestfs_set_event_callback (guestfs_h *g,\n"
39888 "                                 guestfs_event_callback cb,\n"
39889 "                                 uint64_t event_bitmask,\n"
39890 "                                 int flags,\n"
39891 "                                 void *opaque);\n"
39892 "\n"
39893 msgstr ""
39894
39895 #. type: textblock
39896 #: ../src/guestfs.pod:1906
39897 msgid ""
39898 "This function registers a callback (C<cb>) for all event classes in the "
39899 "C<event_bitmask>."
39900 msgstr ""
39901
39902 #. type: textblock
39903 #: ../src/guestfs.pod:1909
39904 msgid ""
39905 "For example, to register for all log message events, you could call this "
39906 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39907 "To register a single callback for all possible classes of events, use "
39908 "C<GUESTFS_EVENT_ALL>."
39909 msgstr ""
39910
39911 #. type: textblock
39912 #: ../src/guestfs.pod:1915
39913 msgid "C<flags> should always be passed as 0."
39914 msgstr ""
39915
39916 #. type: textblock
39917 #: ../src/guestfs.pod:1917
39918 msgid ""
39919 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39920 "it for any purpose."
39921 msgstr ""
39922
39923 #. type: textblock
39924 #: ../src/guestfs.pod:1920
39925 msgid ""
39926 "The return value is the event handle (an integer) which you can use to "
39927 "delete the callback (see below)."
39928 msgstr ""
39929
39930 #. type: textblock
39931 #: ../src/guestfs.pod:1923
39932 msgid ""
39933 "If there is an error, this function returns C<-1>, and sets the error in the "
39934 "handle in the usual way (see L</guestfs_last_error> etc.)"
39935 msgstr ""
39936
39937 #. type: textblock
39938 #: ../src/guestfs.pod:1926
39939 msgid ""
39940 "Callbacks remain in effect until they are deleted, or until the handle is "
39941 "closed."
39942 msgstr ""
39943
39944 #. type: textblock
39945 #: ../src/guestfs.pod:1929
39946 msgid ""
39947 "In the case where multiple callbacks are registered for a particular event "
39948 "class, all of the callbacks are called.  The order in which multiple "
39949 "callbacks are called is not defined."
39950 msgstr ""
39951
39952 #. type: =head3
39953 #: ../src/guestfs.pod:1933
39954 msgid "guestfs_delete_event_callback"
39955 msgstr ""
39956
39957 #. type: verbatim
39958 #: ../src/guestfs.pod:1935
39959 #, no-wrap
39960 msgid ""
39961 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39962 "\n"
39963 msgstr ""
39964
39965 #. type: textblock
39966 #: ../src/guestfs.pod:1937
39967 msgid ""
39968 "Delete a callback that was previously registered.  C<event_handle> should be "
39969 "the integer that was returned by a previous call to "
39970 "C<guestfs_set_event_callback> on the same handle."
39971 msgstr ""
39972
39973 #. type: =head3
39974 #: ../src/guestfs.pod:1941
39975 msgid "guestfs_event_callback"
39976 msgstr ""
39977
39978 #. type: verbatim
39979 #: ../src/guestfs.pod:1943
39980 #, no-wrap
39981 msgid ""
39982 " typedef void (*guestfs_event_callback) (\n"
39983 "                  guestfs_h *g,\n"
39984 "                  void *opaque,\n"
39985 "                  uint64_t event,\n"
39986 "                  int event_handle,\n"
39987 "                  int flags,\n"
39988 "                  const char *buf, size_t buf_len,\n"
39989 "                  const uint64_t *array, size_t array_len);\n"
39990 "\n"
39991 msgstr ""
39992
39993 #. type: textblock
39994 #: ../src/guestfs.pod:1952
39995 msgid ""
39996 "This is the type of the event callback function that you have to provide."
39997 msgstr ""
39998
39999 #. type: textblock
40000 #: ../src/guestfs.pod:1955
40001 msgid ""
40002 "The basic parameters are: the handle (C<g>), the opaque user pointer "
40003 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
40004 "handle, and C<flags> which in the current API you should ignore."
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../src/guestfs.pod:1959
40009 msgid ""
40010 "The remaining parameters contain the event payload (if any).  Each event may "
40011 "contain a payload, which usually relates to the event class, but for future "
40012 "proofing your code should be written to handle any payload for any event "
40013 "class."
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../src/guestfs.pod:1964
40018 msgid ""
40019 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
40020 "there is no message buffer).  Note that this message buffer can contain "
40021 "arbitrary 8 bit data, including NUL bytes."
40022 msgstr ""
40023
40024 #. type: textblock
40025 #: ../src/guestfs.pod:1968
40026 msgid ""
40027 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
40028 "moment this is only used for progress messages."
40029 msgstr ""
40030
40031 #. type: =head3
40032 #: ../src/guestfs.pod:1971
40033 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
40034 msgstr ""
40035
40036 #. type: textblock
40037 #: ../src/guestfs.pod:1973
40038 msgid ""
40039 "One motivation for the generic event API was to allow GUI programs to "
40040 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
40041 "unconditionally to C<stderr>."
40042 msgstr ""
40043
40044 #. type: textblock
40045 #: ../src/guestfs.pod:1977
40046 msgid ""
40047 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
40048 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
40049 "messages are not events; you must capture error messages separately)."
40050 msgstr ""
40051
40052 #. type: textblock
40053 #: ../src/guestfs.pod:1982
40054 msgid ""
40055 "Programs have to set up a callback to capture the classes of events of "
40056 "interest:"
40057 msgstr ""
40058
40059 #. type: verbatim
40060 #: ../src/guestfs.pod:1985
40061 #, no-wrap
40062 msgid ""
40063 " int eh =\n"
40064 "   guestfs_set_event_callback\n"
40065 "     (g, message_callback,\n"
40066 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
40067 "      GUESTFS_EVENT_TRACE,\n"
40068 "      0, NULL) == -1)\n"
40069 " if (eh == -1) {\n"
40070 "   // handle error in the usual way\n"
40071 " }\n"
40072 "\n"
40073 msgstr ""
40074
40075 #. type: textblock
40076 #: ../src/guestfs.pod:1995
40077 msgid ""
40078 "The callback can then direct messages to the appropriate place.  In this "
40079 "example, messages are directed to syslog:"
40080 msgstr ""
40081
40082 #. type: verbatim
40083 #: ../src/guestfs.pod:1998
40084 #, no-wrap
40085 msgid ""
40086 " static void\n"
40087 " message_callback (\n"
40088 "         guestfs_h *g,\n"
40089 "         void *opaque,\n"
40090 "         uint64_t event,\n"
40091 "         int event_handle,\n"
40092 "         int flags,\n"
40093 "         const char *buf, size_t buf_len,\n"
40094 "         const uint64_t *array, size_t array_len)\n"
40095 " {\n"
40096 "   const int priority = LOG_USER|LOG_INFO;\n"
40097 "   if (buf_len > 0)\n"
40098 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
40099 " }\n"
40100 "\n"
40101 msgstr ""
40102
40103 #. type: =head1
40104 #: ../src/guestfs.pod:2013
40105 msgid "CANCELLING LONG TRANSFERS"
40106 msgstr ""
40107
40108 #. type: textblock
40109 #: ../src/guestfs.pod:2015
40110 msgid ""
40111 "Some operations can be cancelled by the caller while they are in progress.  "
40112 "Currently only operations that involve uploading or downloading data can be "
40113 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
40114 "parameters in the generator)."
40115 msgstr ""
40116
40117 #. type: =head2
40118 #: ../src/guestfs.pod:2020
40119 msgid "guestfs_user_cancel"
40120 msgstr ""
40121
40122 #. type: verbatim
40123 #: ../src/guestfs.pod:2022
40124 #, no-wrap
40125 msgid ""
40126 " void guestfs_user_cancel (guestfs_h *g);\n"
40127 "\n"
40128 msgstr ""
40129
40130 #. type: textblock
40131 #: ../src/guestfs.pod:2024
40132 msgid ""
40133 "C<guestfs_user_cancel> cancels the current upload or download operation."
40134 msgstr ""
40135
40136 #. type: textblock
40137 #: ../src/guestfs.pod:2027
40138 msgid ""
40139 "Unlike most other libguestfs calls, this function is signal safe and thread "
40140 "safe.  You can call it from a signal handler or from another thread, without "
40141 "needing to do any locking."
40142 msgstr ""
40143
40144 #. type: textblock
40145 #: ../src/guestfs.pod:2031
40146 msgid ""
40147 "The transfer that was in progress (if there is one) will stop shortly "
40148 "afterwards, and will return an error.  The errno (see L</"
40149 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
40150 "out if the operation was cancelled or failed because of another error."
40151 msgstr ""
40152
40153 #. type: textblock
40154 #: ../src/guestfs.pod:2037
40155 msgid ""
40156 "No cleanup is performed: for example, if a file was being uploaded then "
40157 "after cancellation there may be a partially uploaded file.  It is the "
40158 "caller's responsibility to clean up if necessary."
40159 msgstr ""
40160
40161 #. type: textblock
40162 #: ../src/guestfs.pod:2041
40163 msgid "There are two common places that you might call C<guestfs_user_cancel>."
40164 msgstr ""
40165
40166 #. type: textblock
40167 #: ../src/guestfs.pod:2043
40168 msgid ""
40169 "In an interactive text-based program, you might call it from a C<SIGINT> "
40170 "signal handler so that pressing C<^C> cancels the current operation.  (You "
40171 "also need to call L</guestfs_set_pgroup> so that child processes don't "
40172 "receive the C<^C> signal)."
40173 msgstr ""
40174
40175 #. type: textblock
40176 #: ../src/guestfs.pod:2048
40177 msgid ""
40178 "In a graphical program, when the main thread is displaying a progress bar "
40179 "with a cancel button, wire up the cancel button to call this function."
40180 msgstr ""
40181
40182 #. type: =head1
40183 #: ../src/guestfs.pod:2052
40184 msgid "PRIVATE DATA AREA"
40185 msgstr ""
40186
40187 #. type: textblock
40188 #: ../src/guestfs.pod:2054
40189 msgid ""
40190 "You can attach named pieces of private data to the libguestfs handle, fetch "
40191 "them by name, and walk over them, for the lifetime of the handle.  This is "
40192 "called the private data area and is only available from the C API."
40193 msgstr ""
40194
40195 #. type: textblock
40196 #: ../src/guestfs.pod:2059
40197 msgid "To attach a named piece of data, use the following call:"
40198 msgstr ""
40199
40200 #. type: verbatim
40201 #: ../src/guestfs.pod:2061
40202 #, no-wrap
40203 msgid ""
40204 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40205 "\n"
40206 msgstr ""
40207 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40208 "\n"
40209
40210 #. type: textblock
40211 #: ../src/guestfs.pod:2063
40212 msgid ""
40213 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
40214 "pointer (which can be C<NULL>).  Any previous item with the same key is "
40215 "overwritten."
40216 msgstr ""
40217
40218 #. type: textblock
40219 #: ../src/guestfs.pod:2067
40220 msgid ""
40221 "You can use any C<key> you want, but your key should I<not> start with an "
40222 "underscore character.  Keys beginning with an underscore character are "
40223 "reserved for internal libguestfs purposes (eg. for implementing language "
40224 "bindings).  It is recommended that you prefix the key with some unique "
40225 "string to avoid collisions with other users."
40226 msgstr ""
40227
40228 #. type: textblock
40229 #: ../src/guestfs.pod:2073
40230 msgid "To retrieve the pointer, use:"
40231 msgstr ""
40232
40233 #. type: verbatim
40234 #: ../src/guestfs.pod:2075
40235 #, no-wrap
40236 msgid ""
40237 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40238 "\n"
40239 msgstr ""
40240 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40241 "\n"
40242
40243 #. type: textblock
40244 #: ../src/guestfs.pod:2077
40245 msgid ""
40246 "This function returns C<NULL> if either no data is found associated with "
40247 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
40248 "C<NULL>."
40249 msgstr ""
40250
40251 #. type: textblock
40252 #: ../src/guestfs.pod:2081
40253 msgid ""
40254 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
40255 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
40256 "all.  In particular, libguestfs does I<not> try to free the data when the "
40257 "handle is closed.  If the data must be freed, then the caller must either "
40258 "free it before calling L</guestfs_close> or must set up a close callback to "
40259 "do it (see L</GUESTFS_EVENT_CLOSE>)."
40260 msgstr ""
40261
40262 #. type: textblock
40263 #: ../src/guestfs.pod:2088
40264 msgid "To walk over all entries, use these two functions:"
40265 msgstr ""
40266
40267 #. type: verbatim
40268 #: ../src/guestfs.pod:2090
40269 #, no-wrap
40270 msgid ""
40271 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
40272 "\n"
40273 msgstr ""
40274
40275 #. type: verbatim
40276 #: ../src/guestfs.pod:2092
40277 #, no-wrap
40278 msgid ""
40279 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
40280 "\n"
40281 msgstr ""
40282
40283 #. type: textblock
40284 #: ../src/guestfs.pod:2094
40285 msgid ""
40286 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
40287 "not have any particular meaning -- keys are not returned in any defined "
40288 "order).  A pointer to the key is returned in C<*key_rtn> and the "
40289 "corresponding data pointer is returned from the function.  C<NULL> is "
40290 "returned if there are no keys stored in the handle."
40291 msgstr ""
40292
40293 #. type: textblock
40294 #: ../src/guestfs.pod:2100
40295 msgid ""
40296 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
40297 "value of this function is also C<NULL> is there are no further entries to "
40298 "return."
40299 msgstr ""
40300
40301 #. type: textblock
40302 #: ../src/guestfs.pod:2104
40303 msgid "Notes about walking over entries:"
40304 msgstr ""
40305
40306 #. type: textblock
40307 #: ../src/guestfs.pod:2110
40308 msgid ""
40309 "You must not call C<guestfs_set_private> while walking over the entries."
40310 msgstr ""
40311
40312 #. type: textblock
40313 #: ../src/guestfs.pod:2115
40314 msgid ""
40315 "The handle maintains an internal iterator which is reset when you call "
40316 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
40317 "call C<guestfs_set_private>."
40318 msgstr ""
40319
40320 #. type: textblock
40321 #: ../src/guestfs.pod:2121
40322 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
40323 msgstr ""
40324
40325 #. type: verbatim
40326 #: ../src/guestfs.pod:2123
40327 #, no-wrap
40328 msgid ""
40329 " guestfs_set_private (g, key, NULL);\n"
40330 "\n"
40331 msgstr ""
40332
40333 #. type: textblock
40334 #: ../src/guestfs.pod:2125
40335 msgid "then that C<key> is not returned when walking."
40336 msgstr ""
40337
40338 #. type: textblock
40339 #: ../src/guestfs.pod:2129
40340 msgid ""
40341 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
40342 "C<guestfs_next_private> or C<guestfs_set_private>."
40343 msgstr ""
40344
40345 #. type: textblock
40346 #: ../src/guestfs.pod:2135
40347 msgid ""
40348 "The following example code shows how to print all keys and data pointers "
40349 "that are associated with the handle C<g>:"
40350 msgstr ""
40351
40352 #. type: verbatim
40353 #: ../src/guestfs.pod:2138
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 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
40361 "     data = guestfs_next_private (g, &key);\n"
40362 "   }\n"
40363 "\n"
40364 msgstr ""
40365
40366 #. type: textblock
40367 #: ../src/guestfs.pod:2146
40368 msgid ""
40369 "More commonly you are only interested in keys that begin with an application-"
40370 "specific prefix C<foo_>.  Modify the loop like so:"
40371 msgstr ""
40372
40373 #. type: verbatim
40374 #: ../src/guestfs.pod:2149
40375 #, no-wrap
40376 msgid ""
40377 " const char *key;\n"
40378 " void *data = guestfs_first_private (g, &key);\n"
40379 " while (data != NULL)\n"
40380 "   {\n"
40381 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40382 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
40383 "     data = guestfs_next_private (g, &key);\n"
40384 "   }\n"
40385 "\n"
40386 msgstr ""
40387
40388 #. type: textblock
40389 #: ../src/guestfs.pod:2158
40390 msgid ""
40391 "If you need to modify keys while walking, then you have to jump back to the "
40392 "beginning of the loop.  For example, to delete all keys prefixed with "
40393 "C<foo_>:"
40394 msgstr ""
40395
40396 #. type: verbatim
40397 #: ../src/guestfs.pod:2162
40398 #, no-wrap
40399 msgid ""
40400 "  const char *key;\n"
40401 "  void *data;\n"
40402 " again:\n"
40403 "  data = guestfs_first_private (g, &key);\n"
40404 "  while (data != NULL)\n"
40405 "    {\n"
40406 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40407 "        {\n"
40408 "          guestfs_set_private (g, key, NULL);\n"
40409 "          /* note that 'key' pointer is now invalid, and so is\n"
40410 "             the internal iterator */\n"
40411 "          goto again;\n"
40412 "        }\n"
40413 "      data = guestfs_next_private (g, &key);\n"
40414 "    }\n"
40415 "\n"
40416 msgstr ""
40417
40418 #. type: textblock
40419 #: ../src/guestfs.pod:2178
40420 msgid ""
40421 "Note that the above loop is guaranteed to terminate because the keys are "
40422 "being deleted, but other manipulations of keys within the loop might not "
40423 "terminate unless you also maintain an indication of which keys have been "
40424 "visited."
40425 msgstr ""
40426
40427 #. type: =head1
40428 #: ../src/guestfs.pod:2183
40429 msgid "SYSTEMTAP"
40430 msgstr ""
40431
40432 #. type: textblock
40433 #: ../src/guestfs.pod:2185
40434 msgid ""
40435 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
40436 "true of any library, not just libguestfs.  However libguestfs also contains "
40437 "static markers to help in probing internal operations."
40438 msgstr ""
40439
40440 #. type: textblock
40441 #: ../src/guestfs.pod:2189
40442 msgid "You can list all the static markers by doing:"
40443 msgstr ""
40444
40445 #. type: verbatim
40446 #: ../src/guestfs.pod:2191
40447 #, no-wrap
40448 msgid ""
40449 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
40450 "              .provider(\"guestfs\").mark(\"*\")'\n"
40451 "\n"
40452 msgstr ""
40453
40454 #. type: textblock
40455 #: ../src/guestfs.pod:2194
40456 msgid ""
40457 "B<Note:> These static markers are I<not> part of the stable API and may "
40458 "change in future versions."
40459 msgstr ""
40460
40461 #. type: =head2
40462 #: ../src/guestfs.pod:2197
40463 msgid "SYSTEMTAP SCRIPT EXAMPLE"
40464 msgstr ""
40465
40466 #. type: textblock
40467 #: ../src/guestfs.pod:2199
40468 msgid ""
40469 "This script contains examples of displaying both the static markers and some "
40470 "ordinary C entry points:"
40471 msgstr ""
40472
40473 #. type: verbatim
40474 #: ../src/guestfs.pod:2202
40475 #, no-wrap
40476 msgid ""
40477 " global last;\n"
40478 " \n"
40479 msgstr ""
40480
40481 #. type: verbatim
40482 #: ../src/guestfs.pod:2204
40483 #, no-wrap
40484 msgid ""
40485 " function display_time () {\n"
40486 "       now = gettimeofday_us ();\n"
40487 "       delta = 0;\n"
40488 "       if (last > 0)\n"
40489 "             delta = now - last;\n"
40490 "       last = now;\n"
40491 " \n"
40492 msgstr ""
40493
40494 #. type: verbatim
40495 #: ../src/guestfs.pod:2211
40496 #, no-wrap
40497 msgid ""
40498 "       printf (\"%d (+%d):\", now, delta);\n"
40499 " }\n"
40500 " \n"
40501 msgstr ""
40502
40503 #. type: verbatim
40504 #: ../src/guestfs.pod:2214
40505 #, no-wrap
40506 msgid ""
40507 " probe begin {\n"
40508 "       last = 0;\n"
40509 "       printf (\"ready\\n\");\n"
40510 " }\n"
40511 " \n"
40512 msgstr ""
40513
40514 #. type: verbatim
40515 #: ../src/guestfs.pod:2219
40516 #, no-wrap
40517 msgid ""
40518 " /* Display all calls to static markers. */\n"
40519 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40520 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
40521 "       display_time();\n"
40522 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
40523 " }\n"
40524 " \n"
40525 msgstr ""
40526
40527 #. type: verbatim
40528 #: ../src/guestfs.pod:2226
40529 #, no-wrap
40530 msgid ""
40531 " /* Display all calls to guestfs_mkfs* functions. */\n"
40532 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40533 "           .function(\"guestfs_mkfs*\") ? {\n"
40534 "       display_time();\n"
40535 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
40536 " }\n"
40537 "\n"
40538 msgstr ""
40539
40540 #. type: textblock
40541 #: ../src/guestfs.pod:2233
40542 msgid ""
40543 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
40544 "program.  Note that you either have to be root, or you have to add yourself "
40545 "to several special stap groups.  Consult the systemtap documentation for "
40546 "more information."
40547 msgstr ""
40548
40549 #. type: verbatim
40550 #: ../src/guestfs.pod:2238
40551 #, no-wrap
40552 msgid ""
40553 " # stap /tmp/test.stap\n"
40554 " ready\n"
40555 "\n"
40556 msgstr ""
40557
40558 #. type: textblock
40559 #: ../src/guestfs.pod:2241
40560 msgid "In another terminal, run a guestfish command such as this:"
40561 msgstr ""
40562
40563 #. type: textblock
40564 #: ../src/guestfs.pod:2245
40565 msgid "In the first terminal, stap trace output similar to this is shown:"
40566 msgstr ""
40567
40568 #. type: verbatim
40569 #: ../src/guestfs.pod:2247
40570 #, no-wrap
40571 msgid ""
40572 " 1318248056692655 (+0):\tlaunch_start\n"
40573 " 1318248056692850 (+195):       launch_build_appliance_start\n"
40574 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
40575 " 1318248056838059 (+19774):     launch_run_qemu\n"
40576 " 1318248061071167 (+4233108):   launch_end\n"
40577 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40578 "\n"
40579 msgstr ""
40580
40581 #. type: =end
40582 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40583 msgid "html"
40584 msgstr "html"
40585
40586 #. type: textblock
40587 #: ../src/guestfs.pod:2256
40588 msgid ""
40589 "<!-- old anchor for the next section --> <a name="
40590 "\"state_machine_and_low_level_event_api\"/>"
40591 msgstr ""
40592 "<!-- old anchor for the next section --> <a name="
40593 "\"state_machine_and_low_level_event_api\"/>"
40594
40595 #. type: =head1
40596 #: ../src/guestfs.pod:2261
40597 msgid "ARCHITECTURE"
40598 msgstr "АРХІТЕКТУРА"
40599
40600 #. type: textblock
40601 #: ../src/guestfs.pod:2263
40602 msgid ""
40603 "Internally, libguestfs is implemented by running an appliance (a special "
40604 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
40605 "process of the main program."
40606 msgstr ""
40607
40608 #. type: verbatim
40609 #: ../src/guestfs.pod:2267
40610 #, no-wrap
40611 msgid ""
40612 "  ___________________\n"
40613 " /                   \\\n"
40614 " | main program      |\n"
40615 " |                   |\n"
40616 " |                   |           child process / appliance\n"
40617 " |                   |           __________________________\n"
40618 " |                   |          / qemu                     \\\n"
40619 " +-------------------+   RPC    |      +-----------------+ |\n"
40620 " | libguestfs     <--------------------> guestfsd        | |\n"
40621 " |                   |          |      +-----------------+ |\n"
40622 " \\___________________/          |      | Linux kernel    | |\n"
40623 "                                |      +--^--------------+ |\n"
40624 "                                \\_________|________________/\n"
40625 "                                          |\n"
40626 "                                   _______v______\n"
40627 "                                  /              \\\n"
40628 "                                  | Device or    |\n"
40629 "                                  | disk image   |\n"
40630 "                                  \\______________/\n"
40631 "\n"
40632 msgstr ""
40633
40634 #. type: textblock
40635 #: ../src/guestfs.pod:2287
40636 msgid ""
40637 "The library, linked to the main program, creates the child process and hence "
40638 "the appliance in the L</guestfs_launch> function."
40639 msgstr ""
40640
40641 #. type: textblock
40642 #: ../src/guestfs.pod:2290
40643 msgid ""
40644 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40645 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40646 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
40647 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
40648 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
40649 "attached to the qemu process which translates device access by the "
40650 "appliance's Linux kernel into accesses to the image."
40651 msgstr ""
40652
40653 #. type: textblock
40654 #: ../src/guestfs.pod:2299
40655 msgid ""
40656 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
40657 "Although the disk image you are attached to might also be used by some "
40658 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
40659 "care if both libguestfs's qemu process and your virtual machine are trying "
40660 "to update the disk image at the same time, since these usually results in "
40661 "massive disk corruption)."
40662 msgstr ""
40663
40664 #. type: =head1
40665 #: ../src/guestfs.pod:2306
40666 msgid "STATE MACHINE"
40667 msgstr "СКІНЧЕННИЙ АВТОМАТ"
40668
40669 #. type: textblock
40670 #: ../src/guestfs.pod:2308
40671 msgid "libguestfs uses a state machine to model the child process:"
40672 msgstr ""
40673
40674 #. type: verbatim
40675 #: ../src/guestfs.pod:2310
40676 #, no-wrap
40677 msgid ""
40678 "                         |\n"
40679 "                    guestfs_create\n"
40680 "                         |\n"
40681 "                         |\n"
40682 "                     ____V_____\n"
40683 "                    /          \\\n"
40684 "                    |  CONFIG  |\n"
40685 "                    \\__________/\n"
40686 "                     ^ ^   ^  \\\n"
40687 "                    /  |    \\  \\ guestfs_launch\n"
40688 "                   /   |    _\\__V______\n"
40689 "                  /    |   /           \\\n"
40690 "                 /     |   | LAUNCHING |\n"
40691 "                /      |   \\___________/\n"
40692 "               /       |       /\n"
40693 "              /        |  guestfs_launch\n"
40694 "             /         |     /\n"
40695 "    ______  /        __|____V\n"
40696 "   /      \\ ------> /        \\\n"
40697 "   | BUSY |         | READY  |\n"
40698 "   \\______/ <------ \\________/\n"
40699 "\n"
40700 msgstr ""
40701
40702 #. type: textblock
40703 #: ../src/guestfs.pod:2332
40704 msgid ""
40705 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40706 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40707 "(3) alternating between READY and BUSY as commands are issued to, and "
40708 "carried out by, the child process."
40709 msgstr ""
40710
40711 #. type: textblock
40712 #: ../src/guestfs.pod:2337
40713 msgid ""
40714 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40715 "asynchronously at any time (eg. due to some internal error), and that causes "
40716 "the state to transition back to CONFIG."
40717 msgstr ""
40718
40719 #. type: textblock
40720 #: ../src/guestfs.pod:2341
40721 msgid ""
40722 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40723 "issued when in the CONFIG state."
40724 msgstr ""
40725
40726 #. type: textblock
40727 #: ../src/guestfs.pod:2344
40728 msgid ""
40729 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
40730 "L</guestfs_launch> blocks until the child process is READY to accept "
40731 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
40732 "moves the state from CONFIG to LAUNCHING while it is running."
40733 msgstr ""
40734
40735 #. type: textblock
40736 #: ../src/guestfs.pod:2350
40737 msgid ""
40738 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40739 "state.  These API calls block waiting for the command to be carried out (ie. "
40740 "the state to transition to BUSY and then back to READY).  There are no non-"
40741 "blocking versions, and no way to issue more than one command per handle at "
40742 "the same time."
40743 msgstr ""
40744
40745 #. type: textblock
40746 #: ../src/guestfs.pod:2356
40747 msgid ""
40748 "Finally, the child process sends asynchronous messages back to the main "
40749 "program, such as kernel log messages.  You can register a callback to "
40750 "receive these messages."
40751 msgstr ""
40752
40753 #. type: =head1
40754 #: ../src/guestfs.pod:2360
40755 msgid "INTERNALS"
40756 msgstr ""
40757
40758 #. type: =head2
40759 #: ../src/guestfs.pod:2362
40760 msgid "APPLIANCE BOOT PROCESS"
40761 msgstr ""
40762
40763 #. type: textblock
40764 #: ../src/guestfs.pod:2364
40765 msgid ""
40766 "This process has evolved and continues to evolve.  The description here "
40767 "corresponds only to the current version of libguestfs and is provided for "
40768 "information only."
40769 msgstr ""
40770
40771 #. type: textblock
40772 #: ../src/guestfs.pod:2368
40773 msgid ""
40774 "In order to follow the stages involved below, enable libguestfs debugging "
40775 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40776 msgstr ""
40777
40778 #. type: =item
40779 #: ../src/guestfs.pod:2373
40780 msgid "Create the appliance"
40781 msgstr ""
40782
40783 #. type: textblock
40784 #: ../src/guestfs.pod:2375
40785 msgid ""
40786 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40787 "initrd and the appliance."
40788 msgstr ""
40789
40790 #. type: textblock
40791 #: ../src/guestfs.pod:2378
40792 msgid ""
40793 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40794 "directory if C<TMPDIR> is set)."
40795 msgstr ""
40796
40797 #. type: textblock
40798 #: ../src/guestfs.pod:2381
40799 msgid ""
40800 "For a complete description of how the appliance is created and cached, read "
40801 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40802 msgstr ""
40803
40804 #. type: =item
40805 #: ../src/guestfs.pod:2385
40806 msgid "Start qemu and boot the kernel"
40807 msgstr ""
40808
40809 #. type: textblock
40810 #: ../src/guestfs.pod:2387
40811 msgid "qemu is invoked to boot the kernel."
40812 msgstr ""
40813
40814 #. type: =item
40815 #: ../src/guestfs.pod:2389
40816 msgid "Run the initrd"
40817 msgstr ""
40818
40819 #. type: textblock
40820 #: ../src/guestfs.pod:2391
40821 msgid ""
40822 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40823 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40824 "order that the appliance itself can be mounted and started."
40825 msgstr ""
40826
40827 #. type: textblock
40828 #: ../src/guestfs.pod:2395
40829 msgid ""
40830 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40831 "initrd>."
40832 msgstr ""
40833
40834 #. type: textblock
40835 #: ../src/guestfs.pod:2398
40836 msgid ""
40837 "When the initrd has started you will see messages showing that kernel "
40838 "modules are being loaded, similar to this:"
40839 msgstr ""
40840
40841 #. type: verbatim
40842 #: ../src/guestfs.pod:2401
40843 #, no-wrap
40844 msgid ""
40845 " febootstrap: ext2 mini initrd starting up\n"
40846 " febootstrap: mounting /sys\n"
40847 " febootstrap: internal insmod libcrc32c.ko\n"
40848 " febootstrap: internal insmod crc32c-intel.ko\n"
40849 "\n"
40850 msgstr ""
40851
40852 #. type: =item
40853 #: ../src/guestfs.pod:2406
40854 msgid "Find and mount the appliance device"
40855 msgstr ""
40856
40857 #. type: textblock
40858 #: ../src/guestfs.pod:2408
40859 msgid ""
40860 "The appliance is a sparse file containing an ext2 filesystem which contains "
40861 "a familiar (although reduced in size) Linux operating system.  It would "
40862 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40863 msgstr ""
40864
40865 #. type: textblock
40866 #: ../src/guestfs.pod:2412
40867 msgid ""
40868 "The regular disks being inspected by libguestfs are the first devices "
40869 "exposed by qemu (eg. as C</dev/vda>)."
40870 msgstr ""
40871
40872 #. type: textblock
40873 #: ../src/guestfs.pod:2415
40874 msgid ""
40875 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40876 "there was only one regular disk)."
40877 msgstr ""
40878
40879 #. type: textblock
40880 #: ../src/guestfs.pod:2418
40881 msgid ""
40882 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40883 "and switch root into the appliance, and run C</init> from the appliance."
40884 msgstr ""
40885
40886 #. type: textblock
40887 #: ../src/guestfs.pod:2422
40888 msgid "If this works successfully you will see messages such as:"
40889 msgstr ""
40890
40891 #. type: verbatim
40892 #: ../src/guestfs.pod:2424
40893 #, no-wrap
40894 msgid ""
40895 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40896 " febootstrap: creating /dev/root as block special 252:16\n"
40897 " febootstrap: mounting new root on /root\n"
40898 " febootstrap: chroot\n"
40899 " Starting /init script ...\n"
40900 "\n"
40901 msgstr ""
40902
40903 #. type: textblock
40904 #: ../src/guestfs.pod:2430
40905 msgid ""
40906 "Note that C<Starting /init script ...> indicates that the appliance's init "
40907 "script is now running."
40908 msgstr ""
40909
40910 #. type: =item
40911 #: ../src/guestfs.pod:2433
40912 msgid "Initialize the appliance"
40913 msgstr ""
40914
40915 #. type: textblock
40916 #: ../src/guestfs.pod:2435
40917 msgid ""
40918 "The appliance itself now initializes itself.  This involves starting certain "
40919 "processes like C<udev>, possibly printing some debug information, and "
40920 "finally running the daemon (C<guestfsd>)."
40921 msgstr ""
40922
40923 #. type: =item
40924 #: ../src/guestfs.pod:2439
40925 msgid "The daemon"
40926 msgstr ""
40927
40928 #. type: textblock
40929 #: ../src/guestfs.pod:2441
40930 msgid ""
40931 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40932 "should see:"
40933 msgstr ""
40934
40935 #. type: verbatim
40936 #: ../src/guestfs.pod:2444
40937 #, no-wrap
40938 msgid ""
40939 " verbose daemon enabled\n"
40940 "\n"
40941 msgstr ""
40942
40943 #. type: textblock
40944 #: ../src/guestfs.pod:2446
40945 msgid ""
40946 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40947 "connected on the other end to the library."
40948 msgstr ""
40949
40950 #. type: textblock
40951 #: ../src/guestfs.pod:2449
40952 msgid ""
40953 "The daemon connects to this port (and hence to the library) and sends a four "
40954 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40955 "protocol (see below)."
40956 msgstr ""
40957
40958 #. type: =head2
40959 #: ../src/guestfs.pod:2455
40960 msgid "COMMUNICATION PROTOCOL"
40961 msgstr ""
40962
40963 #. type: textblock
40964 #: ../src/guestfs.pod:2457
40965 msgid ""
40966 "Don't rely on using this protocol directly.  This section documents how it "
40967 "currently works, but it may change at any time."
40968 msgstr ""
40969
40970 #. type: textblock
40971 #: ../src/guestfs.pod:2460
40972 msgid ""
40973 "The protocol used to talk between the library and the daemon running inside "
40974 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40975 "1014, RFC 1832, RFC 4506)."
40976 msgstr ""
40977
40978 #. type: textblock
40979 #: ../src/guestfs.pod:2464
40980 msgid ""
40981 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40982 "this file is automatically generated)."
40983 msgstr ""
40984
40985 #. type: textblock
40986 #: ../src/guestfs.pod:2467
40987 msgid ""
40988 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40989 "and C<FileOut> parameters, which are handled with very simple request/reply "
40990 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40991 "parameters, which use the same request and reply messages, but they may also "
40992 "be followed by files sent using a chunked encoding."
40993 msgstr ""
40994
40995 #. type: =head3
40996 #: ../src/guestfs.pod:2474
40997 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40998 msgstr ""
40999
41000 #. type: textblock
41001 #: ../src/guestfs.pod:2476
41002 msgid "For ordinary functions, the request message is:"
41003 msgstr ""
41004
41005 #. type: verbatim
41006 #: ../src/guestfs.pod:2478
41007 #, no-wrap
41008 msgid ""
41009 " total length (header + arguments,\n"
41010 "      but not including the length word itself)\n"
41011 " struct guestfs_message_header (encoded as XDR)\n"
41012 " struct guestfs_<foo>_args (encoded as XDR)\n"
41013 "\n"
41014 msgstr ""
41015
41016 #. type: textblock
41017 #: ../src/guestfs.pod:2483
41018 msgid ""
41019 "The total length field allows the daemon to allocate a fixed size buffer "
41020 "into which it slurps the rest of the message.  As a result, the total length "
41021 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
41022 "effective size of any request is limited to somewhere under this size."
41023 msgstr ""
41024
41025 #. type: textblock
41026 #: ../src/guestfs.pod:2489
41027 msgid ""
41028 "Note also that many functions don't take any arguments, in which case the "
41029 "C<guestfs_I<foo>_args> is completely omitted."
41030 msgstr ""
41031
41032 #. type: textblock
41033 #: ../src/guestfs.pod:2492
41034 msgid ""
41035 "The header contains the procedure number (C<guestfs_proc>) which is how the "
41036 "receiver knows what type of args structure to expect, or none at all."
41037 msgstr ""
41038
41039 #. type: textblock
41040 #: ../src/guestfs.pod:2496
41041 msgid ""
41042 "For functions that take optional arguments, the optional arguments are "
41043 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
41044 "arguments.  A bitmask in the header indicates which optional arguments are "
41045 "meaningful.  The bitmask is also checked to see if it contains bits set "
41046 "which the daemon does not know about (eg. if more optional arguments were "
41047 "added in a later version of the library), and this causes the call to be "
41048 "rejected."
41049 msgstr ""
41050
41051 #. type: textblock
41052 #: ../src/guestfs.pod:2504
41053 msgid "The reply message for ordinary functions is:"
41054 msgstr ""
41055
41056 #. type: verbatim
41057 #: ../src/guestfs.pod:2506
41058 #, no-wrap
41059 msgid ""
41060 " total length (header + ret,\n"
41061 "      but not including the length word itself)\n"
41062 " struct guestfs_message_header (encoded as XDR)\n"
41063 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41064 "\n"
41065 msgstr ""
41066
41067 #. type: textblock
41068 #: ../src/guestfs.pod:2511
41069 msgid ""
41070 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
41071 "functions that return no formal return values."
41072 msgstr ""
41073
41074 #. type: textblock
41075 #: ../src/guestfs.pod:2514
41076 msgid ""
41077 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
41078 msgstr ""
41079
41080 #. type: textblock
41081 #: ../src/guestfs.pod:2517
41082 msgid ""
41083 "In the case of an error, a flag is set in the header, and the reply message "
41084 "is slightly changed:"
41085 msgstr ""
41086
41087 #. type: verbatim
41088 #: ../src/guestfs.pod:2520
41089 #, no-wrap
41090 msgid ""
41091 " total length (header + error,\n"
41092 "      but not including the length word itself)\n"
41093 " struct guestfs_message_header (encoded as XDR)\n"
41094 " struct guestfs_message_error (encoded as XDR)\n"
41095 "\n"
41096 msgstr ""
41097
41098 #. type: textblock
41099 #: ../src/guestfs.pod:2525
41100 msgid ""
41101 "The C<guestfs_message_error> structure contains the error message as a "
41102 "string."
41103 msgstr ""
41104
41105 #. type: =head3
41106 #: ../src/guestfs.pod:2528
41107 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
41108 msgstr ""
41109
41110 #. type: textblock
41111 #: ../src/guestfs.pod:2530
41112 msgid ""
41113 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
41114 "The normal request message is sent (see above).  However this is followed by "
41115 "a sequence of file chunks."
41116 msgstr ""
41117
41118 #. type: verbatim
41119 #: ../src/guestfs.pod:2534
41120 #, no-wrap
41121 msgid ""
41122 " total length (header + arguments,\n"
41123 "      but not including the length word itself,\n"
41124 "      and not including the chunks)\n"
41125 " struct guestfs_message_header (encoded as XDR)\n"
41126 " struct guestfs_<foo>_args (encoded as XDR)\n"
41127 " sequence of chunks for FileIn param #0\n"
41128 " sequence of chunks for FileIn param #1 etc.\n"
41129 "\n"
41130 msgstr ""
41131
41132 #. type: textblock
41133 #: ../src/guestfs.pod:2542
41134 msgid "The \"sequence of chunks\" is:"
41135 msgstr ""
41136
41137 #. type: verbatim
41138 #: ../src/guestfs.pod:2544
41139 #, no-wrap
41140 msgid ""
41141 " length of chunk (not including length word itself)\n"
41142 " struct guestfs_chunk (encoded as XDR)\n"
41143 " length of chunk\n"
41144 " struct guestfs_chunk (encoded as XDR)\n"
41145 "   ...\n"
41146 " length of chunk\n"
41147 " struct guestfs_chunk (with data.data_len == 0)\n"
41148 "\n"
41149 msgstr ""
41150
41151 #. type: textblock
41152 #: ../src/guestfs.pod:2552
41153 msgid ""
41154 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
41155 "is set in the final chunk to indicate either successful completion or early "
41156 "cancellation."
41157 msgstr ""
41158
41159 #. type: textblock
41160 #: ../src/guestfs.pod:2556
41161 msgid ""
41162 "At time of writing there are no functions that have more than one FileIn "
41163 "parameter.  However this is (theoretically) supported, by sending the "
41164 "sequence of chunks for each FileIn parameter one after another (from left to "
41165 "right)."
41166 msgstr ""
41167
41168 #. type: textblock
41169 #: ../src/guestfs.pod:2561
41170 msgid ""
41171 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
41172 "transfer.  The library does this by sending a chunk with a special flag set "
41173 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
41174 "RPC, does I<not> send any reply, and goes back to reading the next request."
41175 msgstr ""
41176
41177 #. type: textblock
41178 #: ../src/guestfs.pod:2567
41179 msgid ""
41180 "The daemon may also cancel.  It does this by writing a special word "
41181 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
41182 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
41183 "cancel chunk).  The special word is chosen so that even if cancellation "
41184 "happens right at the end of the transfer (after the library has finished "
41185 "writing and has started listening for the reply), the \"spurious\" cancel "
41186 "flag will not be confused with the reply message."
41187 msgstr ""
41188
41189 #. type: textblock
41190 #: ../src/guestfs.pod:2576
41191 msgid ""
41192 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
41193 "limit), and also files where the size is not known in advance (eg. from "
41194 "pipes or sockets).  However the chunks are rather small "
41195 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
41196 "to keep much in memory."
41197 msgstr ""
41198
41199 #. type: =head3
41200 #: ../src/guestfs.pod:2582
41201 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
41202 msgstr ""
41203
41204 #. type: textblock
41205 #: ../src/guestfs.pod:2584
41206 msgid ""
41207 "The protocol for FileOut parameters is exactly the same as for FileIn "
41208 "parameters, but with the roles of daemon and library reversed."
41209 msgstr ""
41210
41211 #. type: verbatim
41212 #: ../src/guestfs.pod:2587
41213 #, no-wrap
41214 msgid ""
41215 " total length (header + ret,\n"
41216 "      but not including the length word itself,\n"
41217 "      and not including the chunks)\n"
41218 " struct guestfs_message_header (encoded as XDR)\n"
41219 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41220 " sequence of chunks for FileOut param #0\n"
41221 " sequence of chunks for FileOut param #1 etc.\n"
41222 "\n"
41223 msgstr ""
41224
41225 #. type: =head3
41226 #: ../src/guestfs.pod:2595
41227 msgid "INITIAL MESSAGE"
41228 msgstr ""
41229
41230 #. type: textblock
41231 #: ../src/guestfs.pod:2597
41232 msgid ""
41233 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
41234 "which indicates that the guest and daemon is alive.  This is what L</"
41235 "guestfs_launch> waits for."
41236 msgstr ""
41237
41238 #. type: =head3
41239 #: ../src/guestfs.pod:2601
41240 msgid "PROGRESS NOTIFICATION MESSAGES"
41241 msgstr ""
41242
41243 #. type: textblock
41244 #: ../src/guestfs.pod:2603
41245 msgid ""
41246 "The daemon may send progress notification messages at any time.  These are "
41247 "distinguished by the normal length word being replaced by "
41248 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
41249 msgstr ""
41250
41251 #. type: textblock
41252 #: ../src/guestfs.pod:2607
41253 msgid ""
41254 "The library turns them into progress callbacks (see L</"
41255 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
41256 "if not."
41257 msgstr ""
41258
41259 #. type: textblock
41260 #: ../src/guestfs.pod:2611
41261 msgid ""
41262 "The daemon self-limits the frequency of progress messages it sends (see "
41263 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
41264 "messages."
41265 msgstr ""
41266
41267 #. type: =head1
41268 #: ../src/guestfs.pod:2615
41269 msgid "LIBGUESTFS VERSION NUMBERS"
41270 msgstr ""
41271
41272 #. type: textblock
41273 #: ../src/guestfs.pod:2617
41274 msgid ""
41275 "Since April 2010, libguestfs has started to make separate development and "
41276 "stable releases, along with corresponding branches in our git repository.  "
41277 "These separate releases can be identified by version number:"
41278 msgstr ""
41279
41280 #. type: verbatim
41281 #: ../src/guestfs.pod:2622
41282 #, no-wrap
41283 msgid ""
41284 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
41285 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
41286 "       |\n"
41287 "       v\n"
41288 " 1  .  3  .  5\n"
41289 " ^           ^\n"
41290 " |           |\n"
41291 " |           `-------- sub-version\n"
41292 " |\n"
41293 " `------ always '1' because we don't change the ABI\n"
41294 "\n"
41295 msgstr ""
41296
41297 #. type: textblock
41298 #: ../src/guestfs.pod:2633
41299 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
41300 msgstr ""
41301
41302 #. type: textblock
41303 #: ../src/guestfs.pod:2635
41304 msgid ""
41305 "As time passes we cherry pick fixes from the development branch and backport "
41306 "those into the stable branch, the effect being that the stable branch should "
41307 "get more stable and less buggy over time.  So the stable releases are ideal "
41308 "for people who don't need new features but would just like the software to "
41309 "work."
41310 msgstr ""
41311
41312 #. type: textblock
41313 #: ../src/guestfs.pod:2641
41314 msgid "Our criteria for backporting changes are:"
41315 msgstr ""
41316
41317 #. type: textblock
41318 #: ../src/guestfs.pod:2647
41319 msgid ""
41320 "Documentation changes which don't affect any code are backported unless the "
41321 "documentation refers to a future feature which is not in stable."
41322 msgstr ""
41323
41324 #. type: textblock
41325 #: ../src/guestfs.pod:2653
41326 msgid ""
41327 "Bug fixes which are not controversial, fix obvious problems, and have been "
41328 "well tested are backported."
41329 msgstr ""
41330
41331 #. type: textblock
41332 #: ../src/guestfs.pod:2658
41333 msgid ""
41334 "Simple rearrangements of code which shouldn't affect how it works get "
41335 "backported.  This is so that the code in the two branches doesn't get too "
41336 "far out of step, allowing us to backport future fixes more easily."
41337 msgstr ""
41338
41339 #. type: textblock
41340 #: ../src/guestfs.pod:2664
41341 msgid ""
41342 "We I<don't> backport new features, new APIs, new tools etc, except in one "
41343 "exceptional case: the new feature is required in order to implement an "
41344 "important bug fix."
41345 msgstr ""
41346
41347 #. type: textblock
41348 #: ../src/guestfs.pod:2670
41349 msgid ""
41350 "A new stable branch starts when we think the new features in development are "
41351 "substantial and compelling enough over the current stable branch to warrant "
41352 "it.  When that happens we create new stable and development versions 1.N.0 "
41353 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
41354 "stable at this point, but by backporting fixes from development, that branch "
41355 "will stabilize over time."
41356 msgstr ""
41357
41358 #. type: =head1
41359 #: ../src/guestfs.pod:2678
41360 msgid "EXTENDING LIBGUESTFS"
41361 msgstr ""
41362
41363 #. type: =head2
41364 #: ../src/guestfs.pod:2680
41365 msgid "ADDING A NEW API ACTION"
41366 msgstr ""
41367
41368 #. type: textblock
41369 #: ../src/guestfs.pod:2682
41370 msgid ""
41371 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
41372 "documentation) are generated, and this makes it easy to extend the "
41373 "libguestfs API."
41374 msgstr ""
41375
41376 #. type: textblock
41377 #: ../src/guestfs.pod:2686
41378 msgid "To add a new API action there are two changes:"
41379 msgstr ""
41380
41381 #. type: textblock
41382 #: ../src/guestfs.pod:2692
41383 msgid ""
41384 "You need to add a description of the call (name, parameters, return type, "
41385 "tests, documentation) to C<generator/generator_actions.ml>."
41386 msgstr ""
41387
41388 #. type: textblock
41389 #: ../src/guestfs.pod:2695
41390 msgid ""
41391 "There are two sorts of API action, depending on whether the call goes "
41392 "through to the daemon in the appliance, or is serviced entirely by the "
41393 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
41394 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
41395 "an example of the latter, since a trace flag is maintained in the handle and "
41396 "all tracing is done on the library side."
41397 msgstr ""
41398
41399 #. type: textblock
41400 #: ../src/guestfs.pod:2703
41401 msgid ""
41402 "Most new actions are of the first type, and get added to the "
41403 "C<daemon_functions> list.  Each function has a unique procedure number used "
41404 "in the RPC protocol which is assigned to that action when we publish "
41405 "libguestfs and cannot be reused.  Take the latest procedure number and "
41406 "increment it."
41407 msgstr ""
41408
41409 #. type: textblock
41410 #: ../src/guestfs.pod:2709
41411 msgid ""
41412 "For library-only actions of the second type, add to the "
41413 "C<non_daemon_functions> list.  Since these functions are serviced by the "
41414 "library and do not travel over the RPC mechanism to the daemon, these "
41415 "functions do not need a procedure number, and so the procedure number is set "
41416 "to C<-1>."
41417 msgstr ""
41418
41419 #. type: textblock
41420 #: ../src/guestfs.pod:2717
41421 msgid "Implement the action (in C):"
41422 msgstr ""
41423
41424 #. type: textblock
41425 #: ../src/guestfs.pod:2719
41426 msgid ""
41427 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
41428 "C<daemon/> directory."
41429 msgstr ""
41430
41431 #. type: textblock
41432 #: ../src/guestfs.pod:2722
41433 msgid ""
41434 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
41435 "(note: double underscore) in the C<src/> directory."
41436 msgstr ""
41437
41438 #. type: textblock
41439 #: ../src/guestfs.pod:2725
41440 msgid "In either case, use another function as an example of what to do."
41441 msgstr ""
41442
41443 #. type: textblock
41444 #: ../src/guestfs.pod:2729
41445 msgid "After making these changes, use C<make> to compile."
41446 msgstr ""
41447
41448 #. type: textblock
41449 #: ../src/guestfs.pod:2731
41450 msgid ""
41451 "Note that you don't need to implement the RPC, language bindings, manual "
41452 "pages or anything else.  It's all automatically generated from the OCaml "
41453 "description."
41454 msgstr ""
41455
41456 #. type: =head2
41457 #: ../src/guestfs.pod:2735
41458 msgid "ADDING TESTS FOR AN API ACTION"
41459 msgstr ""
41460
41461 #. type: textblock
41462 #: ../src/guestfs.pod:2737
41463 msgid ""
41464 "You can supply zero or as many tests as you want per API call.  The tests "
41465 "can either be added as part of the API description (C<generator/"
41466 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
41467 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
41468 "slower, so if possible use the first method."
41469 msgstr ""
41470
41471 #. type: textblock
41472 #: ../src/guestfs.pod:2743
41473 msgid ""
41474 "The following describes the test environment used when you add an API test "
41475 "in C<generator_actions.ml>."
41476 msgstr ""
41477
41478 #. type: textblock
41479 #: ../src/guestfs.pod:2746
41480 msgid "The test environment has 4 block devices:"
41481 msgstr ""
41482
41483 #. type: =item
41484 #: ../src/guestfs.pod:2750
41485 msgid "C</dev/sda> 500MB"
41486 msgstr "C</dev/sda> 500 МБ"
41487
41488 #. type: textblock
41489 #: ../src/guestfs.pod:2752
41490 msgid "General block device for testing."
41491 msgstr ""
41492
41493 #. type: =item
41494 #: ../src/guestfs.pod:2754
41495 msgid "C</dev/sdb> 50MB"
41496 msgstr "C</dev/sdb> 50 МБ"
41497
41498 #. type: textblock
41499 #: ../src/guestfs.pod:2756
41500 msgid ""
41501 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
41502 "operations."
41503 msgstr ""
41504
41505 #. type: =item
41506 #: ../src/guestfs.pod:2759
41507 msgid "C</dev/sdc> 10MB"
41508 msgstr "C</dev/sdc> 10 МБ"
41509
41510 #. type: textblock
41511 #: ../src/guestfs.pod:2761
41512 msgid "Used in a few tests where two block devices are needed."
41513 msgstr ""
41514
41515 #. type: =item
41516 #: ../src/guestfs.pod:2763
41517 msgid "C</dev/sdd>"
41518 msgstr "C</dev/sdd>"
41519
41520 #. type: textblock
41521 #: ../src/guestfs.pod:2765
41522 msgid "ISO with fixed content (see C<images/test.iso>)."
41523 msgstr ""
41524
41525 #. type: textblock
41526 #: ../src/guestfs.pod:2769
41527 msgid ""
41528 "To be able to run the tests in a reasonable amount of time, the libguestfs "
41529 "appliance and block devices are reused between tests.  So don't try testing "
41530 "L</guestfs_kill_subprocess> :-x"
41531 msgstr ""
41532
41533 #. type: textblock
41534 #: ../src/guestfs.pod:2773
41535 msgid ""
41536 "Each test starts with an initial scenario, selected using one of the "
41537 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
41538 "initialize the disks mentioned above in a particular way as documented in "
41539 "C<generator_types.ml>.  You should not assume anything about the previous "
41540 "contents of other disks that are not initialized."
41541 msgstr ""
41542
41543 #. type: textblock
41544 #: ../src/guestfs.pod:2779
41545 msgid ""
41546 "You can add a prerequisite clause to any individual test.  This is a run-"
41547 "time check, which, if it fails, causes the test to be skipped.  Useful if "
41548 "testing a command which might not work on all variations of libguestfs "
41549 "builds.  A test that has prerequisite of C<Always> means to run "
41550 "unconditionally."
41551 msgstr ""
41552
41553 #. type: textblock
41554 #: ../src/guestfs.pod:2785
41555 msgid ""
41556 "In addition, packagers can skip individual tests by setting environment "
41557 "variables before running C<make check>."
41558 msgstr ""
41559
41560 #. type: verbatim
41561 #: ../src/guestfs.pod:2788
41562 #, no-wrap
41563 msgid ""
41564 " SKIP_TEST_<CMD>_<NUM>=1\n"
41565 "\n"
41566 msgstr ""
41567
41568 #. type: textblock
41569 #: ../src/guestfs.pod:2790
41570 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41571 msgstr ""
41572
41573 #. type: verbatim
41574 #: ../src/guestfs.pod:2794
41575 #, no-wrap
41576 msgid ""
41577 " SKIP_TEST_<CMD>=1\n"
41578 "\n"
41579 msgstr ""
41580
41581 #. type: textblock
41582 #: ../src/guestfs.pod:2796
41583 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41584 msgstr ""
41585
41586 #. type: textblock
41587 #: ../src/guestfs.pod:2798
41588 msgid "Packagers can run only certain tests by setting for example:"
41589 msgstr ""
41590
41591 #. type: verbatim
41592 #: ../src/guestfs.pod:2800
41593 #, no-wrap
41594 msgid ""
41595 " TEST_ONLY=\"vfs_type zerofree\"\n"
41596 "\n"
41597 msgstr ""
41598
41599 #. type: textblock
41600 #: ../src/guestfs.pod:2802
41601 msgid ""
41602 "See C<capitests/tests.c> for more details of how these environment variables "
41603 "work."
41604 msgstr ""
41605
41606 #. type: =head2
41607 #: ../src/guestfs.pod:2805
41608 msgid "DEBUGGING NEW API ACTIONS"
41609 msgstr ""
41610
41611 #. type: textblock
41612 #: ../src/guestfs.pod:2807
41613 msgid "Test new actions work before submitting them."
41614 msgstr ""
41615
41616 #. type: textblock
41617 #: ../src/guestfs.pod:2809
41618 msgid "You can use guestfish to try out new commands."
41619 msgstr ""
41620
41621 #. type: textblock
41622 #: ../src/guestfs.pod:2811
41623 msgid ""
41624 "Debugging the daemon is a problem because it runs inside a minimal "
41625 "environment.  However you can fprintf messages in the daemon to stderr, and "
41626 "they will show up if you use C<guestfish -v>."
41627 msgstr ""
41628
41629 #. type: =head2
41630 #: ../src/guestfs.pod:2815
41631 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41632 msgstr ""
41633
41634 #. type: textblock
41635 #: ../src/guestfs.pod:2817
41636 msgid ""
41637 "Our C source code generally adheres to some basic code-formatting "
41638 "conventions.  The existing code base is not totally consistent on this "
41639 "front, but we do prefer that contributed code be formatted similarly.  In "
41640 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41641 "indentation level, and other than that, follow the K&R style."
41642 msgstr ""
41643
41644 #. type: textblock
41645 #: ../src/guestfs.pod:2823
41646 msgid ""
41647 "If you use Emacs, add the following to one of one of your start-up files (e."
41648 "g., ~/.emacs), to help ensure that you get indentation right:"
41649 msgstr ""
41650
41651 #. type: verbatim
41652 #: ../src/guestfs.pod:2826
41653 #, no-wrap
41654 msgid ""
41655 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41656 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41657 " (add-hook 'find-file-hook\n"
41658 "     '(lambda () (if (and buffer-file-name\n"
41659 "                          (string-match \"/libguestfs\\\\>\"\n"
41660 "                              (buffer-file-name))\n"
41661 "                          (not (string-equal mode-name \"Change Log\"))\n"
41662 "                          (not (string-equal mode-name \"Makefile\")))\n"
41663 "                     (setq indent-tabs-mode nil))))\n"
41664 " \n"
41665 msgstr ""
41666
41667 #. type: verbatim
41668 #: ../src/guestfs.pod:2836
41669 #, no-wrap
41670 msgid ""
41671 " ;;; When editing C sources in libguestfs, use this style.\n"
41672 " (defun libguestfs-c-mode ()\n"
41673 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
41674 "   (interactive)\n"
41675 "   (c-set-style \"K&R\")\n"
41676 "   (setq c-indent-level 2)\n"
41677 "   (setq c-basic-offset 2))\n"
41678 " (add-hook 'c-mode-hook\n"
41679 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41680 "                               (buffer-file-name))\n"
41681 "                           (libguestfs-c-mode))))\n"
41682 "\n"
41683 msgstr ""
41684
41685 #. type: textblock
41686 #: ../src/guestfs.pod:2848
41687 msgid "Enable warnings when compiling (and fix any problems this finds):"
41688 msgstr ""
41689
41690 #. type: verbatim
41691 #: ../src/guestfs.pod:2851
41692 #, no-wrap
41693 msgid ""
41694 " ./configure --enable-gcc-warnings\n"
41695 "\n"
41696 msgstr ""
41697 " ./configure --enable-gcc-warnings\n"
41698 "\n"
41699
41700 #. type: textblock
41701 #: ../src/guestfs.pod:2853
41702 msgid "Useful targets are:"
41703 msgstr ""
41704
41705 #. type: verbatim
41706 #: ../src/guestfs.pod:2855
41707 #, no-wrap
41708 msgid ""
41709 " make syntax-check  # checks the syntax of the C code\n"
41710 " make check         # runs the test suite\n"
41711 "\n"
41712 msgstr ""
41713
41714 #. type: =head2
41715 #: ../src/guestfs.pod:2858
41716 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41717 msgstr ""
41718
41719 #. type: textblock
41720 #: ../src/guestfs.pod:2860
41721 msgid ""
41722 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41723 "which are used to do shell quoting."
41724 msgstr ""
41725
41726 #. type: =item
41727 #: ../src/guestfs.pod:2865
41728 msgid "%Q"
41729 msgstr "%Q"
41730
41731 #. type: textblock
41732 #: ../src/guestfs.pod:2867
41733 msgid ""
41734 "Simple shell quoted string.  Any spaces or other shell characters are "
41735 "escaped for you."
41736 msgstr ""
41737
41738 #. type: =item
41739 #: ../src/guestfs.pod:2870
41740 msgid "%R"
41741 msgstr "%R"
41742
41743 #. type: textblock
41744 #: ../src/guestfs.pod:2872
41745 msgid ""
41746 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41747 "the sysroot."
41748 msgstr ""
41749
41750 #. type: verbatim
41751 #: ../src/guestfs.pod:2879
41752 #, no-wrap
41753 msgid ""
41754 " asprintf (&cmd, \"cat %R\", path);\n"
41755 "\n"
41756 msgstr ""
41757 " asprintf (&cmd, \"cat %R\", path);\n"
41758 "\n"
41759
41760 #. type: textblock
41761 #: ../src/guestfs.pod:2881
41762 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41763 msgstr ""
41764
41765 #. type: textblock
41766 #: ../src/guestfs.pod:2883
41767 msgid ""
41768 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41769 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41770 "they are not passed via the shell (instead, straight to exec).  You probably "
41771 "want to use the C<sysroot_path()> function however."
41772 msgstr ""
41773
41774 #. type: =head2
41775 #: ../src/guestfs.pod:2889
41776 msgid "SUBMITTING YOUR NEW API ACTIONS"
41777 msgstr ""
41778
41779 #. type: textblock
41780 #: ../src/guestfs.pod:2891
41781 msgid ""
41782 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41783 "libguestfs> and CC to L<rjones@redhat.com>."
41784 msgstr ""
41785
41786 #. type: =head2
41787 #: ../src/guestfs.pod:2895
41788 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41789 msgstr ""
41790
41791 #. type: textblock
41792 #: ../src/guestfs.pod:2897
41793 msgid "We support i18n (gettext anyhow) in the library."
41794 msgstr ""
41795
41796 #. type: textblock
41797 #: ../src/guestfs.pod:2899
41798 msgid ""
41799 "However many messages come from the daemon, and we don't translate those at "
41800 "the moment.  One reason is that the appliance generally has all locale files "
41801 "removed from it, because they take up a lot of space.  So we'd have to readd "
41802 "some of those, as well as copying our PO files into the appliance."
41803 msgstr ""
41804
41805 #. type: textblock
41806 #: ../src/guestfs.pod:2905
41807 msgid ""
41808 "Debugging messages are never translated, since they are intended for the "
41809 "programmers."
41810 msgstr ""
41811
41812 #. type: =head2
41813 #: ../src/guestfs.pod:2908
41814 msgid "SOURCE CODE SUBDIRECTORIES"
41815 msgstr ""
41816
41817 #. type: =item
41818 #: ../src/guestfs.pod:2912
41819 msgid "C<align>"
41820 msgstr ""
41821
41822 #. type: textblock
41823 #: ../src/guestfs.pod:2914
41824 msgid "L<virt-alignment-scan(1)> command and documentation."
41825 msgstr ""
41826
41827 #. type: textblock
41828 #: ../src/guestfs.pod:2918
41829 msgid "The libguestfs appliance, build scripts and so on."
41830 msgstr ""
41831
41832 #. type: =item
41833 #: ../src/guestfs.pod:2920
41834 msgid "C<capitests>"
41835 msgstr "C<capitests>"
41836
41837 #. type: textblock
41838 #: ../src/guestfs.pod:2922
41839 msgid "Automated tests of the C API."
41840 msgstr ""
41841
41842 #. type: =item
41843 #: ../src/guestfs.pod:2924
41844 msgid "C<cat>"
41845 msgstr "C<cat>"
41846
41847 #. type: textblock
41848 #: ../src/guestfs.pod:2926
41849 msgid ""
41850 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41851 "documentation."
41852 msgstr ""
41853
41854 #. type: =item
41855 #: ../src/guestfs.pod:2929
41856 msgid "C<caution>"
41857 msgstr "C<caution>"
41858
41859 #. type: textblock
41860 #: ../src/guestfs.pod:2931
41861 msgid ""
41862 "Safety and liveness tests of components that libguestfs depends upon (not of "
41863 "libguestfs itself).  Mainly this is for qemu and the kernel."
41864 msgstr ""
41865
41866 #. type: =item
41867 #: ../src/guestfs.pod:2934
41868 msgid "C<clone>"
41869 msgstr ""
41870
41871 #. type: textblock
41872 #: ../src/guestfs.pod:2936
41873 msgid ""
41874 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41875 "command and documentation."
41876 msgstr ""
41877
41878 #. type: =item
41879 #: ../src/guestfs.pod:2939
41880 msgid "C<contrib>"
41881 msgstr "C<contrib>"
41882
41883 #. type: textblock
41884 #: ../src/guestfs.pod:2941
41885 msgid "Outside contributions, experimental parts."
41886 msgstr ""
41887
41888 #. type: =item
41889 #: ../src/guestfs.pod:2943
41890 msgid "C<daemon>"
41891 msgstr "C<daemon>"
41892
41893 #. type: textblock
41894 #: ../src/guestfs.pod:2945
41895 msgid ""
41896 "The daemon that runs inside the libguestfs appliance and carries out actions."
41897 msgstr ""
41898
41899 #. type: =item
41900 #: ../src/guestfs.pod:2948
41901 msgid "C<df>"
41902 msgstr "C<df>"
41903
41904 #. type: textblock
41905 #: ../src/guestfs.pod:2950
41906 msgid "L<virt-df(1)> command and documentation."
41907 msgstr ""
41908
41909 #. type: =item
41910 #: ../src/guestfs.pod:2952
41911 msgid "C<edit>"
41912 msgstr "C<edit>"
41913
41914 #. type: textblock
41915 #: ../src/guestfs.pod:2954
41916 msgid "L<virt-edit(1)> command and documentation."
41917 msgstr ""
41918
41919 #. type: =item
41920 #: ../src/guestfs.pod:2956
41921 msgid "C<examples>"
41922 msgstr "C<examples>"
41923
41924 #. type: textblock
41925 #: ../src/guestfs.pod:2958
41926 msgid "C API example code."
41927 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41928
41929 #. type: =item
41930 #: ../src/guestfs.pod:2960
41931 #, fuzzy
41932 #| msgid "C<capitests>"
41933 msgid "C<extratests>"
41934 msgstr "C<capitests>"
41935
41936 #. type: textblock
41937 #: ../src/guestfs.pod:2962
41938 msgid ""
41939 "Extra tests.  These are not run by default because they require special "
41940 "tools or configuration."
41941 msgstr ""
41942
41943 #. type: =item
41944 #: ../src/guestfs.pod:2965
41945 msgid "C<fish>"
41946 msgstr "C<fish>"
41947
41948 #. type: textblock
41949 #: ../src/guestfs.pod:2967
41950 msgid ""
41951 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41952 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41953 "L<virt-tar-out(1)>."
41954 msgstr ""
41955
41956 #. type: =item
41957 #: ../src/guestfs.pod:2971
41958 msgid "C<fuse>"
41959 msgstr "C<fuse>"
41960
41961 #. type: textblock
41962 #: ../src/guestfs.pod:2973
41963 msgid ""
41964 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41965 msgstr ""
41966
41967 #. type: =item
41968 #: ../src/guestfs.pod:2975
41969 msgid "C<generator>"
41970 msgstr "C<generator>"
41971
41972 #. type: textblock
41973 #: ../src/guestfs.pod:2977
41974 msgid ""
41975 "The crucially important generator, used to automatically generate large "
41976 "amounts of boilerplate C code for things like RPC and bindings."
41977 msgstr ""
41978
41979 #. type: =item
41980 #: ../src/guestfs.pod:2980
41981 msgid "C<images>"
41982 msgstr "C<images>"
41983
41984 #. type: textblock
41985 #: ../src/guestfs.pod:2982
41986 msgid "Files used by the test suite."
41987 msgstr ""
41988
41989 #. type: textblock
41990 #: ../src/guestfs.pod:2984
41991 msgid "Some \"phony\" guest images which we test against."
41992 msgstr ""
41993
41994 #. type: =item
41995 #: ../src/guestfs.pod:2986
41996 msgid "C<inspector>"
41997 msgstr "C<inspector>"
41998
41999 #. type: textblock
42000 #: ../src/guestfs.pod:2988
42001 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
42002 msgstr ""
42003
42004 #. type: =item
42005 #: ../src/guestfs.pod:2990
42006 msgid "C<logo>"
42007 msgstr "C<logo>"
42008
42009 #. type: textblock
42010 #: ../src/guestfs.pod:2992
42011 msgid "Logo used on the website.  The fish is called Arthur by the way."
42012 msgstr ""
42013
42014 #. type: =item
42015 #: ../src/guestfs.pod:2994
42016 msgid "C<m4>"
42017 msgstr "C<m4>"
42018
42019 #. type: textblock
42020 #: ../src/guestfs.pod:2996
42021 msgid "M4 macros used by autoconf."
42022 msgstr ""
42023
42024 #. type: =item
42025 #: ../src/guestfs.pod:2998
42026 msgid "C<po>"
42027 msgstr "C<po>"
42028
42029 #. type: textblock
42030 #: ../src/guestfs.pod:3000
42031 msgid "Translations of simple gettext strings."
42032 msgstr "Переклади простих рядків gettext."
42033
42034 #. type: =item
42035 #: ../src/guestfs.pod:3002
42036 msgid "C<po-docs>"
42037 msgstr "C<po-docs>"
42038
42039 #. type: textblock
42040 #: ../src/guestfs.pod:3004
42041 msgid ""
42042 "The build infrastructure and PO files for translations of manpages and POD "
42043 "files.  Eventually this will be combined with the C<po> directory, but that "
42044 "is rather complicated."
42045 msgstr ""
42046
42047 #. type: =item
42048 #: ../src/guestfs.pod:3008
42049 msgid "C<regressions>"
42050 msgstr "C<regressions>"
42051
42052 #. type: textblock
42053 #: ../src/guestfs.pod:3010
42054 msgid "Regression tests."
42055 msgstr "Тести на регресії."
42056
42057 #. type: =item
42058 #: ../src/guestfs.pod:3012
42059 msgid "C<rescue>"
42060 msgstr "C<rescue>"
42061
42062 #. type: textblock
42063 #: ../src/guestfs.pod:3014
42064 msgid "L<virt-rescue(1)> command and documentation."
42065 msgstr ""
42066
42067 #. type: =item
42068 #: ../src/guestfs.pod:3016
42069 msgid "C<resize>"
42070 msgstr ""
42071
42072 #. type: textblock
42073 #: ../src/guestfs.pod:3018
42074 msgid "L<virt-resize(1)> command and documentation."
42075 msgstr ""
42076
42077 #. type: =item
42078 #: ../src/guestfs.pod:3020
42079 msgid "C<sparsify>"
42080 msgstr ""
42081
42082 #. type: textblock
42083 #: ../src/guestfs.pod:3022
42084 msgid "L<virt-sparsify(1)> command and documentation."
42085 msgstr ""
42086
42087 #. type: =item
42088 #: ../src/guestfs.pod:3024
42089 msgid "C<src>"
42090 msgstr "C<src>"
42091
42092 #. type: textblock
42093 #: ../src/guestfs.pod:3026
42094 msgid "Source code to the C library."
42095 msgstr ""
42096
42097 #. type: =item
42098 #: ../src/guestfs.pod:3028
42099 msgid "C<tools>"
42100 msgstr "C<tools>"
42101
42102 #. type: textblock
42103 #: ../src/guestfs.pod:3030
42104 msgid ""
42105 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
42106 msgstr ""
42107
42108 #. type: =item
42109 #: ../src/guestfs.pod:3032
42110 msgid "C<test-tool>"
42111 msgstr "C<test-tool>"
42112
42113 #. type: textblock
42114 #: ../src/guestfs.pod:3034
42115 msgid ""
42116 "Test tool for end users to test if their qemu/kernel combination will work "
42117 "with libguestfs."
42118 msgstr ""
42119
42120 #. type: =item
42121 #: ../src/guestfs.pod:3037
42122 msgid "C<csharp>"
42123 msgstr "C<csharp>"
42124
42125 #. type: =item
42126 #: ../src/guestfs.pod:3039
42127 msgid "C<erlang>"
42128 msgstr ""
42129
42130 #. type: =item
42131 #: ../src/guestfs.pod:3041
42132 msgid "C<haskell>"
42133 msgstr "C<haskell>"
42134
42135 #. type: =item
42136 #: ../src/guestfs.pod:3043
42137 msgid "C<java>"
42138 msgstr "C<java>"
42139
42140 #. type: =item
42141 #: ../src/guestfs.pod:3045
42142 msgid "C<ocaml>"
42143 msgstr "C<ocaml>"
42144
42145 #. type: =item
42146 #: ../src/guestfs.pod:3047
42147 msgid "C<php>"
42148 msgstr "C<php>"
42149
42150 #. type: =item
42151 #: ../src/guestfs.pod:3049
42152 msgid "C<perl>"
42153 msgstr "C<perl>"
42154
42155 #. type: =item
42156 #: ../src/guestfs.pod:3051
42157 msgid "C<python>"
42158 msgstr "C<python>"
42159
42160 #. type: =item
42161 #: ../src/guestfs.pod:3053
42162 msgid "C<ruby>"
42163 msgstr "C<ruby>"
42164
42165 #. type: textblock
42166 #: ../src/guestfs.pod:3055
42167 msgid "Language bindings."
42168 msgstr "Прив’язки до мов програмування."
42169
42170 #. type: =head2
42171 #: ../src/guestfs.pod:3059
42172 msgid "MAKING A STABLE RELEASE"
42173 msgstr ""
42174
42175 #. type: textblock
42176 #: ../src/guestfs.pod:3061
42177 msgid ""
42178 "When we make a stable release, there are several steps documented here.  See "
42179 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
42180 "branch policy."
42181 msgstr ""
42182
42183 #. type: textblock
42184 #: ../src/guestfs.pod:3069
42185 msgid ""
42186 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
42187 msgstr ""
42188
42189 #. type: textblock
42190 #: ../src/guestfs.pod:3074
42191 msgid "Finalize RELEASE-NOTES."
42192 msgstr ""
42193
42194 #. type: textblock
42195 #: ../src/guestfs.pod:3078
42196 msgid "Update ROADMAP."
42197 msgstr ""
42198
42199 #. type: textblock
42200 #: ../src/guestfs.pod:3082
42201 msgid "Run C<src/api-support/update-from-tarballs.sh>."
42202 msgstr ""
42203
42204 #. type: textblock
42205 #: ../src/guestfs.pod:3086
42206 msgid "Push and pull from Transifex."
42207 msgstr ""
42208
42209 #. type: verbatim
42210 #: ../src/guestfs.pod:3090
42211 #, no-wrap
42212 msgid ""
42213 " tx push -s\n"
42214 "\n"
42215 msgstr ""
42216
42217 #. type: textblock
42218 #: ../src/guestfs.pod:3092
42219 msgid "to push the latest POT files to Transifex.  Then run:"
42220 msgstr ""
42221
42222 #. type: verbatim
42223 #: ../src/guestfs.pod:3094
42224 #, no-wrap
42225 msgid ""
42226 " ./tx-pull.sh\n"
42227 "\n"
42228 msgstr ""
42229
42230 #. type: textblock
42231 #: ../src/guestfs.pod:3096
42232 msgid "which is a wrapper to pull the latest translated C<*.po> files."
42233 msgstr ""
42234
42235 #. type: textblock
42236 #: ../src/guestfs.pod:3100
42237 msgid ""
42238 "Create new stable and development directories under L<http://libguestfs.org/"
42239 "download>."
42240 msgstr ""
42241
42242 #. type: textblock
42243 #: ../src/guestfs.pod:3105
42244 msgid "Create the branch in git:"
42245 msgstr ""
42246
42247 #. type: verbatim
42248 #: ../src/guestfs.pod:3107
42249 #, no-wrap
42250 msgid ""
42251 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
42252 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
42253 " git branch stable-1.XX\n"
42254 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
42255 "\n"
42256 msgstr ""
42257
42258 #. type: =head1
42259 #: ../src/guestfs.pod:3114
42260 msgid "LIMITS"
42261 msgstr "ОБМЕЖЕННЯ"
42262
42263 #. type: =head2
42264 #: ../src/guestfs.pod:3116
42265 msgid "PROTOCOL LIMITS"
42266 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
42267
42268 #. type: textblock
42269 #: ../src/guestfs.pod:3118
42270 msgid ""
42271 "Internally libguestfs uses a message-based protocol to pass API calls and "
42272 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
42273 "plenty more detail about this).  The maximum message size used by the "
42274 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
42275 "aware of this limit.  The API calls which may be affected are individually "
42276 "documented, with a link back to this section of the documentation."
42277 msgstr ""
42278
42279 #. type: textblock
42280 #: ../src/guestfs.pod:3126
42281 msgid ""
42282 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
42283 "a simple string.  Because this string is at some point internally encoded as "
42284 "a message, the maximum size that it can return is slightly under 4 MB.  If "
42285 "the requested file is larger than this then you will get an error."
42286 msgstr ""
42287
42288 #. type: textblock
42289 #: ../src/guestfs.pod:3132
42290 msgid ""
42291 "In order to transfer large files into and out of the guest filesystem, you "
42292 "need to use particular calls that support this.  The sections L</UPLOADING> "
42293 "and L</DOWNLOADING> document how to do this."
42294 msgstr ""
42295
42296 #. type: textblock
42297 #: ../src/guestfs.pod:3136
42298 msgid ""
42299 "You might also consider mounting the disk image using our FUSE filesystem "
42300 "support (L<guestmount(1)>)."
42301 msgstr ""
42302
42303 #. type: =head2
42304 #: ../src/guestfs.pod:3139
42305 msgid "MAXIMUM NUMBER OF DISKS"
42306 msgstr ""
42307
42308 #. type: textblock
42309 #: ../src/guestfs.pod:3141
42310 msgid "When using virtio disks (the default) the current limit is B<25> disks."
42311 msgstr ""
42312
42313 #. type: textblock
42314 #: ../src/guestfs.pod:3144
42315 msgid ""
42316 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
42317 "slots.  However febootstrap only understands disks with names C</dev/vda> "
42318 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
42319 "purposes."
42320 msgstr ""
42321
42322 #. type: textblock
42323 #: ../src/guestfs.pod:3149
42324 msgid ""
42325 "We are working to substantially raise this limit in future versions but it "
42326 "requires complex changes to qemu."
42327 msgstr ""
42328
42329 #. type: textblock
42330 #: ../src/guestfs.pod:3152
42331 msgid ""
42332 "In future versions of libguestfs it should also be possible to \"hot plug\" "
42333 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
42334 "requires changes to qemu."
42335 msgstr ""
42336
42337 #. type: =head2
42338 #: ../src/guestfs.pod:3156
42339 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
42340 msgstr ""
42341
42342 #. type: textblock
42343 #: ../src/guestfs.pod:3158
42344 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
42345 msgstr ""
42346
42347 #. type: textblock
42348 #: ../src/guestfs.pod:3160
42349 msgid ""
42350 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
42351 "vda>, and C</dev/vda1> through C</dev/vda15>)."
42352 msgstr ""
42353
42354 #. type: textblock
42355 #: ../src/guestfs.pod:3163
42356 msgid ""
42357 "If you attach a disk with more than 15 partitions, the extra partitions are "
42358 "ignored by libguestfs."
42359 msgstr ""
42360
42361 #. type: =head2
42362 #: ../src/guestfs.pod:3166
42363 msgid "MAXIMUM SIZE OF A DISK"
42364 msgstr ""
42365
42366 #. type: textblock
42367 #: ../src/guestfs.pod:3168
42368 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
42369 msgstr ""
42370
42371 #. type: textblock
42372 #: ../src/guestfs.pod:3170
42373 msgid ""
42374 "We have tested block devices up to 1 exabyte (2**60 or "
42375 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
42376 "filesystem."
42377 msgstr ""
42378
42379 #. type: textblock
42380 #: ../src/guestfs.pod:3174
42381 msgid ""
42382 "Although libguestfs probably does not impose any limit, the underlying host "
42383 "storage will.  If you store disk images on a host ext4 filesystem, then the "
42384 "maximum size will be limited by the maximum ext4 file size (currently 16 "
42385 "TB).  If you store disk images as host logical volumes then you are limited "
42386 "by the maximum size of an LV."
42387 msgstr ""
42388
42389 #. type: textblock
42390 #: ../src/guestfs.pod:3180
42391 msgid ""
42392 "For the hugest disk image files, we recommend using XFS on the host for "
42393 "storage."
42394 msgstr ""
42395
42396 #. type: =head2
42397 #: ../src/guestfs.pod:3183
42398 msgid "MAXIMUM SIZE OF A PARTITION"
42399 msgstr ""
42400
42401 #. type: textblock
42402 #: ../src/guestfs.pod:3185
42403 msgid ""
42404 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
42405 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
42406 "address a partition located beyond 2 TB on the disk."
42407 msgstr ""
42408
42409 #. type: textblock
42410 #: ../src/guestfs.pod:3189
42411 msgid ""
42412 "It is recommended that you use GPT partitions on disks which are larger than "
42413 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
42414 "which are theoretically larger than the largest disk we could support."
42415 msgstr ""
42416
42417 #. type: =head2
42418 #: ../src/guestfs.pod:3194
42419 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
42420 msgstr ""
42421
42422 #. type: textblock
42423 #: ../src/guestfs.pod:3196
42424 msgid ""
42425 "This depends on the filesystem type.  libguestfs itself does not impose any "
42426 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
42427 "what these limits are."
42428 msgstr ""
42429
42430 #. type: =head2
42431 #: ../src/guestfs.pod:3200
42432 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
42433 msgstr ""
42434
42435 #. type: textblock
42436 #: ../src/guestfs.pod:3202
42437 msgid ""
42438 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
42439 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
42440 "uploads and downloads."
42441 msgstr ""
42442
42443 #. type: =head2
42444 #: ../src/guestfs.pod:3206
42445 msgid "INSPECTION LIMITS"
42446 msgstr ""
42447
42448 #. type: textblock
42449 #: ../src/guestfs.pod:3208
42450 msgid ""
42451 "The inspection code has several arbitrary limits on things like the size of "
42452 "Windows Registry hive it will read, and the length of product name.  These "
42453 "are intended to stop a malicious guest from consuming arbitrary amounts of "
42454 "memory and disk space on the host, and should not be reached in practice.  "
42455 "See the source code for more information."
42456 msgstr ""
42457
42458 #. type: textblock
42459 #: ../src/guestfs.pod:3234
42460 msgid ""
42461 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
42462 "effect as calling C<guestfs_set_verbose (g, 1)>."
42463 msgstr ""
42464
42465 #. type: textblock
42466 #: ../src/guestfs.pod:3246
42467 msgid ""
42468 "Set the path that libguestfs uses to search for a supermin appliance.  See "
42469 "the discussion of paths in section L</PATH> above."
42470 msgstr ""
42471
42472 #. type: textblock
42473 #: ../src/guestfs.pod:3255
42474 msgid "See also L</QEMU WRAPPERS> above."
42475 msgstr ""
42476
42477 #. type: textblock
42478 #: ../src/guestfs.pod:3259
42479 msgid ""
42480 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
42481 "effect as calling C<guestfs_set_trace (g, 1)>."
42482 msgstr ""
42483
42484 #. type: textblock
42485 #: ../src/guestfs.pod:3277
42486 msgid ""
42487 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
42488 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
42489 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
42490 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
42491 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
42492 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
42493 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
42494 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
42495 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
42496 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
42497 msgstr ""
42498
42499 #. type: textblock
42500 #: ../src/guestfs.pod:3314
42501 msgid ""
42502 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
42503 "(8)>, L<disktype(1)>."
42504 msgstr ""
42505
42506 #. type: =head1
42507 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
42508 #: ../tools/virt-win-reg.pl:772
42509 msgid "BUGS"
42510 msgstr "ВАДИ"
42511
42512 #. type: textblock
42513 #: ../src/guestfs.pod:3323
42514 msgid "To get a list of bugs against libguestfs use this link:"
42515 msgstr ""
42516 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
42517 "посиланням:"
42518
42519 #. type: textblock
42520 #: ../src/guestfs.pod:3325
42521 msgid ""
42522 "L<https://bugzilla.redhat.com/buglist.cgi?"
42523 "component=libguestfs&product=Virtualization+Tools>"
42524 msgstr ""
42525 "L<https://bugzilla.redhat.com/buglist.cgi?"
42526 "component=libguestfs&product=Virtualization+Tools>"
42527
42528 #. type: textblock
42529 #: ../src/guestfs.pod:3327
42530 msgid "To report a new bug against libguestfs use this link:"
42531 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
42532
42533 #. type: textblock
42534 #: ../src/guestfs.pod:3329
42535 msgid ""
42536 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42537 "component=libguestfs&product=Virtualization+Tools>"
42538 msgstr ""
42539 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42540 "component=libguestfs&product=Virtualization+Tools>"
42541
42542 #. type: textblock
42543 #: ../src/guestfs.pod:3331
42544 msgid "When reporting a bug, please check:"
42545 msgstr ""
42546
42547 #. type: textblock
42548 #: ../src/guestfs.pod:3337
42549 msgid "That the bug hasn't been reported already."
42550 msgstr ""
42551
42552 #. type: textblock
42553 #: ../src/guestfs.pod:3341
42554 msgid "That you are testing a recent version."
42555 msgstr ""
42556
42557 #. type: textblock
42558 #: ../src/guestfs.pod:3345
42559 msgid "Describe the bug accurately, and give a way to reproduce it."
42560 msgstr ""
42561
42562 #. type: textblock
42563 #: ../src/guestfs.pod:3349
42564 msgid ""
42565 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
42566 "bug report."
42567 msgstr ""
42568
42569 #. type: textblock
42570 #: ../test-tool/libguestfs-test-tool.pod:5
42571 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
42572 msgstr ""
42573
42574 #. type: verbatim
42575 #: ../test-tool/libguestfs-test-tool.pod:9
42576 #, no-wrap
42577 msgid ""
42578 " libguestfs-test-tool [--options]\n"
42579 "\n"
42580 msgstr ""
42581
42582 #. type: textblock
42583 #: ../test-tool/libguestfs-test-tool.pod:13
42584 msgid ""
42585 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42586 "to check basic libguestfs functionality is working.  This is needed because "
42587 "libguestfs occasionally breaks for reasons beyond our control: usually "
42588 "because of changes in the underlying qemu or kernel packages, or the host "
42589 "environment."
42590 msgstr ""
42591
42592 #. type: textblock
42593 #: ../test-tool/libguestfs-test-tool.pod:19
42594 msgid "If you suspect a problem in libguestfs, then just run:"
42595 msgstr ""
42596
42597 #. type: verbatim
42598 #: ../test-tool/libguestfs-test-tool.pod:21
42599 #, no-wrap
42600 msgid ""
42601 " libguestfs-test-tool\n"
42602 "\n"
42603 msgstr ""
42604
42605 #. type: textblock
42606 #: ../test-tool/libguestfs-test-tool.pod:23
42607 msgid "It will print lots of diagnostic messages."
42608 msgstr ""
42609
42610 #. type: textblock
42611 #: ../test-tool/libguestfs-test-tool.pod:25
42612 msgid "If it runs to completion successfully, you will see this near the end:"
42613 msgstr ""
42614
42615 #. type: verbatim
42616 #: ../test-tool/libguestfs-test-tool.pod:27
42617 #, no-wrap
42618 msgid ""
42619 " ===== TEST FINISHED OK =====\n"
42620 "\n"
42621 msgstr ""
42622
42623 #. type: textblock
42624 #: ../test-tool/libguestfs-test-tool.pod:29
42625 msgid "and the test tool will exit with code 0."
42626 msgstr ""
42627
42628 #. type: textblock
42629 #: ../test-tool/libguestfs-test-tool.pod:31
42630 msgid ""
42631 "If it fails (and/or exits with non-zero error code), please paste the "
42632 "I<complete, unedited> output of the test tool into a bug report.  More "
42633 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42634 "> website."
42635 msgstr ""
42636
42637 #. type: textblock
42638 #: ../test-tool/libguestfs-test-tool.pod:42
42639 msgid "Display short usage information and exit."
42640 msgstr ""
42641
42642 #. type: =item
42643 #: ../test-tool/libguestfs-test-tool.pod:44
42644 msgid "B<--qemu qemu_binary>"
42645 msgstr ""
42646
42647 #. type: textblock
42648 #: ../test-tool/libguestfs-test-tool.pod:46
42649 msgid ""
42650 "If you have downloaded another qemu binary, point this option at the full "
42651 "path of the binary to try it."
42652 msgstr ""
42653
42654 #. type: =item
42655 #: ../test-tool/libguestfs-test-tool.pod:49
42656 msgid "B<--qemudir qemu_source_dir>"
42657 msgstr ""
42658
42659 #. type: textblock
42660 #: ../test-tool/libguestfs-test-tool.pod:51
42661 msgid ""
42662 "If you have compiled qemu from source, point this option at the source "
42663 "directory to try it."
42664 msgstr ""
42665
42666 #. type: =item
42667 #: ../test-tool/libguestfs-test-tool.pod:54
42668 msgid "B<-t N>"
42669 msgstr ""
42670
42671 #. type: =item
42672 #: ../test-tool/libguestfs-test-tool.pod:56
42673 msgid "B<--timeout N>"
42674 msgstr ""
42675
42676 #. type: textblock
42677 #: ../test-tool/libguestfs-test-tool.pod:58
42678 msgid ""
42679 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
42680 "minutes) which does not usually need to be adjusted."
42681 msgstr ""
42682
42683 #. type: =head1
42684 #: ../test-tool/libguestfs-test-tool.pod:63
42685 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42686 msgstr ""
42687
42688 #. type: textblock
42689 #: ../test-tool/libguestfs-test-tool.pod:65
42690 msgid ""
42691 "If you have compiled another version of qemu from source and would like to "
42692 "try that, then you can use the I<--qemudir> option to point to the qemu "
42693 "source directory."
42694 msgstr ""
42695
42696 #. type: textblock
42697 #: ../test-tool/libguestfs-test-tool.pod:69
42698 msgid ""
42699 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42700 "option to point to the binary."
42701 msgstr ""
42702
42703 #. type: textblock
42704 #: ../test-tool/libguestfs-test-tool.pod:72
42705 msgid ""
42706 "Note when using these options, you can ignore the business of qemu wrapper "
42707 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42708 "wrapper script for you if one is needed."
42709 msgstr ""
42710
42711 #. type: =head1
42712 #: ../test-tool/libguestfs-test-tool.pod:76
42713 msgid "TRYING OUT A DIFFERENT KERNEL"
42714 msgstr ""
42715
42716 #. type: textblock
42717 #: ../test-tool/libguestfs-test-tool.pod:78
42718 msgid ""
42719 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42720 "libguestfs tries.  You do this by setting the environment variables "
42721 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42722 msgstr ""
42723
42724 #. type: textblock
42725 #: ../test-tool/libguestfs-test-tool.pod:82
42726 msgid ""
42727 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42728 "information."
42729 msgstr ""
42730
42731 #. type: =head1
42732 #: ../test-tool/libguestfs-test-tool.pod:85
42733 msgid "SELF-DIAGNOSIS"
42734 msgstr ""
42735
42736 #. type: textblock
42737 #: ../test-tool/libguestfs-test-tool.pod:87
42738 msgid ""
42739 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42740 "produced by libguestfs-test-tool and/or possible errors."
42741 msgstr ""
42742
42743 #. type: textblock
42744 #: ../test-tool/libguestfs-test-tool.pod:92
42745 msgid ""
42746 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42747 "I<1> if there was an error."
42748 msgstr ""
42749
42750 #. type: textblock
42751 #: ../test-tool/libguestfs-test-tool.pod:97
42752 msgid ""
42753 "For the full list of environment variables which may affect libguestfs, "
42754 "please see the L<guestfs(3)> manual page."
42755 msgstr ""
42756
42757 #. type: textblock
42758 #: ../test-tool/libguestfs-test-tool.pod:102
42759 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42760 msgstr ""
42761
42762 #. type: textblock
42763 #: ../tools/virt-list-filesystems.pl:32
42764 msgid ""
42765 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42766 msgstr ""
42767
42768 #. type: verbatim
42769 #: ../tools/virt-list-filesystems.pl:36
42770 #, no-wrap
42771 msgid ""
42772 " virt-list-filesystems [--options] domname\n"
42773 "\n"
42774 msgstr ""
42775
42776 #. type: verbatim
42777 #: ../tools/virt-list-filesystems.pl:38
42778 #, no-wrap
42779 msgid ""
42780 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42781 "\n"
42782 msgstr ""
42783
42784 #. type: textblock
42785 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42786 msgid ""
42787 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42788 "replacement."
42789 msgstr ""
42790
42791 #. type: textblock
42792 #: ../tools/virt-list-filesystems.pl:45
42793 msgid ""
42794 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42795 "are contained in a virtual machine or disk image."
42796 msgstr ""
42797
42798 #. type: textblock
42799 #: ../tools/virt-list-filesystems.pl:49
42800 msgid ""
42801 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42802 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42803 "> tool."
42804 msgstr ""
42805
42806 #. type: textblock
42807 #: ../tools/virt-list-filesystems.pl:112
42808 msgid ""
42809 "With this option, C<virt-list-filesystems> displays the type of each "
42810 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42811 msgstr ""
42812
42813 #. type: =item
42814 #: ../tools/virt-list-filesystems.pl:119
42815 msgid "B<-a>"
42816 msgstr "B<-a>"
42817
42818 #. type: textblock
42819 #: ../tools/virt-list-filesystems.pl:123
42820 msgid ""
42821 "Normally we only show mountable filesystems.  If this option is given then "
42822 "swap devices are shown too."
42823 msgstr ""
42824
42825 #. type: textblock
42826 #: ../tools/virt-list-filesystems.pl:197
42827 msgid ""
42828 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42829 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42830 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42831 msgstr ""
42832 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42833 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42834 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42835
42836 #. type: textblock
42837 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42838 msgid "Copyright (C) 2009 Red Hat Inc."
42839 msgstr "© Red Hat Inc., 2009"
42840
42841 #. type: textblock
42842 #: ../tools/virt-list-partitions.pl:32
42843 msgid ""
42844 "virt-list-partitions - List partitions in a virtual machine or disk image"
42845 msgstr ""
42846
42847 #. type: verbatim
42848 #: ../tools/virt-list-partitions.pl:36
42849 #, no-wrap
42850 msgid ""
42851 " virt-list-partitions [--options] domname\n"
42852 "\n"
42853 msgstr ""
42854 " virt-list-partitions [--параметри] назва_домену\n"
42855 "\n"
42856
42857 #. type: verbatim
42858 #: ../tools/virt-list-partitions.pl:38
42859 #, no-wrap
42860 msgid ""
42861 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42862 "\n"
42863 msgstr ""
42864 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42865 "\n"
42866
42867 #. type: textblock
42868 #: ../tools/virt-list-partitions.pl:45
42869 msgid ""
42870 "C<virt-list-partitions> is a command line tool to list the partitions that "
42871 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42872 "first step to using L<virt-resize(1)>."
42873 msgstr ""
42874
42875 #. type: textblock
42876 #: ../tools/virt-list-partitions.pl:50
42877 msgid ""
42878 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42879 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42880 "> tool."
42881 msgstr ""
42882
42883 #. type: textblock
42884 #: ../tools/virt-list-partitions.pl:113
42885 msgid "Show sizes in human-readable form (eg. \"1G\")."
42886 msgstr ""
42887
42888 #. type: textblock
42889 #: ../tools/virt-list-partitions.pl:123
42890 msgid ""
42891 "With this option, C<virt-list-partitions> displays the type and size of each "
42892 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42893 msgstr ""
42894
42895 #. type: =item
42896 #: ../tools/virt-list-partitions.pl:130
42897 msgid "B<-t>"
42898 msgstr "B<-t>"
42899
42900 #. type: =item
42901 #: ../tools/virt-list-partitions.pl:132
42902 msgid "B<--total>"
42903 msgstr "B<--total>"
42904
42905 #. type: textblock
42906 #: ../tools/virt-list-partitions.pl:134
42907 msgid ""
42908 "Display the total size of each block device (as a separate row or rows)."
42909 msgstr ""
42910
42911 #. type: textblock
42912 #: ../tools/virt-list-partitions.pl:267
42913 msgid ""
42914 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42915 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42916 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42917 msgstr ""
42918 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42919 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42920 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42921
42922 #. type: textblock
42923 #: ../tools/virt-list-partitions.pl:283
42924 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42925 msgstr "© Red Hat Inc., 2009–2010"
42926
42927 #. type: textblock
42928 #: ../tools/virt-make-fs.pl:37
42929 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42930 msgstr ""
42931
42932 #. type: verbatim
42933 #: ../tools/virt-make-fs.pl:41
42934 #, no-wrap
42935 msgid ""
42936 " virt-make-fs [--options] input.tar output.img\n"
42937 "\n"
42938 msgstr ""
42939
42940 #. type: verbatim
42941 #: ../tools/virt-make-fs.pl:43
42942 #, no-wrap
42943 msgid ""
42944 " virt-make-fs [--options] input.tar.gz output.img\n"
42945 "\n"
42946 msgstr ""
42947
42948 #. type: verbatim
42949 #: ../tools/virt-make-fs.pl:45
42950 #, no-wrap
42951 msgid ""
42952 " virt-make-fs [--options] directory output.img\n"
42953 "\n"
42954 msgstr ""
42955
42956 #. type: textblock
42957 #: ../tools/virt-make-fs.pl:49
42958 msgid ""
42959 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42960 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42961 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42962 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42963 "you want to attach these filesystems to existing virtual machines (eg. to "
42964 "import large amounts of read-only data to a VM)."
42965 msgstr ""
42966
42967 #. type: textblock
42968 #: ../tools/virt-make-fs.pl:57
42969 msgid "Basic usage is:"
42970 msgstr ""
42971
42972 #. type: verbatim
42973 #: ../tools/virt-make-fs.pl:59
42974 #, no-wrap
42975 msgid ""
42976 " virt-make-fs input output.img\n"
42977 "\n"
42978 msgstr ""
42979
42980 #. type: textblock
42981 #: ../tools/virt-make-fs.pl:61
42982 msgid ""
42983 "where C<input> is either a directory containing files that you want to add, "
42984 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42985 "C<output.img> is a disk image.  The input type is detected automatically.  "
42986 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42987 "extra flags (see L</OPTIONS> below)."
42988 msgstr ""
42989
42990 #. type: =head2
42991 #: ../tools/virt-make-fs.pl:67
42992 msgid "FILESYSTEM TYPE"
42993 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42994
42995 #. type: textblock
42996 #: ../tools/virt-make-fs.pl:69
42997 msgid ""
42998 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42999 "libguestfs supports can be used (but I<not> read-only formats like "
43000 "ISO9660).  Here are some of the more common choices:"
43001 msgstr ""
43002
43003 #. type: =item
43004 #: ../tools/virt-make-fs.pl:75
43005 msgid "I<ext3>"
43006 msgstr "I<ext3>"
43007
43008 #. type: textblock
43009 #: ../tools/virt-make-fs.pl:77
43010 msgid ""
43011 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
43012 "you are not going to use the filesystem in a way that requires the journal, "
43013 "then this is just wasted overhead."
43014 msgstr ""
43015
43016 #. type: =item
43017 #: ../tools/virt-make-fs.pl:81
43018 msgid "I<ntfs> or I<vfat>"
43019 msgstr "I<ntfs> або I<vfat>"
43020
43021 #. type: textblock
43022 #: ../tools/virt-make-fs.pl:83
43023 msgid "Useful if exporting data to a Windows guest."
43024 msgstr ""
43025
43026 #. type: textblock
43027 #: ../tools/virt-make-fs.pl:85
43028 msgid ""
43029 "I<Note for vfat>: The tar archive or local directory must only contain files "
43030 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
43031 "program running within libguestfs is unable to change the ownership of non-"
43032 "root files, since vfat itself does not support this."
43033 msgstr ""
43034
43035 #. type: =item
43036 #: ../tools/virt-make-fs.pl:90
43037 msgid "I<minix>"
43038 msgstr "I<minix>"
43039
43040 #. type: textblock
43041 #: ../tools/virt-make-fs.pl:92
43042 msgid ""
43043 "Lower overhead than C<ext2>, but certain limitations on filename length and "
43044 "total filesystem size."
43045 msgstr ""
43046
43047 #. type: =head3
43048 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
43049 #: ../tools/virt-make-fs.pl:149
43050 msgid "EXAMPLE"
43051 msgstr "ПРИКЛАД"
43052
43053 #. type: verbatim
43054 #: ../tools/virt-make-fs.pl:99
43055 #, no-wrap
43056 msgid ""
43057 " virt-make-fs --type=minix input minixfs.img\n"
43058 "\n"
43059 msgstr ""
43060
43061 #. type: =head2
43062 #: ../tools/virt-make-fs.pl:101
43063 msgid "TO PARTITION OR NOT TO PARTITION"
43064 msgstr ""
43065
43066 #. type: textblock
43067 #: ../tools/virt-make-fs.pl:103
43068 msgid "Optionally virt-make-fs can add a partition table to the output disk."
43069 msgstr ""
43070
43071 #. type: textblock
43072 #: ../tools/virt-make-fs.pl:105
43073 msgid ""
43074 "Adding a partition can make the disk image more compatible with certain "
43075 "virtualized operating systems which don't expect to see a filesystem "
43076 "directly located on a block device (Linux doesn't care and will happily "
43077 "handle both types)."
43078 msgstr ""
43079
43080 #. type: textblock
43081 #: ../tools/virt-make-fs.pl:110
43082 msgid ""
43083 "On the other hand, if you have a partition table then the output image is no "
43084 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
43085 "directly on a partitioned disk image.  (However libguestfs tools such as "
43086 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
43087 msgstr ""
43088
43089 #. type: textblock
43090 #: ../tools/virt-make-fs.pl:118
43091 msgid "Add an MBR partition:"
43092 msgstr ""
43093
43094 #. type: verbatim
43095 #: ../tools/virt-make-fs.pl:120
43096 #, no-wrap
43097 msgid ""
43098 " virt-make-fs --partition -- input disk.img\n"
43099 "\n"
43100 msgstr ""
43101
43102 #. type: textblock
43103 #: ../tools/virt-make-fs.pl:122
43104 msgid ""
43105 "If the output disk image could be terabyte-sized or larger, it's better to "
43106 "use an EFI/GPT-compatible partition table:"
43107 msgstr ""
43108
43109 #. type: verbatim
43110 #: ../tools/virt-make-fs.pl:125
43111 #, no-wrap
43112 msgid ""
43113 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
43114 "\n"
43115 msgstr ""
43116
43117 #. type: =head2
43118 #: ../tools/virt-make-fs.pl:127
43119 msgid "EXTRA SPACE"
43120 msgstr ""
43121
43122 #. type: textblock
43123 #: ../tools/virt-make-fs.pl:129
43124 msgid ""
43125 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
43126 "the files that it contains, but might have extra space.  Depending on how "
43127 "you are going to use the output, you might think this extra space is wasted "
43128 "and want to minimize it, or you might want to leave space so that more files "
43129 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
43130 "but you can use the I<--size> flag to leave space in the filesystem if you "
43131 "want it."
43132 msgstr ""
43133
43134 #. type: textblock
43135 #: ../tools/virt-make-fs.pl:137
43136 msgid ""
43137 "An alternative way to leave extra space but not make the output image any "
43138 "bigger is to use an alternative disk image format (instead of the default "
43139 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
43140 "image format (check your hypervisor supports this before using it).  This "
43141 "allows you to choose a large I<--size> but the extra space won't actually be "
43142 "allocated in the image until you try to store something in it."
43143 msgstr ""
43144
43145 #. type: textblock
43146 #: ../tools/virt-make-fs.pl:145
43147 msgid ""
43148 "Don't forget that you can also use local commands including L<resize2fs(8)> "
43149 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
43150 "to build another image from scratch."
43151 msgstr ""
43152
43153 #. type: verbatim
43154 #: ../tools/virt-make-fs.pl:151
43155 #, no-wrap
43156 msgid ""
43157 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43158 "\n"
43159 msgstr ""
43160 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43161 "\n"
43162
43163 #. type: textblock
43164 #: ../tools/virt-make-fs.pl:179
43165 msgid "Enable debugging information."
43166 msgstr "Увімкнути виведення діагностичних даних."
43167
43168 #. type: =item
43169 #: ../tools/virt-make-fs.pl:185
43170 msgid "B<--size=E<lt>NE<gt>>"
43171 msgstr "B<--size=E<lt>NE<gt>>"
43172
43173 #. type: =item
43174 #: ../tools/virt-make-fs.pl:187
43175 msgid "B<--size=+E<lt>NE<gt>>"
43176 msgstr "B<--size=+E<lt>NE<gt>>"
43177
43178 #. type: =item
43179 #: ../tools/virt-make-fs.pl:189
43180 msgid "B<-s E<lt>NE<gt>>"
43181 msgstr "B<-s E<lt>NE<gt>>"
43182
43183 #. type: =item
43184 #: ../tools/virt-make-fs.pl:191
43185 msgid "B<-s +E<lt>NE<gt>>"
43186 msgstr "B<-s +E<lt>NE<gt>>"
43187
43188 #. type: textblock
43189 #: ../tools/virt-make-fs.pl:193
43190 msgid ""
43191 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
43192 msgstr ""
43193
43194 #. type: textblock
43195 #: ../tools/virt-make-fs.pl:196
43196 msgid ""
43197 "If this option is I<not> given, then the output image will be just large "
43198 "enough to contain all the files, with not much wasted space."
43199 msgstr ""
43200
43201 #. type: textblock
43202 #: ../tools/virt-make-fs.pl:199
43203 msgid ""
43204 "To choose a fixed size output disk, specify an absolute number followed by b/"
43205 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43206 "Petabytes or Exabytes.  This must be large enough to contain all the input "
43207 "files, else you will get an error."
43208 msgstr ""
43209
43210 #. type: textblock
43211 #: ../tools/virt-make-fs.pl:204
43212 msgid ""
43213 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
43214 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43215 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
43216 "the input files, and (approximately) an extra 200 MB free space."
43217 msgstr ""
43218
43219 #. type: textblock
43220 #: ../tools/virt-make-fs.pl:210
43221 msgid ""
43222 "Note that virt-make-fs estimates free space, and therefore will not produce "
43223 "filesystems containing precisely the free space requested.  (It is much more "
43224 "expensive and time-consuming to produce a filesystem which has precisely the "
43225 "desired free space)."
43226 msgstr ""
43227
43228 #. type: =item
43229 #: ../tools/virt-make-fs.pl:219
43230 msgid "B<--format=E<lt>fmtE<gt>>"
43231 msgstr ""
43232
43233 #. type: =item
43234 #: ../tools/virt-make-fs.pl:221
43235 msgid "B<-F E<lt>fmtE<gt>>"
43236 msgstr ""
43237
43238 #. type: textblock
43239 #: ../tools/virt-make-fs.pl:223
43240 msgid "Choose the output disk image format."
43241 msgstr ""
43242
43243 #. type: textblock
43244 #: ../tools/virt-make-fs.pl:225
43245 msgid "The default is C<raw> (raw sparse disk image)."
43246 msgstr ""
43247
43248 #. type: textblock
43249 #: ../tools/virt-make-fs.pl:227
43250 msgid ""
43251 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
43252 "that would really make sense here is C<qcow2>."
43253 msgstr ""
43254
43255 #. type: =item
43256 #: ../tools/virt-make-fs.pl:234
43257 msgid "B<--type=E<lt>fsE<gt>>"
43258 msgstr ""
43259
43260 #. type: =item
43261 #: ../tools/virt-make-fs.pl:236
43262 msgid "B<-t E<lt>fsE<gt>>"
43263 msgstr ""
43264
43265 #. type: textblock
43266 #: ../tools/virt-make-fs.pl:238
43267 msgid "Choose the output filesystem type."
43268 msgstr ""
43269
43270 #. type: textblock
43271 #: ../tools/virt-make-fs.pl:240
43272 msgid "The default is C<ext2>."
43273 msgstr "Типовим значенням є C<ext2>."
43274
43275 #. type: textblock
43276 #: ../tools/virt-make-fs.pl:242
43277 msgid ""
43278 "Any filesystem which is supported read-write by libguestfs can be used here."
43279 msgstr ""
43280
43281 #. type: =item
43282 #: ../tools/virt-make-fs.pl:249
43283 msgid "B<--partition>"
43284 msgstr "B<--partition>"
43285
43286 #. type: =item
43287 #: ../tools/virt-make-fs.pl:251
43288 msgid "B<--partition=E<lt>parttypeE<gt>>"
43289 msgstr ""
43290
43291 #. type: textblock
43292 #: ../tools/virt-make-fs.pl:253
43293 msgid ""
43294 "If specified, this flag adds an MBR partition table to the output disk image."
43295 msgstr ""
43296
43297 #. type: textblock
43298 #: ../tools/virt-make-fs.pl:256
43299 msgid ""
43300 "You can change the partition table type, eg. I<--partition=gpt> for large "
43301 "disks."
43302 msgstr ""
43303
43304 #. type: textblock
43305 #: ../tools/virt-make-fs.pl:259
43306 msgid ""
43307 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
43308 "might consider the next parameter to be the partition type.  For example:"
43309 msgstr ""
43310
43311 #. type: verbatim
43312 #: ../tools/virt-make-fs.pl:263
43313 #, no-wrap
43314 msgid ""
43315 " virt-make-fs --partition input.tar output.img\n"
43316 "\n"
43317 msgstr ""
43318
43319 #. type: textblock
43320 #: ../tools/virt-make-fs.pl:265
43321 msgid ""
43322 "would cause virt-make-fs to think you wanted to use a partition type of "
43323 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
43324 "dash) between options and the input and output arguments:"
43325 msgstr ""
43326
43327 #. type: verbatim
43328 #: ../tools/virt-make-fs.pl:269
43329 #, no-wrap
43330 msgid ""
43331 " virt-make-fs --partition -- input.tar output.img\n"
43332 "\n"
43333 msgstr ""
43334
43335 #. type: textblock
43336 #: ../tools/virt-make-fs.pl:271
43337 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
43338 msgstr ""
43339
43340 #. type: textblock
43341 #: ../tools/virt-make-fs.pl:559
43342 msgid ""
43343 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43344 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43345 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43346 msgstr ""
43347 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43348 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43349 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43350
43351 #. type: textblock
43352 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
43353 msgid ""
43354 "When reporting bugs, please enable debugging and capture the I<complete> "
43355 "output:"
43356 msgstr ""
43357
43358 #. type: verbatim
43359 #: ../tools/virt-make-fs.pl:576
43360 #, no-wrap
43361 msgid ""
43362 " export LIBGUESTFS_DEBUG=1\n"
43363 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43364 "\n"
43365 msgstr ""
43366 " export LIBGUESTFS_DEBUG=1\n"
43367 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43368 "\n"
43369
43370 #. type: textblock
43371 #: ../tools/virt-make-fs.pl:579
43372 msgid ""
43373 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
43374 "redhat.com/>"
43375 msgstr ""
43376
43377 #. type: textblock
43378 #: ../tools/virt-tar.pl:33
43379 msgid "virt-tar - Extract or upload files to a virtual machine"
43380 msgstr ""
43381
43382 #. type: verbatim
43383 #: ../tools/virt-tar.pl:37
43384 #, no-wrap
43385 msgid ""
43386 " virt-tar [--options] -x domname directory tarball\n"
43387 "\n"
43388 msgstr ""
43389
43390 #. type: verbatim
43391 #: ../tools/virt-tar.pl:39
43392 #, no-wrap
43393 msgid ""
43394 " virt-tar [--options] -u domname tarball directory\n"
43395 "\n"
43396 msgstr ""
43397
43398 #. type: verbatim
43399 #: ../tools/virt-tar.pl:41
43400 #, no-wrap
43401 msgid ""
43402 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
43403 "\n"
43404 msgstr ""
43405
43406 #. type: verbatim
43407 #: ../tools/virt-tar.pl:43
43408 #, no-wrap
43409 msgid ""
43410 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
43411 "\n"
43412 msgstr ""
43413
43414 #. type: =head2
43415 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
43416 msgid "NOTE"
43417 msgstr "ПРИМІТКА"
43418
43419 #. type: textblock
43420 #: ../tools/virt-tar.pl:47
43421 msgid ""
43422 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
43423 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
43424 msgstr ""
43425
43426 #. type: textblock
43427 #: ../tools/virt-tar.pl:52
43428 msgid "Download C</home> from the VM into a local tarball:"
43429 msgstr ""
43430
43431 #. type: verbatim
43432 #: ../tools/virt-tar.pl:54
43433 #, no-wrap
43434 msgid ""
43435 " virt-tar -x domname /home home.tar\n"
43436 "\n"
43437 msgstr ""
43438
43439 #. type: verbatim
43440 #: ../tools/virt-tar.pl:56
43441 #, no-wrap
43442 msgid ""
43443 " virt-tar -zx domname /home home.tar.gz\n"
43444 "\n"
43445 msgstr ""
43446
43447 #. type: textblock
43448 #: ../tools/virt-tar.pl:58
43449 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
43450 msgstr ""
43451
43452 #. type: verbatim
43453 #: ../tools/virt-tar.pl:60
43454 #, no-wrap
43455 msgid ""
43456 " virt-tar -u domname uploadstuff.tar /tmp\n"
43457 "\n"
43458 msgstr ""
43459
43460 #. type: verbatim
43461 #: ../tools/virt-tar.pl:62
43462 #, no-wrap
43463 msgid ""
43464 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
43465 "\n"
43466 msgstr ""
43467
43468 #. type: textblock
43469 #: ../tools/virt-tar.pl:66
43470 msgid ""
43471 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
43472 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
43473 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
43474 msgstr ""
43475
43476 #. type: textblock
43477 #: ../tools/virt-tar.pl:71
43478 msgid ""
43479 "You can use I<-x> (extract) on live virtual machines, but you might get "
43480 "inconsistent results or errors if there is filesystem activity inside the "
43481 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
43482 "work, but the only way to guarantee consistent results is if the virtual "
43483 "machine is shut down."
43484 msgstr ""
43485
43486 #. type: textblock
43487 #: ../tools/virt-tar.pl:79
43488 msgid ""
43489 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
43490 "parts of a guest filesystem.  There are many possibilities: making backups, "
43491 "uploading data files, snooping on guest activity, fixing or customizing "
43492 "guests, etc."
43493 msgstr ""
43494
43495 #. type: textblock
43496 #: ../tools/virt-tar.pl:84
43497 msgid ""
43498 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
43499 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
43500 "should look at the L<guestfish(1)> tool."
43501 msgstr ""
43502
43503 #. type: textblock
43504 #: ../tools/virt-tar.pl:88
43505 msgid ""
43506 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
43507 "its contents (recursively) from the virtual machine into a local tarball.  "
43508 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
43509 "virtual machine.  You cannot use these two options together."
43510 msgstr ""
43511
43512 #. type: textblock
43513 #: ../tools/virt-tar.pl:94
43514 msgid ""
43515 "In addition, you may need to use the I<-z> (gZip) option to enable "
43516 "compression.  When uploading, you have to specify I<-z> if the upload file "
43517 "is compressed because virt-tar won't detect this on its own."
43518 msgstr ""
43519
43520 #. type: textblock
43521 #: ../tools/virt-tar.pl:98
43522 msgid ""
43523 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
43524 "example it cannot do PKZip files or bzip2 compression.  If you want that "
43525 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
43526 "the L<libguestfs(3)> API)."
43527 msgstr ""
43528
43529 #. type: =item
43530 #: ../tools/virt-tar.pl:160
43531 msgid "B<--extract>"
43532 msgstr "B<--extract>"
43533
43534 #. type: =item
43535 #: ../tools/virt-tar.pl:162
43536 msgid "B<--download>"
43537 msgstr "B<--download>"
43538
43539 #. type: =item
43540 #: ../tools/virt-tar.pl:164
43541 msgid "B<-u>"
43542 msgstr "B<-u>"
43543
43544 #. type: =item
43545 #: ../tools/virt-tar.pl:166
43546 msgid "B<--upload>"
43547 msgstr "B<--upload>"
43548
43549 #. type: textblock
43550 #: ../tools/virt-tar.pl:168
43551 msgid ""
43552 "Use I<-x> to extract (download) a directory from a virtual machine to a "
43553 "local tarball."
43554 msgstr ""
43555
43556 #. type: textblock
43557 #: ../tools/virt-tar.pl:171
43558 msgid ""
43559 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
43560 "Please read the L</WARNING> section above before using this option."
43561 msgstr ""
43562
43563 #. type: textblock
43564 #: ../tools/virt-tar.pl:175
43565 msgid "You must specify exactly one of these options."
43566 msgstr ""
43567
43568 #. type: =item
43569 #: ../tools/virt-tar.pl:181
43570 msgid "B<-z>"
43571 msgstr "B<-z>"
43572
43573 #. type: =item
43574 #: ../tools/virt-tar.pl:183
43575 msgid "B<--gzip>"
43576 msgstr "B<--gzip>"
43577
43578 #. type: textblock
43579 #: ../tools/virt-tar.pl:185
43580 msgid "Specify that the input or output tarball is gzip-compressed."
43581 msgstr ""
43582
43583 #. type: textblock
43584 #: ../tools/virt-tar.pl:298
43585 msgid ""
43586 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43587 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43588 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43589 "org/>."
43590 msgstr ""
43591 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43592 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43593 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43594 "org/>."
43595
43596 #. type: textblock
43597 #: ../tools/virt-win-reg.pl:37
43598 msgid ""
43599 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
43600 msgstr ""
43601
43602 #. type: verbatim
43603 #: ../tools/virt-win-reg.pl:41
43604 #, no-wrap
43605 msgid ""
43606 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43607 "\n"
43608 msgstr ""
43609
43610 #. type: verbatim
43611 #: ../tools/virt-win-reg.pl:43
43612 #, no-wrap
43613 msgid ""
43614 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43615 "\n"
43616 msgstr ""
43617
43618 #. type: verbatim
43619 #: ../tools/virt-win-reg.pl:45
43620 #, no-wrap
43621 msgid ""
43622 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43623 "\n"
43624 msgstr ""
43625
43626 #. type: verbatim
43627 #: ../tools/virt-win-reg.pl:47
43628 #, no-wrap
43629 msgid ""
43630 " virt-win-reg --merge domname [input.reg ...]\n"
43631 "\n"
43632 msgstr ""
43633
43634 #. type: verbatim
43635 #: ../tools/virt-win-reg.pl:49
43636 #, no-wrap
43637 msgid ""
43638 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43639 "\n"
43640 msgstr ""
43641
43642 #. type: textblock
43643 #: ../tools/virt-win-reg.pl:53
43644 msgid ""
43645 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43646 "virtual machines.  If you do this, you I<will> get irreversible disk "
43647 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
43648 "but doesn't catch all cases."
43649 msgstr ""
43650
43651 #. type: textblock
43652 #: ../tools/virt-win-reg.pl:58
43653 msgid ""
43654 "Modifying the Windows Registry is an inherently risky operation.  The format "
43655 "is deliberately obscure and undocumented, and Registry changes can leave the "
43656 "system unbootable.  Therefore when using the I<--merge> option, make sure "
43657 "you have a reliable backup first."
43658 msgstr ""
43659
43660 #. type: textblock
43661 #: ../tools/virt-win-reg.pl:65
43662 msgid ""
43663 "This program can export and merge Windows Registry entries from a Windows "
43664 "guest."
43665 msgstr ""
43666
43667 #. type: textblock
43668 #: ../tools/virt-win-reg.pl:68
43669 msgid ""
43670 "The first parameter is the libvirt guest name or the raw disk image of a "
43671 "Windows guest."
43672 msgstr ""
43673
43674 #. type: textblock
43675 #: ../tools/virt-win-reg.pl:71
43676 msgid ""
43677 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43678 "exported (recursively).  For example:"
43679 msgstr ""
43680
43681 #. type: verbatim
43682 #: ../tools/virt-win-reg.pl:74
43683 #, no-wrap
43684 msgid ""
43685 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43686 "\n"
43687 msgstr ""
43688 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43689 "\n"
43690
43691 #. type: textblock
43692 #: ../tools/virt-win-reg.pl:76
43693 msgid ""
43694 "You can also display single values from within registry keys, for example:"
43695 msgstr ""
43696
43697 #. type: verbatim
43698 #: ../tools/virt-win-reg.pl:79
43699 #, no-wrap
43700 msgid ""
43701 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43702 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43703 " Windows 7 Enterprise\n"
43704 "\n"
43705 msgstr ""
43706 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43707 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43708 " Windows 7 Enterprise\n"
43709 "\n"
43710
43711 #. type: textblock
43712 #: ../tools/virt-win-reg.pl:83
43713 msgid ""
43714 "With I<--merge>, you can merge a textual regedit file into the Windows "
43715 "Registry:"
43716 msgstr ""
43717
43718 #. type: verbatim
43719 #: ../tools/virt-win-reg.pl:86
43720 #, no-wrap
43721 msgid ""
43722 " $ virt-win-reg --merge Windows7 changes.reg\n"
43723 "\n"
43724 msgstr ""
43725 " $ virt-win-reg --merge Windows7 changes.reg\n"
43726 "\n"
43727
43728 #. type: textblock
43729 #: ../tools/virt-win-reg.pl:90
43730 msgid ""
43731 "This program is only meant for simple access to the registry.  If you want "
43732 "to do complicated things with the registry, we suggest you download the "
43733 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43734 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43735 "L<hivexregedit(1)>."
43736 msgstr ""
43737
43738 #. type: =item
43739 #: ../tools/virt-win-reg.pl:159
43740 msgid "B<--merge>"
43741 msgstr "B<--merge>"
43742
43743 #. type: textblock
43744 #: ../tools/virt-win-reg.pl:161
43745 msgid ""
43746 "In merge mode, this merges a textual regedit file into the Windows Registry "
43747 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
43748 "displays or exports Registry entries instead."
43749 msgstr ""
43750
43751 #. type: textblock
43752 #: ../tools/virt-win-reg.pl:165
43753 msgid ""
43754 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43755 "result in disk corruption.  However exporting (without this flag)  is always "
43756 "safe."
43757 msgstr ""
43758
43759 #. type: =item
43760 #: ../tools/virt-win-reg.pl:173
43761 msgid "B<--encoding> UTF-16LE|ASCII"
43762 msgstr "B<--encoding> UTF-16LE|ASCII"
43763
43764 #. type: textblock
43765 #: ../tools/virt-win-reg.pl:175
43766 msgid ""
43767 "When merging (only), you may need to specify the encoding for strings to be "
43768 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43769 "(3)/ENCODING STRINGS>."
43770 msgstr ""
43771
43772 #. type: textblock
43773 #: ../tools/virt-win-reg.pl:179
43774 msgid ""
43775 "The default is to use UTF-16LE, which should work with recent versions of "
43776 "Windows."
43777 msgstr ""
43778
43779 #. type: =item
43780 #: ../tools/virt-win-reg.pl:186
43781 msgid "B<--unsafe-printable-strings>"
43782 msgstr "B<--unsafe-printable-strings>"
43783
43784 #. type: textblock
43785 #: ../tools/virt-win-reg.pl:188
43786 msgid ""
43787 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43788 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43789 "present."
43790 msgstr ""
43791
43792 #. type: textblock
43793 #: ../tools/virt-win-reg.pl:192
43794 msgid ""
43795 "This is unsafe and does not preserve the fidelity of strings in the original "
43796 "Registry for various reasons:"
43797 msgstr ""
43798
43799 #. type: textblock
43800 #: ../tools/virt-win-reg.pl:199
43801 msgid ""
43802 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43803 "other encodings will be corrupted by this transformation."
43804 msgstr ""
43805
43806 #. type: textblock
43807 #: ../tools/virt-win-reg.pl:204
43808 msgid ""
43809 "Assumes that everything which has type 1 or 2 is really a string and that "
43810 "everything else is not a string, but the type field in real Registries is "
43811 "not reliable."
43812 msgstr ""
43813
43814 #. type: textblock
43815 #: ../tools/virt-win-reg.pl:210
43816 msgid ""
43817 "Loses information about whether a zero codepoint followed the string in the "
43818 "Registry or not."
43819 msgstr ""
43820
43821 #. type: textblock
43822 #: ../tools/virt-win-reg.pl:215
43823 msgid ""
43824 "This all happens because the Registry itself contains no information about "
43825 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43826 msgstr ""
43827
43828 #. type: textblock
43829 #: ../tools/virt-win-reg.pl:219
43830 msgid ""
43831 "You should only use this option for quick hacking and debugging of the "
43832 "Registry contents, and I<never> use it if the output is going to be passed "
43833 "into another program or stored in another Registry."
43834 msgstr ""
43835
43836 #. type: =head1
43837 #: ../tools/virt-win-reg.pl:556
43838 msgid "SUPPORTED SYSTEMS"
43839 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43840
43841 #. type: textblock
43842 #: ../tools/virt-win-reg.pl:558
43843 msgid ""
43844 "The program currently supports Windows NT-derived guests starting with "
43845 "Windows XP through to at least Windows 7."
43846 msgstr ""
43847
43848 #. type: textblock
43849 #: ../tools/virt-win-reg.pl:561
43850 msgid "The following Registry keys are supported:"
43851 msgstr ""
43852
43853 #. type: =item
43854 #: ../tools/virt-win-reg.pl:565
43855 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43856 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43857
43858 #. type: =item
43859 #: ../tools/virt-win-reg.pl:567
43860 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43861 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43862
43863 #. type: =item
43864 #: ../tools/virt-win-reg.pl:569
43865 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43866 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43867
43868 #. type: =item
43869 #: ../tools/virt-win-reg.pl:571
43870 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43871 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43872
43873 #. type: =item
43874 #: ../tools/virt-win-reg.pl:573
43875 msgid "C<HKEY_USERS\\.DEFAULT>"
43876 msgstr "C<HKEY_USERS\\.DEFAULT>"
43877
43878 #. type: =item
43879 #: ../tools/virt-win-reg.pl:575
43880 msgid "C<HKEY_USERS\\I<SID>>"
43881 msgstr "C<HKEY_USERS\\I<SID>>"
43882
43883 #. type: textblock
43884 #: ../tools/virt-win-reg.pl:577
43885 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43886 msgstr ""
43887
43888 #. type: =item
43889 #: ../tools/virt-win-reg.pl:579
43890 msgid "C<HKEY_USERS\\I<username>>"
43891 msgstr "C<HKEY_USERS\\I<користувач>>"
43892
43893 #. type: textblock
43894 #: ../tools/virt-win-reg.pl:581
43895 msgid ""
43896 "where I<username> is a local user name (this is a libguestfs extension)."
43897 msgstr ""
43898
43899 #. type: textblock
43900 #: ../tools/virt-win-reg.pl:585
43901 msgid ""
43902 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43903 "C<HKEY_USERS>."
43904 msgstr ""
43905
43906 #. type: textblock
43907 #: ../tools/virt-win-reg.pl:588
43908 msgid ""
43909 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43910 "supported (there is no \"current user\")."
43911 msgstr ""
43912
43913 #. type: =head1
43914 #: ../tools/virt-win-reg.pl:591
43915 msgid "ENCODING"
43916 msgstr "КОДУВАННЯ"
43917
43918 #. type: textblock
43919 #: ../tools/virt-win-reg.pl:593
43920 msgid ""
43921 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43922 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43923 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43924 "Windows-style line endings, you may need to reencode the whole file before "
43925 "or after processing."
43926 msgstr ""
43927
43928 #. type: textblock
43929 #: ../tools/virt-win-reg.pl:599
43930 msgid ""
43931 "To reencode a file from Windows format to Linux (before processing it with "
43932 "the I<--merge> option), you would do something like this:"
43933 msgstr ""
43934
43935 #. type: verbatim
43936 #: ../tools/virt-win-reg.pl:602
43937 #, no-wrap
43938 msgid ""
43939 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43940 "\n"
43941 msgstr ""
43942 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43943 "\n"
43944
43945 #. type: textblock
43946 #: ../tools/virt-win-reg.pl:604
43947 msgid ""
43948 "To go in the opposite direction, after exporting and before sending the file "
43949 "to a Windows user, do something like this:"
43950 msgstr ""
43951
43952 #. type: verbatim
43953 #: ../tools/virt-win-reg.pl:607
43954 #, no-wrap
43955 msgid ""
43956 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43957 "\n"
43958 msgstr ""
43959 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43960 "\n"
43961
43962 #. type: textblock
43963 #: ../tools/virt-win-reg.pl:609
43964 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43965 msgstr ""
43966
43967 #. type: textblock
43968 #: ../tools/virt-win-reg.pl:611
43969 msgid ""
43970 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43971 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43972 "style (CRLF) line endings, like this:"
43973 msgstr ""
43974
43975 #. type: verbatim
43976 #: ../tools/virt-win-reg.pl:615
43977 #, no-wrap
43978 msgid ""
43979 " $ file software.reg\n"
43980 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43981 " with CRLF line terminators\n"
43982 "\n"
43983 msgstr ""
43984
43985 #. type: textblock
43986 #: ../tools/virt-win-reg.pl:619
43987 msgid "This file would need conversion before you could I<--merge> it."
43988 msgstr ""
43989
43990 #. type: =head1
43991 #: ../tools/virt-win-reg.pl:621
43992 msgid "CurrentControlSet etc."
43993 msgstr ""
43994
43995 #. type: textblock
43996 #: ../tools/virt-win-reg.pl:623
43997 msgid ""
43998 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43999 "Registry at the level of the hive file, and therefore you cannot modify "
44000 "these."
44001 msgstr ""
44002
44003 #. type: textblock
44004 #: ../tools/virt-win-reg.pl:627
44005 msgid ""
44006 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
44007 "circumstances it might refer to another control set.  The way to find out is "
44008 "to look at the C<HKLM\\SYSTEM\\Select> key:"
44009 msgstr ""
44010
44011 #. type: verbatim
44012 #: ../tools/virt-win-reg.pl:631
44013 #, no-wrap
44014 msgid ""
44015 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44016 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44017 " \"Current\"=dword:00000001\n"
44018 " \"Default\"=dword:00000001\n"
44019 " \"Failed\"=dword:00000000\n"
44020 " \"LastKnownGood\"=dword:00000002\n"
44021 "\n"
44022 msgstr ""
44023 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44024 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44025 " \"Current\"=dword:00000001\n"
44026 " \"Default\"=dword:00000001\n"
44027 " \"Failed\"=dword:00000000\n"
44028 " \"LastKnownGood\"=dword:00000002\n"
44029 "\n"
44030
44031 #. type: textblock
44032 #: ../tools/virt-win-reg.pl:638
44033 msgid "\"Current\" is the one which Windows will choose when it boots."
44034 msgstr ""
44035
44036 #. type: textblock
44037 #: ../tools/virt-win-reg.pl:640
44038 msgid ""
44039 "Similarly, other C<Current...> keys in the path may need to be replaced."
44040 msgstr ""
44041
44042 #. type: =head1
44043 #: ../tools/virt-win-reg.pl:643
44044 msgid "DELETING REGISTRY KEYS AND VALUES"
44045 msgstr ""
44046
44047 #. type: textblock
44048 #: ../tools/virt-win-reg.pl:645
44049 msgid "To delete a whole registry key, use the syntax:"
44050 msgstr ""
44051
44052 #. type: verbatim
44053 #: ../tools/virt-win-reg.pl:647
44054 #, no-wrap
44055 msgid ""
44056 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
44057 "\n"
44058 msgstr ""
44059
44060 #. type: textblock
44061 #: ../tools/virt-win-reg.pl:649
44062 msgid "To delete a single value within a key, use the syntax:"
44063 msgstr ""
44064
44065 #. type: verbatim
44066 #: ../tools/virt-win-reg.pl:651
44067 #, no-wrap
44068 msgid ""
44069 " [HKEY_LOCAL_MACHINE\\Foo]\n"
44070 " \"Value\"=-\n"
44071 "\n"
44072 msgstr ""
44073
44074 #. type: =head1
44075 #: ../tools/virt-win-reg.pl:654
44076 msgid "WINDOWS TIPS"
44077 msgstr ""
44078
44079 #. type: textblock
44080 #: ../tools/virt-win-reg.pl:656
44081 msgid ""
44082 "Note that some of these tips modify the guest disk image.  The guest I<must> "
44083 "be shut off, else you will get disk corruption."
44084 msgstr ""
44085
44086 #. type: =head2
44087 #: ../tools/virt-win-reg.pl:659
44088 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
44089 msgstr ""
44090
44091 #. type: textblock
44092 #: ../tools/virt-win-reg.pl:661
44093 msgid ""
44094 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
44095 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
44096 "is uploaded into C<C:\\>:"
44097 msgstr ""
44098
44099 #. type: verbatim
44100 #: ../tools/virt-win-reg.pl:665
44101 #, no-wrap
44102 msgid ""
44103 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44104 "\n"
44105 msgstr ""
44106 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44107 "\n"
44108
44109 #. type: textblock
44110 #: ../tools/virt-win-reg.pl:667
44111 msgid "Prepare a regedit file containing the registry change:"
44112 msgstr ""
44113
44114 #. type: verbatim
44115 #: ../tools/virt-win-reg.pl:669
44116 #, no-wrap
44117 msgid ""
44118 " cat > test.reg <<'EOF'\n"
44119 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44120 " \"Test\"=\"c:\\\\test.bat\"\n"
44121 " EOF\n"
44122 "\n"
44123 msgstr ""
44124 " cat > test.reg <<'EOF'\n"
44125 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44126 " \"Test\"=\"c:\\\\test.bat\"\n"
44127 " EOF\n"
44128 "\n"
44129
44130 #. type: textblock
44131 #: ../tools/virt-win-reg.pl:674
44132 msgid ""
44133 "In this example we use the key C<RunOnce> which means that the script will "
44134 "run precisely once when the first user logs in.  If you want it to run every "
44135 "time a user logs in, replace C<RunOnce> with C<Run>."
44136 msgstr ""
44137
44138 #. type: textblock
44139 #: ../tools/virt-win-reg.pl:678
44140 msgid "Now update the registry:"
44141 msgstr "Оновіть регістр:"
44142
44143 #. type: verbatim
44144 #: ../tools/virt-win-reg.pl:680
44145 #, no-wrap
44146 msgid ""
44147 " virt-win-reg --merge WindowsGuest test.reg\n"
44148 "\n"
44149 msgstr ""
44150
44151 #. type: =head2
44152 #: ../tools/virt-win-reg.pl:682
44153 msgid "INSTALLING A SERVICE"
44154 msgstr ""
44155
44156 #. type: textblock
44157 #: ../tools/virt-win-reg.pl:684
44158 msgid ""
44159 "This section assumes you are familiar with Windows services, and you either "
44160 "have a program which handles the Windows Service Control Protocol directly "
44161 "or you want to run any program using a service wrapper like SrvAny or the "
44162 "free RHSrvAny."
44163 msgstr ""
44164
44165 #. type: textblock
44166 #: ../tools/virt-win-reg.pl:689
44167 msgid ""
44168 "First upload the program and optionally the service wrapper.  In this case "
44169 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
44170 msgstr ""
44171
44172 #. type: verbatim
44173 #: ../tools/virt-win-reg.pl:693
44174 #, no-wrap
44175 msgid ""
44176 " guestfish -i -d WindowsGuest <<EOF\n"
44177 "   upload rhsrvany.exe /rhsrvany.exe\n"
44178 "   upload test.exe /test.exe\n"
44179 " EOF\n"
44180 "\n"
44181 msgstr ""
44182 " guestfish -i -d WindowsGuest <<EOF\n"
44183 "   upload rhsrvany.exe /rhsrvany.exe\n"
44184 "   upload test.exe /test.exe\n"
44185 " EOF\n"
44186 "\n"
44187
44188 #. type: textblock
44189 #: ../tools/virt-win-reg.pl:698
44190 msgid ""
44191 "Prepare a regedit file containing the registry changes.  In this example, "
44192 "the first registry change is needed for the service itself or the service "
44193 "wrapper (if used).  The second registry change is only needed because I am "
44194 "using the RHSrvAny service wrapper."
44195 msgstr ""
44196
44197 #. type: verbatim
44198 #: ../tools/virt-win-reg.pl:703
44199 #, no-wrap
44200 msgid ""
44201 " cat > service.reg <<'EOF'\n"
44202 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44203 " \"Type\"=dword:00000010\n"
44204 " \"Start\"=dword:00000002\n"
44205 " \"ErrorControl\"=dword:00000001\n"
44206 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44207 " \"DisplayName\"=\"RHSrvAny\"\n"
44208 " \"ObjectName\"=\"NetworkService\"\n"
44209 " \n"
44210 msgstr ""
44211 " cat > service.reg <<'EOF'\n"
44212 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44213 " \"Type\"=dword:00000010\n"
44214 " \"Start\"=dword:00000002\n"
44215 " \"ErrorControl\"=dword:00000001\n"
44216 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44217 " \"DisplayName\"=\"RHSrvAny\"\n"
44218 " \"ObjectName\"=\"NetworkService\"\n"
44219 " \n"
44220
44221 #. type: verbatim
44222 #: ../tools/virt-win-reg.pl:712
44223 #, no-wrap
44224 msgid ""
44225 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44226 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44227 " \"PWD\"=\"c:\\\\Temp\"\n"
44228 " EOF\n"
44229 "\n"
44230 msgstr ""
44231 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44232 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44233 " \"PWD\"=\"c:\\\\Temp\"\n"
44234 " EOF\n"
44235 "\n"
44236
44237 #. type: textblock
44238 #: ../tools/virt-win-reg.pl:723
44239 msgid ""
44240 "For use of C<ControlSet001> see the section above in this manual page.  You "
44241 "may need to adjust this according to the control set that is in use by the "
44242 "guest."
44243 msgstr ""
44244
44245 #. type: textblock
44246 #: ../tools/virt-win-reg.pl:729
44247 msgid ""
44248 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
44249 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
44250 "privileged account."
44251 msgstr ""
44252
44253 #. type: textblock
44254 #: ../tools/virt-win-reg.pl:735
44255 msgid ""
44256 "For the meaning of the magic numbers, see this Microsoft KB article: "
44257 "L<http://support.microsoft.com/kb/103000>."
44258 msgstr ""
44259
44260 #. type: textblock
44261 #: ../tools/virt-win-reg.pl:740
44262 msgid "Update the registry:"
44263 msgstr "Оновіть регістр:"
44264
44265 #. type: verbatim
44266 #: ../tools/virt-win-reg.pl:742
44267 #, no-wrap
44268 msgid ""
44269 " virt-win-reg --merge WindowsGuest service.reg\n"
44270 "\n"
44271 msgstr ""
44272
44273 #. type: textblock
44274 #: ../tools/virt-win-reg.pl:746
44275 msgid ""
44276 "Be careful when passing parameters containing C<\\> (backslash) in the "
44277 "shell.  Usually you will have to use 'single quotes' or double backslashes "
44278 "(but not both) to protect them from the shell."
44279 msgstr ""
44280
44281 #. type: textblock
44282 #: ../tools/virt-win-reg.pl:750
44283 msgid "Paths and value names are case-insensitive."
44284 msgstr ""
44285
44286 #. type: textblock
44287 #: ../tools/virt-win-reg.pl:759
44288 msgid ""
44289 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44290 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44291 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44292 msgstr ""
44293 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44294 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44295 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44296
44297 #. type: verbatim
44298 #: ../tools/virt-win-reg.pl:777
44299 #, no-wrap
44300 msgid ""
44301 " export LIBGUESTFS_DEBUG=1\n"
44302 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
44303 "\n"
44304 msgstr ""
44305
44306 #. type: textblock
44307 #: ../tools/virt-win-reg.pl:780
44308 msgid ""
44309 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
44310 "redhat.com/>"
44311 msgstr ""