daemon: debug segv correct use of dereferencing NULL.
[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: 2012-01-08 19:12+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:31
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:112
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:116
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:118
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:120
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:122
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:128
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:135
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:137
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:139
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:142
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:145
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:147
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:149
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:152
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:154
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:156
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:161 ../src/guestfs.pod:2878
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:165
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:169
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:172
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:177
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:179
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:219 ../sparsify/virt-sparsify.pod:183
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:221 ../sparsify/virt-sparsify.pod:185
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:223 ../sparsify/virt-sparsify.pod:187
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:225 ../resize/virt-resize.pod:567
545 #: ../sparsify/virt-sparsify.pod:189
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:227 ../resize/virt-resize.pod:569
556 #: ../sparsify/virt-sparsify.pod:191 ../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:229 ../resize/virt-resize.pod:571
568 #: ../sparsify/virt-sparsify.pod:193 ../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:240 ../sparsify/virt-sparsify.pod:195
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:242 ../sparsify/virt-sparsify.pod:197
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:303 ../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:305 ../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:251
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:1293
929 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1301
930 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1313
931 #: ../fish/guestfish-actions.pod:1317 ../fish/guestfish-actions.pod:1321
932 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
933 #: ../fish/guestfish-actions.pod:1339 ../fish/guestfish-actions.pod:1429
934 #: ../fish/guestfish-actions.pod:1433 ../fish/guestfish-actions.pod:1438
935 #: ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:1485
936 #: ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1494
937 #: ../fish/guestfish-actions.pod:1750 ../fish/guestfish-actions.pod:1757
938 #: ../fish/guestfish-actions.pod:1764 ../fish/guestfish-actions.pod:2167
939 #: ../fish/guestfish-actions.pod:2173 ../fish/guestfish-actions.pod:2181
940 #: ../fish/guestfish-actions.pod:2188 ../fish/guestfish-actions.pod:2195
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:2118
953 #: ../src/guestfs-actions.pod:2122 ../src/guestfs-actions.pod:2126
954 #: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2138
955 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2146
956 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2160
957 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2302
958 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2311
959 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2377
960 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2386
961 #: ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2808
962 #: ../src/guestfs-actions.pod:2815 ../src/guestfs-actions.pod:3360
963 #: ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3374
964 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3388
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:3048 ../src/guestfs.pod:3053 ../src/guestfs.pod:3057
978 #: ../src/guestfs.pod:3061 ../src/guestfs.pod:3065 ../src/guestfs.pod:3079
979 #: ../src/guestfs.pod:3084 ../src/guestfs.pod:3316 ../src/guestfs.pod:3320
980 #: ../src/guestfs.pod:3324 ../src/guestfs.pod:3328
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:325
1045 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3256
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:334
1066 #: ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288
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:336 ../resize/virt-resize.pod:719
1079 #: ../sparsify/virt-sparsify.pod:290 ../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:338
1098 #: ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3339
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:294
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:342 ../resize/virt-resize.pod:725
1122 #: ../sparsify/virt-sparsify.pod:296 ../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:347 ../resize/virt-resize.pod:730
1142 #: ../sparsify/virt-sparsify.pod:301 ../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:352 ../resize/virt-resize.pod:735
1166 #: ../sparsify/virt-sparsify.pod:306 ../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:124
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:246
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:252
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:256
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:260
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:253
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:15
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:4519
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:340
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:21
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:298 ../sparsify/virt-sparsify.pod:256
4697 #: ../src/guestfs.pod:3195 ../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:3335
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:3337
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:3344
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:3349
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:3354
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:1481 ../fish/guestfish-actions.pod:1746
5398 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:18
5399 #: ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2797
5400 #: ../src/guestfs-actions.pod:3356 ../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:2793
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:3069
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:972
6795 #: ../fish/guestfish-actions.pod:1007 ../fish/guestfish-actions.pod:1180
6796 #: ../fish/guestfish-actions.pod:1540 ../fish/guestfish-actions.pod:1554
6797 #: ../fish/guestfish-actions.pod:3423 ../fish/guestfish-actions.pod:3734
6798 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:4700
6799 #: ../fish/guestfish-actions.pod:4720 ../fish/guestfish-actions.pod:4739
6800 #: ../fish/guestfish-actions.pod:4777 ../fish/guestfish-actions.pod:5505
6801 #: ../fish/guestfish-actions.pod:5608 ../src/guestfs-actions.pod:10
6802 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6803 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1676
6804 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2458
6805 #: ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:5281
6806 #: ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:5903
6807 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7240
6808 #: ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7331
6809 #: ../src/guestfs-actions.pod:8385 ../src/guestfs-actions.pod:8494
6810 #: ../src/guestfs-actions.pod:8674
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:655 ../fish/guestfish-actions.pod:866
6981 #: ../fish/guestfish-actions.pod:887 ../fish/guestfish-actions.pod:925
6982 #: ../fish/guestfish-actions.pod:934 ../fish/guestfish-actions.pod:943
6983 #: ../fish/guestfish-actions.pod:957 ../fish/guestfish-actions.pod:2202
6984 #: ../fish/guestfish-actions.pod:3250 ../fish/guestfish-actions.pod:3472
6985 #: ../fish/guestfish-actions.pod:3635 ../fish/guestfish-actions.pod:3770
6986 #: ../fish/guestfish-actions.pod:5141
6987 msgid ""
6988 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6989 msgstr ""
6990
6991 #. type: =head2
6992 #: ../fish/guestfish-actions.pod:127
6993 msgid "add-drive"
6994 msgstr "add-drive"
6995
6996 #. type: verbatim
6997 #: ../fish/guestfish-actions.pod:129
6998 #, no-wrap
6999 msgid ""
7000 " add-drive filename\n"
7001 "\n"
7002 msgstr ""
7003 " add-drive назва_файла\n"
7004 "\n"
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:131
7008 msgid ""
7009 "This function is the equivalent of calling L</add-drive-opts> with no "
7010 "optional parameters, so the disk is added writable, with the format being "
7011 "detected automatically."
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:135
7016 msgid ""
7017 "Automatic detection of the format opens you up to a potential security hole "
7018 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
7019 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
7020 "you should think about replacing calls to this function with calls to L</add-"
7021 "drive-opts>, and specifying the format."
7022 msgstr ""
7023
7024 #. type: =head2
7025 #: ../fish/guestfish-actions.pod:142
7026 msgid "add-drive-opts"
7027 msgstr "add-drive-opts"
7028
7029 #. type: =head2
7030 #: ../fish/guestfish-actions.pod:144
7031 msgid "add"
7032 msgstr "add"
7033
7034 #. type: verbatim
7035 #: ../fish/guestfish-actions.pod:146
7036 #, no-wrap
7037 msgid ""
7038 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
7039 "\n"
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
7044 msgid ""
7045 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
7046 "The first time you call this function, the disk appears as C</dev/sda>, the "
7047 "second time as C</dev/sdb>, and so on."
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
7052 msgid ""
7053 "You don't necessarily need to be root when using libguestfs.  However you "
7054 "obviously do need sufficient permissions to access the filename for whatever "
7055 "operations you want to perform (ie. read access if you just want to read the "
7056 "image or write access if you want to modify the image)."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
7061 msgid "This call checks that C<filename> exists."
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3434
7066 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5318
7067 msgid "The optional arguments are:"
7068 msgstr ""
7069
7070 #. type: =item
7071 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
7072 msgid "C<readonly>"
7073 msgstr "C<readonly>"
7074
7075 #. type: textblock
7076 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
7077 msgid ""
7078 "If true then the image is treated as read-only.  Writes are still allowed, "
7079 "but they are stored in a temporary snapshot overlay which is discarded at "
7080 "the end.  The disk that you add is not modified."
7081 msgstr ""
7082
7083 #. type: =item
7084 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
7085 msgid "C<format>"
7086 msgstr "C<format>"
7087
7088 #. type: textblock
7089 #: ../fish/guestfish-actions.pod:173
7090 msgid ""
7091 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
7092 "add-drive-ro>) then the format is automatically detected.  Possible formats "
7093 "include C<raw> and C<qcow2>."
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
7098 msgid ""
7099 "Automatic detection of the format opens you up to a potential security hole "
7100 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
7101 "RHBZ#642934.  Specifying the format closes this security hole."
7102 msgstr ""
7103
7104 #. type: =item
7105 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
7106 msgid "C<iface>"
7107 msgstr "C<iface>"
7108
7109 #. type: textblock
7110 #: ../fish/guestfish-actions.pod:184
7111 msgid ""
7112 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
7113 "add-drive-with-if> call (q.v.)"
7114 msgstr ""
7115
7116 #. type: =item
7117 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3277
7118 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5039
7119 msgid "C<name>"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
7124 msgid ""
7125 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
7126 "a hint to the guest inspection process if it is available."
7127 msgstr ""
7128
7129 #. type: =head2
7130 #: ../fish/guestfish-actions.pod:196
7131 msgid "add-drive-ro"
7132 msgstr "add-drive-ro"
7133
7134 #. type: =head2
7135 #: ../fish/guestfish-actions.pod:198
7136 msgid "add-ro"
7137 msgstr "add-ro"
7138
7139 #. type: verbatim
7140 #: ../fish/guestfish-actions.pod:200
7141 #, no-wrap
7142 msgid ""
7143 " add-drive-ro filename\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:202
7149 msgid ""
7150 "This function is the equivalent of calling L</add-drive-opts> with the "
7151 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
7152 "is added read-only, with the format being detected automatically."
7153 msgstr ""
7154
7155 #. type: =head2
7156 #: ../fish/guestfish-actions.pod:207
7157 msgid "add-drive-ro-with-if"
7158 msgstr ""
7159
7160 #. type: verbatim
7161 #: ../fish/guestfish-actions.pod:209
7162 #, no-wrap
7163 msgid ""
7164 " add-drive-ro-with-if filename iface\n"
7165 "\n"
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:211
7170 msgid ""
7171 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
7172 "interface emulation to use at run time."
7173 msgstr ""
7174
7175 #. type: =head2
7176 #: ../fish/guestfish-actions.pod:221
7177 msgid "add-drive-with-if"
7178 msgstr ""
7179
7180 #. type: verbatim
7181 #: ../fish/guestfish-actions.pod:223
7182 #, no-wrap
7183 msgid ""
7184 " add-drive-with-if filename iface\n"
7185 "\n"
7186 msgstr ""
7187
7188 #. type: textblock
7189 #: ../fish/guestfish-actions.pod:225
7190 msgid ""
7191 "This is the same as L</add-drive> but it allows you to specify the QEMU "
7192 "interface emulation to use at run time."
7193 msgstr ""
7194
7195 #. type: =head2
7196 #: ../fish/guestfish-actions.pod:235
7197 msgid "aug-clear"
7198 msgstr ""
7199
7200 #. type: verbatim
7201 #: ../fish/guestfish-actions.pod:237
7202 #, no-wrap
7203 msgid ""
7204 " aug-clear augpath\n"
7205 "\n"
7206 msgstr ""
7207
7208 #. type: textblock
7209 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
7210 msgid ""
7211 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7212 "L<augtool(1)> C<clear> command."
7213 msgstr ""
7214
7215 #. type: =head2
7216 #: ../fish/guestfish-actions.pod:242
7217 msgid "aug-close"
7218 msgstr ""
7219
7220 #. type: verbatim
7221 #: ../fish/guestfish-actions.pod:244
7222 #, no-wrap
7223 msgid ""
7224 " aug-close\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:246
7230 msgid ""
7231 "Close the current Augeas handle and free up any resources used by it.  After "
7232 "calling this, you have to call L</aug-init> again before you can use any "
7233 "other Augeas functions."
7234 msgstr ""
7235
7236 #. type: =head2
7237 #: ../fish/guestfish-actions.pod:251
7238 msgid "aug-defnode"
7239 msgstr ""
7240
7241 #. type: verbatim
7242 #: ../fish/guestfish-actions.pod:253
7243 #, no-wrap
7244 msgid ""
7245 " aug-defnode name expr val\n"
7246 "\n"
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
7251 msgid ""
7252 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7253 msgstr ""
7254
7255 #. type: textblock
7256 #: ../fish/guestfish-actions.pod:258
7257 msgid ""
7258 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7259 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
7260 "containing that single node."
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
7265 msgid ""
7266 "On success this returns a pair containing the number of nodes in the "
7267 "nodeset, and a boolean flag if a node was created."
7268 msgstr ""
7269
7270 #. type: =head2
7271 #: ../fish/guestfish-actions.pod:266
7272 msgid "aug-defvar"
7273 msgstr ""
7274
7275 #. type: verbatim
7276 #: ../fish/guestfish-actions.pod:268
7277 #, no-wrap
7278 msgid ""
7279 " aug-defvar name expr\n"
7280 "\n"
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
7285 msgid ""
7286 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7287 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7288 msgstr ""
7289
7290 #. type: textblock
7291 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
7292 msgid ""
7293 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7294 "evaluates to something which is not a nodeset."
7295 msgstr ""
7296
7297 #. type: =head2
7298 #: ../fish/guestfish-actions.pod:277
7299 msgid "aug-get"
7300 msgstr ""
7301
7302 #. type: verbatim
7303 #: ../fish/guestfish-actions.pod:279
7304 #, no-wrap
7305 msgid ""
7306 " aug-get augpath\n"
7307 "\n"
7308 msgstr ""
7309
7310 #. type: textblock
7311 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7312 msgid ""
7313 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7314 "node, the C<value> is returned."
7315 msgstr ""
7316
7317 #. type: =head2
7318 #: ../fish/guestfish-actions.pod:284
7319 msgid "aug-init"
7320 msgstr ""
7321
7322 #. type: verbatim
7323 #: ../fish/guestfish-actions.pod:286
7324 #, no-wrap
7325 msgid ""
7326 " aug-init root flags\n"
7327 "\n"
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7332 msgid ""
7333 "Create a new Augeas handle for editing configuration files.  If there was "
7334 "any previous Augeas handle associated with this guestfs session, then it is "
7335 "closed."
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:292
7340 msgid "You must call this before using any other L</aug-*> commands."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7345 msgid ""
7346 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7347 msgstr ""
7348
7349 #. type: textblock
7350 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7351 msgid ""
7352 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7353 "logical I<or> of the following integers:"
7354 msgstr ""
7355
7356 #. type: =item
7357 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7358 msgid "C<AUG_SAVE_BACKUP> = 1"
7359 msgstr "C<AUG_SAVE_BACKUP> = 1"
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7363 msgid "Keep the original file with a C<.augsave> extension."
7364 msgstr ""
7365
7366 #. type: =item
7367 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7368 msgid "C<AUG_SAVE_NEWFILE> = 2"
7369 msgstr "C<AUG_SAVE_NEWFILE> = 2"
7370
7371 #. type: textblock
7372 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7373 msgid ""
7374 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7375 "original.  Overrides C<AUG_SAVE_BACKUP>."
7376 msgstr ""
7377
7378 #. type: =item
7379 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7380 msgid "C<AUG_TYPE_CHECK> = 4"
7381 msgstr "C<AUG_TYPE_CHECK> = 4"
7382
7383 #. type: textblock
7384 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7385 msgid "Typecheck lenses."
7386 msgstr ""
7387
7388 #. type: textblock
7389 #: ../fish/guestfish-actions.pod:317
7390 msgid ""
7391 "This option is only useful when debugging Augeas lenses.  Use of this option "
7392 "may require additional memory for the libguestfs appliance.  You may need to "
7393 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7394 msgstr ""
7395
7396 #. type: =item
7397 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7398 msgid "C<AUG_NO_STDINC> = 8"
7399 msgstr "C<AUG_NO_STDINC> = 8"
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7403 msgid "Do not use standard load path for modules."
7404 msgstr ""
7405
7406 #. type: =item
7407 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7408 msgid "C<AUG_SAVE_NOOP> = 16"
7409 msgstr "C<AUG_SAVE_NOOP> = 16"
7410
7411 #. type: textblock
7412 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7413 msgid "Make save a no-op, just record what would have been changed."
7414 msgstr ""
7415
7416 #. type: =item
7417 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7418 msgid "C<AUG_NO_LOAD> = 32"
7419 msgstr "C<AUG_NO_LOAD> = 32"
7420
7421 #. type: textblock
7422 #: ../fish/guestfish-actions.pod:332
7423 msgid "Do not load the tree in L</aug-init>."
7424 msgstr ""
7425
7426 #. type: textblock
7427 #: ../fish/guestfish-actions.pod:336
7428 msgid "To close the handle, you can call L</aug-close>."
7429 msgstr ""
7430
7431 #. type: textblock
7432 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7433 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7434 msgstr ""
7435
7436 #. type: =head2
7437 #: ../fish/guestfish-actions.pod:340
7438 msgid "aug-insert"
7439 msgstr ""
7440
7441 #. type: verbatim
7442 #: ../fish/guestfish-actions.pod:342
7443 #, no-wrap
7444 msgid ""
7445 " aug-insert augpath label true|false\n"
7446 "\n"
7447 msgstr ""
7448
7449 #. type: textblock
7450 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7451 msgid ""
7452 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7453 "or after C<path> (depending on the boolean flag C<before>)."
7454 msgstr ""
7455
7456 #. type: textblock
7457 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7458 msgid ""
7459 "C<path> must match exactly one existing node in the tree, and C<label> must "
7460 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7461 msgstr ""
7462
7463 #. type: =head2
7464 #: ../fish/guestfish-actions.pod:352
7465 msgid "aug-load"
7466 msgstr ""
7467
7468 #. type: verbatim
7469 #: ../fish/guestfish-actions.pod:354
7470 #, no-wrap
7471 msgid ""
7472 " aug-load\n"
7473 "\n"
7474 msgstr ""
7475
7476 #. type: textblock
7477 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7478 msgid "Load files into the tree."
7479 msgstr "Завантажити файли до ієрархії."
7480
7481 #. type: textblock
7482 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7483 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7484 msgstr ""
7485
7486 #. type: =head2
7487 #: ../fish/guestfish-actions.pod:361
7488 msgid "aug-ls"
7489 msgstr ""
7490
7491 #. type: verbatim
7492 #: ../fish/guestfish-actions.pod:363
7493 #, no-wrap
7494 msgid ""
7495 " aug-ls augpath\n"
7496 "\n"
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:365
7501 msgid ""
7502 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7503 "resulting nodes into alphabetical order."
7504 msgstr ""
7505
7506 #. type: =head2
7507 #: ../fish/guestfish-actions.pod:368
7508 msgid "aug-match"
7509 msgstr ""
7510
7511 #. type: verbatim
7512 #: ../fish/guestfish-actions.pod:370
7513 #, no-wrap
7514 msgid ""
7515 " aug-match augpath\n"
7516 "\n"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7521 msgid ""
7522 "Returns a list of paths which match the path expression C<path>.  The "
7523 "returned paths are sufficiently qualified so that they match exactly one "
7524 "node in the current tree."
7525 msgstr ""
7526
7527 #. type: =head2
7528 #: ../fish/guestfish-actions.pod:376
7529 msgid "aug-mv"
7530 msgstr ""
7531
7532 #. type: verbatim
7533 #: ../fish/guestfish-actions.pod:378
7534 #, no-wrap
7535 msgid ""
7536 " aug-mv src dest\n"
7537 "\n"
7538 msgstr ""
7539
7540 #. type: textblock
7541 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7542 msgid ""
7543 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7544 "C<dest> is overwritten if it exists."
7545 msgstr ""
7546
7547 #. type: =head2
7548 #: ../fish/guestfish-actions.pod:383
7549 msgid "aug-rm"
7550 msgstr ""
7551
7552 #. type: verbatim
7553 #: ../fish/guestfish-actions.pod:385
7554 #, no-wrap
7555 msgid ""
7556 " aug-rm augpath\n"
7557 "\n"
7558 msgstr ""
7559
7560 #. type: textblock
7561 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7562 msgid "Remove C<path> and all of its children."
7563 msgstr ""
7564
7565 #. type: textblock
7566 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7567 msgid "On success this returns the number of entries which were removed."
7568 msgstr ""
7569
7570 #. type: =head2
7571 #: ../fish/guestfish-actions.pod:391
7572 msgid "aug-save"
7573 msgstr ""
7574
7575 #. type: verbatim
7576 #: ../fish/guestfish-actions.pod:393
7577 #, no-wrap
7578 msgid ""
7579 " aug-save\n"
7580 "\n"
7581 msgstr ""
7582
7583 #. type: textblock
7584 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7585 msgid "This writes all pending changes to disk."
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../fish/guestfish-actions.pod:397
7590 msgid ""
7591 "The flags which were passed to L</aug-init> affect exactly how files are "
7592 "saved."
7593 msgstr ""
7594
7595 #. type: =head2
7596 #: ../fish/guestfish-actions.pod:400
7597 msgid "aug-set"
7598 msgstr ""
7599
7600 #. type: verbatim
7601 #: ../fish/guestfish-actions.pod:402
7602 #, no-wrap
7603 msgid ""
7604 " aug-set augpath val\n"
7605 "\n"
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7610 msgid "Set the value associated with C<path> to C<val>."
7611 msgstr ""
7612
7613 #. type: textblock
7614 #: ../fish/guestfish-actions.pod:406
7615 msgid ""
7616 "In the Augeas API, it is possible to clear a node by setting the value to "
7617 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7618 "this call.  Instead you must use the L</aug-clear> call."
7619 msgstr ""
7620
7621 #. type: =head2
7622 #: ../fish/guestfish-actions.pod:411
7623 msgid "available"
7624 msgstr ""
7625
7626 #. type: verbatim
7627 #: ../fish/guestfish-actions.pod:413
7628 #, no-wrap
7629 msgid ""
7630 " available 'groups ...'\n"
7631 "\n"
7632 msgstr ""
7633
7634 #. type: textblock
7635 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7636 msgid ""
7637 "This command is used to check the availability of some groups of "
7638 "functionality in the appliance, which not all builds of the libguestfs "
7639 "appliance will be able to provide."
7640 msgstr ""
7641
7642 #. type: textblock
7643 #: ../fish/guestfish-actions.pod:419
7644 msgid ""
7645 "The libguestfs groups, and the functions that those groups correspond to, "
7646 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7647 "runtime by calling L</available-all-groups>."
7648 msgstr ""
7649
7650 #. type: textblock
7651 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7652 msgid ""
7653 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7654 "\"]> would check for the availability of the Linux inotify functions and "
7655 "Augeas (configuration file editing) functions."
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7660 msgid "The command returns no error if I<all> requested groups are available."
7661 msgstr ""
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7665 msgid ""
7666 "It fails with an error if one or more of the requested groups is unavailable "
7667 "in the appliance."
7668 msgstr ""
7669
7670 #. type: textblock
7671 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7672 msgid ""
7673 "If an unknown group name is included in the list of groups then an error is "
7674 "always returned."
7675 msgstr ""
7676
7677 #. type: textblock
7678 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7679 msgid "I<Notes:>"
7680 msgstr "I<Нотатки:>"
7681
7682 #. type: textblock
7683 #: ../fish/guestfish-actions.pod:443
7684 msgid "You must call L</launch> before calling this function."
7685 msgstr ""
7686
7687 #. type: textblock
7688 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7689 msgid ""
7690 "The reason is because we don't know what groups are supported by the "
7691 "appliance/daemon until it is running and can be queried."
7692 msgstr ""
7693
7694 #. type: textblock
7695 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7696 msgid ""
7697 "If a group of functions is available, this does not necessarily mean that "
7698 "they will work.  You still have to check for errors when calling individual "
7699 "API functions even if they are available."
7700 msgstr ""
7701
7702 #. type: textblock
7703 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7704 msgid ""
7705 "It is usually the job of distro packagers to build complete functionality "
7706 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7707 "with all requirements satisfied, will support everything."
7708 msgstr ""
7709
7710 #. type: textblock
7711 #: ../fish/guestfish-actions.pod:465
7712 msgid ""
7713 "This call was added in version C<1.0.80>.  In previous versions of "
7714 "libguestfs all you could do would be to speculatively execute a command to "
7715 "find out if the daemon implemented it.  See also L</version>."
7716 msgstr ""
7717
7718 #. type: =head2
7719 #: ../fish/guestfish-actions.pod:472
7720 msgid "available-all-groups"
7721 msgstr ""
7722
7723 #. type: verbatim
7724 #: ../fish/guestfish-actions.pod:474
7725 #, no-wrap
7726 msgid ""
7727 " available-all-groups\n"
7728 "\n"
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:476
7733 msgid ""
7734 "This command returns a list of all optional groups that this daemon knows "
7735 "about.  Note this returns both supported and unsupported groups.  To find "
7736 "out which ones the daemon can actually support you have to call L</"
7737 "available> on each member of the returned list."
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:482
7742 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7743 msgstr ""
7744
7745 #. type: =head2
7746 #: ../fish/guestfish-actions.pod:484
7747 msgid "base64-in"
7748 msgstr ""
7749
7750 #. type: verbatim
7751 #: ../fish/guestfish-actions.pod:486
7752 #, no-wrap
7753 msgid ""
7754 " base64-in (base64file|-) filename\n"
7755 "\n"
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7760 msgid ""
7761 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7766 #: ../fish/guestfish-actions.pod:780 ../fish/guestfish-actions.pod:864
7767 #: ../fish/guestfish-actions.pod:885 ../fish/guestfish-actions.pod:1056
7768 #: ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1449
7769 #: ../fish/guestfish-actions.pod:4997 ../fish/guestfish-actions.pod:5009
7770 #: ../fish/guestfish-actions.pod:5020 ../fish/guestfish-actions.pod:5031
7771 #: ../fish/guestfish-actions.pod:5162 ../fish/guestfish-actions.pod:5171
7772 #: ../fish/guestfish-actions.pod:5225 ../fish/guestfish-actions.pod:5248
7773 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7774 msgstr ""
7775
7776 #. type: =head2
7777 #: ../fish/guestfish-actions.pod:493
7778 msgid "base64-out"
7779 msgstr ""
7780
7781 #. type: verbatim
7782 #: ../fish/guestfish-actions.pod:495
7783 #, no-wrap
7784 msgid ""
7785 " base64-out filename (base64file|-)\n"
7786 "\n"
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7791 msgid ""
7792 "This command downloads the contents of C<filename>, writing it out to local "
7793 "file C<base64file> encoded as base64."
7794 msgstr ""
7795
7796 #. type: =head2
7797 #: ../fish/guestfish-actions.pod:502
7798 msgid "blkid"
7799 msgstr ""
7800
7801 #. type: verbatim
7802 #: ../fish/guestfish-actions.pod:504
7803 #, fuzzy, no-wrap
7804 #| msgid ""
7805 #| " lvuuid device\n"
7806 #| "\n"
7807 msgid ""
7808 " blkid device\n"
7809 "\n"
7810 msgstr ""
7811 " lvuuid пристрій\n"
7812 "\n"
7813
7814 #. type: textblock
7815 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7816 msgid ""
7817 "This command returns block device attributes for C<device>. The following "
7818 "fields are usually present in the returned hash. Other fields may also be "
7819 "present."
7820 msgstr ""
7821
7822 #. type: =item
7823 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:734
7824 #, fuzzy
7825 #| msgid "B<UUID>"
7826 msgid "C<UUID>"
7827 msgstr "B<UUID>"
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:513 ../src/guestfs-actions.pod:736
7831 #, fuzzy
7832 #| msgid "The time of last access."
7833 msgid "The uuid of this device."
7834 msgstr "Час останнього доступу."
7835
7836 #. type: =item
7837 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:738
7838 msgid "C<LABEL>"
7839 msgstr ""
7840
7841 #. type: textblock
7842 #: ../fish/guestfish-actions.pod:517 ../src/guestfs-actions.pod:740
7843 #, fuzzy
7844 #| msgid "The time of last access."
7845 msgid "The label of this device."
7846 msgstr "Час останнього доступу."
7847
7848 #. type: =item
7849 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:742
7850 msgid "C<VERSION>"
7851 msgstr ""
7852
7853 #. type: textblock
7854 #: ../fish/guestfish-actions.pod:521 ../src/guestfs-actions.pod:744
7855 msgid "The version of blkid command."
7856 msgstr ""
7857
7858 #. type: =item
7859 #: ../fish/guestfish-actions.pod:523 ../src/guestfs-actions.pod:746
7860 msgid "C<TYPE>"
7861 msgstr ""
7862
7863 #. type: textblock
7864 #: ../fish/guestfish-actions.pod:525 ../src/guestfs-actions.pod:748
7865 msgid "The filesystem type or RAID of this device."
7866 msgstr ""
7867
7868 #. type: =item
7869 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:750
7870 msgid "C<USAGE>"
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:752
7875 msgid "The usage of this device, for example C<filesystem> or C<raid>."
7876 msgstr ""
7877
7878 #. type: =head2
7879 #: ../fish/guestfish-actions.pod:533
7880 msgid "blockdev-flushbufs"
7881 msgstr ""
7882
7883 #. type: verbatim
7884 #: ../fish/guestfish-actions.pod:535
7885 #, no-wrap
7886 msgid ""
7887 " blockdev-flushbufs device\n"
7888 "\n"
7889 msgstr ""
7890
7891 #. type: textblock
7892 #: ../fish/guestfish-actions.pod:537 ../src/guestfs-actions.pod:768
7893 msgid ""
7894 "This tells the kernel to flush internal buffers associated with C<device>."
7895 msgstr ""
7896
7897 #. type: textblock
7898 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:551
7899 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:570
7900 #: ../fish/guestfish-actions.pod:582 ../fish/guestfish-actions.pod:595
7901 #: ../fish/guestfish-actions.pod:603 ../fish/guestfish-actions.pod:614
7902 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:630
7903 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:788
7904 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:819
7905 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:856
7906 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:888
7907 #: ../src/guestfs-actions.pod:902 ../src/guestfs-actions.pod:916
7908 msgid "This uses the L<blockdev(8)> command."
7909 msgstr ""
7910
7911 #. type: =head2
7912 #: ../fish/guestfish-actions.pod:542
7913 msgid "blockdev-getbsz"
7914 msgstr ""
7915
7916 #. type: verbatim
7917 #: ../fish/guestfish-actions.pod:544
7918 #, no-wrap
7919 msgid ""
7920 " blockdev-getbsz device\n"
7921 "\n"
7922 msgstr ""
7923
7924 #. type: textblock
7925 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:783
7926 msgid "This returns the block size of a device."
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:548 ../fish/guestfish-actions.pod:611
7931 #: ../src/guestfs-actions.pod:785 ../src/guestfs-actions.pod:885
7932 msgid ""
7933 "(Note this is different from both I<size in blocks> and I<filesystem block "
7934 "size>)."
7935 msgstr ""
7936
7937 #. type: =head2
7938 #: ../fish/guestfish-actions.pod:553
7939 msgid "blockdev-getro"
7940 msgstr ""
7941
7942 #. type: verbatim
7943 #: ../fish/guestfish-actions.pod:555
7944 #, no-wrap
7945 msgid ""
7946 " blockdev-getro device\n"
7947 "\n"
7948 msgstr ""
7949
7950 #. type: textblock
7951 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:800
7952 msgid ""
7953 "Returns a boolean indicating if the block device is read-only (true if read-"
7954 "only, false if not)."
7955 msgstr ""
7956
7957 #. type: =head2
7958 #: ../fish/guestfish-actions.pod:562
7959 msgid "blockdev-getsize64"
7960 msgstr ""
7961
7962 #. type: verbatim
7963 #: ../fish/guestfish-actions.pod:564
7964 #, no-wrap
7965 msgid ""
7966 " blockdev-getsize64 device\n"
7967 "\n"
7968 msgstr ""
7969
7970 #. type: textblock
7971 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:815
7972 msgid "This returns the size of the device in bytes."
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:568
7977 msgid "See also L</blockdev-getsz>."
7978 msgstr "Див. також L</blockdev-getsz>."
7979
7980 #. type: =head2
7981 #: ../fish/guestfish-actions.pod:572
7982 msgid "blockdev-getss"
7983 msgstr ""
7984
7985 #. type: verbatim
7986 #: ../fish/guestfish-actions.pod:574
7987 #, no-wrap
7988 msgid ""
7989 " blockdev-getss device\n"
7990 "\n"
7991 msgstr ""
7992
7993 #. type: textblock
7994 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:831
7995 msgid ""
7996 "This returns the size of sectors on a block device.  Usually 512, but can be "
7997 "larger for modern devices."
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../fish/guestfish-actions.pod:579
8002 msgid ""
8003 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
8004 msgstr ""
8005
8006 #. type: =head2
8007 #: ../fish/guestfish-actions.pod:584
8008 msgid "blockdev-getsz"
8009 msgstr ""
8010
8011 #. type: verbatim
8012 #: ../fish/guestfish-actions.pod:586
8013 #, no-wrap
8014 msgid ""
8015 " blockdev-getsz device\n"
8016 "\n"
8017 msgstr ""
8018
8019 #. type: textblock
8020 #: ../fish/guestfish-actions.pod:588 ../src/guestfs-actions.pod:849
8021 msgid ""
8022 "This returns the size of the device in units of 512-byte sectors (even if "
8023 "the sectorsize isn't 512 bytes ... weird)."
8024 msgstr ""
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:591
8028 msgid ""
8029 "See also L</blockdev-getss> for the real sector size of the device, and L</"
8030 "blockdev-getsize64> for the more useful I<size in bytes>."
8031 msgstr ""
8032
8033 #. type: =head2
8034 #: ../fish/guestfish-actions.pod:597
8035 msgid "blockdev-rereadpt"
8036 msgstr ""
8037
8038 #. type: verbatim
8039 #: ../fish/guestfish-actions.pod:599
8040 #, no-wrap
8041 msgid ""
8042 " blockdev-rereadpt device\n"
8043 "\n"
8044 msgstr ""
8045
8046 #. type: textblock
8047 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:868
8048 msgid "Reread the partition table on C<device>."
8049 msgstr ""
8050
8051 #. type: =head2
8052 #: ../fish/guestfish-actions.pod:605
8053 msgid "blockdev-setbsz"
8054 msgstr ""
8055
8056 #. type: verbatim
8057 #: ../fish/guestfish-actions.pod:607
8058 #, no-wrap
8059 msgid ""
8060 " blockdev-setbsz device blocksize\n"
8061 "\n"
8062 msgstr ""
8063
8064 #. type: textblock
8065 #: ../fish/guestfish-actions.pod:609 ../src/guestfs-actions.pod:883
8066 msgid "This sets the block size of a device."
8067 msgstr ""
8068
8069 #. type: =head2
8070 #: ../fish/guestfish-actions.pod:616
8071 msgid "blockdev-setro"
8072 msgstr ""
8073
8074 #. type: verbatim
8075 #: ../fish/guestfish-actions.pod:618
8076 #, no-wrap
8077 msgid ""
8078 " blockdev-setro device\n"
8079 "\n"
8080 msgstr ""
8081
8082 #. type: textblock
8083 #: ../fish/guestfish-actions.pod:620 ../src/guestfs-actions.pod:900
8084 msgid "Sets the block device named C<device> to read-only."
8085 msgstr ""
8086
8087 #. type: =head2
8088 #: ../fish/guestfish-actions.pod:624
8089 msgid "blockdev-setrw"
8090 msgstr ""
8091
8092 #. type: verbatim
8093 #: ../fish/guestfish-actions.pod:626
8094 #, no-wrap
8095 msgid ""
8096 " blockdev-setrw device\n"
8097 "\n"
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:628 ../src/guestfs-actions.pod:914
8102 msgid "Sets the block device named C<device> to read-write."
8103 msgstr ""
8104
8105 #. type: =head2
8106 #: ../fish/guestfish-actions.pod:632
8107 msgid "btrfs-filesystem-resize"
8108 msgstr ""
8109
8110 #. type: verbatim
8111 #: ../fish/guestfish-actions.pod:634
8112 #, no-wrap
8113 msgid ""
8114 " btrfs-filesystem-resize mountpoint [size:N]\n"
8115 "\n"
8116 msgstr ""
8117
8118 #. type: textblock
8119 #: ../fish/guestfish-actions.pod:636 ../src/guestfs-actions.pod:936
8120 msgid "This command resizes a btrfs filesystem."
8121 msgstr ""
8122
8123 #. type: textblock
8124 #: ../fish/guestfish-actions.pod:638 ../src/guestfs-actions.pod:938
8125 msgid ""
8126 "Note that unlike other resize calls, the filesystem has to be mounted and "
8127 "the parameter is the mountpoint not the device (this is a requirement of "
8128 "btrfs itself)."
8129 msgstr ""
8130
8131 #. type: textblock
8132 #: ../fish/guestfish-actions.pod:642 ../fish/guestfish-actions.pod:3199
8133 #: ../fish/guestfish-actions.pod:3745 ../fish/guestfish-actions.pod:5071
8134 #: ../src/guestfs-actions.pod:942 ../src/guestfs-actions.pod:4935
8135 #: ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:7818
8136 msgid "The optional parameters are:"
8137 msgstr ""
8138
8139 #. type: =item
8140 #: ../fish/guestfish-actions.pod:646 ../fish/guestfish-actions.pod:3749
8141 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:5846
8142 msgid "C<size>"
8143 msgstr "C<розмір>"
8144
8145 #. type: textblock
8146 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:948
8147 msgid ""
8148 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
8149 "resized to the maximum size."
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:953
8154 msgid "See also L<btrfs(8)>."
8155 msgstr "Див. також L<btrfs(8)>."
8156
8157 #. type: =head2
8158 #: ../fish/guestfish-actions.pod:657
8159 msgid "case-sensitive-path"
8160 msgstr ""
8161
8162 #. type: verbatim
8163 #: ../fish/guestfish-actions.pod:659
8164 #, no-wrap
8165 msgid ""
8166 " case-sensitive-path path\n"
8167 "\n"
8168 msgstr ""
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:987
8172 msgid ""
8173 "This can be used to resolve case insensitive paths on a filesystem which is "
8174 "case sensitive.  The use case is to resolve paths which you have read from "
8175 "Windows configuration files or the Windows Registry, to the true path."
8176 msgstr ""
8177
8178 #. type: textblock
8179 #: ../fish/guestfish-actions.pod:666 ../src/guestfs-actions.pod:992
8180 msgid ""
8181 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8182 "(and probably others), which is that although the underlying filesystem is "
8183 "case-insensitive, the driver exports the filesystem to Linux as case-"
8184 "sensitive."
8185 msgstr ""
8186
8187 #. type: textblock
8188 #: ../fish/guestfish-actions.pod:671 ../src/guestfs-actions.pod:997
8189 msgid ""
8190 "One consequence of this is that special directories such as C<c:\\windows> "
8191 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8192 "precise details of how they were created.  In Windows itself this would not "
8193 "be a problem."
8194 msgstr ""
8195
8196 #. type: textblock
8197 #: ../fish/guestfish-actions.pod:677 ../src/guestfs-actions.pod:1003
8198 msgid ""
8199 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8200 "#posixfilenames1>"
8201 msgstr ""
8202
8203 #. type: textblock
8204 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1006
8205 msgid ""
8206 "This function resolves the true case of each element in the path and returns "
8207 "the case-sensitive path."
8208 msgstr ""
8209
8210 #. type: textblock
8211 #: ../fish/guestfish-actions.pod:683
8212 msgid ""
8213 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
8214 "WINDOWS/system32\"> (the exact return value would depend on details of how "
8215 "the directories were originally created under Windows)."
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1014
8220 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8221 msgstr ""
8222
8223 #. type: textblock
8224 #: ../fish/guestfish-actions.pod:691
8225 msgid "See also L</realpath>."
8226 msgstr "Див. також L</realpath>."
8227
8228 #. type: =head2
8229 #: ../fish/guestfish-actions.pod:693
8230 msgid "cat"
8231 msgstr "cat"
8232
8233 #. type: verbatim
8234 #: ../fish/guestfish-actions.pod:695
8235 #, no-wrap
8236 msgid ""
8237 " cat path\n"
8238 "\n"
8239 msgstr ""
8240 " cat шлях\n"
8241 "\n"
8242
8243 #. type: textblock
8244 #: ../fish/guestfish-actions.pod:697 ../fish/guestfish-actions.pod:4176
8245 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:6502
8246 msgid "Return the contents of the file named C<path>."
8247 msgstr ""
8248
8249 #. type: textblock
8250 #: ../fish/guestfish-actions.pod:699
8251 msgid ""
8252 "Note that this function cannot correctly handle binary files (specifically, "
8253 "files containing C<\\0> character which is treated as end of string).  For "
8254 "those you need to use the L</read-file> or L</download> functions which have "
8255 "a more complex interface."
8256 msgstr ""
8257
8258 #. type: textblock
8259 #: ../fish/guestfish-actions.pod:704 ../fish/guestfish-actions.pod:839
8260 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1134
8261 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1211
8262 #: ../fish/guestfish-actions.pod:1221 ../fish/guestfish-actions.pod:1413
8263 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1736
8264 #: ../fish/guestfish-actions.pod:1786 ../fish/guestfish-actions.pod:1801
8265 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1830
8266 #: ../fish/guestfish-actions.pod:4046 ../fish/guestfish-actions.pod:4061
8267 #: ../fish/guestfish-actions.pod:4137 ../fish/guestfish-actions.pod:4154
8268 #: ../fish/guestfish-actions.pod:4169 ../fish/guestfish-actions.pod:4838
8269 #: ../fish/guestfish-actions.pod:4884 ../fish/guestfish-actions.pod:4969
8270 #: ../fish/guestfish-actions.pod:4984 ../fish/guestfish-actions.pod:5469
8271 #: ../fish/guestfish-actions.pod:5481 ../fish/guestfish-actions.pod:5499
8272 #: ../fish/guestfish-actions.pod:5516 ../fish/guestfish-actions.pod:5526
8273 #: ../fish/guestfish-actions.pod:5580 ../fish/guestfish-actions.pod:5590
8274 #: ../fish/guestfish-actions.pod:5619 ../fish/guestfish-actions.pod:5629
8275 #: ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1219
8276 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1894
8277 #: ../src/guestfs-actions.pod:1913 ../src/guestfs-actions.pod:2016
8278 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2281
8279 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2782
8280 #: ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2871
8281 #: ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:2917
8282 #: ../src/guestfs-actions.pod:6284 ../src/guestfs-actions.pod:6310
8283 #: ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6467
8284 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:7446
8285 #: ../src/guestfs-actions.pod:7501 ../src/guestfs-actions.pod:7647
8286 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:8458
8287 #: ../src/guestfs-actions.pod:8478 ../src/guestfs-actions.pod:8511
8288 #: ../src/guestfs-actions.pod:8530 ../src/guestfs-actions.pod:8549
8289 #: ../src/guestfs-actions.pod:8640 ../src/guestfs-actions.pod:8659
8290 #: ../src/guestfs-actions.pod:8705 ../src/guestfs-actions.pod:8724
8291 msgid ""
8292 "Because of the message protocol, there is a transfer limit of somewhere "
8293 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8294 msgstr ""
8295
8296 #. type: =head2
8297 #: ../fish/guestfish-actions.pod:707
8298 msgid "checksum"
8299 msgstr "checksum"
8300
8301 #. type: verbatim
8302 #: ../fish/guestfish-actions.pod:709
8303 #, no-wrap
8304 msgid ""
8305 " checksum csumtype path\n"
8306 "\n"
8307 msgstr ""
8308
8309 #. type: textblock
8310 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1052
8311 msgid ""
8312 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8313 msgstr ""
8314
8315 #. type: textblock
8316 #: ../fish/guestfish-actions.pod:714 ../src/guestfs-actions.pod:1055
8317 msgid ""
8318 "The type of checksum to compute is given by the C<csumtype> parameter which "
8319 "must have one of the following values:"
8320 msgstr ""
8321
8322 #. type: =item
8323 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1060
8324 msgid "C<crc>"
8325 msgstr "C<crc>"
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:721 ../src/guestfs-actions.pod:1062
8329 msgid ""
8330 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8331 "C<cksum> command."
8332 msgstr ""
8333
8334 #. type: =item
8335 #: ../fish/guestfish-actions.pod:724 ../src/guestfs-actions.pod:1065
8336 msgid "C<md5>"
8337 msgstr "C<md5>"
8338
8339 #. type: textblock
8340 #: ../fish/guestfish-actions.pod:726 ../src/guestfs-actions.pod:1067
8341 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8342 msgstr ""
8343
8344 #. type: =item
8345 #: ../fish/guestfish-actions.pod:728 ../src/guestfs-actions.pod:1069
8346 msgid "C<sha1>"
8347 msgstr "C<sha1>"
8348
8349 #. type: textblock
8350 #: ../fish/guestfish-actions.pod:730 ../src/guestfs-actions.pod:1071
8351 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8352 msgstr ""
8353
8354 #. type: =item
8355 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1073
8356 msgid "C<sha224>"
8357 msgstr "C<sha224>"
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1075
8361 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8362 msgstr ""
8363
8364 #. type: =item
8365 #: ../fish/guestfish-actions.pod:736 ../src/guestfs-actions.pod:1077
8366 msgid "C<sha256>"
8367 msgstr "C<sha256>"
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:738 ../src/guestfs-actions.pod:1079
8371 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8372 msgstr ""
8373
8374 #. type: =item
8375 #: ../fish/guestfish-actions.pod:740 ../src/guestfs-actions.pod:1081
8376 msgid "C<sha384>"
8377 msgstr "C<sha384>"
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1083
8381 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8382 msgstr ""
8383
8384 #. type: =item
8385 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1085
8386 msgid "C<sha512>"
8387 msgstr "C<sha512>"
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1087
8391 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:750 ../src/guestfs-actions.pod:1091
8396 msgid "The checksum is returned as a printable string."
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:752
8401 msgid "To get the checksum for a device, use L</checksum-device>."
8402 msgstr ""
8403
8404 #. type: textblock
8405 #: ../fish/guestfish-actions.pod:754
8406 msgid "To get the checksums for many files, use L</checksums-out>."
8407 msgstr ""
8408
8409 #. type: =head2
8410 #: ../fish/guestfish-actions.pod:756
8411 msgid "checksum-device"
8412 msgstr "checksum-device"
8413
8414 #. type: verbatim
8415 #: ../fish/guestfish-actions.pod:758
8416 #, no-wrap
8417 msgid ""
8418 " checksum-device csumtype device\n"
8419 "\n"
8420 msgstr ""
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:760
8424 msgid ""
8425 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8426 "device named C<device>.  For the types of checksums supported see the L</"
8427 "checksum> command."
8428 msgstr ""
8429
8430 #. type: =head2
8431 #: ../fish/guestfish-actions.pod:764
8432 msgid "checksums-out"
8433 msgstr ""
8434
8435 #. type: verbatim
8436 #: ../fish/guestfish-actions.pod:766
8437 #, no-wrap
8438 msgid ""
8439 " checksums-out csumtype directory (sumsfile|-)\n"
8440 "\n"
8441 msgstr ""
8442
8443 #. type: textblock
8444 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1126
8445 msgid ""
8446 "This command computes the checksums of all regular files in C<directory> and "
8447 "then emits a list of those checksums to the local output file C<sumsfile>."
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:772 ../src/guestfs-actions.pod:1130
8452 msgid ""
8453 "This can be used for verifying the integrity of a virtual machine.  However "
8454 "to be properly secure you should pay attention to the output of the checksum "
8455 "command (it uses the ones from GNU coreutils).  In particular when the "
8456 "filename is not printable, coreutils uses a special backslash syntax.  For "
8457 "more information, see the GNU coreutils info file."
8458 msgstr ""
8459
8460 #. type: =head2
8461 #: ../fish/guestfish-actions.pod:782
8462 msgid "chmod"
8463 msgstr "chmod"
8464
8465 #. type: verbatim
8466 #: ../fish/guestfish-actions.pod:784
8467 #, no-wrap
8468 msgid ""
8469 " chmod mode path\n"
8470 "\n"
8471 msgstr ""
8472
8473 #. type: textblock
8474 #: ../fish/guestfish-actions.pod:786 ../src/guestfs-actions.pod:1149
8475 msgid ""
8476 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8477 "supported."
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1152
8482 msgid ""
8483 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8484 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8485 "C<700>."
8486 msgstr ""
8487
8488 #. type: textblock
8489 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:3398
8490 #: ../fish/guestfish-actions.pod:3537 ../fish/guestfish-actions.pod:3547
8491 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:1156
8492 #: ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5458
8493 #: ../src/guestfs-actions.pod:5477 ../src/guestfs-actions.pod:5496
8494 msgid "The mode actually set is affected by the umask."
8495 msgstr ""
8496
8497 #. type: =head2
8498 #: ../fish/guestfish-actions.pod:795
8499 msgid "chown"
8500 msgstr "chown"
8501
8502 #. type: verbatim
8503 #: ../fish/guestfish-actions.pod:797
8504 #, no-wrap
8505 msgid ""
8506 " chown owner group path\n"
8507 "\n"
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1170
8512 msgid "Change the file owner to C<owner> and group to C<group>."
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:801 ../fish/guestfish-actions.pod:2738
8517 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:4167
8518 msgid ""
8519 "Only numeric uid and gid are supported.  If you want to use names, you will "
8520 "need to locate and parse the password file yourself (Augeas support makes "
8521 "this relatively easy)."
8522 msgstr ""
8523
8524 #. type: =head2
8525 #: ../fish/guestfish-actions.pod:805
8526 msgid "command"
8527 msgstr "command"
8528
8529 #. type: verbatim
8530 #: ../fish/guestfish-actions.pod:807
8531 #, no-wrap
8532 msgid ""
8533 " command 'arguments ...'\n"
8534 "\n"
8535 msgstr ""
8536 " command 'параметри...'\n"
8537 "\n"
8538
8539 #. type: textblock
8540 #: ../fish/guestfish-actions.pod:809 ../src/guestfs-actions.pod:1186
8541 msgid ""
8542 "This call runs a command from the guest filesystem.  The filesystem must be "
8543 "mounted, and must contain a compatible operating system (ie. something "
8544 "Linux, with the same or compatible processor architecture)."
8545 msgstr ""
8546
8547 #. type: textblock
8548 #: ../fish/guestfish-actions.pod:814
8549 msgid ""
8550 "The single parameter is an argv-style list of arguments.  The first element "
8551 "is the name of the program to run.  Subsequent elements are parameters.  The "
8552 "list must be non-empty (ie. must contain a program name).  Note that the "
8553 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8554 msgstr ""
8555
8556 #. type: textblock
8557 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1198
8558 msgid "The return value is anything printed to I<stdout> by the command."
8559 msgstr ""
8560
8561 #. type: textblock
8562 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1201
8563 msgid ""
8564 "If the command returns a non-zero exit status, then this function returns an "
8565 "error message.  The error message string is the content of I<stderr> from "
8566 "the command."
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:828 ../src/guestfs-actions.pod:1205
8571 msgid ""
8572 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8573 "bin>.  If you require a program from another location, you should provide "
8574 "the full path in the first parameter."
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:833 ../src/guestfs-actions.pod:1210
8579 msgid ""
8580 "Shared libraries and data files required by the program must be available on "
8581 "filesystems which are mounted in the correct places.  It is the caller's "
8582 "responsibility to ensure all filesystems that are needed are mounted at the "
8583 "right locations."
8584 msgstr ""
8585
8586 #. type: =head2
8587 #: ../fish/guestfish-actions.pod:842
8588 msgid "command-lines"
8589 msgstr ""
8590
8591 #. type: verbatim
8592 #: ../fish/guestfish-actions.pod:844
8593 #, no-wrap
8594 msgid ""
8595 " command-lines 'arguments ...'\n"
8596 "\n"
8597 msgstr ""
8598
8599 #. type: textblock
8600 #: ../fish/guestfish-actions.pod:846
8601 msgid ""
8602 "This is the same as L</command>, but splits the result into a list of lines."
8603 msgstr ""
8604
8605 #. type: textblock
8606 #: ../fish/guestfish-actions.pod:849
8607 msgid "See also: L</sh-lines>"
8608 msgstr "Див. також L</sh-lines>"
8609
8610 #. type: =head2
8611 #: ../fish/guestfish-actions.pod:854
8612 msgid "compress-device-out"
8613 msgstr ""
8614
8615 #. type: verbatim
8616 #: ../fish/guestfish-actions.pod:856
8617 #, no-wrap
8618 msgid ""
8619 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8620 "\n"
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:858 ../src/guestfs-actions.pod:1260
8625 msgid ""
8626 "This command compresses C<device> and writes it out to the local file "
8627 "C<zdevice>."
8628 msgstr ""
8629
8630 #. type: textblock
8631 #: ../fish/guestfish-actions.pod:861
8632 msgid ""
8633 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8634 "compress-out>."
8635 msgstr ""
8636
8637 #. type: =head2
8638 #: ../fish/guestfish-actions.pod:868
8639 msgid "compress-out"
8640 msgstr ""
8641
8642 #. type: verbatim
8643 #: ../fish/guestfish-actions.pod:870
8644 #, no-wrap
8645 msgid ""
8646 " compress-out ctype file (zfile|-) [level:N]\n"
8647 "\n"
8648 msgstr ""
8649
8650 #. type: textblock
8651 #: ../fish/guestfish-actions.pod:872 ../src/guestfs-actions.pod:1312
8652 msgid ""
8653 "This command compresses C<file> and writes it out to the local file C<zfile>."
8654 msgstr ""
8655
8656 #. type: textblock
8657 #: ../fish/guestfish-actions.pod:875 ../src/guestfs-actions.pod:1315
8658 msgid ""
8659 "The compression program used is controlled by the C<ctype> parameter.  "
8660 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8661 "Some compression types may not be supported by particular builds of "
8662 "libguestfs, in which case you will get an error containing the substring "
8663 "\"not supported\"."
8664 msgstr ""
8665
8666 #. type: textblock
8667 #: ../fish/guestfish-actions.pod:881 ../src/guestfs-actions.pod:1321
8668 msgid ""
8669 "The optional C<level> parameter controls compression level.  The meaning and "
8670 "default for this parameter depends on the compression program being used."
8671 msgstr ""
8672
8673 #. type: =head2
8674 #: ../fish/guestfish-actions.pod:889
8675 msgid "config"
8676 msgstr ""
8677
8678 #. type: verbatim
8679 #: ../fish/guestfish-actions.pod:891
8680 #, no-wrap
8681 msgid ""
8682 " config qemuparam qemuvalue\n"
8683 "\n"
8684 msgstr ""
8685
8686 #. type: textblock
8687 #: ../fish/guestfish-actions.pod:893 ../src/guestfs-actions.pod:1362
8688 msgid ""
8689 "This can be used to add arbitrary qemu command line parameters of the form "
8690 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8691 "setting some parameters which would interfere with parameters that we use."
8692 msgstr ""
8693
8694 #. type: textblock
8695 #: ../fish/guestfish-actions.pod:898 ../src/guestfs-actions.pod:1367
8696 msgid "The first character of C<param> string must be a C<-> (dash)."
8697 msgstr ""
8698
8699 #. type: textblock
8700 #: ../fish/guestfish-actions.pod:900 ../src/guestfs-actions.pod:1369
8701 msgid "C<value> can be NULL."
8702 msgstr ""
8703
8704 #. type: =head2
8705 #: ../fish/guestfish-actions.pod:902
8706 msgid "copy-device-to-device"
8707 msgstr ""
8708
8709 #. type: verbatim
8710 #: ../fish/guestfish-actions.pod:904
8711 #, no-wrap
8712 msgid ""
8713 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8714 "\n"
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:906
8719 msgid ""
8720 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8721 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8722 "(device|file) to a destination (device|file)."
8723 msgstr ""
8724
8725 #. type: textblock
8726 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1399
8727 msgid ""
8728 "Partial copies can be made since you can specify optionally the source "
8729 "offset, destination offset and size to copy.  These values are all specified "
8730 "in bytes.  If not given, the offsets both default to zero, and the size "
8731 "defaults to copying as much as possible until we hit the end of the source."
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../fish/guestfish-actions.pod:919 ../src/guestfs-actions.pod:1405
8736 msgid ""
8737 "The source and destination may be the same object.  However overlapping "
8738 "regions may not be copied correctly."
8739 msgstr ""
8740
8741 #. type: textblock
8742 #: ../fish/guestfish-actions.pod:922 ../src/guestfs-actions.pod:1408
8743 msgid ""
8744 "If the destination is a file, it is created if required.  If the destination "
8745 "file is not large enough, it is extended."
8746 msgstr ""
8747
8748 #. type: =head2
8749 #: ../fish/guestfish-actions.pod:927
8750 msgid "copy-device-to-file"
8751 msgstr ""
8752
8753 #. type: verbatim
8754 #: ../fish/guestfish-actions.pod:929
8755 #, no-wrap
8756 msgid ""
8757 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8758 "\n"
8759 msgstr ""
8760
8761 #. type: textblock
8762 #: ../fish/guestfish-actions.pod:931 ../fish/guestfish-actions.pod:940
8763 #: ../fish/guestfish-actions.pod:949
8764 msgid "See L</copy-device-to-device> for a general overview of this call."
8765 msgstr ""
8766
8767 #. type: =head2
8768 #: ../fish/guestfish-actions.pod:936
8769 msgid "copy-file-to-device"
8770 msgstr ""
8771
8772 #. type: verbatim
8773 #: ../fish/guestfish-actions.pod:938
8774 #, no-wrap
8775 msgid ""
8776 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8777 "\n"
8778 msgstr ""
8779
8780 #. type: =head2
8781 #: ../fish/guestfish-actions.pod:945
8782 msgid "copy-file-to-file"
8783 msgstr ""
8784
8785 #. type: verbatim
8786 #: ../fish/guestfish-actions.pod:947
8787 #, no-wrap
8788 msgid ""
8789 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8790 "\n"
8791 msgstr ""
8792
8793 #. type: textblock
8794 #: ../fish/guestfish-actions.pod:952
8795 msgid ""
8796 "This is B<not> the function you want for copying files.  This is for copying "
8797 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
8798 "file copying and moving functions."
8799 msgstr ""
8800
8801 #. type: =head2
8802 #: ../fish/guestfish-actions.pod:959
8803 msgid "copy-size"
8804 msgstr ""
8805
8806 #. type: verbatim
8807 #: ../fish/guestfish-actions.pod:961
8808 #, no-wrap
8809 msgid ""
8810 " copy-size src dest size\n"
8811 "\n"
8812 msgstr ""
8813
8814 #. type: textblock
8815 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1623
8816 msgid ""
8817 "This command copies exactly C<size> bytes from one source device or file "
8818 "C<src> to another destination device or file C<dest>."
8819 msgstr ""
8820
8821 #. type: textblock
8822 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1626
8823 msgid ""
8824 "Note this will fail if the source is too short or if the destination is not "
8825 "large enough."
8826 msgstr ""
8827
8828 #. type: textblock
8829 #: ../fish/guestfish-actions.pod:969 ../fish/guestfish-actions.pod:1004
8830 msgid ""
8831 "I<This function is deprecated.> In new code, use the L</"
8832 "copy_device_to_device> call instead."
8833 msgstr ""
8834
8835 #. type: =head2
8836 #: ../fish/guestfish-actions.pod:976
8837 msgid "cp"
8838 msgstr "cp"
8839
8840 #. type: verbatim
8841 #: ../fish/guestfish-actions.pod:978
8842 #, no-wrap
8843 msgid ""
8844 " cp src dest\n"
8845 "\n"
8846 msgstr ""
8847
8848 #. type: textblock
8849 #: ../fish/guestfish-actions.pod:980 ../src/guestfs-actions.pod:1645
8850 msgid ""
8851 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8852 "destination filename or destination directory."
8853 msgstr ""
8854
8855 #. type: =head2
8856 #: ../fish/guestfish-actions.pod:983
8857 msgid "cp-a"
8858 msgstr "cp-a"
8859
8860 #. type: verbatim
8861 #: ../fish/guestfish-actions.pod:985
8862 #, no-wrap
8863 msgid ""
8864 " cp-a src dest\n"
8865 "\n"
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1659
8870 msgid ""
8871 "This copies a file or directory from C<src> to C<dest> recursively using the "
8872 "C<cp -a> command."
8873 msgstr ""
8874
8875 #. type: =head2
8876 #: ../fish/guestfish-actions.pod:990
8877 msgid "dd"
8878 msgstr "dd"
8879
8880 #. type: verbatim
8881 #: ../fish/guestfish-actions.pod:992
8882 #, no-wrap
8883 msgid ""
8884 " dd src dest\n"
8885 "\n"
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1680
8890 msgid ""
8891 "This command copies from one source device or file C<src> to another "
8892 "destination device or file C<dest>.  Normally you would use this to copy to "
8893 "or from a device or partition, for example to duplicate a filesystem."
8894 msgstr ""
8895
8896 #. type: textblock
8897 #: ../fish/guestfish-actions.pod:999
8898 msgid ""
8899 "If the destination is a device, it must be as large or larger than the "
8900 "source file or device, otherwise the copy will fail.  This command cannot do "
8901 "partial copies (see L</copy-device-to-device>)."
8902 msgstr ""
8903
8904 #. type: =head2
8905 #: ../fish/guestfish-actions.pod:1011
8906 msgid "df"
8907 msgstr "df"
8908
8909 #. type: verbatim
8910 #: ../fish/guestfish-actions.pod:1013
8911 #, no-wrap
8912 msgid ""
8913 " df\n"
8914 "\n"
8915 msgstr ""
8916 " df\n"
8917 "\n"
8918
8919 #. type: textblock
8920 #: ../fish/guestfish-actions.pod:1015 ../src/guestfs-actions.pod:1699
8921 msgid "This command runs the C<df> command to report disk space used."
8922 msgstr ""
8923
8924 #. type: textblock
8925 #: ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1028
8926 msgid ""
8927 "This command is mostly useful for interactive sessions.  It is I<not> "
8928 "intended that you try to parse the output string.  Use L</statvfs> from "
8929 "programs."
8930 msgstr ""
8931
8932 #. type: =head2
8933 #: ../fish/guestfish-actions.pod:1021
8934 msgid "df-h"
8935 msgstr "df-h"
8936
8937 #. type: verbatim
8938 #: ../fish/guestfish-actions.pod:1023
8939 #, no-wrap
8940 msgid ""
8941 " df-h\n"
8942 "\n"
8943 msgstr ""
8944 " df-h\n"
8945 "\n"
8946
8947 #. type: textblock
8948 #: ../fish/guestfish-actions.pod:1025 ../src/guestfs-actions.pod:1715
8949 msgid ""
8950 "This command runs the C<df -h> command to report disk space used in human-"
8951 "readable format."
8952 msgstr ""
8953
8954 #. type: =head2
8955 #: ../fish/guestfish-actions.pod:1032
8956 msgid "dmesg"
8957 msgstr "dmesg"
8958
8959 #. type: verbatim
8960 #: ../fish/guestfish-actions.pod:1034
8961 #, no-wrap
8962 msgid ""
8963 " dmesg\n"
8964 "\n"
8965 msgstr ""
8966 " dmesg\n"
8967 "\n"
8968
8969 #. type: textblock
8970 #: ../fish/guestfish-actions.pod:1036 ../src/guestfs-actions.pod:1732
8971 msgid ""
8972 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8973 "This is sometimes useful for extended debugging of problems."
8974 msgstr ""
8975
8976 #. type: textblock
8977 #: ../fish/guestfish-actions.pod:1040
8978 msgid ""
8979 "Another way to get the same information is to enable verbose messages with "
8980 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8981 "before running the program."
8982 msgstr ""
8983
8984 #. type: =head2
8985 #: ../fish/guestfish-actions.pod:1045
8986 msgid "download"
8987 msgstr "download"
8988
8989 #. type: verbatim
8990 #: ../fish/guestfish-actions.pod:1047
8991 #, no-wrap
8992 msgid ""
8993 " download remotefilename (filename|-)\n"
8994 "\n"
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:1049 ../fish/guestfish-actions.pod:1062
8999 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:1778
9000 msgid ""
9001 "Download file C<remotefilename> and save it as C<filename> on the local "
9002 "machine."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:1052 ../fish/guestfish-actions.pod:5221
9007 #: ../src/guestfs-actions.pod:1756 ../src/guestfs-actions.pod:8028
9008 msgid "C<filename> can also be a named pipe."
9009 msgstr ""
9010
9011 #. type: textblock
9012 #: ../fish/guestfish-actions.pod:1054
9013 msgid "See also L</upload>, L</cat>."
9014 msgstr ""
9015
9016 #. type: =head2
9017 #: ../fish/guestfish-actions.pod:1058
9018 msgid "download-offset"
9019 msgstr "download-offset"
9020
9021 #. type: verbatim
9022 #: ../fish/guestfish-actions.pod:1060
9023 #, no-wrap
9024 msgid ""
9025 " download-offset remotefilename (filename|-) offset size\n"
9026 "\n"
9027 msgstr ""
9028
9029 #. type: textblock
9030 #: ../fish/guestfish-actions.pod:1065 ../src/guestfs-actions.pod:1781
9031 msgid ""
9032 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
9033 "region must be within the file or device)."
9034 msgstr ""
9035
9036 #. type: textblock
9037 #: ../fish/guestfish-actions.pod:1068
9038 msgid ""
9039 "Note that there is no limit on the amount of data that can be downloaded "
9040 "with this call, unlike with L</pread>, and this call always reads the full "
9041 "amount unless an error occurs."
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:1073
9046 msgid "See also L</download>, L</pread>."
9047 msgstr ""
9048
9049 #. type: =head2
9050 #: ../fish/guestfish-actions.pod:1077
9051 msgid "drop-caches"
9052 msgstr ""
9053
9054 #. type: verbatim
9055 #: ../fish/guestfish-actions.pod:1079
9056 #, no-wrap
9057 msgid ""
9058 " drop-caches whattodrop\n"
9059 "\n"
9060 msgstr ""
9061
9062 #. type: textblock
9063 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1806
9064 msgid ""
9065 "This instructs the guest kernel to drop its page cache, and/or dentries and "
9066 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
9067 "to drop, see L<http://linux-mm.org/Drop_Caches>"
9068 msgstr ""
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1811
9072 msgid "Setting C<whattodrop> to 3 should drop everything."
9073 msgstr ""
9074
9075 #. type: textblock
9076 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1813
9077 msgid ""
9078 "This automatically calls L<sync(2)> before the operation, so that the "
9079 "maximum guest memory is freed."
9080 msgstr ""
9081
9082 #. type: =head2
9083 #: ../fish/guestfish-actions.pod:1091
9084 msgid "du"
9085 msgstr "du"
9086
9087 #. type: verbatim
9088 #: ../fish/guestfish-actions.pod:1093
9089 #, no-wrap
9090 msgid ""
9091 " du path\n"
9092 "\n"
9093 msgstr ""
9094 " du шлях\n"
9095 "\n"
9096
9097 #. type: textblock
9098 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1826
9099 msgid ""
9100 "This command runs the C<du -s> command to estimate file space usage for "
9101 "C<path>."
9102 msgstr ""
9103
9104 #. type: textblock
9105 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1829
9106 msgid ""
9107 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9108 "estimate includes the contents of the directory and all subdirectories "
9109 "(recursively)."
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1833
9114 msgid ""
9115 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9116 msgstr ""
9117
9118 #. type: =head2
9119 #: ../fish/guestfish-actions.pod:1105
9120 msgid "e2fsck-f"
9121 msgstr "e2fsck-f"
9122
9123 #. type: verbatim
9124 #: ../fish/guestfish-actions.pod:1107
9125 #, no-wrap
9126 msgid ""
9127 " e2fsck-f device\n"
9128 "\n"
9129 msgstr ""
9130
9131 #. type: textblock
9132 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1851
9133 msgid ""
9134 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9135 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9136 "clean (I<-f>)."
9137 msgstr ""
9138
9139 #. type: textblock
9140 #: ../fish/guestfish-actions.pod:1113
9141 msgid ""
9142 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
9143 "should use L</fsck>."
9144 msgstr ""
9145
9146 #. type: =head2
9147 #: ../fish/guestfish-actions.pod:1116
9148 msgid "echo-daemon"
9149 msgstr ""
9150
9151 #. type: verbatim
9152 #: ../fish/guestfish-actions.pod:1118
9153 #, no-wrap
9154 msgid ""
9155 " echo-daemon 'words ...'\n"
9156 "\n"
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1868
9161 msgid ""
9162 "This command concatenates the list of C<words> passed with single spaces "
9163 "between them and returns the resulting string."
9164 msgstr ""
9165
9166 #. type: textblock
9167 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1871
9168 msgid "You can use this command to test the connection through to the daemon."
9169 msgstr ""
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:1125
9173 msgid "See also L</ping-daemon>."
9174 msgstr "Див. також L</ping-daemon>."
9175
9176 #. type: =head2
9177 #: ../fish/guestfish-actions.pod:1127
9178 msgid "egrep"
9179 msgstr "egrep"
9180
9181 #. type: verbatim
9182 #: ../fish/guestfish-actions.pod:1129
9183 #, no-wrap
9184 msgid ""
9185 " egrep regex path\n"
9186 "\n"
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1887
9191 msgid ""
9192 "This calls the external C<egrep> program and returns the matching lines."
9193 msgstr ""
9194
9195 #. type: =head2
9196 #: ../fish/guestfish-actions.pod:1137
9197 msgid "egrepi"
9198 msgstr "egrepi"
9199
9200 #. type: verbatim
9201 #: ../fish/guestfish-actions.pod:1139
9202 #, no-wrap
9203 msgid ""
9204 " egrepi regex path\n"
9205 "\n"
9206 msgstr ""
9207
9208 #. type: textblock
9209 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1906
9210 msgid ""
9211 "This calls the external C<egrep -i> program and returns the matching lines."
9212 msgstr ""
9213
9214 #. type: =head2
9215 #: ../fish/guestfish-actions.pod:1147
9216 msgid "equal"
9217 msgstr "equal"
9218
9219 #. type: verbatim
9220 #: ../fish/guestfish-actions.pod:1149
9221 #, no-wrap
9222 msgid ""
9223 " equal file1 file2\n"
9224 "\n"
9225 msgstr ""
9226 " equal файл1 файл2\n"
9227 "\n"
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1925
9231 msgid ""
9232 "This compares the two files C<file1> and C<file2> and returns true if their "
9233 "content is exactly equal, or false otherwise."
9234 msgstr ""
9235
9236 #. type: textblock
9237 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1928
9238 msgid "The external L<cmp(1)> program is used for the comparison."
9239 msgstr ""
9240
9241 #. type: =head2
9242 #: ../fish/guestfish-actions.pod:1156
9243 msgid "exists"
9244 msgstr "exists"
9245
9246 #. type: verbatim
9247 #: ../fish/guestfish-actions.pod:1158
9248 #, no-wrap
9249 msgid ""
9250 " exists path\n"
9251 "\n"
9252 msgstr ""
9253 " exists шлях\n"
9254 "\n"
9255
9256 #. type: textblock
9257 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1940
9258 msgid ""
9259 "This returns C<true> if and only if there is a file, directory (or anything) "
9260 "with the given C<path> name."
9261 msgstr ""
9262
9263 #. type: textblock
9264 #: ../fish/guestfish-actions.pod:1163
9265 msgid "See also L</is-file>, L</is-dir>, L</stat>."
9266 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
9267
9268 #. type: =head2
9269 #: ../fish/guestfish-actions.pod:1165
9270 msgid "fallocate"
9271 msgstr "fallocate"
9272
9273 #. type: verbatim
9274 #: ../fish/guestfish-actions.pod:1167
9275 #, no-wrap
9276 msgid ""
9277 " fallocate path len\n"
9278 "\n"
9279 msgstr ""
9280 " fallocate шлях довжина\n"
9281 "\n"
9282
9283 #. type: textblock
9284 #: ../fish/guestfish-actions.pod:1169 ../fish/guestfish-actions.pod:1188
9285 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:1982
9286 msgid ""
9287 "This command preallocates a file (containing zero bytes) named C<path> of "
9288 "size C<len> bytes.  If the file exists already, it is overwritten."
9289 msgstr ""
9290
9291 #. type: textblock
9292 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1967
9293 msgid ""
9294 "Do not confuse this with the guestfish-specific C<alloc> command which "
9295 "allocates a file in the host and attaches it as a device."
9296 msgstr ""
9297
9298 #. type: textblock
9299 #: ../fish/guestfish-actions.pod:1177
9300 msgid ""
9301 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
9302 "instead."
9303 msgstr ""
9304
9305 #. type: =head2
9306 #: ../fish/guestfish-actions.pod:1184
9307 msgid "fallocate64"
9308 msgstr "fallocate64"
9309
9310 #. type: verbatim
9311 #: ../fish/guestfish-actions.pod:1186
9312 #, no-wrap
9313 msgid ""
9314 " fallocate64 path len\n"
9315 "\n"
9316 msgstr ""
9317 " fallocate64 шлях довжина\n"
9318 "\n"
9319
9320 #. type: textblock
9321 #: ../fish/guestfish-actions.pod:1192
9322 msgid ""
9323 "Note that this call allocates disk blocks for the file.  To create a sparse "
9324 "file use L</truncate-size> instead."
9325 msgstr ""
9326
9327 #. type: textblock
9328 #: ../fish/guestfish-actions.pod:1195
9329 msgid ""
9330 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9331 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9332 "maximum size of files created through that call to 1GB."
9333 msgstr ""
9334
9335 #. type: textblock
9336 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1994
9337 msgid ""
9338 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9339 "commands which create a file in the host and attach it as a device."
9340 msgstr ""
9341
9342 #. type: =head2
9343 #: ../fish/guestfish-actions.pod:1204
9344 msgid "fgrep"
9345 msgstr "fgrep"
9346
9347 #. type: verbatim
9348 #: ../fish/guestfish-actions.pod:1206
9349 #, no-wrap
9350 msgid ""
9351 " fgrep pattern path\n"
9352 "\n"
9353 msgstr ""
9354 " fgrep шаблон шлях\n"
9355 "\n"
9356
9357 #. type: textblock
9358 #: ../fish/guestfish-actions.pod:1208 ../src/guestfs-actions.pod:2009
9359 msgid ""
9360 "This calls the external C<fgrep> program and returns the matching lines."
9361 msgstr ""
9362
9363 #. type: =head2
9364 #: ../fish/guestfish-actions.pod:1214
9365 msgid "fgrepi"
9366 msgstr "fgrepi"
9367
9368 #. type: verbatim
9369 #: ../fish/guestfish-actions.pod:1216
9370 #, no-wrap
9371 msgid ""
9372 " fgrepi pattern path\n"
9373 "\n"
9374 msgstr ""
9375 " fgrepi шаблон шлях\n"
9376 "\n"
9377
9378 #. type: textblock
9379 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2028
9380 msgid ""
9381 "This calls the external C<fgrep -i> program and returns the matching lines."
9382 msgstr ""
9383
9384 #. type: =head2
9385 #: ../fish/guestfish-actions.pod:1224
9386 msgid "file"
9387 msgstr "file"
9388
9389 #. type: verbatim
9390 #: ../fish/guestfish-actions.pod:1226
9391 #, no-wrap
9392 msgid ""
9393 " file path\n"
9394 "\n"
9395 msgstr ""
9396 " file шлях\n"
9397 "\n"
9398
9399 #. type: textblock
9400 #: ../fish/guestfish-actions.pod:1228 ../src/guestfs-actions.pod:2046
9401 msgid ""
9402 "This call uses the standard L<file(1)> command to determine the type or "
9403 "contents of the file."
9404 msgstr ""
9405
9406 #. type: textblock
9407 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:2049
9408 msgid ""
9409 "This call will also transparently look inside various types of compressed "
9410 "file."
9411 msgstr ""
9412
9413 #. type: textblock
9414 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2052
9415 msgid ""
9416 "The exact command which runs is C<file -zb path>.  Note in particular that "
9417 "the filename is not prepended to the output (the I<-b> option)."
9418 msgstr ""
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2056
9422 msgid ""
9423 "The output depends on the output of the underlying L<file(1)> command and it "
9424 "can change in future in ways beyond our control.  In other words, the output "
9425 "is not guaranteed by the ABI."
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:1242
9430 msgid ""
9431 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9432 "(etc), L</is-zero>."
9433 msgstr ""
9434
9435 #. type: =head2
9436 #: ../fish/guestfish-actions.pod:1245
9437 msgid "file-architecture"
9438 msgstr "file-architecture"
9439
9440 #. type: verbatim
9441 #: ../fish/guestfish-actions.pod:1247
9442 #, no-wrap
9443 msgid ""
9444 " file-architecture filename\n"
9445 "\n"
9446 msgstr ""
9447 " file-architecture назва_файла\n"
9448 "\n"
9449
9450 #. type: textblock
9451 #: ../fish/guestfish-actions.pod:1249 ../src/guestfs-actions.pod:2074
9452 msgid ""
9453 "This detects the architecture of the binary C<filename>, and returns it if "
9454 "known."
9455 msgstr ""
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2077
9459 msgid "Currently defined architectures are:"
9460 msgstr ""
9461
9462 #. type: =item
9463 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2081
9464 msgid "\"i386\""
9465 msgstr "\"i386\""
9466
9467 #. type: textblock
9468 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2083
9469 msgid ""
9470 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9471 "irrespective of the precise processor requirements of the binary."
9472 msgstr ""
9473
9474 #. type: =item
9475 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:2086
9476 msgid "\"x86_64\""
9477 msgstr "\"x86_64\""
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:1263 ../src/guestfs-actions.pod:2088
9481 msgid "64 bit x86-64."
9482 msgstr ""
9483
9484 #. type: =item
9485 #: ../fish/guestfish-actions.pod:1265 ../src/guestfs-actions.pod:2090
9486 msgid "\"sparc\""
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../fish/guestfish-actions.pod:1267 ../src/guestfs-actions.pod:2092
9491 msgid "32 bit SPARC."
9492 msgstr ""
9493
9494 #. type: =item
9495 #: ../fish/guestfish-actions.pod:1269 ../src/guestfs-actions.pod:2094
9496 msgid "\"sparc64\""
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:2096
9501 msgid "64 bit SPARC V9 and above."
9502 msgstr ""
9503
9504 #. type: =item
9505 #: ../fish/guestfish-actions.pod:1273 ../src/guestfs-actions.pod:2098
9506 msgid "\"ia64\""
9507 msgstr "\"ia64\""
9508
9509 #. type: textblock
9510 #: ../fish/guestfish-actions.pod:1275 ../src/guestfs-actions.pod:2100
9511 msgid "Intel Itanium."
9512 msgstr "Intel Itanium."
9513
9514 #. type: =item
9515 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:2102
9516 msgid "\"ppc\""
9517 msgstr ""
9518
9519 #. type: textblock
9520 #: ../fish/guestfish-actions.pod:1279 ../src/guestfs-actions.pod:2104
9521 msgid "32 bit Power PC."
9522 msgstr ""
9523
9524 #. type: =item
9525 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:2106
9526 msgid "\"ppc64\""
9527 msgstr ""
9528
9529 #. type: textblock
9530 #: ../fish/guestfish-actions.pod:1283 ../src/guestfs-actions.pod:2108
9531 msgid "64 bit Power PC."
9532 msgstr ""
9533
9534 #. type: textblock
9535 #: ../fish/guestfish-actions.pod:1287 ../src/guestfs-actions.pod:2112
9536 msgid "Libguestfs may return other architecture strings in future."
9537 msgstr ""
9538
9539 #. type: textblock
9540 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:2114
9541 msgid "The function works on at least the following types of files:"
9542 msgstr ""
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:1295 ../src/guestfs-actions.pod:2120
9546 msgid "many types of Un*x and Linux binary"
9547 msgstr ""
9548
9549 #. type: textblock
9550 #: ../fish/guestfish-actions.pod:1299 ../src/guestfs-actions.pod:2124
9551 msgid "many types of Un*x and Linux shared library"
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../fish/guestfish-actions.pod:1303 ../src/guestfs-actions.pod:2128
9556 msgid "Windows Win32 and Win64 binaries"
9557 msgstr ""
9558
9559 #. type: textblock
9560 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:2132
9561 msgid "Windows Win32 and Win64 DLLs"
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:1309 ../src/guestfs-actions.pod:2134
9566 msgid "Win32 binaries and DLLs return C<i386>."
9567 msgstr ""
9568
9569 #. type: textblock
9570 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2136
9571 msgid "Win64 binaries and DLLs return C<x86_64>."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:1315 ../src/guestfs-actions.pod:2140
9576 msgid "Linux kernel modules"
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:1319 ../src/guestfs-actions.pod:2144
9581 msgid "Linux new-style initrd images"
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2148
9586 msgid "some non-x86 Linux vmlinuz kernels"
9587 msgstr ""
9588
9589 #. type: textblock
9590 #: ../fish/guestfish-actions.pod:1327 ../src/guestfs-actions.pod:2152
9591 msgid "What it can't do currently:"
9592 msgstr ""
9593
9594 #. type: textblock
9595 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2158
9596 msgid "static libraries (libfoo.a)"
9597 msgstr ""
9598
9599 #. type: textblock
9600 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2162
9601 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:1341 ../src/guestfs-actions.pod:2166
9606 msgid "x86 Linux vmlinuz kernels"
9607 msgstr ""
9608
9609 #. type: textblock
9610 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2168
9611 msgid ""
9612 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9613 "compressed code, and are horribly hard to unpack.  If you want to find the "
9614 "architecture of a kernel, use the architecture of the associated initrd or "
9615 "kernel module(s) instead."
9616 msgstr ""
9617
9618 #. type: =head2
9619 #: ../fish/guestfish-actions.pod:1350
9620 msgid "filesize"
9621 msgstr "filesize"
9622
9623 #. type: verbatim
9624 #: ../fish/guestfish-actions.pod:1352
9625 #, no-wrap
9626 msgid ""
9627 " filesize file\n"
9628 "\n"
9629 msgstr ""
9630 " filesize файл\n"
9631 "\n"
9632
9633 #. type: textblock
9634 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2186
9635 msgid "This command returns the size of C<file> in bytes."
9636 msgstr ""
9637
9638 #. type: textblock
9639 #: ../fish/guestfish-actions.pod:1356
9640 msgid ""
9641 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9642 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
9643 msgstr ""
9644
9645 #. type: =head2
9646 #: ../fish/guestfish-actions.pod:1360
9647 msgid "fill"
9648 msgstr "fill"
9649
9650 #. type: verbatim
9651 #: ../fish/guestfish-actions.pod:1362
9652 #, no-wrap
9653 msgid ""
9654 " fill c len path\n"
9655 "\n"
9656 msgstr ""
9657
9658 #. type: textblock
9659 #: ../fish/guestfish-actions.pod:1364 ../src/guestfs-actions.pod:2204
9660 msgid ""
9661 "This command creates a new file called C<path>.  The initial content of the "
9662 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9663 "[0..255]>."
9664 msgstr ""
9665
9666 #. type: textblock
9667 #: ../fish/guestfish-actions.pod:1368
9668 msgid ""
9669 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9670 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
9671 "L</fill-pattern>."
9672 msgstr ""
9673
9674 #. type: =head2
9675 #: ../fish/guestfish-actions.pod:1373
9676 msgid "fill-pattern"
9677 msgstr "fill-pattern"
9678
9679 #. type: verbatim
9680 #: ../fish/guestfish-actions.pod:1375
9681 #, no-wrap
9682 msgid ""
9683 " fill-pattern pattern len path\n"
9684 "\n"
9685 msgstr ""
9686
9687 #. type: textblock
9688 #: ../fish/guestfish-actions.pod:1377
9689 msgid ""
9690 "This function is like L</fill> except that it creates a new file of length "
9691 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
9692 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9693 "bytes."
9694 msgstr ""
9695
9696 #. type: =head2
9697 #: ../fish/guestfish-actions.pod:1382
9698 msgid "find"
9699 msgstr "find"
9700
9701 #. type: verbatim
9702 #: ../fish/guestfish-actions.pod:1384
9703 #, no-wrap
9704 msgid ""
9705 " find directory\n"
9706 "\n"
9707 msgstr ""
9708 " find каталог\n"
9709 "\n"
9710
9711 #. type: textblock
9712 #: ../fish/guestfish-actions.pod:1386 ../src/guestfs-actions.pod:2250
9713 msgid ""
9714 "This command lists out all files and directories, recursively, starting at "
9715 "C<directory>.  It is essentially equivalent to running the shell command "
9716 "C<find directory -print> but some post-processing happens on the output, "
9717 "described below."
9718 msgstr ""
9719
9720 #. type: textblock
9721 #: ../fish/guestfish-actions.pod:1391 ../src/guestfs-actions.pod:2255
9722 msgid ""
9723 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9724 "structure was:"
9725 msgstr ""
9726
9727 #. type: verbatim
9728 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2258
9729 #, no-wrap
9730 msgid ""
9731 " /tmp/a\n"
9732 " /tmp/b\n"
9733 " /tmp/c/d\n"
9734 "\n"
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:1398
9739 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9740 msgstr ""
9741
9742 #. type: verbatim
9743 #: ../fish/guestfish-actions.pod:1401 ../src/guestfs-actions.pod:2265
9744 #, no-wrap
9745 msgid ""
9746 " a\n"
9747 " b\n"
9748 " c\n"
9749 " c/d\n"
9750 "\n"
9751 msgstr ""
9752
9753 #. type: textblock
9754 #: ../fish/guestfish-actions.pod:1406 ../src/guestfs-actions.pod:2270
9755 msgid "If C<directory> is not a directory, then this command returns an error."
9756 msgstr ""
9757
9758 #. type: textblock
9759 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2273
9760 msgid "The returned list is sorted."
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1411
9765 msgid "See also L</find0>."
9766 msgstr "Див. також L</find0>."
9767
9768 #. type: =head2
9769 #: ../fish/guestfish-actions.pod:1416
9770 msgid "find0"
9771 msgstr "find0"
9772
9773 #. type: verbatim
9774 #: ../fish/guestfish-actions.pod:1418
9775 #, no-wrap
9776 msgid ""
9777 " find0 directory (files|-)\n"
9778 "\n"
9779 msgstr ""
9780 " find0 каталог (файли|-)\n"
9781 "\n"
9782
9783 #. type: textblock
9784 #: ../fish/guestfish-actions.pod:1420 ../src/guestfs-actions.pod:2293
9785 msgid ""
9786 "This command lists out all files and directories, recursively, starting at "
9787 "C<directory>, placing the resulting list in the external file called "
9788 "C<files>."
9789 msgstr ""
9790
9791 #. type: textblock
9792 #: ../fish/guestfish-actions.pod:1424
9793 msgid ""
9794 "This command works the same way as L</find> with the following exceptions:"
9795 msgstr ""
9796
9797 #. type: textblock
9798 #: ../fish/guestfish-actions.pod:1431 ../src/guestfs-actions.pod:2304
9799 msgid "The resulting list is written to an external file."
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2308
9804 msgid ""
9805 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9806 "L<find(1)> option I<-print0>."
9807 msgstr ""
9808
9809 #. type: textblock
9810 #: ../fish/guestfish-actions.pod:1440 ../src/guestfs-actions.pod:2313
9811 msgid "This command is not limited in the number of names that it can return."
9812 msgstr ""
9813
9814 #. type: textblock
9815 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2318
9816 msgid "The result list is not sorted."
9817 msgstr ""
9818
9819 #. type: =head2
9820 #: ../fish/guestfish-actions.pod:1451
9821 msgid "findfs-label"
9822 msgstr "findfs-label"
9823
9824 #. type: verbatim
9825 #: ../fish/guestfish-actions.pod:1453
9826 #, no-wrap
9827 msgid ""
9828 " findfs-label label\n"
9829 "\n"
9830 msgstr ""
9831 " findfs-label мітка\n"
9832 "\n"
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:1455 ../src/guestfs-actions.pod:2332
9836 msgid ""
9837 "This command searches the filesystems and returns the one which has the "
9838 "given label.  An error is returned if no such filesystem can be found."
9839 msgstr ""
9840
9841 #. type: textblock
9842 #: ../fish/guestfish-actions.pod:1459
9843 msgid "To find the label of a filesystem, use L</vfs-label>."
9844 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
9845
9846 #. type: =head2
9847 #: ../fish/guestfish-actions.pod:1461
9848 msgid "findfs-uuid"
9849 msgstr "findfs-uuid"
9850
9851 #. type: verbatim
9852 #: ../fish/guestfish-actions.pod:1463
9853 #, no-wrap
9854 msgid ""
9855 " findfs-uuid uuid\n"
9856 "\n"
9857 msgstr ""
9858 " findfs-uuid uuid\n"
9859 "\n"
9860
9861 #. type: textblock
9862 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9863 msgid ""
9864 "This command searches the filesystems and returns the one which has the "
9865 "given UUID.  An error is returned if no such filesystem can be found."
9866 msgstr ""
9867
9868 #. type: textblock
9869 #: ../fish/guestfish-actions.pod:1469
9870 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9871 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
9872
9873 #. type: =head2
9874 #: ../fish/guestfish-actions.pod:1471
9875 msgid "fsck"
9876 msgstr "fsck"
9877
9878 #. type: verbatim
9879 #: ../fish/guestfish-actions.pod:1473
9880 #, no-wrap
9881 msgid ""
9882 " fsck fstype device\n"
9883 "\n"
9884 msgstr ""
9885 " fsck тип_файлової_системи пристрій\n"
9886 "\n"
9887
9888 #. type: textblock
9889 #: ../fish/guestfish-actions.pod:1475 ../src/guestfs-actions.pod:2367
9890 msgid ""
9891 "This runs the filesystem checker (fsck) on C<device> which should have "
9892 "filesystem type C<fstype>."
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:1478 ../src/guestfs-actions.pod:2370
9897 msgid ""
9898 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9899 "codes from C<fsck>."
9900 msgstr ""
9901
9902 #. type: textblock
9903 #: ../fish/guestfish-actions.pod:1487 ../src/guestfs-actions.pod:2379
9904 msgid "Multiple status codes can be summed together."
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2383
9909 msgid ""
9910 "A non-zero return code can mean \"success\", for example if errors have been "
9911 "corrected on the filesystem."
9912 msgstr ""
9913
9914 #. type: textblock
9915 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2388
9916 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9917 msgstr ""
9918
9919 #. type: textblock
9920 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2393
9921 msgid ""
9922 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9923 msgstr ""
9924
9925 #. type: =head2
9926 #: ../fish/guestfish-actions.pod:1503
9927 msgid "get-append"
9928 msgstr "get-append"
9929
9930 #. type: verbatim
9931 #: ../fish/guestfish-actions.pod:1505
9932 #, no-wrap
9933 msgid ""
9934 " get-append\n"
9935 "\n"
9936 msgstr ""
9937 " get-append\n"
9938 "\n"
9939
9940 #. type: textblock
9941 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2404
9942 msgid ""
9943 "Return the additional kernel options which are added to the guest kernel "
9944 "command line."
9945 msgstr ""
9946
9947 #. type: textblock
9948 #: ../fish/guestfish-actions.pod:1510 ../src/guestfs-actions.pod:2407
9949 msgid "If C<NULL> then no options are added."
9950 msgstr ""
9951
9952 #. type: =head2
9953 #: ../fish/guestfish-actions.pod:1512
9954 msgid "get-attach-method"
9955 msgstr "get-attach-method"
9956
9957 #. type: verbatim
9958 #: ../fish/guestfish-actions.pod:1514
9959 #, no-wrap
9960 msgid ""
9961 " get-attach-method\n"
9962 "\n"
9963 msgstr ""
9964 " get-attach-method\n"
9965 "\n"
9966
9967 #. type: textblock
9968 #: ../fish/guestfish-actions.pod:1516
9969 msgid "Return the current attach method.  See L</set-attach-method>."
9970 msgstr ""
9971
9972 #. type: =head2
9973 #: ../fish/guestfish-actions.pod:1518
9974 msgid "get-autosync"
9975 msgstr "get-autosync"
9976
9977 #. type: verbatim
9978 #: ../fish/guestfish-actions.pod:1520
9979 #, no-wrap
9980 msgid ""
9981 " get-autosync\n"
9982 "\n"
9983 msgstr ""
9984 " get-autosync\n"
9985 "\n"
9986
9987 #. type: textblock
9988 #: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2432
9989 msgid "Get the autosync flag."
9990 msgstr ""
9991
9992 #. type: =head2
9993 #: ../fish/guestfish-actions.pod:1524
9994 msgid "get-direct"
9995 msgstr "get-direct"
9996
9997 #. type: verbatim
9998 #: ../fish/guestfish-actions.pod:1526
9999 #, no-wrap
10000 msgid ""
10001 " get-direct\n"
10002 "\n"
10003 msgstr ""
10004 " get-direct\n"
10005 "\n"
10006
10007 #. type: textblock
10008 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2443
10009 msgid "Return the direct appliance mode flag."
10010 msgstr ""
10011
10012 #. type: =head2
10013 #: ../fish/guestfish-actions.pod:1530
10014 msgid "get-e2label"
10015 msgstr "get-e2label"
10016
10017 #. type: verbatim
10018 #: ../fish/guestfish-actions.pod:1532
10019 #, no-wrap
10020 msgid ""
10021 " get-e2label device\n"
10022 "\n"
10023 msgstr ""
10024 " get-e2label пристрій\n"
10025 "\n"
10026
10027 #. type: textblock
10028 #: ../fish/guestfish-actions.pod:1534 ../src/guestfs-actions.pod:2462
10029 msgid ""
10030 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10031 msgstr ""
10032
10033 #. type: textblock
10034 #: ../fish/guestfish-actions.pod:1537
10035 msgid ""
10036 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
10037 "instead."
10038 msgstr ""
10039
10040 #. type: =head2
10041 #: ../fish/guestfish-actions.pod:1544
10042 msgid "get-e2uuid"
10043 msgstr "get-e2uuid"
10044
10045 #. type: verbatim
10046 #: ../fish/guestfish-actions.pod:1546
10047 #, no-wrap
10048 msgid ""
10049 " get-e2uuid device\n"
10050 "\n"
10051 msgstr ""
10052 " get-e2uuid пристрій\n"
10053 "\n"
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2483
10057 msgid ""
10058 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:1551
10063 msgid ""
10064 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
10065 "instead."
10066 msgstr ""
10067
10068 #. type: =head2
10069 #: ../fish/guestfish-actions.pod:1558
10070 msgid "get-memsize"
10071 msgstr "get-memsize"
10072
10073 #. type: verbatim
10074 #: ../fish/guestfish-actions.pod:1560
10075 #, no-wrap
10076 msgid ""
10077 " get-memsize\n"
10078 "\n"
10079 msgstr ""
10080 " get-memsize\n"
10081 "\n"
10082
10083 #. type: textblock
10084 #: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2496
10085 msgid ""
10086 "This gets the memory size in megabytes allocated to the qemu subprocess."
10087 msgstr ""
10088
10089 #. type: textblock
10090 #: ../fish/guestfish-actions.pod:1565
10091 msgid ""
10092 "If L</set-memsize> was not called on this handle, and if "
10093 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10094 "value for memsize."
10095 msgstr ""
10096
10097 #. type: textblock
10098 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1626
10099 #: ../fish/guestfish-actions.pod:4499 ../fish/guestfish-actions.pod:4601
10100 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2595
10101 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7086
10102 msgid ""
10103 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10104 msgstr ""
10105
10106 #. type: =head2
10107 #: ../fish/guestfish-actions.pod:1572
10108 msgid "get-network"
10109 msgstr "get-network"
10110
10111 #. type: verbatim
10112 #: ../fish/guestfish-actions.pod:1574
10113 #, no-wrap
10114 msgid ""
10115 " get-network\n"
10116 "\n"
10117 msgstr ""
10118 " get-network\n"
10119 "\n"
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2515
10123 msgid "This returns the enable network flag."
10124 msgstr ""
10125
10126 #. type: =head2
10127 #: ../fish/guestfish-actions.pod:1578
10128 msgid "get-path"
10129 msgstr "get-path"
10130
10131 #. type: verbatim
10132 #: ../fish/guestfish-actions.pod:1580
10133 #, no-wrap
10134 msgid ""
10135 " get-path\n"
10136 "\n"
10137 msgstr ""
10138 " get-path\n"
10139 "\n"
10140
10141 #. type: textblock
10142 #: ../fish/guestfish-actions.pod:1582 ../src/guestfs-actions.pod:2526
10143 msgid "Return the current search path."
10144 msgstr ""
10145
10146 #. type: textblock
10147 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2528
10148 msgid ""
10149 "This is always non-NULL.  If it wasn't set already, then this will return "
10150 "the default path."
10151 msgstr ""
10152
10153 #. type: =head2
10154 #: ../fish/guestfish-actions.pod:1587
10155 msgid "get-pgroup"
10156 msgstr ""
10157
10158 #. type: verbatim
10159 #: ../fish/guestfish-actions.pod:1589
10160 #, no-wrap
10161 msgid ""
10162 " get-pgroup\n"
10163 "\n"
10164 msgstr ""
10165
10166 #. type: textblock
10167 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2541
10168 msgid "This returns the process group flag."
10169 msgstr ""
10170
10171 #. type: =head2
10172 #: ../fish/guestfish-actions.pod:1593
10173 msgid "get-pid"
10174 msgstr "get-pid"
10175
10176 #. type: =head2
10177 #: ../fish/guestfish-actions.pod:1595
10178 msgid "pid"
10179 msgstr "PID"
10180
10181 #. type: verbatim
10182 #: ../fish/guestfish-actions.pod:1597
10183 #, no-wrap
10184 msgid ""
10185 " get-pid\n"
10186 "\n"
10187 msgstr ""
10188 " get-pid\n"
10189 "\n"
10190
10191 #. type: textblock
10192 #: ../fish/guestfish-actions.pod:1599 ../src/guestfs-actions.pod:2552
10193 msgid ""
10194 "Return the process ID of the qemu subprocess.  If there is no qemu "
10195 "subprocess, then this will return an error."
10196 msgstr ""
10197
10198 #. type: textblock
10199 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2555
10200 msgid "This is an internal call used for debugging and testing."
10201 msgstr ""
10202
10203 #. type: =head2
10204 #: ../fish/guestfish-actions.pod:1604
10205 msgid "get-qemu"
10206 msgstr "get-qemu"
10207
10208 #. type: verbatim
10209 #: ../fish/guestfish-actions.pod:1606
10210 #, no-wrap
10211 msgid ""
10212 " get-qemu\n"
10213 "\n"
10214 msgstr ""
10215 " get-qemu\n"
10216 "\n"
10217
10218 #. type: textblock
10219 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2566
10220 msgid "Return the current qemu binary."
10221 msgstr ""
10222
10223 #. type: textblock
10224 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2568
10225 msgid ""
10226 "This is always non-NULL.  If it wasn't set already, then this will return "
10227 "the default qemu binary name."
10228 msgstr ""
10229
10230 #. type: =head2
10231 #: ../fish/guestfish-actions.pod:1613
10232 msgid "get-recovery-proc"
10233 msgstr "get-recovery-proc"
10234
10235 #. type: verbatim
10236 #: ../fish/guestfish-actions.pod:1615
10237 #, no-wrap
10238 msgid ""
10239 " get-recovery-proc\n"
10240 "\n"
10241 msgstr ""
10242 " get-recovery-proc\n"
10243 "\n"
10244
10245 #. type: textblock
10246 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2581
10247 msgid "Return the recovery process enabled flag."
10248 msgstr ""
10249
10250 #. type: =head2
10251 #: ../fish/guestfish-actions.pod:1619
10252 msgid "get-selinux"
10253 msgstr "get-selinux"
10254
10255 #. type: verbatim
10256 #: ../fish/guestfish-actions.pod:1621
10257 #, no-wrap
10258 msgid ""
10259 " get-selinux\n"
10260 "\n"
10261 msgstr ""
10262 " get-selinux\n"
10263 "\n"
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:1623
10267 msgid ""
10268 "This returns the current setting of the selinux flag which is passed to the "
10269 "appliance at boot time.  See L</set-selinux>."
10270 msgstr ""
10271
10272 #. type: =head2
10273 #: ../fish/guestfish-actions.pod:1629
10274 msgid "get-smp"
10275 msgstr ""
10276
10277 #. type: verbatim
10278 #: ../fish/guestfish-actions.pod:1631
10279 #, no-wrap
10280 msgid ""
10281 " get-smp\n"
10282 "\n"
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:1633 ../src/guestfs-actions.pod:2607
10287 msgid "This returns the number of virtual CPUs assigned to the appliance."
10288 msgstr ""
10289
10290 #. type: =head2
10291 #: ../fish/guestfish-actions.pod:1635
10292 msgid "get-state"
10293 msgstr "get-state"
10294
10295 #. type: verbatim
10296 #: ../fish/guestfish-actions.pod:1637
10297 #, no-wrap
10298 msgid ""
10299 " get-state\n"
10300 "\n"
10301 msgstr ""
10302 " get-state\n"
10303 "\n"
10304
10305 #. type: textblock
10306 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2618
10307 msgid ""
10308 "This returns the current state as an opaque integer.  This is only useful "
10309 "for printing debug and internal error messages."
10310 msgstr ""
10311
10312 #. type: textblock
10313 #: ../fish/guestfish-actions.pod:1642 ../fish/guestfish-actions.pod:2605
10314 #: ../fish/guestfish-actions.pod:2623 ../fish/guestfish-actions.pod:2661
10315 #: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:2621
10316 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3973
10317 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4061
10318 msgid "For more information on states, see L<guestfs(3)>."
10319 msgstr ""
10320
10321 #. type: =head2
10322 #: ../fish/guestfish-actions.pod:1644
10323 msgid "get-trace"
10324 msgstr "get-trace"
10325
10326 #. type: verbatim
10327 #: ../fish/guestfish-actions.pod:1646
10328 #, no-wrap
10329 msgid ""
10330 " get-trace\n"
10331 "\n"
10332 msgstr ""
10333 " get-trace\n"
10334 "\n"
10335
10336 #. type: textblock
10337 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2632
10338 msgid "Return the command trace flag."
10339 msgstr ""
10340
10341 #. type: =head2
10342 #: ../fish/guestfish-actions.pod:1650
10343 msgid "get-umask"
10344 msgstr "get-umask"
10345
10346 #. type: verbatim
10347 #: ../fish/guestfish-actions.pod:1652
10348 #, no-wrap
10349 msgid ""
10350 " get-umask\n"
10351 "\n"
10352 msgstr ""
10353 " get-umask\n"
10354 "\n"
10355
10356 #. type: textblock
10357 #: ../fish/guestfish-actions.pod:1654
10358 msgid ""
10359 "Return the current umask.  By default the umask is C<022> unless it has been "
10360 "set by calling L</umask>."
10361 msgstr ""
10362
10363 #. type: =head2
10364 #: ../fish/guestfish-actions.pod:1657
10365 msgid "get-verbose"
10366 msgstr "get-verbose"
10367
10368 #. type: verbatim
10369 #: ../fish/guestfish-actions.pod:1659
10370 #, no-wrap
10371 msgid ""
10372 " get-verbose\n"
10373 "\n"
10374 msgstr ""
10375 " get-verbose\n"
10376 "\n"
10377
10378 #. type: textblock
10379 #: ../fish/guestfish-actions.pod:1661 ../src/guestfs-actions.pod:2655
10380 msgid "This returns the verbose messages flag."
10381 msgstr ""
10382
10383 #. type: =head2
10384 #: ../fish/guestfish-actions.pod:1663
10385 msgid "getcon"
10386 msgstr "getcon"
10387
10388 #. type: verbatim
10389 #: ../fish/guestfish-actions.pod:1665
10390 #, no-wrap
10391 msgid ""
10392 " getcon\n"
10393 "\n"
10394 msgstr ""
10395 " getcon\n"
10396 "\n"
10397
10398 #. type: textblock
10399 #: ../fish/guestfish-actions.pod:1667 ../src/guestfs-actions.pod:2666
10400 msgid "This gets the SELinux security context of the daemon."
10401 msgstr ""
10402
10403 #. type: textblock
10404 #: ../fish/guestfish-actions.pod:1669
10405 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10406 msgstr ""
10407
10408 #. type: =head2
10409 #: ../fish/guestfish-actions.pod:1672
10410 msgid "getxattr"
10411 msgstr "getxattr"
10412
10413 #. type: verbatim
10414 #: ../fish/guestfish-actions.pod:1674
10415 #, no-wrap
10416 msgid ""
10417 " getxattr path name\n"
10418 "\n"
10419 msgstr ""
10420 " getxattr шлях назва\n"
10421 "\n"
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:1676
10425 msgid ""
10426 "Get a single extended attribute from file C<path> named C<name>.  This call "
10427 "follows symlinks.  If you want to lookup an extended attribute for the "
10428 "symlink itself, use L</lgetxattr>."
10429 msgstr ""
10430
10431 #. type: textblock
10432 #: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:2750
10433 msgid ""
10434 "Normally it is better to get all extended attributes from a file in one go "
10435 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
10436 "buggy and do not provide a way to list out attributes.  For these "
10437 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
10438 "attributes you want in advance and call this function."
10439 msgstr ""
10440
10441 #. type: textblock
10442 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:2757
10443 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:4194
10444 msgid ""
10445 "Extended attribute values are blobs of binary data.  If there is no extended "
10446 "attribute named C<name>, this returns an error."
10447 msgstr ""
10448
10449 #. type: textblock
10450 #: ../fish/guestfish-actions.pod:1690
10451 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10452 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10453
10454 #. type: =head2
10455 #: ../fish/guestfish-actions.pod:1692
10456 msgid "getxattrs"
10457 msgstr "getxattrs"
10458
10459 #. type: verbatim
10460 #: ../fish/guestfish-actions.pod:1694
10461 #, no-wrap
10462 msgid ""
10463 " getxattrs path\n"
10464 "\n"
10465 msgstr ""
10466 " getxattrs шлях\n"
10467 "\n"
10468
10469 #. type: textblock
10470 #: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2712
10471 msgid ""
10472 "This call lists the extended attributes of the file or directory C<path>."
10473 msgstr ""
10474
10475 #. type: textblock
10476 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2715
10477 msgid ""
10478 "At the system call level, this is a combination of the L<listxattr(2)> and "
10479 "L<getxattr(2)> calls."
10480 msgstr ""
10481
10482 #. type: textblock
10483 #: ../fish/guestfish-actions.pod:1702
10484 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10485 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
10486
10487 #. type: =head2
10488 #: ../fish/guestfish-actions.pod:1704
10489 msgid "glob-expand"
10490 msgstr "glob-expand"
10491
10492 #. type: verbatim
10493 #: ../fish/guestfish-actions.pod:1706
10494 #, no-wrap
10495 msgid ""
10496 " glob-expand pattern\n"
10497 "\n"
10498 msgstr ""
10499 " glob-expand шаблон\n"
10500 "\n"
10501
10502 #. type: textblock
10503 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2732
10504 msgid ""
10505 "This command searches for all the pathnames matching C<pattern> according to "
10506 "the wildcard expansion rules used by the shell."
10507 msgstr ""
10508
10509 #. type: textblock
10510 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2736
10511 msgid ""
10512 "If no paths match, then this returns an empty list (note: not an error)."
10513 msgstr ""
10514
10515 #. type: textblock
10516 #: ../fish/guestfish-actions.pod:1715 ../src/guestfs-actions.pod:2739
10517 msgid ""
10518 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10519 "GLOB_BRACE>.  See that manual page for more details."
10520 msgstr ""
10521
10522 #. type: =head2
10523 #: ../fish/guestfish-actions.pod:1719
10524 msgid "grep"
10525 msgstr "grep"
10526
10527 #. type: verbatim
10528 #: ../fish/guestfish-actions.pod:1721
10529 #, no-wrap
10530 msgid ""
10531 " grep regex path\n"
10532 "\n"
10533 msgstr ""
10534 " grepi формальний_вираз шлях\n"
10535 "\n"
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:1723 ../src/guestfs-actions.pod:2756
10539 msgid "This calls the external C<grep> program and returns the matching lines."
10540 msgstr ""
10541
10542 #. type: =head2
10543 #: ../fish/guestfish-actions.pod:1729
10544 msgid "grepi"
10545 msgstr "grepi"
10546
10547 #. type: verbatim
10548 #: ../fish/guestfish-actions.pod:1731
10549 #, no-wrap
10550 msgid ""
10551 " grepi regex path\n"
10552 "\n"
10553 msgstr ""
10554 " grepi формальний_вираз шлях\n"
10555 "\n"
10556
10557 #. type: textblock
10558 #: ../fish/guestfish-actions.pod:1733 ../src/guestfs-actions.pod:2775
10559 msgid ""
10560 "This calls the external C<grep -i> program and returns the matching lines."
10561 msgstr ""
10562
10563 #. type: =head2
10564 #: ../fish/guestfish-actions.pod:1739
10565 msgid "grub-install"
10566 msgstr "grub-install"
10567
10568 #. type: verbatim
10569 #: ../fish/guestfish-actions.pod:1741
10570 #, no-wrap
10571 msgid ""
10572 " grub-install root device\n"
10573 "\n"
10574 msgstr ""
10575 " grub-install кореневий пристрій\n"
10576 "\n"
10577
10578 #. type: textblock
10579 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2794
10580 msgid ""
10581 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10582 "with the root directory being C<root>."
10583 msgstr ""
10584
10585 #. type: textblock
10586 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2803
10587 msgid ""
10588 "There is currently no way in the API to install grub2, which is used by most "
10589 "modern Linux guests.  It is possible to run the grub2 command from the "
10590 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10591 msgstr ""
10592
10593 #. type: textblock
10594 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2810
10595 msgid ""
10596 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
10597 "compatible with itself, so this only works in rather narrow circumstances.  "
10598 "Careful testing with each guest version is advisable."
10599 msgstr ""
10600
10601 #. type: textblock
10602 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2817
10603 msgid ""
10604 "If grub-install reports the error \"No suitable drive was found in the "
10605 "generated device map.\" it may be that you need to create a C</boot/grub/"
10606 "device.map> file first that contains the mapping between grub device names "
10607 "and Linux device names.  It is usually sufficient to create a file "
10608 "containing:"
10609 msgstr ""
10610
10611 #. type: verbatim
10612 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2824
10613 #, no-wrap
10614 msgid ""
10615 " (hd0) /dev/vda\n"
10616 "\n"
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2826
10621 msgid "replacing C</dev/vda> with the name of the installation device."
10622 msgstr ""
10623
10624 #. type: =head2
10625 #: ../fish/guestfish-actions.pod:1779
10626 msgid "head"
10627 msgstr "head"
10628
10629 #. type: verbatim
10630 #: ../fish/guestfish-actions.pod:1781
10631 #, no-wrap
10632 msgid ""
10633 " head path\n"
10634 "\n"
10635 msgstr ""
10636 " head шлях\n"
10637 "\n"
10638
10639 #. type: textblock
10640 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2840
10641 msgid ""
10642 "This command returns up to the first 10 lines of a file as a list of strings."
10643 msgstr ""
10644
10645 #. type: =head2
10646 #: ../fish/guestfish-actions.pod:1789
10647 msgid "head-n"
10648 msgstr "head-n"
10649
10650 #. type: verbatim
10651 #: ../fish/guestfish-actions.pod:1791
10652 #, no-wrap
10653 msgid ""
10654 " head-n nrlines path\n"
10655 "\n"
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2859
10660 msgid ""
10661 "If the parameter C<nrlines> is a positive number, this returns the first "
10662 "C<nrlines> lines of the file C<path>."
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2862
10667 msgid ""
10668 "If the parameter C<nrlines> is a negative number, this returns lines from "
10669 "the file C<path>, excluding the last C<nrlines> lines."
10670 msgstr ""
10671
10672 #. type: textblock
10673 #: ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:4982
10674 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:7665
10675 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10676 msgstr ""
10677
10678 #. type: =head2
10679 #: ../fish/guestfish-actions.pod:1804
10680 msgid "hexdump"
10681 msgstr "hexdump"
10682
10683 #. type: verbatim
10684 #: ../fish/guestfish-actions.pod:1806
10685 #, no-wrap
10686 msgid ""
10687 " hexdump path\n"
10688 "\n"
10689 msgstr ""
10690 " hexdump шлях\n"
10691 "\n"
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2882
10695 msgid ""
10696 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10697 "readable, canonical hex dump of the file."
10698 msgstr ""
10699
10700 #. type: =head2
10701 #: ../fish/guestfish-actions.pod:1814
10702 msgid "initrd-cat"
10703 msgstr "initrd-cat"
10704
10705 #. type: verbatim
10706 #: ../fish/guestfish-actions.pod:1816
10707 #, no-wrap
10708 msgid ""
10709 " initrd-cat initrdpath filename\n"
10710 "\n"
10711 msgstr ""
10712 " initrd-cat шлях_initrd назва_файла\n"
10713 "\n"
10714
10715 #. type: textblock
10716 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2901
10717 msgid ""
10718 "This command unpacks the file C<filename> from the initrd file called "
10719 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10720 "character."
10721 msgstr ""
10722
10723 #. type: textblock
10724 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2905
10725 msgid ""
10726 "For example, in guestfish you could use the following command to examine the "
10727 "boot script (usually called C</init>)  contained in a Linux initrd or "
10728 "initramfs image:"
10729 msgstr ""
10730
10731 #. type: verbatim
10732 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2909
10733 #, no-wrap
10734 msgid ""
10735 " initrd-cat /boot/initrd-<version>.img init\n"
10736 "\n"
10737 msgstr ""
10738
10739 #. type: textblock
10740 #: ../fish/guestfish-actions.pod:1828
10741 msgid "See also L</initrd-list>."
10742 msgstr "Див. також L</initrd-list>."
10743
10744 #. type: =head2
10745 #: ../fish/guestfish-actions.pod:1833
10746 msgid "initrd-list"
10747 msgstr "initrd-list"
10748
10749 #. type: verbatim
10750 #: ../fish/guestfish-actions.pod:1835
10751 #, no-wrap
10752 msgid ""
10753 " initrd-list path\n"
10754 "\n"
10755 msgstr ""
10756 " initrd-list шлях\n"
10757 "\n"
10758
10759 #. type: textblock
10760 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2928
10761 msgid "This command lists out files contained in an initrd."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2930
10766 msgid ""
10767 "The files are listed without any initial C</> character.  The files are "
10768 "listed in the order they appear (not necessarily alphabetical).  Directory "
10769 "names are listed as separate items."
10770 msgstr ""
10771
10772 #. type: textblock
10773 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2934
10774 msgid ""
10775 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10776 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10777 "files)."
10778 msgstr ""
10779
10780 #. type: =head2
10781 #: ../fish/guestfish-actions.pod:1847
10782 msgid "inotify-add-watch"
10783 msgstr "inotify-add-watch"
10784
10785 #. type: verbatim
10786 #: ../fish/guestfish-actions.pod:1849
10787 #, no-wrap
10788 msgid ""
10789 " inotify-add-watch path mask\n"
10790 "\n"
10791 msgstr ""
10792 " inotify-add-watch шлях маска\n"
10793 "\n"
10794
10795 #. type: textblock
10796 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2951
10797 msgid "Watch C<path> for the events listed in C<mask>."
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2953
10802 msgid ""
10803 "Note that if C<path> is a directory then events within that directory are "
10804 "watched, but this does I<not> happen recursively (in subdirectories)."
10805 msgstr ""
10806
10807 #. type: textblock
10808 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2957
10809 msgid ""
10810 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10811 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10812 msgstr ""
10813
10814 #. type: =head2
10815 #: ../fish/guestfish-actions.pod:1861
10816 msgid "inotify-close"
10817 msgstr "inotify-close"
10818
10819 #. type: verbatim
10820 #: ../fish/guestfish-actions.pod:1863
10821 #, no-wrap
10822 msgid ""
10823 " inotify-close\n"
10824 "\n"
10825 msgstr ""
10826 " inotify-close\n"
10827 "\n"
10828
10829 #. type: textblock
10830 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2970
10831 msgid ""
10832 "This closes the inotify handle which was previously opened by inotify_init.  "
10833 "It removes all watches, throws away any pending events, and deallocates all "
10834 "resources."
10835 msgstr ""
10836
10837 #. type: =head2
10838 #: ../fish/guestfish-actions.pod:1869
10839 msgid "inotify-files"
10840 msgstr "inotify-files"
10841
10842 #. type: verbatim
10843 #: ../fish/guestfish-actions.pod:1871
10844 #, no-wrap
10845 msgid ""
10846 " inotify-files\n"
10847 "\n"
10848 msgstr ""
10849 " inotify-files\n"
10850 "\n"
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:1873
10854 msgid ""
10855 "This function is a helpful wrapper around L</inotify-read> which just "
10856 "returns a list of pathnames of objects that were touched.  The returned "
10857 "pathnames are sorted and deduplicated."
10858 msgstr ""
10859
10860 #. type: =head2
10861 #: ../fish/guestfish-actions.pod:1877
10862 msgid "inotify-init"
10863 msgstr "inotify-init"
10864
10865 #. type: verbatim
10866 #: ../fish/guestfish-actions.pod:1879
10867 #, no-wrap
10868 msgid ""
10869 " inotify-init maxevents\n"
10870 "\n"
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2999
10875 msgid ""
10876 "This command creates a new inotify handle.  The inotify subsystem can be "
10877 "used to notify events which happen to objects in the guest filesystem."
10878 msgstr ""
10879
10880 #. type: textblock
10881 #: ../fish/guestfish-actions.pod:1885
10882 msgid ""
10883 "C<maxevents> is the maximum number of events which will be queued up between "
10884 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10885 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10886 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10887 "but records the fact that it threw them away by setting a flag "
10888 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:1895
10893 msgid ""
10894 "Before any events are generated, you have to add some watches to the "
10895 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10896 "L</inotify-watch-all>."
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../fish/guestfish-actions.pod:1901
10901 msgid ""
10902 "Queued up events should be read periodically by calling L</inotify-read> (or "
10903 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10904 "If you don't read the events out often enough then you risk the internal "
10905 "queue overflowing."
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:1908
10910 msgid ""
10911 "The handle should be closed after use by calling L</inotify-close>.  This "
10912 "also removes any watches automatically."
10913 msgstr ""
10914
10915 #. type: textblock
10916 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3030
10917 msgid ""
10918 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10919 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10920 "that there is one global inotify handle per libguestfs instance."
10921 msgstr ""
10922
10923 #. type: =head2
10924 #: ../fish/guestfish-actions.pod:1917
10925 msgid "inotify-read"
10926 msgstr "inotify-read"
10927
10928 #. type: verbatim
10929 #: ../fish/guestfish-actions.pod:1919
10930 #, no-wrap
10931 msgid ""
10932 " inotify-read\n"
10933 "\n"
10934 msgstr ""
10935 " inotify-read\n"
10936 "\n"
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:3044
10940 msgid ""
10941 "Return the complete queue of events that have happened since the previous "
10942 "read call."
10943 msgstr ""
10944
10945 #. type: textblock
10946 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3047
10947 msgid "If no events have happened, this returns an empty list."
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3049
10952 msgid ""
10953 "I<Note>: In order to make sure that all events have been read, you must call "
10954 "this function repeatedly until it returns an empty list.  The reason is that "
10955 "the call will read events up to the maximum appliance-to-host message size "
10956 "and leave remaining events in the queue."
10957 msgstr ""
10958
10959 #. type: =head2
10960 #: ../fish/guestfish-actions.pod:1932
10961 msgid "inotify-rm-watch"
10962 msgstr "inotify-rm-watch"
10963
10964 #. type: verbatim
10965 #: ../fish/guestfish-actions.pod:1934
10966 #, no-wrap
10967 msgid ""
10968 " inotify-rm-watch wd\n"
10969 "\n"
10970 msgstr ""
10971
10972 #. type: textblock
10973 #: ../fish/guestfish-actions.pod:1936
10974 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10975 msgstr ""
10976
10977 #. type: =head2
10978 #: ../fish/guestfish-actions.pod:1939
10979 msgid "inspect-get-arch"
10980 msgstr "inspect-get-arch"
10981
10982 #. type: verbatim
10983 #: ../fish/guestfish-actions.pod:1941
10984 #, no-wrap
10985 msgid ""
10986 " inspect-get-arch root\n"
10987 "\n"
10988 msgstr ""
10989 " inspect-get-arch корінь\n"
10990 "\n"
10991
10992 #. type: textblock
10993 #: ../fish/guestfish-actions.pod:1943
10994 msgid ""
10995 "This returns the architecture of the inspected operating system.  The "
10996 "possible return values are listed under L</file-architecture>."
10997 msgstr ""
10998
10999 #. type: textblock
11000 #: ../fish/guestfish-actions.pod:1947 ../src/guestfs-actions.pod:3084
11001 msgid ""
11002 "If the architecture could not be determined, then the string C<unknown> is "
11003 "returned."
11004 msgstr ""
11005
11006 #. type: textblock
11007 #: ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:2045
11008 #: ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2136
11009 #: ../fish/guestfish-actions.pod:2220 ../fish/guestfish-actions.pod:2282
11010 #: ../fish/guestfish-actions.pod:2303 ../fish/guestfish-actions.pod:2317
11011 #: ../fish/guestfish-actions.pod:2357 ../fish/guestfish-actions.pod:2397
11012 #: ../fish/guestfish-actions.pod:2410 ../fish/guestfish-actions.pod:2423
11013 #: ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2443
11014 #: ../fish/guestfish-actions.pod:2455 ../fish/guestfish-actions.pod:2551
11015 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3087
11016 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3293
11017 #: ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3443
11018 #: ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:3555
11019 #: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3629
11020 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3697
11021 #: ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3734
11022 #: ../src/guestfs-actions.pod:3750 ../src/guestfs-actions.pod:3768
11023 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:3911
11024 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11025 msgstr ""
11026
11027 #. type: =head2
11028 #: ../fish/guestfish-actions.pod:1952
11029 msgid "inspect-get-distro"
11030 msgstr "inspect-get-distro"
11031
11032 #. type: verbatim
11033 #: ../fish/guestfish-actions.pod:1954
11034 #, no-wrap
11035 msgid ""
11036 " inspect-get-distro root\n"
11037 "\n"
11038 msgstr ""
11039 " inspect-get-distro корінь\n"
11040 "\n"
11041
11042 #. type: textblock
11043 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3100
11044 msgid ""
11045 "This returns the distro (distribution) of the inspected operating system."
11046 msgstr ""
11047
11048 #. type: textblock
11049 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:3103
11050 msgid "Currently defined distros are:"
11051 msgstr ""
11052
11053 #. type: =item
11054 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:3107
11055 msgid "\"archlinux\""
11056 msgstr "\"archlinux\""
11057
11058 #. type: textblock
11059 #: ../fish/guestfish-actions.pod:1965 ../src/guestfs-actions.pod:3109
11060 msgid "Arch Linux."
11061 msgstr "Arch Linux."
11062
11063 #. type: =item
11064 #: ../fish/guestfish-actions.pod:1967 ../src/guestfs-actions.pod:3111
11065 msgid "\"centos\""
11066 msgstr ""
11067
11068 #. type: textblock
11069 #: ../fish/guestfish-actions.pod:1969 ../src/guestfs-actions.pod:3113
11070 msgid "CentOS."
11071 msgstr ""
11072
11073 #. type: =item
11074 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:3115
11075 msgid "\"debian\""
11076 msgstr "\"debian\""
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:1973 ../src/guestfs-actions.pod:3117
11080 msgid "Debian."
11081 msgstr "Debian."
11082
11083 #. type: =item
11084 #: ../fish/guestfish-actions.pod:1975 ../src/guestfs-actions.pod:3119
11085 msgid "\"fedora\""
11086 msgstr "\"fedora\""
11087
11088 #. type: textblock
11089 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:3121
11090 msgid "Fedora."
11091 msgstr "Fedora."
11092
11093 #. type: =item
11094 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:3123
11095 msgid "\"gentoo\""
11096 msgstr "\"gentoo\""
11097
11098 #. type: textblock
11099 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:3125
11100 msgid "Gentoo."
11101 msgstr "Gentoo."
11102
11103 #. type: =item
11104 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:3127
11105 msgid "\"linuxmint\""
11106 msgstr "\"linuxmint\""
11107
11108 #. type: textblock
11109 #: ../fish/guestfish-actions.pod:1985 ../src/guestfs-actions.pod:3129
11110 msgid "Linux Mint."
11111 msgstr "Linux Mint."
11112
11113 #. type: =item
11114 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:3131
11115 msgid "\"mageia\""
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:1989 ../src/guestfs-actions.pod:3133
11120 msgid "Mageia."
11121 msgstr ""
11122
11123 #. type: =item
11124 #: ../fish/guestfish-actions.pod:1991 ../src/guestfs-actions.pod:3135
11125 msgid "\"mandriva\""
11126 msgstr "\"mandriva\""
11127
11128 #. type: textblock
11129 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3137
11130 msgid "Mandriva."
11131 msgstr "Mandriva."
11132
11133 #. type: =item
11134 #: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3139
11135 msgid "\"meego\""
11136 msgstr "\"meego\""
11137
11138 #. type: textblock
11139 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3141
11140 msgid "MeeGo."
11141 msgstr "MeeGo."
11142
11143 #. type: =item
11144 #: ../fish/guestfish-actions.pod:1999 ../src/guestfs-actions.pod:3143
11145 msgid "\"opensuse\""
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3145
11150 msgid "OpenSUSE."
11151 msgstr ""
11152
11153 #. type: =item
11154 #: ../fish/guestfish-actions.pod:2003 ../src/guestfs-actions.pod:3147
11155 msgid "\"pardus\""
11156 msgstr "\"pardus\""
11157
11158 #. type: textblock
11159 #: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:3149
11160 msgid "Pardus."
11161 msgstr "Pardus."
11162
11163 #. type: =item
11164 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151
11165 msgid "\"redhat-based\""
11166 msgstr "\"redhat-based\""
11167
11168 #. type: textblock
11169 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3153
11170 msgid "Some Red Hat-derived distro."
11171 msgstr "Дистрибутив, що походить від Red Hat."
11172
11173 #. type: =item
11174 #: ../fish/guestfish-actions.pod:2011 ../src/guestfs-actions.pod:3155
11175 msgid "\"rhel\""
11176 msgstr "\"rhel\""
11177
11178 #. type: textblock
11179 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3157
11180 msgid "Red Hat Enterprise Linux."
11181 msgstr "Red Hat Enterprise Linux."
11182
11183 #. type: =item
11184 #: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3159
11185 msgid "\"scientificlinux\""
11186 msgstr "\"scientificlinux\""
11187
11188 #. type: textblock
11189 #: ../fish/guestfish-actions.pod:2017 ../src/guestfs-actions.pod:3161
11190 msgid "Scientific Linux."
11191 msgstr "Scientific Linux."
11192
11193 #. type: =item
11194 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:3163
11195 msgid "\"slackware\""
11196 msgstr "\"slackware\""
11197
11198 #. type: textblock
11199 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3165
11200 msgid "Slackware."
11201 msgstr "Slackware."
11202
11203 #. type: =item
11204 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:3167
11205 msgid "\"ttylinux\""
11206 msgstr ""
11207
11208 #. type: textblock
11209 #: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3169
11210 msgid "ttylinux."
11211 msgstr ""
11212
11213 #. type: =item
11214 #: ../fish/guestfish-actions.pod:2027 ../src/guestfs-actions.pod:3171
11215 msgid "\"ubuntu\""
11216 msgstr "\"ubuntu\""
11217
11218 #. type: textblock
11219 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3173
11220 msgid "Ubuntu."
11221 msgstr "Ubuntu."
11222
11223 #. type: =item
11224 #: ../fish/guestfish-actions.pod:2031 ../fish/guestfish-actions.pod:2115
11225 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3175
11226 #: ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3668
11227 msgid "\"unknown\""
11228 msgstr "\"unknown\""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3177
11232 msgid "The distro could not be determined."
11233 msgstr "Дистрибутив, тип якого не вдалося визначити."
11234
11235 #. type: =item
11236 #: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2372
11237 #: ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:3652
11238 msgid "\"windows\""
11239 msgstr "\"windows\""
11240
11241 #. type: textblock
11242 #: ../fish/guestfish-actions.pod:2037 ../src/guestfs-actions.pod:3181
11243 msgid ""
11244 "Windows does not have distributions.  This string is returned if the OS type "
11245 "is Windows."
11246 msgstr ""
11247
11248 #. type: textblock
11249 #: ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2121
11250 #: ../fish/guestfish-actions.pod:2394 ../src/guestfs-actions.pod:3186
11251 #: ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3674
11252 msgid ""
11253 "Future versions of libguestfs may return other strings here.  The caller "
11254 "should be prepared to handle any string."
11255 msgstr ""
11256
11257 #. type: =head2
11258 #: ../fish/guestfish-actions.pod:2047
11259 msgid "inspect-get-drive-mappings"
11260 msgstr ""
11261
11262 #. type: verbatim
11263 #: ../fish/guestfish-actions.pod:2049
11264 #, no-wrap
11265 msgid ""
11266 " inspect-get-drive-mappings root\n"
11267 "\n"
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:2051 ../src/guestfs-actions.pod:3202
11272 msgid ""
11273 "This call is useful for Windows which uses a primitive system of assigning "
11274 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11275 "Windows Registry to find out how disks/partitions are mapped to drive "
11276 "letters, and returns a hash table as in the example below:"
11277 msgstr ""
11278
11279 #. type: verbatim
11280 #: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3208
11281 #, no-wrap
11282 msgid ""
11283 " C      =>     /dev/vda2\n"
11284 " E      =>     /dev/vdb1\n"
11285 " F      =>     /dev/vdc1\n"
11286 "\n"
11287 msgstr ""
11288
11289 #. type: textblock
11290 #: ../fish/guestfish-actions.pod:2061 ../src/guestfs-actions.pod:3212
11291 msgid ""
11292 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11293 "and just contains the drive letter, without the customary colon separator "
11294 "character."
11295 msgstr ""
11296
11297 #. type: textblock
11298 #: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3216
11299 msgid ""
11300 "In future we may support other operating systems that also used drive "
11301 "letters, but the keys for those might not be case insensitive and might be "
11302 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
11303 "C<h1> etc."
11304 msgstr ""
11305
11306 #. type: textblock
11307 #: ../fish/guestfish-actions.pod:2070 ../src/guestfs-actions.pod:3221
11308 msgid ""
11309 "For Windows guests, currently only hard drive mappings are returned.  "
11310 "Removable disks (eg. DVD-ROMs) are ignored."
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:2073 ../src/guestfs-actions.pod:3224
11315 msgid ""
11316 "For guests that do not use drive mappings, or if the drive mappings could "
11317 "not be determined, this returns an empty hash table."
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../fish/guestfish-actions.pod:2076
11322 msgid ""
11323 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11324 "get-mountpoints>, L</inspect-get-filesystems>."
11325 msgstr ""
11326
11327 #. type: =head2
11328 #: ../fish/guestfish-actions.pod:2080
11329 msgid "inspect-get-filesystems"
11330 msgstr "inspect-get-filesystems"
11331
11332 #. type: verbatim
11333 #: ../fish/guestfish-actions.pod:2082
11334 #, no-wrap
11335 msgid ""
11336 " inspect-get-filesystems root\n"
11337 "\n"
11338 msgstr ""
11339 " inspect-get-filesystems корінь\n"
11340 "\n"
11341
11342 #. type: textblock
11343 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3245
11344 msgid ""
11345 "This returns a list of all the filesystems that we think are associated with "
11346 "this operating system.  This includes the root filesystem, other ordinary "
11347 "filesystems, and non-mounted devices like swap partitions."
11348 msgstr ""
11349
11350 #. type: textblock
11351 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3250
11352 msgid ""
11353 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11354 "to be shared between operating systems."
11355 msgstr ""
11356
11357 #. type: textblock
11358 #: ../fish/guestfish-actions.pod:2092
11359 msgid ""
11360 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11361 "get-mountpoints>."
11362 msgstr ""
11363
11364 #. type: =head2
11365 #: ../fish/guestfish-actions.pod:2095
11366 msgid "inspect-get-format"
11367 msgstr "inspect-get-format"
11368
11369 #. type: verbatim
11370 #: ../fish/guestfish-actions.pod:2097
11371 #, no-wrap
11372 msgid ""
11373 " inspect-get-format root\n"
11374 "\n"
11375 msgstr ""
11376 " inspect-get-format корінь\n"
11377 "\n"
11378
11379 #. type: textblock
11380 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3268
11381 msgid ""
11382 "This returns the format of the inspected operating system.  You can use it "
11383 "to detect install images, live CDs and similar."
11384 msgstr ""
11385
11386 #. type: textblock
11387 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3271
11388 msgid "Currently defined formats are:"
11389 msgstr ""
11390
11391 #. type: =item
11392 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3275
11393 msgid "\"installed\""
11394 msgstr "\"installed\""
11395
11396 #. type: textblock
11397 #: ../fish/guestfish-actions.pod:2108 ../src/guestfs-actions.pod:3277
11398 msgid "This is an installed operating system."
11399 msgstr "Це встановлена операційна система."
11400
11401 #. type: =item
11402 #: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3279
11403 msgid "\"installer\""
11404 msgstr ""
11405
11406 #. type: textblock
11407 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3281
11408 msgid ""
11409 "The disk image being inspected is not an installed operating system, but a "
11410 "I<bootable> install disk, live CD, or similar."
11411 msgstr ""
11412
11413 #. type: textblock
11414 #: ../fish/guestfish-actions.pod:2117 ../src/guestfs-actions.pod:3286
11415 msgid "The format of this disk image is not known."
11416 msgstr ""
11417
11418 #. type: =head2
11419 #: ../fish/guestfish-actions.pod:2126
11420 msgid "inspect-get-hostname"
11421 msgstr "inspect-get-hostname"
11422
11423 #. type: verbatim
11424 #: ../fish/guestfish-actions.pod:2128
11425 #, no-wrap
11426 msgid ""
11427 " inspect-get-hostname root\n"
11428 "\n"
11429 msgstr ""
11430 " inspect-get-hostname корінь\n"
11431 "\n"
11432
11433 #. type: textblock
11434 #: ../fish/guestfish-actions.pod:2130 ../src/guestfs-actions.pod:3306
11435 msgid ""
11436 "This function returns the hostname of the operating system as found by "
11437 "inspection of the guest's configuration files."
11438 msgstr ""
11439
11440 #. type: textblock
11441 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3309
11442 msgid ""
11443 "If the hostname could not be determined, then the string C<unknown> is "
11444 "returned."
11445 msgstr ""
11446
11447 #. type: =head2
11448 #: ../fish/guestfish-actions.pod:2138
11449 msgid "inspect-get-icon"
11450 msgstr ""
11451
11452 #. type: verbatim
11453 #: ../fish/guestfish-actions.pod:2140
11454 #, no-wrap
11455 msgid ""
11456 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11457 "\n"
11458 msgstr ""
11459
11460 #. type: textblock
11461 #: ../fish/guestfish-actions.pod:2142 ../src/guestfs-actions.pod:3335
11462 msgid ""
11463 "This function returns an icon corresponding to the inspected operating "
11464 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
11465 "to PNG if necessary)."
11466 msgstr ""
11467
11468 #. type: textblock
11469 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3339
11470 msgid ""
11471 "If it was not possible to get an icon this function returns a zero-length "
11472 "(non-NULL) buffer.  I<Callers must check for this case>."
11473 msgstr ""
11474
11475 #. type: textblock
11476 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3342
11477 msgid ""
11478 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11479 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11480 "this file will be returned.  You can disable favicons by passing the "
11481 "optional C<favicon> boolean as false (default is true)."
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3348
11486 msgid ""
11487 "If finding the favicon fails, then we look in other places in the guest for "
11488 "a suitable icon."
11489 msgstr ""
11490
11491 #. type: textblock
11492 #: ../fish/guestfish-actions.pod:2158 ../src/guestfs-actions.pod:3351
11493 msgid ""
11494 "If the optional C<highquality> boolean is true then only high quality icons "
11495 "are returned, which means only icons of high resolution with an alpha "
11496 "channel.  The default (false) is to return any icon we can, even if it is of "
11497 "substandard quality."
11498 msgstr ""
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3362
11502 msgid ""
11503 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11504 "before you call this, since it needs to read information from the guest "
11505 "filesystem during the call."
11506 msgstr ""
11507
11508 #. type: textblock
11509 #: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3368
11510 msgid ""
11511 "B<Security:> The icon data comes from the untrusted guest, and should be "
11512 "treated with caution.  PNG files have been known to contain exploits.  "
11513 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11514 "trying to process or display the icon."
11515 msgstr ""
11516
11517 #. type: textblock
11518 #: ../fish/guestfish-actions.pod:2183 ../src/guestfs-actions.pod:3376
11519 msgid ""
11520 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11521 "tries to return the largest, highest quality icon available.  The "
11522 "application must scale the icon to the required size."
11523 msgstr ""
11524
11525 #. type: textblock
11526 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3383
11527 msgid ""
11528 "Extracting icons from Windows guests requires the external C<wrestool> "
11529 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11530 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11531 "installed separately."
11532 msgstr ""
11533
11534 #. type: textblock
11535 #: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3390
11536 msgid ""
11537 "Operating system icons are usually trademarks.  Seek legal advice before "
11538 "using trademarks in applications."
11539 msgstr ""
11540
11541 #. type: =head2
11542 #: ../fish/guestfish-actions.pod:2204
11543 msgid "inspect-get-major-version"
11544 msgstr "inspect-get-major-version"
11545
11546 #. type: verbatim
11547 #: ../fish/guestfish-actions.pod:2206
11548 #, no-wrap
11549 msgid ""
11550 " inspect-get-major-version root\n"
11551 "\n"
11552 msgstr ""
11553 " inspect-get-major-version корінь\n"
11554 "\n"
11555
11556 #. type: textblock
11557 #: ../fish/guestfish-actions.pod:2208 ../src/guestfs-actions.pod:3431
11558 msgid ""
11559 "This returns the major version number of the inspected operating system."
11560 msgstr ""
11561
11562 #. type: textblock
11563 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3434
11564 msgid ""
11565 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11566 "popular public names used by the operating system.  Notably the operating "
11567 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11568 "1).  You can find out the real versions corresponding to releases of Windows "
11569 "by consulting Wikipedia or MSDN."
11570 msgstr ""
11571
11572 #. type: textblock
11573 #: ../fish/guestfish-actions.pod:2218 ../fish/guestfish-actions.pod:2229
11574 #: ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3458
11575 msgid "If the version could not be determined, then C<0> is returned."
11576 msgstr ""
11577
11578 #. type: =head2
11579 #: ../fish/guestfish-actions.pod:2222
11580 msgid "inspect-get-minor-version"
11581 msgstr "inspect-get-minor-version"
11582
11583 #. type: verbatim
11584 #: ../fish/guestfish-actions.pod:2224
11585 #, no-wrap
11586 msgid ""
11587 " inspect-get-minor-version root\n"
11588 "\n"
11589 msgstr ""
11590 " inspect-get-minor-version корінь\n"
11591 "\n"
11592
11593 #. type: textblock
11594 #: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3455
11595 msgid ""
11596 "This returns the minor version number of the inspected operating system."
11597 msgstr ""
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:2231
11601 msgid ""
11602 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11603 "get-major-version>."
11604 msgstr ""
11605
11606 #. type: =head2
11607 #: ../fish/guestfish-actions.pod:2234
11608 msgid "inspect-get-mountpoints"
11609 msgstr "inspect-get-mountpoints"
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:2236
11613 #, no-wrap
11614 msgid ""
11615 " inspect-get-mountpoints root\n"
11616 "\n"
11617 msgstr ""
11618 " inspect-get-mountpoints корінь\n"
11619 "\n"
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3473
11623 msgid ""
11624 "This returns a hash of where we think the filesystems associated with this "
11625 "operating system should be mounted.  Callers should note that this is at "
11626 "best an educated guess made by reading configuration files such as C</etc/"
11627 "fstab>.  I<In particular note> that this may return filesystems which are "
11628 "non-existent or not mountable and callers should be prepared to handle or "
11629 "ignore failures if they try to mount them."
11630 msgstr ""
11631
11632 #. type: textblock
11633 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3482
11634 msgid ""
11635 "Each element in the returned hashtable has a key which is the path of the "
11636 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11637 "mounted there (eg. C</dev/sda1>)."
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3487
11642 msgid ""
11643 "Non-mounted devices such as swap devices are I<not> returned in this list."
11644 msgstr ""
11645
11646 #. type: textblock
11647 #: ../fish/guestfish-actions.pod:2255
11648 msgid ""
11649 "For operating systems like Windows which still use drive letters, this call "
11650 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11651 "information about the mapping of drive letters to partitions, see L</inspect-"
11652 "get-drive-mappings>."
11653 msgstr ""
11654
11655 #. type: textblock
11656 #: ../fish/guestfish-actions.pod:2261
11657 msgid ""
11658 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11659 "get-filesystems>."
11660 msgstr ""
11661
11662 #. type: =head2
11663 #: ../fish/guestfish-actions.pod:2264
11664 msgid "inspect-get-package-format"
11665 msgstr "inspect-get-package-format"
11666
11667 #. type: verbatim
11668 #: ../fish/guestfish-actions.pod:2266
11669 #, no-wrap
11670 msgid ""
11671 " inspect-get-package-format root\n"
11672 "\n"
11673 msgstr ""
11674 " inspect-get-package-format корінь\n"
11675 "\n"
11676
11677 #. type: textblock
11678 #: ../fish/guestfish-actions.pod:2268
11679 msgid ""
11680 "This function and L</inspect-get-package-management> return the package "
11681 "format and package management tool used by the inspected operating system.  "
11682 "For example for Fedora these functions would return C<rpm> (package format) "
11683 "and C<yum> (package management)."
11684 msgstr ""
11685
11686 #. type: textblock
11687 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3519
11688 msgid ""
11689 "This returns the string C<unknown> if we could not determine the package "
11690 "format I<or> if the operating system does not have a real packaging system "
11691 "(eg. Windows)."
11692 msgstr ""
11693
11694 #. type: textblock
11695 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3523
11696 msgid ""
11697 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11698 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
11699 msgstr ""
11700
11701 #. type: =head2
11702 #: ../fish/guestfish-actions.pod:2284
11703 msgid "inspect-get-package-management"
11704 msgstr "inspect-get-package-management"
11705
11706 #. type: verbatim
11707 #: ../fish/guestfish-actions.pod:2286
11708 #, no-wrap
11709 msgid ""
11710 " inspect-get-package-management root\n"
11711 "\n"
11712 msgstr ""
11713 " inspect-get-package-management корінь\n"
11714 "\n"
11715
11716 #. type: textblock
11717 #: ../fish/guestfish-actions.pod:2288
11718 msgid ""
11719 "L</inspect-get-package-format> and this function return the package format "
11720 "and package management tool used by the inspected operating system.  For "
11721 "example for Fedora these functions would return C<rpm> (package format) and "
11722 "C<yum> (package management)."
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:2294 ../src/guestfs-actions.pod:3546
11727 msgid ""
11728 "This returns the string C<unknown> if we could not determine the package "
11729 "management tool I<or> if the operating system does not have a real packaging "
11730 "system (eg. Windows)."
11731 msgstr ""
11732
11733 #. type: textblock
11734 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3550
11735 msgid ""
11736 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11737 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11738 "versions of libguestfs may return other strings."
11739 msgstr ""
11740
11741 #. type: =head2
11742 #: ../fish/guestfish-actions.pod:2305
11743 msgid "inspect-get-product-name"
11744 msgstr "inspect-get-product-name"
11745
11746 #. type: verbatim
11747 #: ../fish/guestfish-actions.pod:2307
11748 #, no-wrap
11749 msgid ""
11750 " inspect-get-product-name root\n"
11751 "\n"
11752 msgstr ""
11753 " inspect-get-product-name корінь\n"
11754 "\n"
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3568
11758 msgid ""
11759 "This returns the product name of the inspected operating system.  The "
11760 "product name is generally some freeform string which can be displayed to the "
11761 "user, but should not be parsed by programs."
11762 msgstr ""
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3573
11766 msgid ""
11767 "If the product name could not be determined, then the string C<unknown> is "
11768 "returned."
11769 msgstr ""
11770
11771 #. type: =head2
11772 #: ../fish/guestfish-actions.pod:2319
11773 msgid "inspect-get-product-variant"
11774 msgstr ""
11775
11776 #. type: verbatim
11777 #: ../fish/guestfish-actions.pod:2321
11778 #, no-wrap
11779 msgid ""
11780 " inspect-get-product-variant root\n"
11781 "\n"
11782 msgstr ""
11783
11784 #. type: textblock
11785 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3589
11786 msgid "This returns the product variant of the inspected operating system."
11787 msgstr ""
11788
11789 #. type: textblock
11790 #: ../fish/guestfish-actions.pod:2326 ../src/guestfs-actions.pod:3592
11791 msgid ""
11792 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11793 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11794 "is usually a string such as C<Client> or C<Server> (other values are "
11795 "possible).  This can be used to distinguish consumer and enterprise versions "
11796 "of Windows that have the same version number (for example, Windows 7 and "
11797 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11798 "the latter is C<Server>)."
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3601
11803 msgid ""
11804 "For enterprise Linux guests, in future we intend this to return the product "
11805 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11806 "implemented at present."
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3605
11811 msgid ""
11812 "If the product variant could not be determined, then the string C<unknown> "
11813 "is returned."
11814 msgstr ""
11815
11816 #. type: textblock
11817 #: ../fish/guestfish-actions.pod:2342
11818 msgid ""
11819 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11820 "get-product-name>, L</inspect-get-major-version>."
11821 msgstr ""
11822
11823 #. type: =head2
11824 #: ../fish/guestfish-actions.pod:2346
11825 msgid "inspect-get-roots"
11826 msgstr "inspect-get-roots"
11827
11828 #. type: verbatim
11829 #: ../fish/guestfish-actions.pod:2348
11830 #, no-wrap
11831 msgid ""
11832 " inspect-get-roots\n"
11833 "\n"
11834 msgstr ""
11835 " inspect-get-roots\n"
11836 "\n"
11837
11838 #. type: textblock
11839 #: ../fish/guestfish-actions.pod:2350
11840 msgid ""
11841 "This function is a convenient way to get the list of root devices, as "
11842 "returned from a previous call to L</inspect-os>, but without redoing the "
11843 "whole inspection process."
11844 msgstr ""
11845
11846 #. type: textblock
11847 #: ../fish/guestfish-actions.pod:2354
11848 msgid ""
11849 "This returns an empty list if either no root devices were found or the "
11850 "caller has not called L</inspect-os>."
11851 msgstr ""
11852
11853 #. type: =head2
11854 #: ../fish/guestfish-actions.pod:2359
11855 msgid "inspect-get-type"
11856 msgstr "inspect-get-type"
11857
11858 #. type: verbatim
11859 #: ../fish/guestfish-actions.pod:2361
11860 #, no-wrap
11861 msgid ""
11862 " inspect-get-type root\n"
11863 "\n"
11864 msgstr ""
11865 " inspect-get-type корінь\n"
11866 "\n"
11867
11868 #. type: textblock
11869 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3643
11870 msgid ""
11871 "This returns the type of the inspected operating system.  Currently defined "
11872 "types are:"
11873 msgstr ""
11874
11875 #. type: =item
11876 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3648
11877 msgid "\"linux\""
11878 msgstr "\"linux\""
11879
11880 #. type: textblock
11881 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3650
11882 msgid "Any Linux-based operating system."
11883 msgstr ""
11884
11885 #. type: textblock
11886 #: ../fish/guestfish-actions.pod:2374 ../src/guestfs-actions.pod:3654
11887 msgid "Any Microsoft Windows operating system."
11888 msgstr ""
11889
11890 #. type: =item
11891 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3656
11892 msgid "\"freebsd\""
11893 msgstr "\"freebsd\""
11894
11895 #. type: textblock
11896 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3658
11897 msgid "FreeBSD."
11898 msgstr "FreeBSD."
11899
11900 #. type: =item
11901 #: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3660
11902 msgid "\"netbsd\""
11903 msgstr ""
11904
11905 #. type: textblock
11906 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3662
11907 msgid "NetBSD."
11908 msgstr ""
11909
11910 #. type: =item
11911 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3664
11912 msgid "\"hurd\""
11913 msgstr ""
11914
11915 #. type: textblock
11916 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3666
11917 msgid "GNU/Hurd."
11918 msgstr ""
11919
11920 #. type: textblock
11921 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3670
11922 msgid "The operating system type could not be determined."
11923 msgstr ""
11924
11925 #. type: =head2
11926 #: ../fish/guestfish-actions.pod:2399
11927 msgid "inspect-get-windows-current-control-set"
11928 msgstr ""
11929
11930 #. type: verbatim
11931 #: ../fish/guestfish-actions.pod:2401
11932 #, no-wrap
11933 msgid ""
11934 " inspect-get-windows-current-control-set root\n"
11935 "\n"
11936 msgstr ""
11937
11938 #. type: textblock
11939 #: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3690
11940 msgid ""
11941 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11942 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11943 msgstr ""
11944
11945 #. type: textblock
11946 #: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3693
11947 msgid ""
11948 "This call assumes that the guest is Windows and that the Registry could be "
11949 "examined by inspection.  If this is not the case then an error is returned."
11950 msgstr ""
11951
11952 #. type: =head2
11953 #: ../fish/guestfish-actions.pod:2412
11954 msgid "inspect-get-windows-systemroot"
11955 msgstr "inspect-get-windows-systemroot"
11956
11957 #. type: verbatim
11958 #: ../fish/guestfish-actions.pod:2414
11959 #, no-wrap
11960 msgid ""
11961 " inspect-get-windows-systemroot root\n"
11962 "\n"
11963 msgstr ""
11964 " inspect-get-windows-systemroot корінь\n"
11965 "\n"
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:2416 ../src/guestfs-actions.pod:3710
11969 msgid ""
11970 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11971 "is a directory path such as C</WINDOWS>."
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3713
11976 msgid ""
11977 "This call assumes that the guest is Windows and that the systemroot could be "
11978 "determined by inspection.  If this is not the case then an error is returned."
11979 msgstr ""
11980
11981 #. type: =head2
11982 #: ../fish/guestfish-actions.pod:2425
11983 msgid "inspect-is-live"
11984 msgstr "inspect-is-live"
11985
11986 #. type: verbatim
11987 #: ../fish/guestfish-actions.pod:2427
11988 #, no-wrap
11989 msgid ""
11990 " inspect-is-live root\n"
11991 "\n"
11992 msgstr ""
11993 " inspect-is-live корінь\n"
11994 "\n"
11995
11996 #. type: textblock
11997 #: ../fish/guestfish-actions.pod:2429
11998 msgid ""
11999 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
12000 "then this returns true if a live image was detected on the disk."
12001 msgstr ""
12002
12003 #. type: =head2
12004 #: ../fish/guestfish-actions.pod:2435
12005 msgid "inspect-is-multipart"
12006 msgstr "inspect-is-multipart"
12007
12008 #. type: verbatim
12009 #: ../fish/guestfish-actions.pod:2437
12010 #, no-wrap
12011 msgid ""
12012 " inspect-is-multipart root\n"
12013 "\n"
12014 msgstr ""
12015 " inspect-is-multipart корінь\n"
12016 "\n"
12017
12018 #. type: textblock
12019 #: ../fish/guestfish-actions.pod:2439
12020 msgid ""
12021 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
12022 "then this returns true if the disk is part of a set."
12023 msgstr ""
12024
12025 #. type: =head2
12026 #: ../fish/guestfish-actions.pod:2445
12027 msgid "inspect-is-netinst"
12028 msgstr "inspect-is-netinst"
12029
12030 #. type: verbatim
12031 #: ../fish/guestfish-actions.pod:2447
12032 #, no-wrap
12033 msgid ""
12034 " inspect-is-netinst root\n"
12035 "\n"
12036 msgstr ""
12037 " inspect-is-netinst корінь\n"
12038 "\n"
12039
12040 #. type: textblock
12041 #: ../fish/guestfish-actions.pod:2449
12042 msgid ""
12043 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
12044 "then this returns true if the disk is a network installer, ie. not a self-"
12045 "contained install CD but one which is likely to require network access to "
12046 "complete the install."
12047 msgstr ""
12048
12049 #. type: =head2
12050 #: ../fish/guestfish-actions.pod:2457
12051 msgid "inspect-list-applications"
12052 msgstr "inspect-list-applications"
12053
12054 #. type: verbatim
12055 #: ../fish/guestfish-actions.pod:2459
12056 #, no-wrap
12057 msgid ""
12058 " inspect-list-applications root\n"
12059 "\n"
12060 msgstr ""
12061 " inspect-list-applications кореневий_каталог\n"
12062 "\n"
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:3780
12066 msgid "Return the list of applications installed in the operating system."
12067 msgstr ""
12068
12069 #. type: textblock
12070 #: ../fish/guestfish-actions.pod:2463
12071 msgid ""
12072 "I<Note:> This call works differently from other parts of the inspection "
12073 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
12074 "then mount up the disks, before calling this.  Listing applications is a "
12075 "significantly more difficult operation which requires access to the full "
12076 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
12077 "are just returning data cached in the libguestfs handle, this call actually "
12078 "reads parts of the mounted filesystems during the call."
12079 msgstr ""
12080
12081 #. type: textblock
12082 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3792
12083 msgid ""
12084 "This returns an empty list if the inspection code was not able to determine "
12085 "the list of applications."
12086 msgstr ""
12087
12088 #. type: textblock
12089 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3795
12090 msgid "The application structure contains the following fields:"
12091 msgstr ""
12092
12093 #. type: =item
12094 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3799
12095 msgid "C<app_name>"
12096 msgstr "C<app_name>"
12097
12098 #. type: textblock
12099 #: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3801
12100 msgid ""
12101 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12102 "guests, this is the package name."
12103 msgstr ""
12104
12105 #. type: =item
12106 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3804
12107 msgid "C<app_display_name>"
12108 msgstr "C<app_display_name>"
12109
12110 #. type: textblock
12111 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3806
12112 msgid ""
12113 "The display name of the application, sometimes localized to the install "
12114 "language of the guest operating system."
12115 msgstr ""
12116
12117 #. type: textblock
12118 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3809
12119 msgid ""
12120 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12121 "to display something can use C<app_name> instead."
12122 msgstr ""
12123
12124 #. type: =item
12125 #: ../fish/guestfish-actions.pod:2493 ../src/guestfs-actions.pod:3812
12126 msgid "C<app_epoch>"
12127 msgstr "C<app_epoch>"
12128
12129 #. type: textblock
12130 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3814
12131 msgid ""
12132 "For package managers which use epochs, this contains the epoch of the "
12133 "package (an integer).  If unavailable, this is returned as C<0>."
12134 msgstr ""
12135
12136 #. type: =item
12137 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3817
12138 msgid "C<app_version>"
12139 msgstr "C<app_version>"
12140
12141 #. type: textblock
12142 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3819
12143 msgid ""
12144 "The version string of the application or package.  If unavailable this is "
12145 "returned as an empty string C<\"\">."
12146 msgstr ""
12147
12148 #. type: =item
12149 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3822
12150 msgid "C<app_release>"
12151 msgstr "C<app_release>"
12152
12153 #. type: textblock
12154 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3824
12155 msgid ""
12156 "The release string of the application or package, for package managers that "
12157 "use this.  If unavailable this is returned as an empty string C<\"\">."
12158 msgstr ""
12159
12160 #. type: =item
12161 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3828
12162 msgid "C<app_install_path>"
12163 msgstr "C<app_install_path>"
12164
12165 #. type: textblock
12166 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3830
12167 msgid ""
12168 "The installation path of the application (on operating systems such as "
12169 "Windows which use installation paths).  This path is in the format used by "
12170 "the guest operating system, it is not a libguestfs path."
12171 msgstr ""
12172
12173 #. type: textblock
12174 #: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3835
12175 msgid "If unavailable this is returned as an empty string C<\"\">."
12176 msgstr ""
12177
12178 #. type: =item
12179 #: ../fish/guestfish-actions.pod:2518 ../src/guestfs-actions.pod:3837
12180 msgid "C<app_trans_path>"
12181 msgstr "C<app_trans_path>"
12182
12183 #. type: textblock
12184 #: ../fish/guestfish-actions.pod:2520 ../src/guestfs-actions.pod:3839
12185 msgid ""
12186 "The install path translated into a libguestfs path.  If unavailable this is "
12187 "returned as an empty string C<\"\">."
12188 msgstr ""
12189
12190 #. type: =item
12191 #: ../fish/guestfish-actions.pod:2523 ../src/guestfs-actions.pod:3842
12192 msgid "C<app_publisher>"
12193 msgstr "C<app_publisher>"
12194
12195 #. type: textblock
12196 #: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3844
12197 msgid ""
12198 "The name of the publisher of the application, for package managers that use "
12199 "this.  If unavailable this is returned as an empty string C<\"\">."
12200 msgstr ""
12201
12202 #. type: =item
12203 #: ../fish/guestfish-actions.pod:2529 ../src/guestfs-actions.pod:3848
12204 msgid "C<app_url>"
12205 msgstr "C<app_url>"
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3850
12209 msgid ""
12210 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12211 "returned as an empty string C<\"\">."
12212 msgstr ""
12213
12214 #. type: =item
12215 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3853
12216 msgid "C<app_source_package>"
12217 msgstr "C<app_source_package>"
12218
12219 #. type: textblock
12220 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3855
12221 msgid ""
12222 "For packaging systems which support this, the name of the source package.  "
12223 "If unavailable this is returned as an empty string C<\"\">."
12224 msgstr ""
12225
12226 #. type: =item
12227 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3858
12228 msgid "C<app_summary>"
12229 msgstr "C<app_summary>"
12230
12231 #. type: textblock
12232 #: ../fish/guestfish-actions.pod:2541 ../src/guestfs-actions.pod:3860
12233 msgid ""
12234 "A short (usually one line) description of the application or package.  If "
12235 "unavailable this is returned as an empty string C<\"\">."
12236 msgstr ""
12237
12238 #. type: =item
12239 #: ../fish/guestfish-actions.pod:2544 ../src/guestfs-actions.pod:3863
12240 msgid "C<app_description>"
12241 msgstr "C<app_description>"
12242
12243 #. type: textblock
12244 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3865
12245 msgid ""
12246 "A longer description of the application or package.  If unavailable this is "
12247 "returned as an empty string C<\"\">."
12248 msgstr ""
12249
12250 #. type: =head2
12251 #: ../fish/guestfish-actions.pod:2553
12252 msgid "inspect-os"
12253 msgstr "inspect-os"
12254
12255 #. type: verbatim
12256 #: ../fish/guestfish-actions.pod:2555
12257 #, no-wrap
12258 msgid ""
12259 " inspect-os\n"
12260 "\n"
12261 msgstr ""
12262 " inspect-os\n"
12263 "\n"
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3883
12267 msgid ""
12268 "This function uses other libguestfs functions and certain heuristics to "
12269 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12270 "for operating systems."
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3887
12275 msgid "The list returned is empty if no operating systems were found."
12276 msgstr ""
12277
12278 #. type: textblock
12279 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3889
12280 msgid ""
12281 "If one operating system was found, then this returns a list with a single "
12282 "element, which is the name of the root filesystem of this operating system.  "
12283 "It is also possible for this function to return a list containing more than "
12284 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12285 "element being the root filesystem of one of the operating systems."
12286 msgstr ""
12287
12288 #. type: textblock
12289 #: ../fish/guestfish-actions.pod:2570
12290 msgid ""
12291 "You can pass the root string(s) returned to other L</inspect-get-*> "
12292 "functions in order to query further information about each operating system, "
12293 "such as the name and version."
12294 msgstr ""
12295
12296 #. type: textblock
12297 #: ../fish/guestfish-actions.pod:2575
12298 msgid ""
12299 "This function uses other libguestfs features such as L</mount-ro> and L</"
12300 "umount-all> in order to mount and unmount filesystems and look at the "
12301 "contents.  This should be called with no disks currently mounted.  The "
12302 "function may also use Augeas, so any existing Augeas handle will be closed."
12303 msgstr ""
12304
12305 #. type: textblock
12306 #: ../fish/guestfish-actions.pod:2581 ../src/guestfs-actions.pod:3907
12307 msgid ""
12308 "This function cannot decrypt encrypted disks.  The caller must do that first "
12309 "(supplying the necessary keys) if the disk is encrypted."
12310 msgstr ""
12311
12312 #. type: textblock
12313 #: ../fish/guestfish-actions.pod:2587 ../fish/guestfish-actions.pod:2785
12314 #: ../fish/guestfish-actions.pod:2850
12315 msgid "See also L</list-filesystems>."
12316 msgstr "Див. також L</list-filesystems>."
12317
12318 #. type: =head2
12319 #: ../fish/guestfish-actions.pod:2589
12320 msgid "is-blockdev"
12321 msgstr "is-blockdev"
12322
12323 #. type: verbatim
12324 #: ../fish/guestfish-actions.pod:2591
12325 #, no-wrap
12326 msgid ""
12327 " is-blockdev path\n"
12328 "\n"
12329 msgstr ""
12330 " is-blockdev шлях\n"
12331 "\n"
12332
12333 #. type: textblock
12334 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3927
12335 msgid ""
12336 "This returns C<true> if and only if there is a block device with the given "
12337 "C<path> name."
12338 msgstr ""
12339
12340 #. type: textblock
12341 #: ../fish/guestfish-actions.pod:2596 ../fish/guestfish-actions.pod:2614
12342 #: ../fish/guestfish-actions.pod:2633 ../fish/guestfish-actions.pod:2642
12343 #: ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2686
12344 #: ../fish/guestfish-actions.pod:2695
12345 msgid "See also L</stat>."
12346 msgstr "Див. також L</stat>."
12347
12348 #. type: =head2
12349 #: ../fish/guestfish-actions.pod:2598
12350 msgid "is-busy"
12351 msgstr "is-busy"
12352
12353 #. type: verbatim
12354 #: ../fish/guestfish-actions.pod:2600
12355 #, no-wrap
12356 msgid ""
12357 " is-busy\n"
12358 "\n"
12359 msgstr ""
12360 " is-busy\n"
12361 "\n"
12362
12363 #. type: textblock
12364 #: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3941
12365 msgid ""
12366 "This returns true iff this handle is busy processing a command (in the "
12367 "C<BUSY> state)."
12368 msgstr ""
12369
12370 #. type: =head2
12371 #: ../fish/guestfish-actions.pod:2607
12372 msgid "is-chardev"
12373 msgstr "is-chardev"
12374
12375 #. type: verbatim
12376 #: ../fish/guestfish-actions.pod:2609
12377 #, no-wrap
12378 msgid ""
12379 " is-chardev path\n"
12380 "\n"
12381 msgstr ""
12382 " is-chardev шлях\n"
12383 "\n"
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3956
12387 msgid ""
12388 "This returns C<true> if and only if there is a character device with the "
12389 "given C<path> name."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../fish/guestfish-actions.pod:2616
12394 msgid "is-config"
12395 msgstr "is-config"
12396
12397 #. type: verbatim
12398 #: ../fish/guestfish-actions.pod:2618
12399 #, no-wrap
12400 msgid ""
12401 " is-config\n"
12402 "\n"
12403 msgstr ""
12404 " is-config\n"
12405 "\n"
12406
12407 #. type: textblock
12408 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3970
12409 msgid ""
12410 "This returns true iff this handle is being configured (in the C<CONFIG> "
12411 "state)."
12412 msgstr ""
12413
12414 #. type: =head2
12415 #: ../fish/guestfish-actions.pod:2625
12416 msgid "is-dir"
12417 msgstr "is-dir"
12418
12419 #. type: verbatim
12420 #: ../fish/guestfish-actions.pod:2627
12421 #, no-wrap
12422 msgid ""
12423 " is-dir path\n"
12424 "\n"
12425 msgstr ""
12426 " is-dir шлях\n"
12427 "\n"
12428
12429 #. type: textblock
12430 #: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:3985
12431 msgid ""
12432 "This returns C<true> if and only if there is a directory with the given "
12433 "C<path> name.  Note that it returns false for other objects like files."
12434 msgstr ""
12435
12436 #. type: =head2
12437 #: ../fish/guestfish-actions.pod:2635
12438 msgid "is-fifo"
12439 msgstr "is-fifo"
12440
12441 #. type: verbatim
12442 #: ../fish/guestfish-actions.pod:2637
12443 #, no-wrap
12444 msgid ""
12445 " is-fifo path\n"
12446 "\n"
12447 msgstr ""
12448 " is-fifo шлях\n"
12449 "\n"
12450
12451 #. type: textblock
12452 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4001
12453 msgid ""
12454 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12455 "given C<path> name."
12456 msgstr ""
12457
12458 #. type: =head2
12459 #: ../fish/guestfish-actions.pod:2644
12460 msgid "is-file"
12461 msgstr "is-file"
12462
12463 #. type: verbatim
12464 #: ../fish/guestfish-actions.pod:2646
12465 #, no-wrap
12466 msgid ""
12467 " is-file path\n"
12468 "\n"
12469 msgstr ""
12470 " is-file шлях\n"
12471 "\n"
12472
12473 #. type: textblock
12474 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4016
12475 msgid ""
12476 "This returns C<true> if and only if there is a regular file with the given "
12477 "C<path> name.  Note that it returns false for other objects like directories."
12478 msgstr ""
12479
12480 #. type: =head2
12481 #: ../fish/guestfish-actions.pod:2654
12482 msgid "is-launching"
12483 msgstr "is-launching"
12484
12485 #. type: verbatim
12486 #: ../fish/guestfish-actions.pod:2656
12487 #, no-wrap
12488 msgid ""
12489 " is-launching\n"
12490 "\n"
12491 msgstr ""
12492 " is-launching\n"
12493 "\n"
12494
12495 #. type: textblock
12496 #: ../fish/guestfish-actions.pod:2658 ../src/guestfs-actions.pod:4031
12497 msgid ""
12498 "This returns true iff this handle is launching the subprocess (in the "
12499 "C<LAUNCHING> state)."
12500 msgstr ""
12501
12502 #. type: =head2
12503 #: ../fish/guestfish-actions.pod:2663
12504 msgid "is-lv"
12505 msgstr "is-lv"
12506
12507 #. type: verbatim
12508 #: ../fish/guestfish-actions.pod:2665
12509 #, no-wrap
12510 msgid ""
12511 " is-lv device\n"
12512 "\n"
12513 msgstr ""
12514 " is-lv пристрій\n"
12515 "\n"
12516
12517 #. type: textblock
12518 #: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:4046
12519 msgid ""
12520 "This command tests whether C<device> is a logical volume, and returns true "
12521 "iff this is the case."
12522 msgstr ""
12523
12524 #. type: =head2
12525 #: ../fish/guestfish-actions.pod:2670
12526 msgid "is-ready"
12527 msgstr "is-ready"
12528
12529 #. type: verbatim
12530 #: ../fish/guestfish-actions.pod:2672
12531 #, no-wrap
12532 msgid ""
12533 " is-ready\n"
12534 "\n"
12535 msgstr ""
12536 " is-ready\n"
12537 "\n"
12538
12539 #. type: textblock
12540 #: ../fish/guestfish-actions.pod:2674 ../src/guestfs-actions.pod:4058
12541 msgid ""
12542 "This returns true iff this handle is ready to accept commands (in the "
12543 "C<READY> state)."
12544 msgstr ""
12545
12546 #. type: =head2
12547 #: ../fish/guestfish-actions.pod:2679
12548 msgid "is-socket"
12549 msgstr "is-socket"
12550
12551 #. type: verbatim
12552 #: ../fish/guestfish-actions.pod:2681
12553 #, no-wrap
12554 msgid ""
12555 " is-socket path\n"
12556 "\n"
12557 msgstr ""
12558 " is-socket шлях\n"
12559 "\n"
12560
12561 #. type: textblock
12562 #: ../fish/guestfish-actions.pod:2683 ../src/guestfs-actions.pod:4073
12563 msgid ""
12564 "This returns C<true> if and only if there is a Unix domain socket with the "
12565 "given C<path> name."
12566 msgstr ""
12567
12568 #. type: =head2
12569 #: ../fish/guestfish-actions.pod:2688
12570 msgid "is-symlink"
12571 msgstr "is-symlink"
12572
12573 #. type: verbatim
12574 #: ../fish/guestfish-actions.pod:2690
12575 #, no-wrap
12576 msgid ""
12577 " is-symlink path\n"
12578 "\n"
12579 msgstr ""
12580 " is-symlink шлях\n"
12581 "\n"
12582
12583 #. type: textblock
12584 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4088
12585 msgid ""
12586 "This returns C<true> if and only if there is a symbolic link with the given "
12587 "C<path> name."
12588 msgstr ""
12589
12590 #. type: =head2
12591 #: ../fish/guestfish-actions.pod:2697
12592 msgid "is-zero"
12593 msgstr ""
12594
12595 #. type: verbatim
12596 #: ../fish/guestfish-actions.pod:2699
12597 #, no-wrap
12598 msgid ""
12599 " is-zero path\n"
12600 "\n"
12601 msgstr ""
12602
12603 #. type: textblock
12604 #: ../fish/guestfish-actions.pod:2701 ../src/guestfs-actions.pod:4103
12605 msgid ""
12606 "This returns true iff the file exists and the file is empty or it contains "
12607 "all zero bytes."
12608 msgstr ""
12609
12610 #. type: =head2
12611 #: ../fish/guestfish-actions.pod:2704
12612 msgid "is-zero-device"
12613 msgstr ""
12614
12615 #. type: verbatim
12616 #: ../fish/guestfish-actions.pod:2706
12617 #, no-wrap
12618 msgid ""
12619 " is-zero-device device\n"
12620 "\n"
12621 msgstr ""
12622
12623 #. type: textblock
12624 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4116
12625 msgid "This returns true iff the device exists and contains all zero bytes."
12626 msgstr ""
12627
12628 #. type: textblock
12629 #: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4118
12630 msgid "Note that for large devices this can take a long time to run."
12631 msgstr ""
12632
12633 #. type: =head2
12634 #: ../fish/guestfish-actions.pod:2712
12635 msgid "kill-subprocess"
12636 msgstr "kill-subprocess"
12637
12638 #. type: verbatim
12639 #: ../fish/guestfish-actions.pod:2714
12640 #, no-wrap
12641 msgid ""
12642 " kill-subprocess\n"
12643 "\n"
12644 msgstr ""
12645 " kill-subprocess\n"
12646 "\n"
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:2716 ../src/guestfs-actions.pod:4129
12650 msgid "This kills the qemu subprocess.  You should never need to call this."
12651 msgstr ""
12652
12653 #. type: =head2
12654 #: ../fish/guestfish-actions.pod:2718
12655 msgid "launch"
12656 msgstr "launch"
12657
12658 #. type: =head2
12659 #: ../fish/guestfish-actions.pod:2720
12660 msgid "run"
12661 msgstr ""
12662
12663 #. type: verbatim
12664 #: ../fish/guestfish-actions.pod:2722
12665 #, no-wrap
12666 msgid ""
12667 " launch\n"
12668 "\n"
12669 msgstr ""
12670 " launch\n"
12671 "\n"
12672
12673 #. type: textblock
12674 #: ../fish/guestfish-actions.pod:2724 ../src/guestfs-actions.pod:4140
12675 msgid ""
12676 "Internally libguestfs is implemented by running a virtual machine using "
12677 "L<qemu(1)>."
12678 msgstr ""
12679
12680 #. type: textblock
12681 #: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4143
12682 msgid ""
12683 "You should call this after configuring the handle (eg. adding drives) but "
12684 "before performing any actions."
12685 msgstr ""
12686
12687 #. type: =head2
12688 #: ../fish/guestfish-actions.pod:2730
12689 msgid "lchown"
12690 msgstr "lchown"
12691
12692 #. type: verbatim
12693 #: ../fish/guestfish-actions.pod:2732
12694 #, no-wrap
12695 msgid ""
12696 " lchown owner group path\n"
12697 "\n"
12698 msgstr ""
12699 " lchown власник група шлях\n"
12700 "\n"
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:2734
12704 msgid ""
12705 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12706 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12707 "target."
12708 msgstr ""
12709
12710 #. type: =head2
12711 #: ../fish/guestfish-actions.pod:2742
12712 msgid "lgetxattr"
12713 msgstr "lgetxattr"
12714
12715 #. type: verbatim
12716 #: ../fish/guestfish-actions.pod:2744
12717 #, no-wrap
12718 msgid ""
12719 " lgetxattr path name\n"
12720 "\n"
12721 msgstr ""
12722 " lgetxattr шлях назва\n"
12723 "\n"
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4183
12727 msgid ""
12728 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12729 "is a symlink, then this call returns an extended attribute from the symlink."
12730 msgstr ""
12731
12732 #. type: textblock
12733 #: ../fish/guestfish-actions.pod:2760
12734 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12735 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12736
12737 #. type: =head2
12738 #: ../fish/guestfish-actions.pod:2762
12739 msgid "lgetxattrs"
12740 msgstr "lgetxattrs"
12741
12742 #. type: verbatim
12743 #: ../fish/guestfish-actions.pod:2764
12744 #, no-wrap
12745 msgid ""
12746 " lgetxattrs path\n"
12747 "\n"
12748 msgstr ""
12749 " lgetxattrs шлях\n"
12750 "\n"
12751
12752 #. type: textblock
12753 #: ../fish/guestfish-actions.pod:2766
12754 msgid ""
12755 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12756 "it returns the extended attributes of the link itself."
12757 msgstr ""
12758
12759 #. type: =head2
12760 #: ../fish/guestfish-actions.pod:2770
12761 msgid "list-9p"
12762 msgstr ""
12763
12764 #. type: verbatim
12765 #: ../fish/guestfish-actions.pod:2772
12766 #, no-wrap
12767 msgid ""
12768 " list-9p\n"
12769 "\n"
12770 msgstr ""
12771
12772 #. type: textblock
12773 #: ../fish/guestfish-actions.pod:2774 ../src/guestfs-actions.pod:4226
12774 msgid ""
12775 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12776 "returned."
12777 msgstr ""
12778
12779 #. type: =head2
12780 #: ../fish/guestfish-actions.pod:2777
12781 msgid "list-devices"
12782 msgstr "list-devices"
12783
12784 #. type: verbatim
12785 #: ../fish/guestfish-actions.pod:2779
12786 #, no-wrap
12787 msgid ""
12788 " list-devices\n"
12789 "\n"
12790 msgstr ""
12791 " list-devices\n"
12792 "\n"
12793
12794 #. type: textblock
12795 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4240
12796 msgid "List all the block devices."
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:2783 ../src/guestfs-actions.pod:4242
12801 msgid "The full block device names are returned, eg. C</dev/sda>."
12802 msgstr ""
12803
12804 #. type: =head2
12805 #: ../fish/guestfish-actions.pod:2787
12806 msgid "list-dm-devices"
12807 msgstr ""
12808
12809 #. type: verbatim
12810 #: ../fish/guestfish-actions.pod:2789
12811 #, no-wrap
12812 msgid ""
12813 " list-dm-devices\n"
12814 "\n"
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:2791 ../src/guestfs-actions.pod:4257
12819 msgid "List all device mapper devices."
12820 msgstr ""
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:2793
12824 msgid ""
12825 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12826 "previous call to L</luks-open>."
12827 msgstr ""
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:2796
12831 msgid ""
12832 "Device mapper devices which correspond to logical volumes are I<not> "
12833 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12834 msgstr ""
12835
12836 #. type: =head2
12837 #: ../fish/guestfish-actions.pod:2800
12838 msgid "list-filesystems"
12839 msgstr "list-filesystems"
12840
12841 #. type: verbatim
12842 #: ../fish/guestfish-actions.pod:2802
12843 #, no-wrap
12844 msgid ""
12845 " list-filesystems\n"
12846 "\n"
12847 msgstr ""
12848 " list-filesystems\n"
12849 "\n"
12850
12851 #. type: textblock
12852 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4277
12853 msgid ""
12854 "This inspection command looks for filesystems on partitions, block devices "
12855 "and logical volumes, returning a list of devices containing filesystems and "
12856 "their type."
12857 msgstr ""
12858
12859 #. type: textblock
12860 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4281
12861 msgid ""
12862 "The return value is a hash, where the keys are the devices containing "
12863 "filesystems, and the values are the filesystem types.  For example:"
12864 msgstr ""
12865
12866 #. type: verbatim
12867 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4285
12868 #, no-wrap
12869 msgid ""
12870 " \"/dev/sda1\" => \"ntfs\"\n"
12871 " \"/dev/sda2\" => \"ext2\"\n"
12872 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12873 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12874 "\n"
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:2817 ../src/guestfs-actions.pod:4290
12879 msgid ""
12880 "The value can have the special value \"unknown\", meaning the content of the "
12881 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:2821
12886 msgid ""
12887 "This command runs other libguestfs commands, which might include L</mount> "
12888 "and L</umount>, and therefore you should use this soon after launch and only "
12889 "when nothing is mounted."
12890 msgstr ""
12891
12892 #. type: textblock
12893 #: ../fish/guestfish-actions.pod:2825
12894 msgid ""
12895 "Not all of the filesystems returned will be mountable.  In particular, swap "
12896 "partitions are returned in the list.  Also this command does not check that "
12897 "each filesystem found is valid and mountable, and some filesystems might be "
12898 "mountable but require special options.  Filesystems may not all belong to a "
12899 "single logical operating system (use L</inspect-os> to look for OSes)."
12900 msgstr ""
12901
12902 #. type: =head2
12903 #: ../fish/guestfish-actions.pod:2833
12904 #, fuzzy
12905 #| msgid "list-devices"
12906 msgid "list-md-devices"
12907 msgstr "list-devices"
12908
12909 #. type: verbatim
12910 #: ../fish/guestfish-actions.pod:2835
12911 #, fuzzy, no-wrap
12912 #| msgid ""
12913 #| " list-devices\n"
12914 #| "\n"
12915 msgid ""
12916 " list-md-devices\n"
12917 "\n"
12918 msgstr ""
12919 " list-devices\n"
12920 "\n"
12921
12922 #. type: textblock
12923 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4319
12924 msgid "List all Linux md devices."
12925 msgstr ""
12926
12927 #. type: =head2
12928 #: ../fish/guestfish-actions.pod:2839
12929 msgid "list-partitions"
12930 msgstr "list-partitions"
12931
12932 #. type: verbatim
12933 #: ../fish/guestfish-actions.pod:2841
12934 #, no-wrap
12935 msgid ""
12936 " list-partitions\n"
12937 "\n"
12938 msgstr ""
12939 " list-partitions\n"
12940 "\n"
12941
12942 #. type: textblock
12943 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4332
12944 msgid "List all the partitions detected on all block devices."
12945 msgstr ""
12946
12947 #. type: textblock
12948 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4334
12949 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:2847
12954 msgid ""
12955 "This does not return logical volumes.  For that you will need to call L</"
12956 "lvs>."
12957 msgstr ""
12958
12959 #. type: =head2
12960 #: ../fish/guestfish-actions.pod:2852
12961 msgid "ll"
12962 msgstr "ll"
12963
12964 #. type: verbatim
12965 #: ../fish/guestfish-actions.pod:2854
12966 #, no-wrap
12967 msgid ""
12968 " ll directory\n"
12969 "\n"
12970 msgstr ""
12971 " ll каталог\n"
12972 "\n"
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4353
12976 msgid ""
12977 "List the files in C<directory> (relative to the root directory, there is no "
12978 "cwd) in the format of 'ls -la'."
12979 msgstr ""
12980
12981 #. type: textblock
12982 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4356
12983 msgid ""
12984 "This command is mostly useful for interactive sessions.  It is I<not> "
12985 "intended that you try to parse the output string."
12986 msgstr ""
12987
12988 #. type: =head2
12989 #: ../fish/guestfish-actions.pod:2862
12990 msgid "ln"
12991 msgstr "ln"
12992
12993 #. type: verbatim
12994 #: ../fish/guestfish-actions.pod:2864
12995 #, no-wrap
12996 msgid ""
12997 " ln target linkname\n"
12998 "\n"
12999 msgstr ""
13000 " ln призначення назва_посилання\n"
13001 "\n"
13002
13003 #. type: textblock
13004 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4371
13005 msgid "This command creates a hard link using the C<ln> command."
13006 msgstr ""
13007
13008 #. type: =head2
13009 #: ../fish/guestfish-actions.pod:2868
13010 msgid "ln-f"
13011 msgstr "ln-f"
13012
13013 #. type: verbatim
13014 #: ../fish/guestfish-actions.pod:2870
13015 #, no-wrap
13016 msgid ""
13017 " ln-f target linkname\n"
13018 "\n"
13019 msgstr ""
13020 " ln-f призначення назва_посилання\n"
13021 "\n"
13022
13023 #. type: textblock
13024 #: ../fish/guestfish-actions.pod:2872 ../src/guestfs-actions.pod:4384
13025 msgid ""
13026 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
13027 "option removes the link (C<linkname>) if it exists already."
13028 msgstr ""
13029
13030 #. type: =head2
13031 #: ../fish/guestfish-actions.pod:2875
13032 msgid "ln-s"
13033 msgstr "ln-s"
13034
13035 #. type: verbatim
13036 #: ../fish/guestfish-actions.pod:2877
13037 #, no-wrap
13038 msgid ""
13039 " ln-s target linkname\n"
13040 "\n"
13041 msgstr ""
13042 " ln-s призначення назва_посилання\n"
13043 "\n"
13044
13045 #. type: textblock
13046 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4398
13047 msgid "This command creates a symbolic link using the C<ln -s> command."
13048 msgstr ""
13049
13050 #. type: =head2
13051 #: ../fish/guestfish-actions.pod:2881
13052 msgid "ln-sf"
13053 msgstr "ln-sf"
13054
13055 #. type: verbatim
13056 #: ../fish/guestfish-actions.pod:2883
13057 #, no-wrap
13058 msgid ""
13059 " ln-sf target linkname\n"
13060 "\n"
13061 msgstr ""
13062 " ln-sf призначення назва_посилання\n"
13063 "\n"
13064
13065 #. type: textblock
13066 #: ../fish/guestfish-actions.pod:2885 ../src/guestfs-actions.pod:4411
13067 msgid ""
13068 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
13069 "option removes the link (C<linkname>) if it exists already."
13070 msgstr ""
13071
13072 #. type: =head2
13073 #: ../fish/guestfish-actions.pod:2888
13074 msgid "lremovexattr"
13075 msgstr "lremovexattr"
13076
13077 #. type: verbatim
13078 #: ../fish/guestfish-actions.pod:2890
13079 #, no-wrap
13080 msgid ""
13081 " lremovexattr xattr path\n"
13082 "\n"
13083 msgstr ""
13084
13085 #. type: textblock
13086 #: ../fish/guestfish-actions.pod:2892
13087 msgid ""
13088 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
13089 "it removes an extended attribute of the link itself."
13090 msgstr ""
13091
13092 #. type: =head2
13093 #: ../fish/guestfish-actions.pod:2896
13094 msgid "ls"
13095 msgstr "ls"
13096
13097 #. type: verbatim
13098 #: ../fish/guestfish-actions.pod:2898
13099 #, no-wrap
13100 msgid ""
13101 " ls directory\n"
13102 "\n"
13103 msgstr ""
13104 " ls каталог\n"
13105 "\n"
13106
13107 #. type: textblock
13108 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4439
13109 msgid ""
13110 "List the files in C<directory> (relative to the root directory, there is no "
13111 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13112 msgstr ""
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:2904
13116 msgid ""
13117 "This command is mostly useful for interactive sessions.  Programs should "
13118 "probably use L</readdir> instead."
13119 msgstr ""
13120
13121 #. type: =head2
13122 #: ../fish/guestfish-actions.pod:2907
13123 msgid "lsetxattr"
13124 msgstr "lsetxattr"
13125
13126 #. type: verbatim
13127 #: ../fish/guestfish-actions.pod:2909
13128 #, no-wrap
13129 msgid ""
13130 " lsetxattr xattr val vallen path\n"
13131 "\n"
13132 msgstr ""
13133
13134 #. type: textblock
13135 #: ../fish/guestfish-actions.pod:2911
13136 msgid ""
13137 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
13138 "sets an extended attribute of the link itself."
13139 msgstr ""
13140
13141 #. type: =head2
13142 #: ../fish/guestfish-actions.pod:2915
13143 msgid "lstat"
13144 msgstr "lstat"
13145
13146 #. type: verbatim
13147 #: ../fish/guestfish-actions.pod:2917
13148 #, no-wrap
13149 msgid ""
13150 " lstat path\n"
13151 "\n"
13152 msgstr ""
13153 " lstat шлях\n"
13154 "\n"
13155
13156 #. type: textblock
13157 #: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:4817
13158 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:7405
13159 msgid "Returns file information for the given C<path>."
13160 msgstr ""
13161
13162 #. type: textblock
13163 #: ../fish/guestfish-actions.pod:2921
13164 msgid ""
13165 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
13166 "the link is stat-ed, not the file it refers to."
13167 msgstr ""
13168
13169 #. type: textblock
13170 #: ../fish/guestfish-actions.pod:2925 ../src/guestfs-actions.pod:4481
13171 msgid "This is the same as the C<lstat(2)> system call."
13172 msgstr ""
13173
13174 #. type: =head2
13175 #: ../fish/guestfish-actions.pod:2927
13176 msgid "lstatlist"
13177 msgstr "lstatlist"
13178
13179 #. type: verbatim
13180 #: ../fish/guestfish-actions.pod:2929
13181 #, no-wrap
13182 msgid ""
13183 " lstatlist path 'names ...'\n"
13184 "\n"
13185 msgstr ""
13186
13187 #. type: textblock
13188 #: ../fish/guestfish-actions.pod:2931
13189 msgid ""
13190 "This call allows you to perform the L</lstat> operation on multiple files, "
13191 "where all files are in the directory C<path>.  C<names> is the list of files "
13192 "from this directory."
13193 msgstr ""
13194
13195 #. type: textblock
13196 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4500
13197 msgid ""
13198 "On return you get a list of stat structs, with a one-to-one correspondence "
13199 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13200 "then the C<ino> field of that structure is set to C<-1>."
13201 msgstr ""
13202
13203 #. type: textblock
13204 #: ../fish/guestfish-actions.pod:2940
13205 msgid ""
13206 "This call is intended for programs that want to efficiently list a directory "
13207 "contents without making many round-trips.  See also L</lxattrlist> for a "
13208 "similarly efficient call for getting extended attributes.  Very long "
13209 "directory listings might cause the protocol message size to be exceeded, "
13210 "causing this call to fail.  The caller must split up such requests into "
13211 "smaller groups of names."
13212 msgstr ""
13213
13214 #. type: =head2
13215 #: ../fish/guestfish-actions.pod:2948
13216 msgid "luks-add-key"
13217 msgstr "luks-add-key"
13218
13219 #. type: verbatim
13220 #: ../fish/guestfish-actions.pod:2950
13221 #, no-wrap
13222 msgid ""
13223 " luks-add-key device keyslot\n"
13224 "\n"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:2952 ../src/guestfs-actions.pod:4528
13229 msgid ""
13230 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13231 "existing key, and is used to access the device.  C<newkey> is the new key to "
13232 "add.  C<keyslot> is the key slot that will be replaced."
13233 msgstr ""
13234
13235 #. type: textblock
13236 #: ../fish/guestfish-actions.pod:2957
13237 msgid ""
13238 "Note that if C<keyslot> already contains a key, then this command will "
13239 "fail.  You have to use L</luks-kill-slot> first to remove that key."
13240 msgstr ""
13241
13242 #. type: textblock
13243 #: ../fish/guestfish-actions.pod:2961 ../fish/guestfish-actions.pod:2983
13244 #: ../fish/guestfish-actions.pod:2993 ../fish/guestfish-actions.pod:3004
13245 #: ../fish/guestfish-actions.pod:3030 ../fish/guestfish-actions.pod:3040
13246 msgid ""
13247 "This command has one or more key or passphrase parameters.  Guestfish will "
13248 "prompt for these separately."
13249 msgstr ""
13250
13251 #. type: =head2
13252 #: ../fish/guestfish-actions.pod:2964
13253 msgid "luks-close"
13254 msgstr "luks-close"
13255
13256 #. type: verbatim
13257 #: ../fish/guestfish-actions.pod:2966
13258 #, no-wrap
13259 msgid ""
13260 " luks-close device\n"
13261 "\n"
13262 msgstr ""
13263 " luks-close пристрій\n"
13264 "\n"
13265
13266 #. type: textblock
13267 #: ../fish/guestfish-actions.pod:2968
13268 msgid ""
13269 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
13270 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
13271 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
13272 "block device."
13273 msgstr ""
13274
13275 #. type: =head2
13276 #: ../fish/guestfish-actions.pod:2974
13277 msgid "luks-format"
13278 msgstr "luks-format"
13279
13280 #. type: verbatim
13281 #: ../fish/guestfish-actions.pod:2976
13282 #, no-wrap
13283 msgid ""
13284 " luks-format device keyslot\n"
13285 "\n"
13286 msgstr ""
13287
13288 #. type: textblock
13289 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4569
13290 msgid ""
13291 "This command erases existing data on C<device> and formats the device as a "
13292 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13293 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13294 msgstr ""
13295
13296 #. type: =head2
13297 #: ../fish/guestfish-actions.pod:2986
13298 msgid "luks-format-cipher"
13299 msgstr "luks-format-cipher"
13300
13301 #. type: verbatim
13302 #: ../fish/guestfish-actions.pod:2988
13303 #, no-wrap
13304 msgid ""
13305 " luks-format-cipher device keyslot cipher\n"
13306 "\n"
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:2990
13311 msgid ""
13312 "This command is the same as L</luks-format> but it also allows you to set "
13313 "the C<cipher> used."
13314 msgstr ""
13315
13316 #. type: =head2
13317 #: ../fish/guestfish-actions.pod:2996
13318 msgid "luks-kill-slot"
13319 msgstr "luks-kill-slot"
13320
13321 #. type: verbatim
13322 #: ../fish/guestfish-actions.pod:2998
13323 #, no-wrap
13324 msgid ""
13325 " luks-kill-slot device keyslot\n"
13326 "\n"
13327 msgstr ""
13328
13329 #. type: textblock
13330 #: ../fish/guestfish-actions.pod:3000 ../src/guestfs-actions.pod:4610
13331 msgid ""
13332 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13333 "device C<device>.  C<key> must be one of the I<other> keys."
13334 msgstr ""
13335
13336 #. type: =head2
13337 #: ../fish/guestfish-actions.pod:3007
13338 msgid "luks-open"
13339 msgstr "luks-open"
13340
13341 #. type: verbatim
13342 #: ../fish/guestfish-actions.pod:3009
13343 #, no-wrap
13344 msgid ""
13345 " luks-open device mapname\n"
13346 "\n"
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../fish/guestfish-actions.pod:3011 ../src/guestfs-actions.pod:4630
13351 msgid ""
13352 "This command opens a block device which has been encrypted according to the "
13353 "Linux Unified Key Setup (LUKS) standard."
13354 msgstr ""
13355
13356 #. type: textblock
13357 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4633
13358 msgid "C<device> is the encrypted block device or partition."
13359 msgstr ""
13360
13361 #. type: textblock
13362 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4635
13363 msgid ""
13364 "The caller must supply one of the keys associated with the LUKS block "
13365 "device, in the C<key> parameter."
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4638
13370 msgid ""
13371 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13372 "writes to this block device are decrypted from and encrypted to the "
13373 "underlying C<device> respectively."
13374 msgstr ""
13375
13376 #. type: textblock
13377 #: ../fish/guestfish-actions.pod:3023
13378 msgid ""
13379 "If this block device contains LVM volume groups, then calling L</vgscan> "
13380 "followed by L</vg-activate-all> will make them visible."
13381 msgstr ""
13382
13383 #. type: textblock
13384 #: ../fish/guestfish-actions.pod:3027
13385 msgid "Use L</list-dm-devices> to list all device mapper devices."
13386 msgstr ""
13387
13388 #. type: =head2
13389 #: ../fish/guestfish-actions.pod:3033
13390 msgid "luks-open-ro"
13391 msgstr "luks-open-ro"
13392
13393 #. type: verbatim
13394 #: ../fish/guestfish-actions.pod:3035
13395 #, no-wrap
13396 msgid ""
13397 " luks-open-ro device mapname\n"
13398 "\n"
13399 msgstr ""
13400
13401 #. type: textblock
13402 #: ../fish/guestfish-actions.pod:3037
13403 msgid ""
13404 "This is the same as L</luks-open> except that a read-only mapping is created."
13405 msgstr ""
13406
13407 #. type: =head2
13408 #: ../fish/guestfish-actions.pod:3043
13409 msgid "lvcreate"
13410 msgstr "lvcreate"
13411
13412 #. type: verbatim
13413 #: ../fish/guestfish-actions.pod:3045
13414 #, no-wrap
13415 msgid ""
13416 " lvcreate logvol volgroup mbytes\n"
13417 "\n"
13418 msgstr ""
13419
13420 #. type: textblock
13421 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4684
13422 msgid ""
13423 "This creates an LVM logical volume called C<logvol> on the volume group "
13424 "C<volgroup>, with C<size> megabytes."
13425 msgstr ""
13426
13427 #. type: =head2
13428 #: ../fish/guestfish-actions.pod:3050
13429 msgid "lvm-canonical-lv-name"
13430 msgstr "lvm-canonical-lv-name"
13431
13432 #. type: verbatim
13433 #: ../fish/guestfish-actions.pod:3052
13434 #, no-wrap
13435 msgid ""
13436 " lvm-canonical-lv-name lvname\n"
13437 "\n"
13438 msgstr ""
13439
13440 #. type: textblock
13441 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4697
13442 msgid ""
13443 "This converts alternative naming schemes for LVs that you might find to the "
13444 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13445 "LV>."
13446 msgstr ""
13447
13448 #. type: textblock
13449 #: ../fish/guestfish-actions.pod:3058 ../src/guestfs-actions.pod:4701
13450 msgid ""
13451 "This command returns an error if the C<lvname> parameter does not refer to a "
13452 "logical volume."
13453 msgstr ""
13454
13455 #. type: textblock
13456 #: ../fish/guestfish-actions.pod:3061
13457 msgid "See also L</is-lv>."
13458 msgstr "Див. також L</is-lv>."
13459
13460 #. type: =head2
13461 #: ../fish/guestfish-actions.pod:3063
13462 msgid "lvm-clear-filter"
13463 msgstr "lvm-clear-filter"
13464
13465 #. type: verbatim
13466 #: ../fish/guestfish-actions.pod:3065
13467 #, no-wrap
13468 msgid ""
13469 " lvm-clear-filter\n"
13470 "\n"
13471 msgstr ""
13472 " lvm-clear-filter\n"
13473 "\n"
13474
13475 #. type: textblock
13476 #: ../fish/guestfish-actions.pod:3067
13477 msgid ""
13478 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
13479 "block device."
13480 msgstr ""
13481
13482 #. type: textblock
13483 #: ../fish/guestfish-actions.pod:3070 ../fish/guestfish-actions.pod:3098
13484 #: ../src/guestfs-actions.pod:4719 ../src/guestfs-actions.pod:4758
13485 msgid ""
13486 "This command also clears the LVM cache and performs a volume group scan."
13487 msgstr ""
13488
13489 #. type: =head2
13490 #: ../fish/guestfish-actions.pod:3073
13491 msgid "lvm-remove-all"
13492 msgstr "lvm-remove-all"
13493
13494 #. type: verbatim
13495 #: ../fish/guestfish-actions.pod:3075
13496 #, no-wrap
13497 msgid ""
13498 " lvm-remove-all\n"
13499 "\n"
13500 msgstr ""
13501 " lvm-remove-all\n"
13502 "\n"
13503
13504 #. type: textblock
13505 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4731
13506 msgid ""
13507 "This command removes all LVM logical volumes, volume groups and physical "
13508 "volumes."
13509 msgstr ""
13510
13511 #. type: =head2
13512 #: ../fish/guestfish-actions.pod:3080
13513 msgid "lvm-set-filter"
13514 msgstr "lvm-set-filter"
13515
13516 #. type: verbatim
13517 #: ../fish/guestfish-actions.pod:3082
13518 #, no-wrap
13519 msgid ""
13520 " lvm-set-filter 'devices ...'\n"
13521 "\n"
13522 msgstr ""
13523 " lvm-set-filter 'пристрої...'\n"
13524 "\n"
13525
13526 #. type: textblock
13527 #: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4744
13528 msgid ""
13529 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13530 "block devices in the list C<devices>, and will ignore all other attached "
13531 "block devices."
13532 msgstr ""
13533
13534 #. type: textblock
13535 #: ../fish/guestfish-actions.pod:3088 ../src/guestfs-actions.pod:4748
13536 msgid ""
13537 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13538 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13539 "there are two types of duplication possible: either cloned PVs/VGs which "
13540 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13541 "same name.  In normal operation you cannot create this situation, but you "
13542 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13543 "inside the LVM metadata."
13544 msgstr ""
13545
13546 #. type: textblock
13547 #: ../fish/guestfish-actions.pod:3101 ../src/guestfs-actions.pod:4761
13548 msgid "You can filter whole block devices or individual partitions."
13549 msgstr ""
13550
13551 #. type: textblock
13552 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4763
13553 msgid ""
13554 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13555 "filesystem), even if you are not filtering out that VG."
13556 msgstr ""
13557
13558 #. type: =head2
13559 #: ../fish/guestfish-actions.pod:3107
13560 msgid "lvremove"
13561 msgstr "lvremove"
13562
13563 #. type: verbatim
13564 #: ../fish/guestfish-actions.pod:3109
13565 #, no-wrap
13566 msgid ""
13567 " lvremove device\n"
13568 "\n"
13569 msgstr ""
13570 " lvremove пристрій\n"
13571 "\n"
13572
13573 #. type: textblock
13574 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4777
13575 msgid ""
13576 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13577 "LV, such as C</dev/VG/LV>."
13578 msgstr ""
13579
13580 #. type: textblock
13581 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4780
13582 msgid ""
13583 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13584 "dev/VG>."
13585 msgstr ""
13586
13587 #. type: =head2
13588 #: ../fish/guestfish-actions.pod:3117
13589 msgid "lvrename"
13590 msgstr "lvrename"
13591
13592 #. type: verbatim
13593 #: ../fish/guestfish-actions.pod:3119
13594 #, no-wrap
13595 msgid ""
13596 " lvrename logvol newlogvol\n"
13597 "\n"
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:3121 ../src/guestfs-actions.pod:4794
13602 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13603 msgstr ""
13604
13605 #. type: =head2
13606 #: ../fish/guestfish-actions.pod:3123
13607 msgid "lvresize"
13608 msgstr "lvresize"
13609
13610 #. type: verbatim
13611 #: ../fish/guestfish-actions.pod:3125
13612 #, no-wrap
13613 msgid ""
13614 " lvresize device mbytes\n"
13615 "\n"
13616 msgstr ""
13617
13618 #. type: textblock
13619 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4807
13620 msgid ""
13621 "This resizes (expands or shrinks) an existing LVM logical volume to "
13622 "C<mbytes>.  When reducing, data in the reduced part is lost."
13623 msgstr ""
13624
13625 #. type: =head2
13626 #: ../fish/guestfish-actions.pod:3131
13627 msgid "lvresize-free"
13628 msgstr "lvresize-free"
13629
13630 #. type: verbatim
13631 #: ../fish/guestfish-actions.pod:3133
13632 #, no-wrap
13633 msgid ""
13634 " lvresize-free lv percent\n"
13635 "\n"
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4822
13640 msgid ""
13641 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13642 "remaining free space in the volume group.  Commonly you would call this with "
13643 "pc = 100 which expands the logical volume as much as possible, using all "
13644 "remaining free space in the volume group."
13645 msgstr ""
13646
13647 #. type: =head2
13648 #: ../fish/guestfish-actions.pod:3141
13649 msgid "lvs"
13650 msgstr "lvs"
13651
13652 #. type: verbatim
13653 #: ../fish/guestfish-actions.pod:3143
13654 #, no-wrap
13655 msgid ""
13656 " lvs\n"
13657 "\n"
13658 msgstr ""
13659 " lvs\n"
13660 "\n"
13661
13662 #. type: textblock
13663 #: ../fish/guestfish-actions.pod:3145 ../src/guestfs-actions.pod:4837
13664 msgid ""
13665 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13666 "(8)> command."
13667 msgstr ""
13668
13669 #. type: textblock
13670 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4840
13671 msgid ""
13672 "This returns a list of the logical volume device names (eg. C</dev/"
13673 "VolGroup00/LogVol00>)."
13674 msgstr ""
13675
13676 #. type: textblock
13677 #: ../fish/guestfish-actions.pod:3151
13678 msgid "See also L</lvs-full>, L</list-filesystems>."
13679 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
13680
13681 #. type: =head2
13682 #: ../fish/guestfish-actions.pod:3153
13683 msgid "lvs-full"
13684 msgstr "lvs-full"
13685
13686 #. type: verbatim
13687 #: ../fish/guestfish-actions.pod:3155
13688 #, no-wrap
13689 msgid ""
13690 " lvs-full\n"
13691 "\n"
13692 msgstr ""
13693 " lvs-full\n"
13694 "\n"
13695
13696 #. type: textblock
13697 #: ../fish/guestfish-actions.pod:3157 ../src/guestfs-actions.pod:4856
13698 msgid ""
13699 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13700 "(8)> command.  The \"full\" version includes all fields."
13701 msgstr ""
13702
13703 #. type: =head2
13704 #: ../fish/guestfish-actions.pod:3160
13705 msgid "lvuuid"
13706 msgstr "lvuuid"
13707
13708 #. type: verbatim
13709 #: ../fish/guestfish-actions.pod:3162
13710 #, no-wrap
13711 msgid ""
13712 " lvuuid device\n"
13713 "\n"
13714 msgstr ""
13715 " lvuuid пристрій\n"
13716 "\n"
13717
13718 #. type: textblock
13719 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4871
13720 msgid "This command returns the UUID of the LVM LV C<device>."
13721 msgstr ""
13722
13723 #. type: =head2
13724 #: ../fish/guestfish-actions.pod:3166
13725 msgid "lxattrlist"
13726 msgstr "lxattrlist"
13727
13728 #. type: verbatim
13729 #: ../fish/guestfish-actions.pod:3168
13730 #, no-wrap
13731 msgid ""
13732 " lxattrlist path 'names ...'\n"
13733 "\n"
13734 msgstr ""
13735
13736 #. type: textblock
13737 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4885
13738 msgid ""
13739 "This call allows you to get the extended attributes of multiple files, where "
13740 "all files are in the directory C<path>.  C<names> is the list of files from "
13741 "this directory."
13742 msgstr ""
13743
13744 #. type: textblock
13745 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4889
13746 msgid ""
13747 "On return you get a flat list of xattr structs which must be interpreted "
13748 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13749 "C<attrval> in this struct is zero-length to indicate there was an error "
13750 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13751 "number (the number of following attributes for this file, which could be C<"
13752 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13753 "for the first named file.  This repeats for the second and subsequent files."
13754 msgstr ""
13755
13756 #. type: textblock
13757 #: ../fish/guestfish-actions.pod:3184
13758 msgid ""
13759 "This call is intended for programs that want to efficiently list a directory "
13760 "contents without making many round-trips.  See also L</lstatlist> for a "
13761 "similarly efficient call for getting standard stats.  Very long directory "
13762 "listings might cause the protocol message size to be exceeded, causing this "
13763 "call to fail.  The caller must split up such requests into smaller groups of "
13764 "names."
13765 msgstr ""
13766
13767 #. type: =head2
13768 #: ../fish/guestfish-actions.pod:3192
13769 #, fuzzy
13770 #| msgid "lvcreate"
13771 msgid "md-create"
13772 msgstr "lvcreate"
13773
13774 #. type: verbatim
13775 #: ../fish/guestfish-actions.pod:3194
13776 #, no-wrap
13777 msgid ""
13778 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13779 "\n"
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4932
13784 msgid ""
13785 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13786 "C<devices>."
13787 msgstr ""
13788
13789 #. type: =item
13790 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4939
13791 msgid "C<missingbitmap>"
13792 msgstr ""
13793
13794 #. type: textblock
13795 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4941
13796 msgid ""
13797 "A bitmap of missing devices.  If a bit is set it means that a missing device "
13798 "is added to the array.  The least significant bit corresponds to the first "
13799 "device in the array."
13800 msgstr ""
13801
13802 #. type: textblock
13803 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4945
13804 #, fuzzy
13805 #| msgid "For example:"
13806 msgid "As examples:"
13807 msgstr "Приклад:"
13808
13809 #. type: textblock
13810 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4947
13811 msgid ""
13812 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13813 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13814 msgstr ""
13815
13816 #. type: textblock
13817 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4950
13818 msgid ""
13819 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13820 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4953
13825 msgid "This defaults to C<0> (no missing devices)."
13826 msgstr ""
13827
13828 #. type: textblock
13829 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4955
13830 msgid ""
13831 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13832 "equal C<nrdevices> + C<spare>."
13833 msgstr ""
13834
13835 #. type: =item
13836 #: ../fish/guestfish-actions.pod:3222 ../src/guestfs-actions.pod:4958
13837 #, fuzzy
13838 #| msgid "device"
13839 msgid "C<nrdevices>"
13840 msgstr "пристрій"
13841
13842 #. type: textblock
13843 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:4960
13844 #, fuzzy
13845 #| msgid "The number of hard links."
13846 msgid "The number of active RAID devices."
13847 msgstr "Кількість жорстких посилань."
13848
13849 #. type: textblock
13850 #: ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4962
13851 msgid ""
13852 "If not set, this defaults to the length of C<devices> plus the number of "
13853 "bits set in C<missingbitmap>."
13854 msgstr ""
13855
13856 #. type: =item
13857 #: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4965
13858 #, fuzzy
13859 #| msgid "sparse"
13860 msgid "C<spare>"
13861 msgstr "sparse"
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4967
13865 #, fuzzy
13866 #| msgid "The number of hard links."
13867 msgid "The number of spare devices."
13868 msgstr "Кількість жорстких посилань."
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4969
13872 msgid "If not set, this defaults to C<0>."
13873 msgstr ""
13874
13875 #. type: =item
13876 #: ../fish/guestfish-actions.pod:3235 ../src/guestfs-actions.pod:4971
13877 msgid "C<chunk>"
13878 msgstr ""
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4973
13882 #, fuzzy
13883 #| msgid "The size in SI 1000 byte units."
13884 msgid "The chunk size in bytes."
13885 msgstr "Розмір у одиницях СІ: 1000 байтів."
13886
13887 #. type: =item
13888 #: ../fish/guestfish-actions.pod:3239 ../fish/guestfish-actions.pod:3261
13889 #: ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5023
13890 msgid "C<level>"
13891 msgstr ""
13892
13893 #. type: textblock
13894 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4977
13895 msgid ""
13896 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13897 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13898 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
13899 "added in future."
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4982
13904 msgid "If not set, this defaults to C<raid1>."
13905 msgstr ""
13906
13907 #. type: =head2
13908 #: ../fish/guestfish-actions.pod:3252
13909 #, fuzzy
13910 #| msgid "tail"
13911 msgid "md-detail"
13912 msgstr "tail"
13913
13914 #. type: verbatim
13915 #: ../fish/guestfish-actions.pod:3254
13916 #, no-wrap
13917 msgid ""
13918 " md-detail md\n"
13919 "\n"
13920 msgstr ""
13921
13922 #. type: textblock
13923 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
13924 msgid ""
13925 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13926 "are usually present in the returned hash. Other fields may also be present."
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5025
13931 msgid "The raid level of the MD device."
13932 msgstr ""
13933
13934 #. type: =item
13935 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5027
13936 #, fuzzy
13937 #| msgid "device"
13938 msgid "C<devices>"
13939 msgstr "пристрій"
13940
13941 #. type: textblock
13942 #: ../fish/guestfish-actions.pod:3267 ../src/guestfs-actions.pod:5029
13943 msgid "The number of underlying devices in the MD device."
13944 msgstr ""
13945
13946 #. type: =item
13947 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5031
13948 msgid "C<metadata>"
13949 msgstr ""
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5033
13953 msgid "The metadata version used."
13954 msgstr ""
13955
13956 #. type: =item
13957 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5035
13958 #, fuzzy
13959 #| msgid "B<--uuid>"
13960 msgid "C<uuid>"
13961 msgstr "B<--uuid>"
13962
13963 #. type: textblock
13964 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5037
13965 msgid "The UUID of the MD device."
13966 msgstr ""
13967
13968 #. type: textblock
13969 #: ../fish/guestfish-actions.pod:3279 ../src/guestfs-actions.pod:5041
13970 #, fuzzy
13971 #| msgid "The time of last access."
13972 msgid "The name of the MD device."
13973 msgstr "Час останнього доступу."
13974
13975 #. type: =head2
13976 #: ../fish/guestfish-actions.pod:3283
13977 msgid "md-stop"
13978 msgstr ""
13979
13980 #. type: verbatim
13981 #: ../fish/guestfish-actions.pod:3285
13982 #, no-wrap
13983 msgid ""
13984 " md-stop md\n"
13985 "\n"
13986 msgstr ""
13987
13988 #. type: textblock
13989 #: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:5057
13990 msgid ""
13991 "This command deactivates the MD array named C<md>.  The device is stopped, "
13992 "but it is not destroyed or zeroed."
13993 msgstr ""
13994
13995 #. type: =head2
13996 #: ../fish/guestfish-actions.pod:3290
13997 msgid "mkdir"
13998 msgstr "mkdir"
13999
14000 #. type: verbatim
14001 #: ../fish/guestfish-actions.pod:3292
14002 #, no-wrap
14003 msgid ""
14004 " mkdir path\n"
14005 "\n"
14006 msgstr ""
14007 " mkdir шлях\n"
14008 "\n"
14009
14010 #. type: textblock
14011 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5068
14012 msgid "Create a directory named C<path>."
14013 msgstr ""
14014
14015 #. type: =head2
14016 #: ../fish/guestfish-actions.pod:3296
14017 msgid "mkdir-mode"
14018 msgstr "mkdir-mode"
14019
14020 #. type: verbatim
14021 #: ../fish/guestfish-actions.pod:3298
14022 #, no-wrap
14023 msgid ""
14024 " mkdir-mode path mode\n"
14025 "\n"
14026 msgstr ""
14027 " mkdir-mode шлях режим\n"
14028 "\n"
14029
14030 #. type: textblock
14031 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5081
14032 msgid ""
14033 "This command creates a directory, setting the initial permissions of the "
14034 "directory to C<mode>."
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5084
14039 msgid ""
14040 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14041 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14042 "other ways."
14043 msgstr ""
14044
14045 #. type: textblock
14046 #: ../fish/guestfish-actions.pod:3307
14047 msgid "See also L</mkdir>, L</umask>"
14048 msgstr "Див. також L</mkdir>, L</umask>"
14049
14050 #. type: =head2
14051 #: ../fish/guestfish-actions.pod:3309
14052 msgid "mkdir-p"
14053 msgstr "mkdir-p"
14054
14055 #. type: verbatim
14056 #: ../fish/guestfish-actions.pod:3311
14057 #, no-wrap
14058 msgid ""
14059 " mkdir-p path\n"
14060 "\n"
14061 msgstr ""
14062 " mkdir-p шлях\n"
14063 "\n"
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5100
14067 msgid ""
14068 "Create a directory named C<path>, creating any parent directories as "
14069 "necessary.  This is like the C<mkdir -p> shell command."
14070 msgstr ""
14071
14072 #. type: =head2
14073 #: ../fish/guestfish-actions.pod:3316
14074 msgid "mkdtemp"
14075 msgstr "mkdtemp"
14076
14077 #. type: verbatim
14078 #: ../fish/guestfish-actions.pod:3318
14079 #, no-wrap
14080 msgid ""
14081 " mkdtemp template\n"
14082 "\n"
14083 msgstr ""
14084 " mkdtemp шаблон\n"
14085 "\n"
14086
14087 #. type: textblock
14088 #: ../fish/guestfish-actions.pod:3320 ../src/guestfs-actions.pod:5113
14089 msgid ""
14090 "This command creates a temporary directory.  The C<template> parameter "
14091 "should be a full pathname for the temporary directory name with the final "
14092 "six characters being \"XXXXXX\"."
14093 msgstr ""
14094
14095 #. type: textblock
14096 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5118
14097 msgid ""
14098 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14099 "being suitable for Windows filesystems."
14100 msgstr ""
14101
14102 #. type: textblock
14103 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5121
14104 msgid "The name of the temporary directory that was created is returned."
14105 msgstr ""
14106
14107 #. type: textblock
14108 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5124
14109 msgid "The temporary directory is created with mode 0700 and is owned by root."
14110 msgstr ""
14111
14112 #. type: textblock
14113 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5127
14114 msgid ""
14115 "The caller is responsible for deleting the temporary directory and its "
14116 "contents after use."
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5130
14121 msgid "See also: L<mkdtemp(3)>"
14122 msgstr "Див. також L<mkdtemp(3)>"
14123
14124 #. type: =head2
14125 #: ../fish/guestfish-actions.pod:3339
14126 msgid "mke2fs-J"
14127 msgstr "mke2fs-J"
14128
14129 #. type: verbatim
14130 #: ../fish/guestfish-actions.pod:3341
14131 #, no-wrap
14132 msgid ""
14133 " mke2fs-J fstype blocksize device journal\n"
14134 "\n"
14135 msgstr ""
14136
14137 #. type: textblock
14138 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5146
14139 msgid ""
14140 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14141 "C<journal>.  It is equivalent to the command:"
14142 msgstr ""
14143
14144 #. type: verbatim
14145 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5150
14146 #, no-wrap
14147 msgid ""
14148 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14149 "\n"
14150 msgstr ""
14151 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
14152 "\n"
14153
14154 #. type: textblock
14155 #: ../fish/guestfish-actions.pod:3349
14156 msgid "See also L</mke2journal>."
14157 msgstr "Див. також L</mke2journal>."
14158
14159 #. type: =head2
14160 #: ../fish/guestfish-actions.pod:3351
14161 msgid "mke2fs-JL"
14162 msgstr "mke2fs-JL"
14163
14164 #. type: verbatim
14165 #: ../fish/guestfish-actions.pod:3353
14166 #, no-wrap
14167 msgid ""
14168 " mke2fs-JL fstype blocksize device label\n"
14169 "\n"
14170 msgstr ""
14171
14172 #. type: textblock
14173 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5167
14174 msgid ""
14175 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14176 "the journal labeled C<label>."
14177 msgstr ""
14178
14179 #. type: textblock
14180 #: ../fish/guestfish-actions.pod:3358
14181 msgid "See also L</mke2journal-L>."
14182 msgstr "Див. також L</mke2journal-L>."
14183
14184 #. type: =head2
14185 #: ../fish/guestfish-actions.pod:3360
14186 msgid "mke2fs-JU"
14187 msgstr "mke2fs-JU"
14188
14189 #. type: verbatim
14190 #: ../fish/guestfish-actions.pod:3362
14191 #, no-wrap
14192 msgid ""
14193 " mke2fs-JU fstype blocksize device uuid\n"
14194 "\n"
14195 msgstr ""
14196
14197 #. type: textblock
14198 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5185
14199 msgid ""
14200 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14201 "the journal with UUID C<uuid>."
14202 msgstr ""
14203
14204 #. type: textblock
14205 #: ../fish/guestfish-actions.pod:3367
14206 msgid "See also L</mke2journal-U>."
14207 msgstr "Див. також L</mke2journal-U>."
14208
14209 #. type: =head2
14210 #: ../fish/guestfish-actions.pod:3369
14211 msgid "mke2journal"
14212 msgstr "mke2journal"
14213
14214 #. type: verbatim
14215 #: ../fish/guestfish-actions.pod:3371
14216 #, no-wrap
14217 msgid ""
14218 " mke2journal blocksize device\n"
14219 "\n"
14220 msgstr ""
14221
14222 #. type: textblock
14223 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5201
14224 msgid ""
14225 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14226 "command:"
14227 msgstr ""
14228
14229 #. type: verbatim
14230 #: ../fish/guestfish-actions.pod:3376 ../src/guestfs-actions.pod:5204
14231 #, no-wrap
14232 msgid ""
14233 " mke2fs -O journal_dev -b blocksize device\n"
14234 "\n"
14235 msgstr ""
14236
14237 #. type: =head2
14238 #: ../fish/guestfish-actions.pod:3378
14239 msgid "mke2journal-L"
14240 msgstr "mke2journal-L"
14241
14242 #. type: verbatim
14243 #: ../fish/guestfish-actions.pod:3380
14244 #, no-wrap
14245 msgid ""
14246 " mke2journal-L blocksize label device\n"
14247 "\n"
14248 msgstr ""
14249
14250 #. type: textblock
14251 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5218
14252 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14253 msgstr ""
14254
14255 #. type: =head2
14256 #: ../fish/guestfish-actions.pod:3384
14257 msgid "mke2journal-U"
14258 msgstr "mke2journal-U"
14259
14260 #. type: verbatim
14261 #: ../fish/guestfish-actions.pod:3386
14262 #, no-wrap
14263 msgid ""
14264 " mke2journal-U blocksize uuid device\n"
14265 "\n"
14266 msgstr ""
14267
14268 #. type: textblock
14269 #: ../fish/guestfish-actions.pod:3388 ../src/guestfs-actions.pod:5232
14270 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14271 msgstr ""
14272
14273 #. type: =head2
14274 #: ../fish/guestfish-actions.pod:3390
14275 msgid "mkfifo"
14276 msgstr "mkfifo"
14277
14278 #. type: verbatim
14279 #: ../fish/guestfish-actions.pod:3392
14280 #, no-wrap
14281 msgid ""
14282 " mkfifo mode path\n"
14283 "\n"
14284 msgstr ""
14285 " mkfifo режим шлях\n"
14286 "\n"
14287
14288 #. type: textblock
14289 #: ../fish/guestfish-actions.pod:3394
14290 msgid ""
14291 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14292 "is just a convenient wrapper around L</mknod>."
14293 msgstr ""
14294
14295 #. type: =head2
14296 #: ../fish/guestfish-actions.pod:3400
14297 msgid "mkfs"
14298 msgstr "mkfs"
14299
14300 #. type: verbatim
14301 #: ../fish/guestfish-actions.pod:3402
14302 #, no-wrap
14303 msgid ""
14304 " mkfs fstype device\n"
14305 "\n"
14306 msgstr ""
14307 " mkfs тип_файлової_системи пристрій\n"
14308 "\n"
14309
14310 #. type: textblock
14311 #: ../fish/guestfish-actions.pod:3404 ../src/guestfs-actions.pod:5262
14312 msgid ""
14313 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14314 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14315 msgstr ""
14316
14317 #. type: =head2
14318 #: ../fish/guestfish-actions.pod:3408
14319 msgid "mkfs-b"
14320 msgstr "mkfs-b"
14321
14322 #. type: verbatim
14323 #: ../fish/guestfish-actions.pod:3410
14324 #, no-wrap
14325 msgid ""
14326 " mkfs-b fstype blocksize device\n"
14327 "\n"
14328 msgstr ""
14329
14330 #. type: textblock
14331 #: ../fish/guestfish-actions.pod:3412
14332 msgid ""
14333 "This call is similar to L</mkfs>, but it allows you to control the block "
14334 "size of the resulting filesystem.  Supported block sizes depend on the "
14335 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14336 msgstr ""
14337
14338 #. type: textblock
14339 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3444
14340 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5328
14341 msgid ""
14342 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14343 "cluster size."
14344 msgstr ""
14345
14346 #. type: textblock
14347 #: ../fish/guestfish-actions.pod:3420
14348 msgid ""
14349 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
14350 "instead."
14351 msgstr ""
14352
14353 #. type: =head2
14354 #: ../fish/guestfish-actions.pod:3427
14355 msgid "mkfs-opts"
14356 msgstr "mkfs-opts"
14357
14358 #. type: verbatim
14359 #: ../fish/guestfish-actions.pod:3429
14360 #, no-wrap
14361 msgid ""
14362 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
14363 "\n"
14364 msgstr ""
14365
14366 #. type: textblock
14367 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5315
14368 msgid ""
14369 "This function creates a filesystem on C<device>.  The filesystem type is "
14370 "C<fstype>, for example C<ext3>."
14371 msgstr ""
14372
14373 #. type: =item
14374 #: ../fish/guestfish-actions.pod:3438 ../src/guestfs-actions.pod:5322
14375 msgid "C<blocksize>"
14376 msgstr "C<blocksize>"
14377
14378 #. type: textblock
14379 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5324
14380 msgid ""
14381 "The filesystem block size.  Supported block sizes depend on the filesystem "
14382 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14383 "filesystems."
14384 msgstr ""
14385
14386 #. type: textblock
14387 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5331
14388 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14389 msgstr ""
14390
14391 #. type: =item
14392 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5333
14393 msgid "C<features>"
14394 msgstr "C<features>"
14395
14396 #. type: textblock
14397 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5335
14398 msgid "This passes the I<-O> parameter to the external mkfs program."
14399 msgstr ""
14400
14401 #. type: textblock
14402 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5337
14403 msgid ""
14404 "For certain filesystem types, this allows extra filesystem features to be "
14405 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14406 msgstr ""
14407
14408 #. type: textblock
14409 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5341
14410 msgid ""
14411 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14412 "type."
14413 msgstr ""
14414
14415 #. type: =item
14416 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5344
14417 msgid "C<inode>"
14418 msgstr "C<inode>"
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5346
14422 msgid ""
14423 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
14424 "sets the inode size (only for ext2/3/4 filesystems at present)."
14425 msgstr ""
14426
14427 #. type: =item
14428 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5349
14429 msgid "C<sectorsize>"
14430 msgstr "C<sectorsize>"
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:3467 ../src/guestfs-actions.pod:5351
14434 msgid ""
14435 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14436 "sets sector size for ufs filesystem."
14437 msgstr ""
14438
14439 #. type: =head2
14440 #: ../fish/guestfish-actions.pod:3474
14441 msgid "mkmountpoint"
14442 msgstr "mkmountpoint"
14443
14444 #. type: verbatim
14445 #: ../fish/guestfish-actions.pod:3476
14446 #, no-wrap
14447 msgid ""
14448 " mkmountpoint exemptpath\n"
14449 "\n"
14450 msgstr ""
14451
14452 #. type: textblock
14453 #: ../fish/guestfish-actions.pod:3478
14454 msgid ""
14455 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
14456 "to create extra mountpoints before mounting the first filesystem."
14457 msgstr ""
14458
14459 #. type: textblock
14460 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5394
14461 msgid ""
14462 "These calls are I<only> necessary in some very limited circumstances, mainly "
14463 "the case where you want to mount a mix of unrelated and/or read-only "
14464 "filesystems together."
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5398
14469 msgid ""
14470 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14471 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14472 "inside that.  You can unpack this as follows in guestfish:"
14473 msgstr ""
14474
14475 #. type: verbatim
14476 #: ../fish/guestfish-actions.pod:3491 ../src/guestfs-actions.pod:5403
14477 #, no-wrap
14478 msgid ""
14479 " add-ro Fedora-11-i686-Live.iso\n"
14480 " run\n"
14481 " mkmountpoint /cd\n"
14482 " mkmountpoint /sqsh\n"
14483 " mkmountpoint /ext3fs\n"
14484 " mount /dev/sda /cd\n"
14485 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14486 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14487 "\n"
14488 msgstr ""
14489 " add-ro Fedora-11-i686-Live.iso\n"
14490 " run\n"
14491 " mkmountpoint /cd\n"
14492 " mkmountpoint /sqsh\n"
14493 " mkmountpoint /ext3fs\n"
14494 " mount /dev/sda /cd\n"
14495 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14496 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14497 "\n"
14498
14499 #. type: textblock
14500 #: ../fish/guestfish-actions.pod:3500 ../src/guestfs-actions.pod:5412
14501 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14502 msgstr ""
14503
14504 #. type: textblock
14505 #: ../fish/guestfish-actions.pod:3502
14506 msgid ""
14507 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
14508 "unexpected errors if you try to mix these calls.  It is safest to manually "
14509 "unmount filesystems and remove mountpoints after use."
14510 msgstr ""
14511
14512 #. type: textblock
14513 #: ../fish/guestfish-actions.pod:3506
14514 msgid ""
14515 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
14516 "for this to work for manual mountpoints, you must ensure that the innermost "
14517 "mountpoints have the longest pathnames, as in the example code above."
14518 msgstr ""
14519
14520 #. type: textblock
14521 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5423
14522 msgid ""
14523 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:3513
14528 msgid ""
14529 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
14530 "L</umount-all> to be called when the handle is closed which can also trigger "
14531 "these issues."
14532 msgstr ""
14533
14534 #. type: =head2
14535 #: ../fish/guestfish-actions.pod:3517
14536 msgid "mknod"
14537 msgstr "mknod"
14538
14539 #. type: verbatim
14540 #: ../fish/guestfish-actions.pod:3519
14541 #, no-wrap
14542 msgid ""
14543 " mknod mode devmajor devminor path\n"
14544 "\n"
14545 msgstr ""
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5442
14549 msgid ""
14550 "This call creates block or character special devices, or named pipes (FIFOs)."
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../fish/guestfish-actions.pod:3524 ../src/guestfs-actions.pod:5445
14555 msgid ""
14556 "The C<mode> parameter should be the mode, using the standard constants.  "
14557 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14558 "used when creating block and character special devices."
14559 msgstr ""
14560
14561 #. type: textblock
14562 #: ../fish/guestfish-actions.pod:3529
14563 msgid ""
14564 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14565 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14566 "regular file).  These constants are available in the standard Linux header "
14567 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14568 "wrappers around this command which bitwise OR in the appropriate constant "
14569 "for you."
14570 msgstr ""
14571
14572 #. type: =head2
14573 #: ../fish/guestfish-actions.pod:3539
14574 msgid "mknod-b"
14575 msgstr "mknod-b"
14576
14577 #. type: verbatim
14578 #: ../fish/guestfish-actions.pod:3541
14579 #, no-wrap
14580 msgid ""
14581 " mknod-b mode devmajor devminor path\n"
14582 "\n"
14583 msgstr ""
14584
14585 #. type: textblock
14586 #: ../fish/guestfish-actions.pod:3543
14587 msgid ""
14588 "This call creates a block device node called C<path> with mode C<mode> and "
14589 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14590 "wrapper around L</mknod>."
14591 msgstr ""
14592
14593 #. type: =head2
14594 #: ../fish/guestfish-actions.pod:3549
14595 msgid "mknod-c"
14596 msgstr "mknod-c"
14597
14598 #. type: verbatim
14599 #: ../fish/guestfish-actions.pod:3551
14600 #, no-wrap
14601 msgid ""
14602 " mknod-c mode devmajor devminor path\n"
14603 "\n"
14604 msgstr ""
14605
14606 #. type: textblock
14607 #: ../fish/guestfish-actions.pod:3553
14608 msgid ""
14609 "This call creates a char device node called C<path> with mode C<mode> and "
14610 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14611 "wrapper around L</mknod>."
14612 msgstr ""
14613
14614 #. type: =head2
14615 #: ../fish/guestfish-actions.pod:3559
14616 msgid "mkswap"
14617 msgstr "mkswap"
14618
14619 #. type: verbatim
14620 #: ../fish/guestfish-actions.pod:3561
14621 #, no-wrap
14622 msgid ""
14623 " mkswap device\n"
14624 "\n"
14625 msgstr ""
14626 " mkswap пристрій\n"
14627 "\n"
14628
14629 #. type: textblock
14630 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5508
14631 msgid "Create a swap partition on C<device>."
14632 msgstr ""
14633
14634 #. type: =head2
14635 #: ../fish/guestfish-actions.pod:3565
14636 msgid "mkswap-L"
14637 msgstr "mkswap-L"
14638
14639 #. type: verbatim
14640 #: ../fish/guestfish-actions.pod:3567
14641 #, no-wrap
14642 msgid ""
14643 " mkswap-L label device\n"
14644 "\n"
14645 msgstr ""
14646 " mkswap-L мітка пристрій\n"
14647 "\n"
14648
14649 #. type: textblock
14650 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5521
14651 msgid "Create a swap partition on C<device> with label C<label>."
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5523
14656 msgid ""
14657 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14658 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14659 "or swap tools."
14660 msgstr ""
14661
14662 #. type: =head2
14663 #: ../fish/guestfish-actions.pod:3575
14664 msgid "mkswap-U"
14665 msgstr "mkswap-U"
14666
14667 #. type: verbatim
14668 #: ../fish/guestfish-actions.pod:3577
14669 #, no-wrap
14670 msgid ""
14671 " mkswap-U uuid device\n"
14672 "\n"
14673 msgstr ""
14674 " mkswap-U uuid пристрій\n"
14675 "\n"
14676
14677 #. type: textblock
14678 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5538
14679 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14680 msgstr ""
14681
14682 #. type: =head2
14683 #: ../fish/guestfish-actions.pod:3581
14684 msgid "mkswap-file"
14685 msgstr "mkswap-file"
14686
14687 #. type: verbatim
14688 #: ../fish/guestfish-actions.pod:3583
14689 #, no-wrap
14690 msgid ""
14691 " mkswap-file path\n"
14692 "\n"
14693 msgstr ""
14694 " mkswap-file шлях\n"
14695 "\n"
14696
14697 #. type: textblock
14698 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5550
14699 msgid "Create a swap file."
14700 msgstr "Створити файл резервної пам’яті."
14701
14702 #. type: textblock
14703 #: ../fish/guestfish-actions.pod:3587
14704 msgid ""
14705 "This command just writes a swap file signature to an existing file.  To "
14706 "create the file itself, use something like L</fallocate>."
14707 msgstr ""
14708
14709 #. type: =head2
14710 #: ../fish/guestfish-actions.pod:3590
14711 msgid "modprobe"
14712 msgstr "modprobe"
14713
14714 #. type: verbatim
14715 #: ../fish/guestfish-actions.pod:3592
14716 #, no-wrap
14717 msgid ""
14718 " modprobe modulename\n"
14719 "\n"
14720 msgstr ""
14721 " modprobe назва_модуля\n"
14722 "\n"
14723
14724 #. type: textblock
14725 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5565
14726 msgid "This loads a kernel module in the appliance."
14727 msgstr ""
14728
14729 #. type: textblock
14730 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5567
14731 msgid ""
14732 "The kernel module must have been whitelisted when libguestfs was built (see "
14733 "C<appliance/kmod.whitelist.in> in the source)."
14734 msgstr ""
14735
14736 #. type: =head2
14737 #: ../fish/guestfish-actions.pod:3599
14738 msgid "mount"
14739 msgstr "mount"
14740
14741 #. type: verbatim
14742 #: ../fish/guestfish-actions.pod:3601
14743 #, no-wrap
14744 msgid ""
14745 " mount device mountpoint\n"
14746 "\n"
14747 msgstr ""
14748 " mount пристрій точка_монтування\n"
14749 "\n"
14750
14751 #. type: textblock
14752 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5581
14753 msgid ""
14754 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14755 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14756 "those block devices contain partitions, they will have the usual names (eg. "
14757 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5587
14762 msgid ""
14763 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14764 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14765 "mounted on directories which already exist."
14766 msgstr ""
14767
14768 #. type: textblock
14769 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5592
14770 msgid ""
14771 "The mounted filesystem is writable, if we have sufficient permissions on the "
14772 "underlying device."
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../fish/guestfish-actions.pod:3617
14777 msgid ""
14778 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14779 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
14780 "problems for users.  If your program might need to work with older versions "
14781 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14782 "first parameter if you don't want any options)."
14783 msgstr ""
14784
14785 #. type: =head2
14786 #: ../fish/guestfish-actions.pod:3624
14787 msgid "mount-9p"
14788 msgstr ""
14789
14790 #. type: verbatim
14791 #: ../fish/guestfish-actions.pod:3626
14792 #, no-wrap
14793 msgid ""
14794 " mount-9p mounttag mountpoint [options:..]\n"
14795 "\n"
14796 msgstr ""
14797
14798 #. type: textblock
14799 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5621
14800 msgid ""
14801 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14802 "C<mountpoint>."
14803 msgstr ""
14804
14805 #. type: textblock
14806 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5624
14807 msgid ""
14808 "If required, C<trans=virtio> will be automatically added to the options.  "
14809 "Any other options required can be passed in the optional C<options> "
14810 "parameter."
14811 msgstr ""
14812
14813 #. type: =head2
14814 #: ../fish/guestfish-actions.pod:3637
14815 msgid "mount-loop"
14816 msgstr "mount-loop"
14817
14818 #. type: verbatim
14819 #: ../fish/guestfish-actions.pod:3639
14820 #, no-wrap
14821 msgid ""
14822 " mount-loop file mountpoint\n"
14823 "\n"
14824 msgstr ""
14825
14826 #. type: textblock
14827 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5663
14828 msgid ""
14829 "This command lets you mount C<file> (a filesystem image in a file) on a "
14830 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14831 "mountpoint>."
14832 msgstr ""
14833
14834 #. type: =head2
14835 #: ../fish/guestfish-actions.pod:3645
14836 msgid "mount-options"
14837 msgstr "mount-options"
14838
14839 #. type: verbatim
14840 #: ../fish/guestfish-actions.pod:3647
14841 #, no-wrap
14842 msgid ""
14843 " mount-options options device mountpoint\n"
14844 "\n"
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../fish/guestfish-actions.pod:3649
14849 msgid ""
14850 "This is the same as the L</mount> command, but it allows you to set the "
14851 "mount options as for the L<mount(8)> I<-o> flag."
14852 msgstr ""
14853
14854 #. type: textblock
14855 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5683
14856 msgid ""
14857 "If the C<options> parameter is an empty string, then no options are passed "
14858 "(all options default to whatever the filesystem uses)."
14859 msgstr ""
14860
14861 #. type: =head2
14862 #: ../fish/guestfish-actions.pod:3657
14863 msgid "mount-ro"
14864 msgstr "mount-ro"
14865
14866 #. type: verbatim
14867 #: ../fish/guestfish-actions.pod:3659
14868 #, no-wrap
14869 msgid ""
14870 " mount-ro device mountpoint\n"
14871 "\n"
14872 msgstr ""
14873 " mount-ro пристрій точка_монтування\n"
14874 "\n"
14875
14876 #. type: textblock
14877 #: ../fish/guestfish-actions.pod:3661
14878 msgid ""
14879 "This is the same as the L</mount> command, but it mounts the filesystem with "
14880 "the read-only (I<-o ro>) flag."
14881 msgstr ""
14882
14883 #. type: =head2
14884 #: ../fish/guestfish-actions.pod:3664
14885 msgid "mount-vfs"
14886 msgstr "mount-vfs"
14887
14888 #. type: verbatim
14889 #: ../fish/guestfish-actions.pod:3666
14890 #, no-wrap
14891 msgid ""
14892 " mount-vfs options vfstype device mountpoint\n"
14893 "\n"
14894 msgstr ""
14895
14896 #. type: textblock
14897 #: ../fish/guestfish-actions.pod:3668
14898 msgid ""
14899 "This is the same as the L</mount> command, but it allows you to set both the "
14900 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14901 msgstr ""
14902
14903 #. type: =head2
14904 #: ../fish/guestfish-actions.pod:3672
14905 msgid "mountpoints"
14906 msgstr "mountpoints"
14907
14908 #. type: verbatim
14909 #: ../fish/guestfish-actions.pod:3674
14910 #, no-wrap
14911 msgid ""
14912 " mountpoints\n"
14913 "\n"
14914 msgstr ""
14915 " mountpoints\n"
14916 "\n"
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:3676
14920 msgid ""
14921 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14922 "This one returns a hash table (map) of device name to directory where the "
14923 "device is mounted."
14924 msgstr ""
14925
14926 #. type: =head2
14927 #: ../fish/guestfish-actions.pod:3680
14928 msgid "mounts"
14929 msgstr "mounts"
14930
14931 #. type: verbatim
14932 #: ../fish/guestfish-actions.pod:3682
14933 #, no-wrap
14934 msgid ""
14935 " mounts\n"
14936 "\n"
14937 msgstr ""
14938 " mounts\n"
14939 "\n"
14940
14941 #. type: textblock
14942 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5744
14943 msgid ""
14944 "This returns the list of currently mounted filesystems.  It returns the list "
14945 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14946 msgstr ""
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5747
14950 msgid "Some internal mounts are not shown."
14951 msgstr ""
14952
14953 #. type: textblock
14954 #: ../fish/guestfish-actions.pod:3689
14955 msgid "See also: L</mountpoints>"
14956 msgstr "Див. також L</mountpoints>"
14957
14958 #. type: =head2
14959 #: ../fish/guestfish-actions.pod:3691
14960 msgid "mv"
14961 msgstr "mv"
14962
14963 #. type: verbatim
14964 #: ../fish/guestfish-actions.pod:3693
14965 #, no-wrap
14966 msgid ""
14967 " mv src dest\n"
14968 "\n"
14969 msgstr ""
14970 " mv джерело призначення\n"
14971 "\n"
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5764
14975 msgid ""
14976 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14977 "destination filename or destination directory."
14978 msgstr ""
14979
14980 #. type: =head2
14981 #: ../fish/guestfish-actions.pod:3698
14982 msgid "ntfs-3g-probe"
14983 msgstr "ntfs-3g-probe"
14984
14985 #. type: verbatim
14986 #: ../fish/guestfish-actions.pod:3700
14987 #, no-wrap
14988 msgid ""
14989 " ntfs-3g-probe true|false device\n"
14990 "\n"
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5778
14995 msgid ""
14996 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14997 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14998 "write, and some cannot be mounted at all)."
14999 msgstr ""
15000
15001 #. type: textblock
15002 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5782
15003 msgid ""
15004 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
15005 "can be mounted read-write.  Set it to false if you want to test if the "
15006 "volume can be mounted read-only."
15007 msgstr ""
15008
15009 #. type: textblock
15010 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5786
15011 msgid ""
15012 "The return value is an integer which C<0> if the operation would succeed, or "
15013 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15014 msgstr ""
15015
15016 #. type: =head2
15017 #: ../fish/guestfish-actions.pod:3714
15018 msgid "ntfsresize"
15019 msgstr "ntfsresize"
15020
15021 #. type: verbatim
15022 #: ../fish/guestfish-actions.pod:3716
15023 #, no-wrap
15024 msgid ""
15025 " ntfsresize device\n"
15026 "\n"
15027 msgstr ""
15028 " ntfsresize пристрій\n"
15029 "\n"
15030
15031 #. type: textblock
15032 #: ../fish/guestfish-actions.pod:3718 ../fish/guestfish-actions.pod:3742
15033 #: ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5839
15034 msgid ""
15035 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15036 "size of the underlying device."
15037 msgstr ""
15038
15039 #. type: textblock
15040 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5810
15041 msgid ""
15042 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
15043 "consistency check (for safety).  You have to boot into Windows to perform "
15044 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
15045 "resize filesystems which have been marked in this way.  So in effect it is "
15046 "not possible to call ntfsresize multiple times on a single filesystem "
15047 "without booting into Windows between each resize."
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3768
15052 #: ../src/guestfs-actions.pod:5818 ../src/guestfs-actions.pod:5865
15053 msgid "See also L<ntfsresize(8)>."
15054 msgstr "Див. також L<ntfsresize(8)>."
15055
15056 #. type: textblock
15057 #: ../fish/guestfish-actions.pod:3731 ../fish/guestfish-actions.pod:3779
15058 msgid ""
15059 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
15060 "call instead."
15061 msgstr ""
15062
15063 #. type: =head2
15064 #: ../fish/guestfish-actions.pod:3738
15065 msgid "ntfsresize-opts"
15066 msgstr ""
15067
15068 #. type: verbatim
15069 #: ../fish/guestfish-actions.pod:3740
15070 #, no-wrap
15071 msgid ""
15072 " ntfsresize-opts device [size:N] [force:true|false]\n"
15073 "\n"
15074 msgstr ""
15075
15076 #. type: textblock
15077 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5848
15078 msgid ""
15079 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
15080 "resized to fit the container (eg. partition)."
15081 msgstr ""
15082
15083 #. type: =item
15084 #: ../fish/guestfish-actions.pod:3754 ../fish/guestfish-actions.pod:5075
15085 #: ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:7822
15086 msgid "C<force>"
15087 msgstr "C<force>"
15088
15089 #. type: textblock
15090 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5853
15091 msgid ""
15092 "If this option is true, then force the resize of the filesystem even if the "
15093 "filesystem is marked as requiring a consistency check."
15094 msgstr ""
15095
15096 #. type: textblock
15097 #: ../fish/guestfish-actions.pod:3759
15098 msgid ""
15099 "After the resize operation, the filesystem is always marked as requiring a "
15100 "consistency check (for safety).  You have to boot into Windows to perform "
15101 "this check and clear this condition.  If you I<don't> set the C<force> "
15102 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
15103 "a single filesystem without booting into Windows between each resize."
15104 msgstr ""
15105
15106 #. type: =head2
15107 #: ../fish/guestfish-actions.pod:3772
15108 msgid "ntfsresize-size"
15109 msgstr "ntfsresize-size"
15110
15111 #. type: verbatim
15112 #: ../fish/guestfish-actions.pod:3774
15113 #, no-wrap
15114 msgid ""
15115 " ntfsresize-size device size\n"
15116 "\n"
15117 msgstr ""
15118
15119 #. type: textblock
15120 #: ../fish/guestfish-actions.pod:3776
15121 msgid ""
15122 "This command is the same as L</ntfsresize> except that it allows you to "
15123 "specify the new size (in bytes) explicitly."
15124 msgstr ""
15125
15126 #. type: =head2
15127 #: ../fish/guestfish-actions.pod:3786
15128 msgid "part-add"
15129 msgstr "part-add"
15130
15131 #. type: verbatim
15132 #: ../fish/guestfish-actions.pod:3788
15133 #, no-wrap
15134 msgid ""
15135 " part-add device prlogex startsect endsect\n"
15136 "\n"
15137 msgstr ""
15138
15139 #. type: textblock
15140 #: ../fish/guestfish-actions.pod:3790
15141 msgid ""
15142 "This command adds a partition to C<device>.  If there is no partition table "
15143 "on the device, call L</part-init> first."
15144 msgstr ""
15145
15146 #. type: textblock
15147 #: ../fish/guestfish-actions.pod:3793 ../src/guestfs-actions.pod:5926
15148 msgid ""
15149 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15150 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15151 "C<logical>) and C<e> (or C<extended>) partition types."
15152 msgstr ""
15153
15154 #. type: textblock
15155 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5931
15156 msgid ""
15157 "C<startsect> and C<endsect> are the start and end of the partition in "
15158 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15159 "from the end of the disk (C<-1> is the last sector)."
15160 msgstr ""
15161
15162 #. type: textblock
15163 #: ../fish/guestfish-actions.pod:3802
15164 msgid ""
15165 "Creating a partition which covers the whole disk is not so easy.  Use L</"
15166 "part-disk> to do that."
15167 msgstr ""
15168
15169 #. type: =head2
15170 #: ../fish/guestfish-actions.pod:3805
15171 msgid "part-del"
15172 msgstr "part-del"
15173
15174 #. type: verbatim
15175 #: ../fish/guestfish-actions.pod:3807
15176 #, no-wrap
15177 msgid ""
15178 " part-del device partnum\n"
15179 "\n"
15180 msgstr ""
15181
15182 #. type: textblock
15183 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5949
15184 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15185 msgstr ""
15186
15187 #. type: textblock
15188 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5951
15189 msgid ""
15190 "Note that in the case of MBR partitioning, deleting an extended partition "
15191 "also deletes any logical partitions it contains."
15192 msgstr ""
15193
15194 #. type: =head2
15195 #: ../fish/guestfish-actions.pod:3815
15196 msgid "part-disk"
15197 msgstr "part-disk"
15198
15199 #. type: verbatim
15200 #: ../fish/guestfish-actions.pod:3817
15201 #, no-wrap
15202 msgid ""
15203 " part-disk device parttype\n"
15204 "\n"
15205 msgstr ""
15206 " part-disk пристрій тип_розділу\n"
15207 "\n"
15208
15209 #. type: textblock
15210 #: ../fish/guestfish-actions.pod:3819
15211 msgid ""
15212 "This command is simply a combination of L</part-init> followed by L</part-"
15213 "add> to create a single primary partition covering the whole disk."
15214 msgstr ""
15215
15216 #. type: textblock
15217 #: ../fish/guestfish-actions.pod:3823
15218 msgid ""
15219 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15220 "possible values are described in L</part-init>."
15221 msgstr ""
15222
15223 #. type: =head2
15224 #: ../fish/guestfish-actions.pod:3826
15225 msgid "part-get-bootable"
15226 msgstr "part-get-bootable"
15227
15228 #. type: verbatim
15229 #: ../fish/guestfish-actions.pod:3828
15230 #, no-wrap
15231 msgid ""
15232 " part-get-bootable device partnum\n"
15233 "\n"
15234 msgstr ""
15235
15236 #. type: textblock
15237 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5984
15238 msgid ""
15239 "This command returns true if the partition C<partnum> on C<device> has the "
15240 "bootable flag set."
15241 msgstr ""
15242
15243 #. type: textblock
15244 #: ../fish/guestfish-actions.pod:3833
15245 msgid "See also L</part-set-bootable>."
15246 msgstr "Див. також L</part-set-bootable>."
15247
15248 #. type: =head2
15249 #: ../fish/guestfish-actions.pod:3835
15250 msgid "part-get-mbr-id"
15251 msgstr "part-get-mbr-id"
15252
15253 #. type: verbatim
15254 #: ../fish/guestfish-actions.pod:3837
15255 #, no-wrap
15256 msgid ""
15257 " part-get-mbr-id device partnum\n"
15258 "\n"
15259 msgstr ""
15260
15261 #. type: textblock
15262 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:6000
15263 msgid ""
15264 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15265 "partition C<partnum>."
15266 msgstr ""
15267
15268 #. type: textblock
15269 #: ../fish/guestfish-actions.pod:3842 ../fish/guestfish-actions.pod:3986
15270 msgid ""
15271 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15272 "undefined results for other partition table types (see L</part-get-"
15273 "parttype>)."
15274 msgstr ""
15275
15276 #. type: =head2
15277 #: ../fish/guestfish-actions.pod:3846
15278 msgid "part-get-parttype"
15279 msgstr "part-get-parttype"
15280
15281 #. type: verbatim
15282 #: ../fish/guestfish-actions.pod:3848
15283 #, no-wrap
15284 msgid ""
15285 " part-get-parttype device\n"
15286 "\n"
15287 msgstr ""
15288 " part-get-parttype пристрій\n"
15289 "\n"
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:3850 ../src/guestfs-actions.pod:6017
15293 msgid ""
15294 "This command examines the partition table on C<device> and returns the "
15295 "partition table type (format) being used."
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:3853
15300 msgid ""
15301 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15302 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15303 "possible, although unusual.  See L</part-init> for a full list."
15304 msgstr ""
15305
15306 #. type: =head2
15307 #: ../fish/guestfish-actions.pod:3858
15308 msgid "part-init"
15309 msgstr "part-init"
15310
15311 #. type: verbatim
15312 #: ../fish/guestfish-actions.pod:3860
15313 #, no-wrap
15314 msgid ""
15315 " part-init device parttype\n"
15316 "\n"
15317 msgstr ""
15318
15319 #. type: textblock
15320 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:6037
15321 msgid ""
15322 "This creates an empty partition table on C<device> of one of the partition "
15323 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15324 "(for large disks)."
15325 msgstr ""
15326
15327 #. type: textblock
15328 #: ../fish/guestfish-actions.pod:3866
15329 msgid ""
15330 "Initially there are no partitions.  Following this, you should call L</part-"
15331 "add> for each partition required."
15332 msgstr ""
15333
15334 #. type: textblock
15335 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6044
15336 msgid "Possible values for C<parttype> are:"
15337 msgstr ""
15338
15339 #. type: =item
15340 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6048
15341 msgid "B<efi>"
15342 msgstr "B<efi>"
15343
15344 #. type: =item
15345 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6050
15346 msgid "B<gpt>"
15347 msgstr "B<gpt>"
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6052
15351 msgid "Intel EFI / GPT partition table."
15352 msgstr ""
15353
15354 #. type: textblock
15355 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6054
15356 msgid ""
15357 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15358 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15359 "the C<mbr> format."
15360 msgstr ""
15361
15362 #. type: =item
15363 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6058
15364 msgid "B<mbr>"
15365 msgstr "B<mbr>"
15366
15367 #. type: =item
15368 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6060
15369 msgid "B<msdos>"
15370 msgstr "B<msdos>"
15371
15372 #. type: textblock
15373 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6062
15374 msgid ""
15375 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15376 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15377 "TB.  For large disks we recommend using C<gpt>."
15378 msgstr ""
15379
15380 #. type: textblock
15381 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6069
15382 msgid ""
15383 "Other partition table types that may work but are not supported include:"
15384 msgstr ""
15385
15386 #. type: =item
15387 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6074
15388 msgid "B<aix>"
15389 msgstr "B<aix>"
15390
15391 #. type: textblock
15392 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:6076
15393 msgid "AIX disk labels."
15394 msgstr "Мітки дисків AIX."
15395
15396 #. type: =item
15397 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6078
15398 msgid "B<amiga>"
15399 msgstr "B<amiga>"
15400
15401 #. type: =item
15402 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:6080
15403 msgid "B<rdb>"
15404 msgstr "B<rdb>"
15405
15406 #. type: textblock
15407 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:6082
15408 msgid "Amiga \"Rigid Disk Block\" format."
15409 msgstr "Формат \"Rigid Disk Block\" Amiga."
15410
15411 #. type: =item
15412 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:6084
15413 msgid "B<bsd>"
15414 msgstr "B<bsd>"
15415
15416 #. type: textblock
15417 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6086
15418 msgid "BSD disk labels."
15419 msgstr "Мітки дисків BSD."
15420
15421 #. type: =item
15422 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6088
15423 msgid "B<dasd>"
15424 msgstr "B<dasd>"
15425
15426 #. type: textblock
15427 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6090
15428 msgid "DASD, used on IBM mainframes."
15429 msgstr "DASD, використовувалися у мейнфреймах IBM."
15430
15431 #. type: =item
15432 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6092
15433 msgid "B<dvh>"
15434 msgstr "B<dvh>"
15435
15436 #. type: textblock
15437 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6094
15438 msgid "MIPS/SGI volumes."
15439 msgstr "Томи MIPS/SGI."
15440
15441 #. type: =item
15442 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6096
15443 msgid "B<mac>"
15444 msgstr "B<mac>"
15445
15446 #. type: textblock
15447 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6098
15448 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15449 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15450
15451 #. type: =item
15452 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6100
15453 msgid "B<pc98>"
15454 msgstr "B<pc98>"
15455
15456 #. type: textblock
15457 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6102
15458 msgid "NEC PC-98 format, common in Japan apparently."
15459 msgstr "Формат NEC PC-98, поширений у Японії."
15460
15461 #. type: =item
15462 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6104
15463 msgid "B<sun>"
15464 msgstr "B<sun>"
15465
15466 #. type: textblock
15467 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6106
15468 msgid "Sun disk labels."
15469 msgstr "Мітки дисків Sun."
15470
15471 #. type: =head2
15472 #: ../fish/guestfish-actions.pod:3935
15473 msgid "part-list"
15474 msgstr "part-list"
15475
15476 #. type: verbatim
15477 #: ../fish/guestfish-actions.pod:3937
15478 #, no-wrap
15479 msgid ""
15480 " part-list device\n"
15481 "\n"
15482 msgstr ""
15483 " part-list device\n"
15484 "\n"
15485
15486 #. type: textblock
15487 #: ../fish/guestfish-actions.pod:3939 ../src/guestfs-actions.pod:6120
15488 msgid ""
15489 "This command parses the partition table on C<device> and returns the list of "
15490 "partitions found."
15491 msgstr ""
15492
15493 #. type: textblock
15494 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6123
15495 msgid "The fields in the returned structure are:"
15496 msgstr ""
15497
15498 #. type: =item
15499 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6127
15500 msgid "B<part_num>"
15501 msgstr "B<part_num>"
15502
15503 #. type: textblock
15504 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6129
15505 msgid "Partition number, counting from 1."
15506 msgstr ""
15507
15508 #. type: =item
15509 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6131
15510 msgid "B<part_start>"
15511 msgstr "B<part_start>"
15512
15513 #. type: textblock
15514 #: ../fish/guestfish-actions.pod:3952
15515 msgid ""
15516 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15517 "the device's sector size, see L</blockdev-getss>."
15518 msgstr ""
15519
15520 #. type: =item
15521 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6136
15522 msgid "B<part_end>"
15523 msgstr "B<part_end>"
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6138
15527 msgid "End of the partition in bytes."
15528 msgstr ""
15529
15530 #. type: =item
15531 #: ../fish/guestfish-actions.pod:3959 ../src/guestfs-actions.pod:6140
15532 msgid "B<part_size>"
15533 msgstr "B<part_size>"
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:6142
15537 msgid "Size of the partition in bytes."
15538 msgstr ""
15539
15540 #. type: =head2
15541 #: ../fish/guestfish-actions.pod:3965
15542 msgid "part-set-bootable"
15543 msgstr "part-set-bootable"
15544
15545 #. type: verbatim
15546 #: ../fish/guestfish-actions.pod:3967
15547 #, no-wrap
15548 msgid ""
15549 " part-set-bootable device partnum true|false\n"
15550 "\n"
15551 msgstr ""
15552
15553 #. type: textblock
15554 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6160
15555 msgid ""
15556 "This sets the bootable flag on partition numbered C<partnum> on device "
15557 "C<device>.  Note that partitions are numbered from 1."
15558 msgstr ""
15559
15560 #. type: textblock
15561 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6163
15562 msgid ""
15563 "The bootable flag is used by some operating systems (notably Windows) to "
15564 "determine which partition to boot from.  It is by no means universally "
15565 "recognized."
15566 msgstr ""
15567
15568 #. type: =head2
15569 #: ../fish/guestfish-actions.pod:3976
15570 msgid "part-set-mbr-id"
15571 msgstr "part-set-mbr-id"
15572
15573 #. type: verbatim
15574 #: ../fish/guestfish-actions.pod:3978
15575 #, no-wrap
15576 msgid ""
15577 " part-set-mbr-id device partnum idbyte\n"
15578 "\n"
15579 msgstr ""
15580
15581 #. type: textblock
15582 #: ../fish/guestfish-actions.pod:3980 ../src/guestfs-actions.pod:6179
15583 msgid ""
15584 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15585 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15586 "documentation are in fact hexadecimal numbers, but usually documented "
15587 "without any leading \"0x\" which might be confusing."
15588 msgstr ""
15589
15590 #. type: =head2
15591 #: ../fish/guestfish-actions.pod:3990
15592 msgid "part-set-name"
15593 msgstr "part-set-name"
15594
15595 #. type: verbatim
15596 #: ../fish/guestfish-actions.pod:3992
15597 #, no-wrap
15598 msgid ""
15599 " part-set-name device partnum name\n"
15600 "\n"
15601 msgstr ""
15602
15603 #. type: textblock
15604 #: ../fish/guestfish-actions.pod:3994 ../src/guestfs-actions.pod:6201
15605 msgid ""
15606 "This sets the partition name on partition numbered C<partnum> on device "
15607 "C<device>.  Note that partitions are numbered from 1."
15608 msgstr ""
15609
15610 #. type: textblock
15611 #: ../fish/guestfish-actions.pod:3997 ../src/guestfs-actions.pod:6204
15612 msgid ""
15613 "The partition name can only be set on certain types of partition table.  "
15614 "This works on C<gpt> but not on C<mbr> partitions."
15615 msgstr ""
15616
15617 #. type: =head2
15618 #: ../fish/guestfish-actions.pod:4000
15619 msgid "part-to-dev"
15620 msgstr "part-to-dev"
15621
15622 #. type: verbatim
15623 #: ../fish/guestfish-actions.pod:4002
15624 #, no-wrap
15625 msgid ""
15626 " part-to-dev partition\n"
15627 "\n"
15628 msgstr ""
15629 " part-to-dev розділ\n"
15630 "\n"
15631
15632 #. type: textblock
15633 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6217
15634 msgid ""
15635 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15636 "partition number, returning the device name (eg. \"/dev/sdb\")."
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4008 ../fish/guestfish-actions.pod:4020
15641 msgid ""
15642 "The named partition must exist, for example as a string returned from L</"
15643 "list-partitions>."
15644 msgstr ""
15645
15646 #. type: textblock
15647 #: ../fish/guestfish-actions.pod:4011
15648 msgid "See also L</part-to-partnum>."
15649 msgstr ""
15650
15651 #. type: =head2
15652 #: ../fish/guestfish-actions.pod:4013
15653 msgid "part-to-partnum"
15654 msgstr ""
15655
15656 #. type: verbatim
15657 #: ../fish/guestfish-actions.pod:4015
15658 #, no-wrap
15659 msgid ""
15660 " part-to-partnum partition\n"
15661 "\n"
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6237
15666 msgid ""
15667 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15668 "partition number (eg. C<1>)."
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-actions.pod:4023
15673 msgid "See also L</part-to-dev>."
15674 msgstr ""
15675
15676 #. type: =head2
15677 #: ../fish/guestfish-actions.pod:4025
15678 msgid "ping-daemon"
15679 msgstr "ping-daemon"
15680
15681 #. type: verbatim
15682 #: ../fish/guestfish-actions.pod:4027
15683 #, no-wrap
15684 msgid ""
15685 " ping-daemon\n"
15686 "\n"
15687 msgstr ""
15688 " ping-daemon\n"
15689 "\n"
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4029 ../src/guestfs-actions.pod:6254
15693 msgid ""
15694 "This is a test probe into the guestfs daemon running inside the qemu "
15695 "subprocess.  Calling this function checks that the daemon responds to the "
15696 "ping message, without affecting the daemon or attached block device(s) in "
15697 "any other way."
15698 msgstr ""
15699
15700 #. type: =head2
15701 #: ../fish/guestfish-actions.pod:4034
15702 msgid "pread"
15703 msgstr "pread"
15704
15705 #. type: verbatim
15706 #: ../fish/guestfish-actions.pod:4036
15707 #, no-wrap
15708 msgid ""
15709 " pread path count offset\n"
15710 "\n"
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4038 ../src/guestfs-actions.pod:6272
15715 msgid ""
15716 "This command lets you read part of a file.  It reads C<count> bytes of the "
15717 "file, starting at C<offset>, from file C<path>."
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4041 ../fish/guestfish-actions.pod:4056
15722 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6301
15723 msgid ""
15724 "This may read fewer bytes than requested.  For further details see the "
15725 "L<pread(2)> system call."
15726 msgstr ""
15727
15728 #. type: textblock
15729 #: ../fish/guestfish-actions.pod:4044
15730 msgid "See also L</pwrite>, L</pread-device>."
15731 msgstr "Див. також L</pwrite>, L</pread-device>."
15732
15733 #. type: =head2
15734 #: ../fish/guestfish-actions.pod:4049
15735 msgid "pread-device"
15736 msgstr "pread-device"
15737
15738 #. type: verbatim
15739 #: ../fish/guestfish-actions.pod:4051
15740 #, no-wrap
15741 msgid ""
15742 " pread-device device count offset\n"
15743 "\n"
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6298
15748 msgid ""
15749 "This command lets you read part of a file.  It reads C<count> bytes of "
15750 "C<device>, starting at C<offset>."
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:4059
15755 msgid "See also L</pread>."
15756 msgstr "Див. також L</pread>."
15757
15758 #. type: =head2
15759 #: ../fish/guestfish-actions.pod:4064
15760 msgid "pvcreate"
15761 msgstr "pvcreate"
15762
15763 #. type: verbatim
15764 #: ../fish/guestfish-actions.pod:4066
15765 #, no-wrap
15766 msgid ""
15767 " pvcreate device\n"
15768 "\n"
15769 msgstr ""
15770 " pvcreate пристрій\n"
15771 "\n"
15772
15773 #. type: textblock
15774 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6321
15775 msgid ""
15776 "This creates an LVM physical volume on the named C<device>, where C<device> "
15777 "should usually be a partition name such as C</dev/sda1>."
15778 msgstr ""
15779
15780 #. type: =head2
15781 #: ../fish/guestfish-actions.pod:4072
15782 msgid "pvremove"
15783 msgstr "pvremove"
15784
15785 #. type: verbatim
15786 #: ../fish/guestfish-actions.pod:4074
15787 #, no-wrap
15788 msgid ""
15789 " pvremove device\n"
15790 "\n"
15791 msgstr ""
15792 " pvremove пристрій\n"
15793 "\n"
15794
15795 #. type: textblock
15796 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6335
15797 msgid ""
15798 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15799 "it."
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6338
15804 msgid ""
15805 "The implementation uses the C<pvremove> command which refuses to wipe "
15806 "physical volumes that contain any volume groups, so you have to remove those "
15807 "first."
15808 msgstr ""
15809
15810 #. type: =head2
15811 #: ../fish/guestfish-actions.pod:4083
15812 msgid "pvresize"
15813 msgstr "pvresize"
15814
15815 #. type: verbatim
15816 #: ../fish/guestfish-actions.pod:4085
15817 #, no-wrap
15818 msgid ""
15819 " pvresize device\n"
15820 "\n"
15821 msgstr ""
15822 " pvresize пристрій\n"
15823 "\n"
15824
15825 #. type: textblock
15826 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6352
15827 msgid ""
15828 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15829 "the new size of the underlying device."
15830 msgstr ""
15831
15832 #. type: =head2
15833 #: ../fish/guestfish-actions.pod:4090
15834 msgid "pvresize-size"
15835 msgstr "pvresize-size"
15836
15837 #. type: verbatim
15838 #: ../fish/guestfish-actions.pod:4092
15839 #, no-wrap
15840 msgid ""
15841 " pvresize-size device size\n"
15842 "\n"
15843 msgstr ""
15844
15845 #. type: textblock
15846 #: ../fish/guestfish-actions.pod:4094
15847 msgid ""
15848 "This command is the same as L</pvresize> except that it allows you to "
15849 "specify the new size (in bytes) explicitly."
15850 msgstr ""
15851
15852 #. type: =head2
15853 #: ../fish/guestfish-actions.pod:4097
15854 msgid "pvs"
15855 msgstr "pvs"
15856
15857 #. type: verbatim
15858 #: ../fish/guestfish-actions.pod:4099
15859 #, no-wrap
15860 msgid ""
15861 " pvs\n"
15862 "\n"
15863 msgstr ""
15864 " pvs\n"
15865 "\n"
15866
15867 #. type: textblock
15868 #: ../fish/guestfish-actions.pod:4101 ../src/guestfs-actions.pod:6378
15869 msgid ""
15870 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15871 "(8)> command."
15872 msgstr ""
15873
15874 #. type: textblock
15875 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6381
15876 msgid ""
15877 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15878 "sda2>)."
15879 msgstr ""
15880
15881 #. type: textblock
15882 #: ../fish/guestfish-actions.pod:4107
15883 msgid "See also L</pvs-full>."
15884 msgstr "Див. також L</pvs-full>."
15885
15886 #. type: =head2
15887 #: ../fish/guestfish-actions.pod:4109
15888 msgid "pvs-full"
15889 msgstr "pvs-full"
15890
15891 #. type: verbatim
15892 #: ../fish/guestfish-actions.pod:4111
15893 #, no-wrap
15894 msgid ""
15895 " pvs-full\n"
15896 "\n"
15897 msgstr ""
15898 " pvs-full\n"
15899 "\n"
15900
15901 #. type: textblock
15902 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6397
15903 msgid ""
15904 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15905 "(8)> command.  The \"full\" version includes all fields."
15906 msgstr ""
15907
15908 #. type: =head2
15909 #: ../fish/guestfish-actions.pod:4116
15910 msgid "pvuuid"
15911 msgstr "pvuuid"
15912
15913 #. type: verbatim
15914 #: ../fish/guestfish-actions.pod:4118
15915 #, no-wrap
15916 msgid ""
15917 " pvuuid device\n"
15918 "\n"
15919 msgstr ""
15920 " pvuuid пристрій\n"
15921 "\n"
15922
15923 #. type: textblock
15924 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6412
15925 msgid "This command returns the UUID of the LVM PV C<device>."
15926 msgstr ""
15927
15928 #. type: =head2
15929 #: ../fish/guestfish-actions.pod:4122
15930 msgid "pwrite"
15931 msgstr "pwrite"
15932
15933 #. type: verbatim
15934 #: ../fish/guestfish-actions.pod:4124
15935 #, no-wrap
15936 msgid ""
15937 " pwrite path content offset\n"
15938 "\n"
15939 msgstr ""
15940
15941 #. type: textblock
15942 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6428
15943 msgid ""
15944 "This command writes to part of a file.  It writes the data buffer C<content> "
15945 "to the file C<path> starting at offset C<offset>."
15946 msgstr ""
15947
15948 #. type: textblock
15949 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6431
15950 msgid ""
15951 "This command implements the L<pwrite(2)> system call, and like that system "
15952 "call it may not write the full data requested.  The return value is the "
15953 "number of bytes that were actually written to the file.  This could even be "
15954 "0, although short writes are unlikely for regular files in ordinary "
15955 "circumstances."
15956 msgstr ""
15957
15958 #. type: textblock
15959 #: ../fish/guestfish-actions.pod:4135
15960 msgid "See also L</pread>, L</pwrite-device>."
15961 msgstr "Див. також L</pread>, L</pwrite-device>."
15962
15963 #. type: =head2
15964 #: ../fish/guestfish-actions.pod:4140
15965 msgid "pwrite-device"
15966 msgstr "pwrite-device"
15967
15968 #. type: verbatim
15969 #: ../fish/guestfish-actions.pod:4142
15970 #, no-wrap
15971 msgid ""
15972 " pwrite-device device content offset\n"
15973 "\n"
15974 msgstr ""
15975
15976 #. type: textblock
15977 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6455
15978 msgid ""
15979 "This command writes to part of a device.  It writes the data buffer "
15980 "C<content> to C<device> starting at offset C<offset>."
15981 msgstr ""
15982
15983 #. type: textblock
15984 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6458
15985 msgid ""
15986 "This command implements the L<pwrite(2)> system call, and like that system "
15987 "call it may not write the full data requested (although short writes to disk "
15988 "devices and partitions are probably impossible with standard Linux kernels)."
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../fish/guestfish-actions.pod:4152
15993 msgid "See also L</pwrite>."
15994 msgstr "Див. також L</pwrite>."
15995
15996 #. type: =head2
15997 #: ../fish/guestfish-actions.pod:4157
15998 msgid "read-file"
15999 msgstr "read-file"
16000
16001 #. type: verbatim
16002 #: ../fish/guestfish-actions.pod:4159
16003 #, no-wrap
16004 msgid ""
16005 " read-file path\n"
16006 "\n"
16007 msgstr ""
16008 " read-file шлях\n"
16009 "\n"
16010
16011 #. type: textblock
16012 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6479
16013 msgid "This calls returns the contents of the file C<path> as a buffer."
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:4164
16018 msgid ""
16019 "Unlike L</cat>, this function can correctly handle files that contain "
16020 "embedded ASCII NUL characters.  However unlike L</download>, this function "
16021 "is limited in the total size of file that can be handled."
16022 msgstr ""
16023
16024 #. type: =head2
16025 #: ../fish/guestfish-actions.pod:4172
16026 msgid "read-lines"
16027 msgstr "read-lines"
16028
16029 #. type: verbatim
16030 #: ../fish/guestfish-actions.pod:4174
16031 #, no-wrap
16032 msgid ""
16033 " read-lines path\n"
16034 "\n"
16035 msgstr ""
16036 " read-lines шлях\n"
16037 "\n"
16038
16039 #. type: textblock
16040 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
16041 msgid ""
16042 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16043 "C<CRLF> character sequences are I<not> returned."
16044 msgstr ""
16045
16046 #. type: textblock
16047 #: ../fish/guestfish-actions.pod:4181
16048 msgid ""
16049 "Note that this function cannot correctly handle binary files (specifically, "
16050 "files containing C<\\0> character which is treated as end of line).  For "
16051 "those you need to use the L</read-file> function which has a more complex "
16052 "interface."
16053 msgstr ""
16054
16055 #. type: =head2
16056 #: ../fish/guestfish-actions.pod:4186
16057 msgid "readdir"
16058 msgstr "readdir"
16059
16060 #. type: verbatim
16061 #: ../fish/guestfish-actions.pod:4188
16062 #, no-wrap
16063 msgid ""
16064 " readdir dir\n"
16065 "\n"
16066 msgstr ""
16067 " readdir каталог\n"
16068 "\n"
16069
16070 #. type: textblock
16071 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6524
16072 msgid "This returns the list of directory entries in directory C<dir>."
16073 msgstr ""
16074
16075 #. type: textblock
16076 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6526
16077 msgid ""
16078 "All entries in the directory are returned, including C<.> and C<..>.  The "
16079 "entries are I<not> sorted, but returned in the same order as the underlying "
16080 "filesystem."
16081 msgstr ""
16082
16083 #. type: textblock
16084 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6530
16085 msgid ""
16086 "Also this call returns basic file type information about each file.  The "
16087 "C<ftyp> field will contain one of the following characters:"
16088 msgstr ""
16089
16090 #. type: =item
16091 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6535
16092 msgid "'b'"
16093 msgstr "'b'"
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6537
16097 msgid "Block special"
16098 msgstr "Блоковий особливий"
16099
16100 #. type: =item
16101 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6539
16102 msgid "'c'"
16103 msgstr "'c'"
16104
16105 #. type: textblock
16106 #: ../fish/guestfish-actions.pod:4207 ../src/guestfs-actions.pod:6541
16107 msgid "Char special"
16108 msgstr "Символьний особливий"
16109
16110 #. type: =item
16111 #: ../fish/guestfish-actions.pod:4209 ../src/guestfs-actions.pod:6543
16112 msgid "'d'"
16113 msgstr "'d'"
16114
16115 #. type: textblock
16116 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6545
16117 msgid "Directory"
16118 msgstr "Каталог"
16119
16120 #. type: =item
16121 #: ../fish/guestfish-actions.pod:4213 ../src/guestfs-actions.pod:6547
16122 msgid "'f'"
16123 msgstr "'f'"
16124
16125 #. type: textblock
16126 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6549
16127 msgid "FIFO (named pipe)"
16128 msgstr "FIFO (іменований канал)"
16129
16130 #. type: =item
16131 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
16132 msgid "'l'"
16133 msgstr "'l'"
16134
16135 #. type: textblock
16136 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6553
16137 msgid "Symbolic link"
16138 msgstr "Символічне посилання"
16139
16140 #. type: =item
16141 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6555
16142 msgid "'r'"
16143 msgstr "'r'"
16144
16145 #. type: textblock
16146 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6557
16147 msgid "Regular file"
16148 msgstr "Звичайний файл"
16149
16150 #. type: =item
16151 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6559
16152 msgid "'s'"
16153 msgstr "'s'"
16154
16155 #. type: textblock
16156 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6561
16157 msgid "Socket"
16158 msgstr "Сокет"
16159
16160 #. type: =item
16161 #: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6563
16162 msgid "'u'"
16163 msgstr "'u'"
16164
16165 #. type: textblock
16166 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6565
16167 msgid "Unknown file type"
16168 msgstr "Невідомий тип файла"
16169
16170 #. type: =item
16171 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6567
16172 msgid "'?'"
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../fish/guestfish-actions.pod:4235 ../src/guestfs-actions.pod:6569
16177 msgid ""
16178 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16179 msgstr ""
16180
16181 #. type: textblock
16182 #: ../fish/guestfish-actions.pod:4240
16183 msgid ""
16184 "This function is primarily intended for use by programs.  To get a simple "
16185 "list of names, use L</ls>.  To get a printable directory for human "
16186 "consumption, use L</ll>."
16187 msgstr ""
16188
16189 #. type: =head2
16190 #: ../fish/guestfish-actions.pod:4244
16191 msgid "readlink"
16192 msgstr "readlink"
16193
16194 #. type: verbatim
16195 #: ../fish/guestfish-actions.pod:4246
16196 #, no-wrap
16197 msgid ""
16198 " readlink path\n"
16199 "\n"
16200 msgstr ""
16201 " readlink шлях\n"
16202 "\n"
16203
16204 #. type: textblock
16205 #: ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:6590
16206 msgid "This command reads the target of a symbolic link."
16207 msgstr ""
16208
16209 #. type: =head2
16210 #: ../fish/guestfish-actions.pod:4250
16211 msgid "readlinklist"
16212 msgstr "readlinklist"
16213
16214 #. type: verbatim
16215 #: ../fish/guestfish-actions.pod:4252
16216 #, no-wrap
16217 msgid ""
16218 " readlinklist path 'names ...'\n"
16219 "\n"
16220 msgstr ""
16221
16222 #. type: textblock
16223 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6604
16224 msgid ""
16225 "This call allows you to do a C<readlink> operation on multiple files, where "
16226 "all files are in the directory C<path>.  C<names> is the list of files from "
16227 "this directory."
16228 msgstr ""
16229
16230 #. type: textblock
16231 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6608
16232 msgid ""
16233 "On return you get a list of strings, with a one-to-one correspondence to the "
16234 "C<names> list.  Each string is the value of the symbolic link."
16235 msgstr ""
16236
16237 #. type: textblock
16238 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6612
16239 msgid ""
16240 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16241 "result string is the empty string C<\"\">.  However the whole operation is "
16242 "completed even if there were C<readlink(2)> errors, and so you can call this "
16243 "function with names where you don't know if they are symbolic links already "
16244 "(albeit slightly less efficient)."
16245 msgstr ""
16246
16247 #. type: textblock
16248 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6619
16249 msgid ""
16250 "This call is intended for programs that want to efficiently list a directory "
16251 "contents without making many round-trips.  Very long directory listings "
16252 "might cause the protocol message size to be exceeded, causing this call to "
16253 "fail.  The caller must split up such requests into smaller groups of names."
16254 msgstr ""
16255
16256 #. type: =head2
16257 #: ../fish/guestfish-actions.pod:4276
16258 msgid "realpath"
16259 msgstr "realpath"
16260
16261 #. type: verbatim
16262 #: ../fish/guestfish-actions.pod:4278
16263 #, no-wrap
16264 msgid ""
16265 " realpath path\n"
16266 "\n"
16267 msgstr ""
16268 " realpath шлях\n"
16269 "\n"
16270
16271 #. type: textblock
16272 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6638
16273 msgid ""
16274 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16275 "has no C<.>, C<..> or symbolic link path elements."
16276 msgstr ""
16277
16278 #. type: =head2
16279 #: ../fish/guestfish-actions.pod:4283
16280 msgid "removexattr"
16281 msgstr "removexattr"
16282
16283 #. type: verbatim
16284 #: ../fish/guestfish-actions.pod:4285
16285 #, no-wrap
16286 msgid ""
16287 " removexattr xattr path\n"
16288 "\n"
16289 msgstr ""
16290
16291 #. type: textblock
16292 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6653
16293 msgid ""
16294 "This call removes the extended attribute named C<xattr> of the file C<path>."
16295 msgstr ""
16296
16297 #. type: textblock
16298 #: ../fish/guestfish-actions.pod:4290
16299 msgid "See also: L</lremovexattr>, L<attr(5)>."
16300 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
16301
16302 #. type: =head2
16303 #: ../fish/guestfish-actions.pod:4292
16304 msgid "resize2fs"
16305 msgstr "resize2fs"
16306
16307 #. type: verbatim
16308 #: ../fish/guestfish-actions.pod:4294
16309 #, no-wrap
16310 msgid ""
16311 " resize2fs device\n"
16312 "\n"
16313 msgstr ""
16314 " resize2fs пристрій\n"
16315 "\n"
16316
16317 #. type: textblock
16318 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6668
16319 msgid ""
16320 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16321 "underlying device."
16322 msgstr ""
16323
16324 #. type: textblock
16325 #: ../fish/guestfish-actions.pod:4299
16326 msgid ""
16327 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
16328 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
16329 "gives an error about this and sometimes not.  In any case, it is always safe "
16330 "to call L</e2fsck-f> before calling this function."
16331 msgstr ""
16332
16333 #. type: =head2
16334 #: ../fish/guestfish-actions.pod:4305
16335 msgid "resize2fs-M"
16336 msgstr "resize2fs-M"
16337
16338 #. type: verbatim
16339 #: ../fish/guestfish-actions.pod:4307
16340 #, no-wrap
16341 msgid ""
16342 " resize2fs-M device\n"
16343 "\n"
16344 msgstr ""
16345 " resize2fs-M пристрій\n"
16346 "\n"
16347
16348 #. type: textblock
16349 #: ../fish/guestfish-actions.pod:4309
16350 msgid ""
16351 "This command is the same as L</resize2fs>, but the filesystem is resized to "
16352 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
16353 "command."
16354 msgstr ""
16355
16356 #. type: textblock
16357 #: ../fish/guestfish-actions.pod:4313
16358 msgid ""
16359 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
16360 "and read the C<Block size> and C<Block count> values.  These two numbers, "
16361 "multiplied together, give the resulting size of the minimal filesystem in "
16362 "bytes."
16363 msgstr ""
16364
16365 #. type: =head2
16366 #: ../fish/guestfish-actions.pod:4318
16367 msgid "resize2fs-size"
16368 msgstr "resize2fs-size"
16369
16370 #. type: verbatim
16371 #: ../fish/guestfish-actions.pod:4320
16372 #, no-wrap
16373 msgid ""
16374 " resize2fs-size device size\n"
16375 "\n"
16376 msgstr ""
16377
16378 #. type: textblock
16379 #: ../fish/guestfish-actions.pod:4322
16380 msgid ""
16381 "This command is the same as L</resize2fs> except that it allows you to "
16382 "specify the new size (in bytes) explicitly."
16383 msgstr ""
16384
16385 #. type: =head2
16386 #: ../fish/guestfish-actions.pod:4325
16387 msgid "rm"
16388 msgstr "rm"
16389
16390 #. type: verbatim
16391 #: ../fish/guestfish-actions.pod:4327
16392 #, no-wrap
16393 msgid ""
16394 " rm path\n"
16395 "\n"
16396 msgstr ""
16397 " rm шлях\n"
16398 "\n"
16399
16400 #. type: textblock
16401 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6720
16402 msgid "Remove the single file C<path>."
16403 msgstr ""
16404
16405 #. type: =head2
16406 #: ../fish/guestfish-actions.pod:4331
16407 msgid "rm-rf"
16408 msgstr "rm-rf"
16409
16410 #. type: verbatim
16411 #: ../fish/guestfish-actions.pod:4333
16412 #, no-wrap
16413 msgid ""
16414 " rm-rf path\n"
16415 "\n"
16416 msgstr ""
16417 " rm-rf шлях\n"
16418 "\n"
16419
16420 #. type: textblock
16421 #: ../fish/guestfish-actions.pod:4335 ../src/guestfs-actions.pod:6732
16422 msgid ""
16423 "Remove the file or directory C<path>, recursively removing the contents if "
16424 "its a directory.  This is like the C<rm -rf> shell command."
16425 msgstr ""
16426
16427 #. type: =head2
16428 #: ../fish/guestfish-actions.pod:4339
16429 msgid "rmdir"
16430 msgstr "rmdir"
16431
16432 #. type: verbatim
16433 #: ../fish/guestfish-actions.pod:4341
16434 #, no-wrap
16435 msgid ""
16436 " rmdir path\n"
16437 "\n"
16438 msgstr ""
16439 " rmdir шлях\n"
16440 "\n"
16441
16442 #. type: textblock
16443 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6746
16444 msgid "Remove the single directory C<path>."
16445 msgstr ""
16446
16447 #. type: =head2
16448 #: ../fish/guestfish-actions.pod:4345
16449 msgid "rmmountpoint"
16450 msgstr "rmmountpoint"
16451
16452 #. type: verbatim
16453 #: ../fish/guestfish-actions.pod:4347
16454 #, no-wrap
16455 msgid ""
16456 " rmmountpoint exemptpath\n"
16457 "\n"
16458 msgstr ""
16459
16460 #. type: textblock
16461 #: ../fish/guestfish-actions.pod:4349
16462 msgid ""
16463 "This calls removes a mountpoint that was previously created with L</"
16464 "mkmountpoint>.  See L</mkmountpoint> for full details."
16465 msgstr ""
16466
16467 #. type: =head2
16468 #: ../fish/guestfish-actions.pod:4353
16469 msgid "scrub-device"
16470 msgstr "scrub-device"
16471
16472 #. type: verbatim
16473 #: ../fish/guestfish-actions.pod:4355
16474 #, no-wrap
16475 msgid ""
16476 " scrub-device device\n"
16477 "\n"
16478 msgstr ""
16479 " scrub-device пристрій\n"
16480 "\n"
16481
16482 #. type: textblock
16483 #: ../fish/guestfish-actions.pod:4357 ../src/guestfs-actions.pod:6772
16484 msgid ""
16485 "This command writes patterns over C<device> to make data retrieval more "
16486 "difficult."
16487 msgstr ""
16488
16489 #. type: textblock
16490 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4372
16491 #: ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6775
16492 #: ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6812
16493 msgid ""
16494 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16495 "more details."
16496 msgstr ""
16497
16498 #. type: =head2
16499 #: ../fish/guestfish-actions.pod:4363
16500 msgid "scrub-file"
16501 msgstr "scrub-file"
16502
16503 #. type: verbatim
16504 #: ../fish/guestfish-actions.pod:4365
16505 #, no-wrap
16506 msgid ""
16507 " scrub-file file\n"
16508 "\n"
16509 msgstr ""
16510 " scrub-file файл\n"
16511 "\n"
16512
16513 #. type: textblock
16514 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
16515 msgid ""
16516 "This command writes patterns over a file to make data retrieval more "
16517 "difficult."
16518 msgstr ""
16519
16520 #. type: textblock
16521 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6791
16522 msgid "The file is I<removed> after scrubbing."
16523 msgstr ""
16524
16525 #. type: =head2
16526 #: ../fish/guestfish-actions.pod:4375
16527 msgid "scrub-freespace"
16528 msgstr "scrub-freespace"
16529
16530 #. type: verbatim
16531 #: ../fish/guestfish-actions.pod:4377
16532 #, no-wrap
16533 msgid ""
16534 " scrub-freespace dir\n"
16535 "\n"
16536 msgstr ""
16537 " scrub-freespace каталог\n"
16538 "\n"
16539
16540 #. type: textblock
16541 #: ../fish/guestfish-actions.pod:4379
16542 msgid ""
16543 "This command creates the directory C<dir> and then fills it with files until "
16544 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
16545 "deletes them.  The intention is to scrub any free space on the partition "
16546 "containing C<dir>."
16547 msgstr ""
16548
16549 #. type: =head2
16550 #: ../fish/guestfish-actions.pod:4388
16551 msgid "set-append"
16552 msgstr "set-append"
16553
16554 #. type: =head2
16555 #: ../fish/guestfish-actions.pod:4390
16556 msgid "append"
16557 msgstr ""
16558
16559 #. type: verbatim
16560 #: ../fish/guestfish-actions.pod:4392
16561 #, no-wrap
16562 msgid ""
16563 " set-append append\n"
16564 "\n"
16565 msgstr ""
16566
16567 #. type: textblock
16568 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6825
16569 msgid ""
16570 "This function is used to add additional options to the guest kernel command "
16571 "line."
16572 msgstr ""
16573
16574 #. type: textblock
16575 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6828
16576 msgid ""
16577 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16578 "environment variable."
16579 msgstr ""
16580
16581 #. type: textblock
16582 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6831
16583 msgid ""
16584 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16585 "(libguestfs always adds a few of its own)."
16586 msgstr ""
16587
16588 #. type: =head2
16589 #: ../fish/guestfish-actions.pod:4403
16590 msgid "set-attach-method"
16591 msgstr "set-attach-method"
16592
16593 #. type: =head2
16594 #: ../fish/guestfish-actions.pod:4405
16595 msgid "attach-method"
16596 msgstr ""
16597
16598 #. type: verbatim
16599 #: ../fish/guestfish-actions.pod:4407
16600 #, no-wrap
16601 msgid ""
16602 " set-attach-method attachmethod\n"
16603 "\n"
16604 msgstr ""
16605
16606 #. type: textblock
16607 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6844
16608 msgid ""
16609 "Set the method that libguestfs uses to connect to the back end guestfsd "
16610 "daemon.  Possible methods are:"
16611 msgstr ""
16612
16613 #. type: =item
16614 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6849
16615 #: ../src/guestfs.pod:2917
16616 msgid "C<appliance>"
16617 msgstr "C<appliance>"
16618
16619 #. type: textblock
16620 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6851
16621 msgid ""
16622 "Launch an appliance and connect to it.  This is the ordinary method and the "
16623 "default."
16624 msgstr ""
16625
16626 #. type: =item
16627 #: ../fish/guestfish-actions.pod:4419 ../src/guestfs-actions.pod:6854
16628 msgid "C<unix:I<path>>"
16629 msgstr "C<unix:I<шлях>>"
16630
16631 #. type: textblock
16632 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6856
16633 msgid "Connect to the Unix domain socket I<path>."
16634 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
16635
16636 #. type: textblock
16637 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6858
16638 msgid ""
16639 "This method lets you connect to an existing daemon or (using virtio-serial) "
16640 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16641 "RUNNING DAEMONS>."
16642 msgstr ""
16643
16644 #. type: =head2
16645 #: ../fish/guestfish-actions.pod:4429
16646 msgid "set-autosync"
16647 msgstr "set-autosync"
16648
16649 #. type: =head2
16650 #: ../fish/guestfish-actions.pod:4431
16651 msgid "autosync"
16652 msgstr "autosync"
16653
16654 #. type: verbatim
16655 #: ../fish/guestfish-actions.pod:4433
16656 #, no-wrap
16657 msgid ""
16658 " set-autosync true|false\n"
16659 "\n"
16660 msgstr ""
16661 " set-autosync true|false\n"
16662 "\n"
16663
16664 #. type: textblock
16665 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6874
16666 msgid ""
16667 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16668 "effort attempt to make filesystems consistent and synchronized when the "
16669 "handle is closed (also if the program exits without closing handles)."
16670 msgstr ""
16671
16672 #. type: textblock
16673 #: ../fish/guestfish-actions.pod:4440 ../src/guestfs-actions.pod:6879
16674 msgid ""
16675 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16676 "disabled by default)."
16677 msgstr ""
16678
16679 #. type: =head2
16680 #: ../fish/guestfish-actions.pod:4443
16681 msgid "set-direct"
16682 msgstr "set-direct"
16683
16684 #. type: =head2
16685 #: ../fish/guestfish-actions.pod:4445
16686 msgid "direct"
16687 msgstr "direct"
16688
16689 #. type: verbatim
16690 #: ../fish/guestfish-actions.pod:4447
16691 #, no-wrap
16692 msgid ""
16693 " set-direct true|false\n"
16694 "\n"
16695 msgstr ""
16696 " set-direct true|false\n"
16697 "\n"
16698
16699 #. type: textblock
16700 #: ../fish/guestfish-actions.pod:4449 ../src/guestfs-actions.pod:6892
16701 msgid ""
16702 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16703 "passed directly through to the appliance once it is launched."
16704 msgstr ""
16705
16706 #. type: textblock
16707 #: ../fish/guestfish-actions.pod:4453
16708 msgid ""
16709 "One consequence of this is that log messages aren't caught by the library "
16710 "and handled by L</set-log-message-callback>, but go straight to stdout."
16711 msgstr ""
16712
16713 #. type: textblock
16714 #: ../fish/guestfish-actions.pod:4457 ../src/guestfs-actions.pod:6900
16715 msgid "You probably don't want to use this unless you know what you are doing."
16716 msgstr ""
16717
16718 #. type: textblock
16719 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6903
16720 msgid "The default is disabled."
16721 msgstr ""
16722
16723 #. type: =head2
16724 #: ../fish/guestfish-actions.pod:4462
16725 msgid "set-e2label"
16726 msgstr "set-e2label"
16727
16728 #. type: verbatim
16729 #: ../fish/guestfish-actions.pod:4464
16730 #, no-wrap
16731 msgid ""
16732 " set-e2label device label\n"
16733 "\n"
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6916
16738 msgid ""
16739 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16740 "C<label>.  Filesystem labels are limited to 16 characters."
16741 msgstr ""
16742
16743 #. type: textblock
16744 #: ../fish/guestfish-actions.pod:4470
16745 msgid ""
16746 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16747 "label on a filesystem."
16748 msgstr ""
16749
16750 #. type: =head2
16751 #: ../fish/guestfish-actions.pod:4473
16752 msgid "set-e2uuid"
16753 msgstr "set-e2uuid"
16754
16755 #. type: verbatim
16756 #: ../fish/guestfish-actions.pod:4475
16757 #, no-wrap
16758 msgid ""
16759 " set-e2uuid device uuid\n"
16760 "\n"
16761 msgstr ""
16762
16763 #. type: textblock
16764 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
16765 msgid ""
16766 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16767 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16768 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16769 msgstr ""
16770
16771 #. type: textblock
16772 #: ../fish/guestfish-actions.pod:4482
16773 msgid ""
16774 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16775 "UUID of a filesystem."
16776 msgstr ""
16777
16778 #. type: =head2
16779 #: ../fish/guestfish-actions.pod:4485
16780 msgid "set-memsize"
16781 msgstr "set-memsize"
16782
16783 #. type: =head2
16784 #: ../fish/guestfish-actions.pod:4487
16785 msgid "memsize"
16786 msgstr ""
16787
16788 #. type: verbatim
16789 #: ../fish/guestfish-actions.pod:4489
16790 #, no-wrap
16791 msgid ""
16792 " set-memsize memsize\n"
16793 "\n"
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish-actions.pod:4491
16798 msgid ""
16799 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16800 "This only has any effect if called before L</launch>."
16801 msgstr ""
16802
16803 #. type: textblock
16804 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6956
16805 msgid ""
16806 "You can also change this by setting the environment variable "
16807 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16808 msgstr ""
16809
16810 #. type: =head2
16811 #: ../fish/guestfish-actions.pod:4502
16812 msgid "set-network"
16813 msgstr "set-network"
16814
16815 #. type: =head2
16816 #: ../fish/guestfish-actions.pod:4504
16817 msgid "network"
16818 msgstr "network"
16819
16820 #. type: verbatim
16821 #: ../fish/guestfish-actions.pod:4506
16822 #, no-wrap
16823 msgid ""
16824 " set-network true|false\n"
16825 "\n"
16826 msgstr ""
16827 " set-network true|false\n"
16828 "\n"
16829
16830 #. type: textblock
16831 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
16832 msgid ""
16833 "If C<network> is true, then the network is enabled in the libguestfs "
16834 "appliance.  The default is false."
16835 msgstr ""
16836
16837 #. type: textblock
16838 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
16839 msgid ""
16840 "This affects whether commands are able to access the network (see L<guestfs"
16841 "(3)/RUNNING COMMANDS>)."
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../fish/guestfish-actions.pod:4514
16846 msgid ""
16847 "You must call this before calling L</launch>, otherwise it has no effect."
16848 msgstr ""
16849
16850 #. type: =head2
16851 #: ../fish/guestfish-actions.pod:4517
16852 msgid "set-path"
16853 msgstr "set-path"
16854
16855 #. type: verbatim
16856 #: ../fish/guestfish-actions.pod:4521
16857 #, no-wrap
16858 msgid ""
16859 " set-path searchpath\n"
16860 "\n"
16861 msgstr ""
16862
16863 #. type: textblock
16864 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6992
16865 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
16870 msgid ""
16871 "The default is C<$libdir/guestfs> unless overridden by setting "
16872 "C<LIBGUESTFS_PATH> environment variable."
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
16877 msgid "Setting C<path> to C<NULL> restores the default path."
16878 msgstr ""
16879
16880 #. type: =head2
16881 #: ../fish/guestfish-actions.pod:4530
16882 msgid "set-pgroup"
16883 msgstr ""
16884
16885 #. type: =head2
16886 #: ../fish/guestfish-actions.pod:4532
16887 msgid "pgroup"
16888 msgstr ""
16889
16890 #. type: verbatim
16891 #: ../fish/guestfish-actions.pod:4534
16892 #, no-wrap
16893 msgid ""
16894 " set-pgroup true|false\n"
16895 "\n"
16896 msgstr ""
16897
16898 #. type: textblock
16899 #: ../fish/guestfish-actions.pod:4536 ../src/guestfs-actions.pod:7009
16900 msgid ""
16901 "If C<pgroup> is true, child processes are placed into their own process "
16902 "group."
16903 msgstr ""
16904
16905 #. type: textblock
16906 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:7012
16907 msgid ""
16908 "The practical upshot of this is that signals like C<SIGINT> (from users "
16909 "pressing C<^C>) won't be received by the child process."
16910 msgstr ""
16911
16912 #. type: textblock
16913 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:7015
16914 msgid ""
16915 "The default for this flag is false, because usually you want C<^C> to kill "
16916 "the subprocess."
16917 msgstr ""
16918
16919 #. type: =head2
16920 #: ../fish/guestfish-actions.pod:4545
16921 msgid "set-qemu"
16922 msgstr "set-qemu"
16923
16924 #. type: =head2
16925 #: ../fish/guestfish-actions.pod:4547
16926 msgid "qemu"
16927 msgstr "qemu"
16928
16929 #. type: verbatim
16930 #: ../fish/guestfish-actions.pod:4549
16931 #, no-wrap
16932 msgid ""
16933 " set-qemu qemu\n"
16934 "\n"
16935 msgstr ""
16936 " set-qemu qemu\n"
16937 "\n"
16938
16939 #. type: textblock
16940 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7028
16941 msgid "Set the qemu binary that we will use."
16942 msgstr ""
16943
16944 #. type: textblock
16945 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7030
16946 msgid ""
16947 "The default is chosen when the library was compiled by the configure script."
16948 msgstr ""
16949
16950 #. type: textblock
16951 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7033
16952 msgid ""
16953 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16954 "variable."
16955 msgstr ""
16956
16957 #. type: textblock
16958 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:7036
16959 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16960 msgstr ""
16961
16962 #. type: textblock
16963 #: ../fish/guestfish-actions.pod:4561 ../src/guestfs-actions.pod:7038
16964 msgid ""
16965 "Note that you should call this function as early as possible after creating "
16966 "the handle.  This is because some pre-launch operations depend on testing "
16967 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16968 "don't retest features, and so you might see inconsistent results.  Using the "
16969 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16970 "the qemu binary at the same time as the handle is created."
16971 msgstr ""
16972
16973 #. type: =head2
16974 #: ../fish/guestfish-actions.pod:4569
16975 msgid "set-recovery-proc"
16976 msgstr "set-recovery-proc"
16977
16978 #. type: =head2
16979 #: ../fish/guestfish-actions.pod:4571
16980 msgid "recovery-proc"
16981 msgstr "recovery-proc"
16982
16983 #. type: verbatim
16984 #: ../fish/guestfish-actions.pod:4573
16985 #, no-wrap
16986 msgid ""
16987 " set-recovery-proc true|false\n"
16988 "\n"
16989 msgstr ""
16990 " set-recovery-proc true|false\n"
16991 "\n"
16992
16993 #. type: textblock
16994 #: ../fish/guestfish-actions.pod:4575
16995 msgid ""
16996 "If this is called with the parameter C<false> then L</launch> does not "
16997 "create a recovery process.  The purpose of the recovery process is to stop "
16998 "runaway qemu processes in the case where the main program aborts abruptly."
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../fish/guestfish-actions.pod:4580
17003 msgid ""
17004 "This only has any effect if called before L</launch>, and the default is "
17005 "true."
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7064
17010 msgid ""
17011 "About the only time when you would want to disable this is if the main "
17012 "process will fork itself into the background (\"daemonize\" itself).  In "
17013 "this case the recovery process thinks that the main program has disappeared "
17014 "and so kills qemu, which is not very helpful."
17015 msgstr ""
17016
17017 #. type: =head2
17018 #: ../fish/guestfish-actions.pod:4589
17019 msgid "set-selinux"
17020 msgstr "set-selinux"
17021
17022 #. type: =head2
17023 #: ../fish/guestfish-actions.pod:4591
17024 msgid "selinux"
17025 msgstr "selinux"
17026
17027 #. type: verbatim
17028 #: ../fish/guestfish-actions.pod:4593
17029 #, no-wrap
17030 msgid ""
17031 " set-selinux true|false\n"
17032 "\n"
17033 msgstr ""
17034 " set-selinux true|false\n"
17035 "\n"
17036
17037 #. type: textblock
17038 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:7080
17039 msgid ""
17040 "This sets the selinux flag that is passed to the appliance at boot time.  "
17041 "The default is C<selinux=0> (disabled)."
17042 msgstr ""
17043
17044 #. type: textblock
17045 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
17046 msgid ""
17047 "Note that if SELinux is enabled, it is always in Permissive mode "
17048 "(C<enforcing=0>)."
17049 msgstr ""
17050
17051 #. type: =head2
17052 #: ../fish/guestfish-actions.pod:4604
17053 msgid "set-smp"
17054 msgstr ""
17055
17056 #. type: =head2
17057 #: ../fish/guestfish-actions.pod:4606
17058 msgid "smp"
17059 msgstr ""
17060
17061 #. type: verbatim
17062 #: ../fish/guestfish-actions.pod:4608
17063 #, no-wrap
17064 msgid ""
17065 " set-smp smp\n"
17066 "\n"
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7099
17071 msgid ""
17072 "Change the number of virtual CPUs assigned to the appliance.  The default is "
17073 "C<1>.  Increasing this may improve performance, though often it has no "
17074 "effect."
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish-actions.pod:4614
17079 msgid "This function must be called before L</launch>."
17080 msgstr ""
17081
17082 #. type: =head2
17083 #: ../fish/guestfish-actions.pod:4616
17084 msgid "set-trace"
17085 msgstr "set-trace"
17086
17087 #. type: =head2
17088 #: ../fish/guestfish-actions.pod:4618
17089 msgid "trace"
17090 msgstr "trace"
17091
17092 #. type: verbatim
17093 #: ../fish/guestfish-actions.pod:4620
17094 #, no-wrap
17095 msgid ""
17096 " set-trace true|false\n"
17097 "\n"
17098 msgstr ""
17099 " set-trace true|false\n"
17100 "\n"
17101
17102 #. type: textblock
17103 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7115
17104 msgid ""
17105 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17106 "return values are traced."
17107 msgstr ""
17108
17109 #. type: textblock
17110 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:7118
17111 msgid ""
17112 "If you want to trace C API calls into libguestfs (and other libraries) then "
17113 "possibly a better way is to use the external ltrace(1) command."
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7122
17118 msgid ""
17119 "Command traces are disabled unless the environment variable "
17120 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish-actions.pod:4632
17125 msgid ""
17126 "Trace messages are normally sent to C<stderr>, unless you register a "
17127 "callback to send them somewhere else (see L</set-event-callback>)."
17128 msgstr ""
17129
17130 #. type: =head2
17131 #: ../fish/guestfish-actions.pod:4636
17132 msgid "set-verbose"
17133 msgstr "set-verbose"
17134
17135 #. type: =head2
17136 #: ../fish/guestfish-actions.pod:4638
17137 msgid "verbose"
17138 msgstr "verbose"
17139
17140 #. type: verbatim
17141 #: ../fish/guestfish-actions.pod:4640
17142 #, no-wrap
17143 msgid ""
17144 " set-verbose true|false\n"
17145 "\n"
17146 msgstr ""
17147 " set-verbose true|false\n"
17148 "\n"
17149
17150 #. type: textblock
17151 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:7139
17152 msgid "If C<verbose> is true, this turns on verbose messages."
17153 msgstr ""
17154
17155 #. type: textblock
17156 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7141
17157 msgid ""
17158 "Verbose messages are disabled unless the environment variable "
17159 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17160 msgstr ""
17161
17162 #. type: textblock
17163 #: ../fish/guestfish-actions.pod:4647
17164 msgid ""
17165 "Verbose messages are normally sent to C<stderr>, unless you register a "
17166 "callback to send them somewhere else (see L</set-event-callback>)."
17167 msgstr ""
17168
17169 #. type: =head2
17170 #: ../fish/guestfish-actions.pod:4651
17171 msgid "setcon"
17172 msgstr "setcon"
17173
17174 #. type: verbatim
17175 #: ../fish/guestfish-actions.pod:4653
17176 #, no-wrap
17177 msgid ""
17178 " setcon context\n"
17179 "\n"
17180 msgstr ""
17181 " setcon контекст\n"
17182 "\n"
17183
17184 #. type: textblock
17185 #: ../fish/guestfish-actions.pod:4655 ../src/guestfs-actions.pod:7158
17186 msgid ""
17187 "This sets the SELinux security context of the daemon to the string "
17188 "C<context>."
17189 msgstr ""
17190
17191 #. type: textblock
17192 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7161
17193 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17194 msgstr ""
17195
17196 #. type: =head2
17197 #: ../fish/guestfish-actions.pod:4660
17198 msgid "setxattr"
17199 msgstr "setxattr"
17200
17201 #. type: verbatim
17202 #: ../fish/guestfish-actions.pod:4662
17203 #, no-wrap
17204 msgid ""
17205 " setxattr xattr val vallen path\n"
17206 "\n"
17207 msgstr ""
17208
17209 #. type: textblock
17210 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7176
17211 msgid ""
17212 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17213 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17214 msgstr ""
17215
17216 #. type: textblock
17217 #: ../fish/guestfish-actions.pod:4668
17218 msgid "See also: L</lsetxattr>, L<attr(5)>."
17219 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
17220
17221 #. type: =head2
17222 #: ../fish/guestfish-actions.pod:4670
17223 msgid "sfdisk"
17224 msgstr "sfdisk"
17225
17226 #. type: verbatim
17227 #: ../fish/guestfish-actions.pod:4672
17228 #, no-wrap
17229 msgid ""
17230 " sfdisk device cyls heads sectors 'lines ...'\n"
17231 "\n"
17232 msgstr ""
17233
17234 #. type: textblock
17235 #: ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:7203
17236 msgid ""
17237 "This is a direct interface to the L<sfdisk(8)> program for creating "
17238 "partitions on block devices."
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7206
17243 msgid "C<device> should be a block device, for example C</dev/sda>."
17244 msgstr ""
17245
17246 #. type: textblock
17247 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7208
17248 msgid ""
17249 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17250 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17251 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17252 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17253 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17254 "the kernel) cannot work out the right geometry and you will need to tell it."
17255 msgstr ""
17256
17257 #. type: textblock
17258 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7216
17259 msgid ""
17260 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17261 "refer to the L<sfdisk(8)> manpage."
17262 msgstr ""
17263
17264 #. type: textblock
17265 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7219
17266 msgid ""
17267 "To create a single partition occupying the whole disk, you would pass "
17268 "C<lines> as a single element list, when the single element being the string "
17269 "C<,> (comma)."
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish-actions.pod:4694
17274 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17275 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17276
17277 #. type: textblock
17278 #: ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4717
17279 #: ../fish/guestfish-actions.pod:4736
17280 msgid ""
17281 "I<This function is deprecated.> In new code, use the L</part_add> call "
17282 "instead."
17283 msgstr ""
17284
17285 #. type: =head2
17286 #: ../fish/guestfish-actions.pod:4704
17287 msgid "sfdiskM"
17288 msgstr "sfdiskM"
17289
17290 #. type: verbatim
17291 #: ../fish/guestfish-actions.pod:4706
17292 #, no-wrap
17293 msgid ""
17294 " sfdiskM device 'lines ...'\n"
17295 "\n"
17296 msgstr ""
17297
17298 #. type: textblock
17299 #: ../fish/guestfish-actions.pod:4708
17300 msgid ""
17301 "This is a simplified interface to the L</sfdisk> command, where partition "
17302 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
17303 "you don't need to specify the cyls, heads and sectors parameters which were "
17304 "rarely if ever used anyway."
17305 msgstr ""
17306
17307 #. type: textblock
17308 #: ../fish/guestfish-actions.pod:4714
17309 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
17310 msgstr ""
17311 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
17312
17313 #. type: =head2
17314 #: ../fish/guestfish-actions.pod:4724
17315 msgid "sfdisk-N"
17316 msgstr "sfdisk-N"
17317
17318 #. type: verbatim
17319 #: ../fish/guestfish-actions.pod:4726
17320 #, no-wrap
17321 msgid ""
17322 " sfdisk-N device partnum cyls heads sectors line\n"
17323 "\n"
17324 msgstr ""
17325
17326 #. type: textblock
17327 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
17328 msgid ""
17329 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17330 "(note: C<n> counts from 1)."
17331 msgstr ""
17332
17333 #. type: textblock
17334 #: ../fish/guestfish-actions.pod:4731
17335 msgid ""
17336 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
17337 "cyls/heads/sectors parameters."
17338 msgstr ""
17339
17340 #. type: textblock
17341 #: ../fish/guestfish-actions.pod:4734
17342 msgid "See also: L</part-add>"
17343 msgstr "Див. також L</part-add>"
17344
17345 #. type: =head2
17346 #: ../fish/guestfish-actions.pod:4743
17347 msgid "sfdisk-disk-geometry"
17348 msgstr "sfdisk-disk-geometry"
17349
17350 #. type: verbatim
17351 #: ../fish/guestfish-actions.pod:4745
17352 #, no-wrap
17353 msgid ""
17354 " sfdisk-disk-geometry device\n"
17355 "\n"
17356 msgstr ""
17357 " sfdisk-disk-geometry пристрій\n"
17358 "\n"
17359
17360 #. type: textblock
17361 #: ../fish/guestfish-actions.pod:4747
17362 msgid ""
17363 "This displays the disk geometry of C<device> read from the partition table.  "
17364 "Especially in the case where the underlying block device has been resized, "
17365 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
17366 "kernel-geometry>)."
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:4752 ../fish/guestfish-actions.pod:4761
17371 #: ../src/guestfs-actions.pod:7298 ../src/guestfs-actions.pod:7314
17372 msgid "The result is in human-readable format, and not designed to be parsed."
17373 msgstr ""
17374
17375 #. type: =head2
17376 #: ../fish/guestfish-actions.pod:4755
17377 msgid "sfdisk-kernel-geometry"
17378 msgstr "sfdisk-kernel-geometry"
17379
17380 #. type: verbatim
17381 #: ../fish/guestfish-actions.pod:4757
17382 #, no-wrap
17383 msgid ""
17384 " sfdisk-kernel-geometry device\n"
17385 "\n"
17386 msgstr ""
17387 " sfdisk-kernel-geometry пристрій\n"
17388 "\n"
17389
17390 #. type: textblock
17391 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7312
17392 msgid "This displays the kernel's idea of the geometry of C<device>."
17393 msgstr ""
17394
17395 #. type: =head2
17396 #: ../fish/guestfish-actions.pod:4764
17397 msgid "sfdisk-l"
17398 msgstr "sfdisk-l"
17399
17400 #. type: verbatim
17401 #: ../fish/guestfish-actions.pod:4766
17402 #, no-wrap
17403 msgid ""
17404 " sfdisk-l device\n"
17405 "\n"
17406 msgstr ""
17407 " sfdisk-l пристрій\n"
17408 "\n"
17409
17410 #. type: textblock
17411 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7335
17412 msgid ""
17413 "This displays the partition table on C<device>, in the human-readable output "
17414 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17415 msgstr ""
17416
17417 #. type: textblock
17418 #: ../fish/guestfish-actions.pod:4772
17419 msgid "See also: L</part-list>"
17420 msgstr "Див. також L</part-list>"
17421
17422 #. type: textblock
17423 #: ../fish/guestfish-actions.pod:4774
17424 msgid ""
17425 "I<This function is deprecated.> In new code, use the L</part_list> call "
17426 "instead."
17427 msgstr ""
17428
17429 #. type: =head2
17430 #: ../fish/guestfish-actions.pod:4781
17431 msgid "sh"
17432 msgstr "sh"
17433
17434 #. type: verbatim
17435 #: ../fish/guestfish-actions.pod:4783
17436 #, no-wrap
17437 msgid ""
17438 " sh command\n"
17439 "\n"
17440 msgstr ""
17441 " sh команда\n"
17442 "\n"
17443
17444 #. type: textblock
17445 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7352
17446 msgid ""
17447 "This call runs a command from the guest filesystem via the guest's C</bin/"
17448 "sh>."
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish-actions.pod:4788
17453 msgid "This is like L</command>, but passes the command to:"
17454 msgstr ""
17455
17456 #. type: verbatim
17457 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7357
17458 #, no-wrap
17459 msgid ""
17460 " /bin/sh -c \"command\"\n"
17461 "\n"
17462 msgstr ""
17463
17464 #. type: textblock
17465 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7359
17466 msgid ""
17467 "Depending on the guest's shell, this usually results in wildcards being "
17468 "expanded, shell expressions being interpolated and so on."
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../fish/guestfish-actions.pod:4796
17473 msgid "All the provisos about L</command> apply to this call."
17474 msgstr ""
17475
17476 #. type: =head2
17477 #: ../fish/guestfish-actions.pod:4798
17478 msgid "sh-lines"
17479 msgstr "sh-lines"
17480
17481 #. type: verbatim
17482 #: ../fish/guestfish-actions.pod:4800
17483 #, no-wrap
17484 msgid ""
17485 " sh-lines command\n"
17486 "\n"
17487 msgstr ""
17488 " sh-lines команда\n"
17489 "\n"
17490
17491 #. type: textblock
17492 #: ../fish/guestfish-actions.pod:4802
17493 msgid "This is the same as L</sh>, but splits the result into a list of lines."
17494 msgstr ""
17495
17496 #. type: textblock
17497 #: ../fish/guestfish-actions.pod:4805
17498 msgid "See also: L</command-lines>"
17499 msgstr "Див. також L</command-lines>"
17500
17501 #. type: =head2
17502 #: ../fish/guestfish-actions.pod:4807
17503 msgid "sleep"
17504 msgstr "sleep"
17505
17506 #. type: verbatim
17507 #: ../fish/guestfish-actions.pod:4809
17508 #, no-wrap
17509 msgid ""
17510 " sleep secs\n"
17511 "\n"
17512 msgstr ""
17513 " sleep час_у_секундах\n"
17514 "\n"
17515
17516 #. type: textblock
17517 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7393
17518 msgid "Sleep for C<secs> seconds."
17519 msgstr ""
17520
17521 #. type: =head2
17522 #: ../fish/guestfish-actions.pod:4813
17523 msgid "stat"
17524 msgstr "stat"
17525
17526 #. type: verbatim
17527 #: ../fish/guestfish-actions.pod:4815
17528 #, no-wrap
17529 msgid ""
17530 " stat path\n"
17531 "\n"
17532 msgstr ""
17533 " stat шлях\n"
17534 "\n"
17535
17536 #. type: textblock
17537 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7407
17538 msgid "This is the same as the C<stat(2)> system call."
17539 msgstr ""
17540
17541 #. type: =head2
17542 #: ../fish/guestfish-actions.pod:4821
17543 msgid "statvfs"
17544 msgstr "statvfs"
17545
17546 #. type: verbatim
17547 #: ../fish/guestfish-actions.pod:4823
17548 #, no-wrap
17549 msgid ""
17550 " statvfs path\n"
17551 "\n"
17552 msgstr ""
17553 " statvfs шлях\n"
17554 "\n"
17555
17556 #. type: textblock
17557 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7421
17558 msgid ""
17559 "Returns file system statistics for any mounted file system.  C<path> should "
17560 "be a file or directory in the mounted file system (typically it is the mount "
17561 "point itself, but it doesn't need to be)."
17562 msgstr ""
17563
17564 #. type: textblock
17565 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7425
17566 msgid "This is the same as the C<statvfs(2)> system call."
17567 msgstr ""
17568
17569 #. type: =head2
17570 #: ../fish/guestfish-actions.pod:4831
17571 msgid "strings"
17572 msgstr "strings"
17573
17574 #. type: verbatim
17575 #: ../fish/guestfish-actions.pod:4833
17576 #, no-wrap
17577 msgid ""
17578 " strings path\n"
17579 "\n"
17580 msgstr ""
17581 " strings шлях\n"
17582 "\n"
17583
17584 #. type: textblock
17585 #: ../fish/guestfish-actions.pod:4835 ../src/guestfs-actions.pod:7439
17586 msgid ""
17587 "This runs the L<strings(1)> command on a file and returns the list of "
17588 "printable strings found."
17589 msgstr ""
17590
17591 #. type: =head2
17592 #: ../fish/guestfish-actions.pod:4841
17593 msgid "strings-e"
17594 msgstr "strings-e"
17595
17596 #. type: verbatim
17597 #: ../fish/guestfish-actions.pod:4843
17598 #, no-wrap
17599 msgid ""
17600 " strings-e encoding path\n"
17601 "\n"
17602 msgstr ""
17603 " strings-e кодування шлях\n"
17604 "\n"
17605
17606 #. type: textblock
17607 #: ../fish/guestfish-actions.pod:4845
17608 msgid ""
17609 "This is like the L</strings> command, but allows you to specify the encoding "
17610 "of strings that are looked for in the source file C<path>."
17611 msgstr ""
17612
17613 #. type: textblock
17614 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7462
17615 msgid "Allowed encodings are:"
17616 msgstr "Можливими кодуваннями є:"
17617
17618 #. type: =item
17619 #: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7466
17620 msgid "s"
17621 msgstr "s"
17622
17623 #. type: textblock
17624 #: ../fish/guestfish-actions.pod:4855
17625 msgid ""
17626 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17627 "ISO-8859-X (this is what L</strings> uses)."
17628 msgstr ""
17629
17630 #. type: =item
17631 #: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7471
17632 msgid "S"
17633 msgstr "S"
17634
17635 #. type: textblock
17636 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7473
17637 msgid "Single 8-bit-byte characters."
17638 msgstr "Окремі 8-бітові-байтові символи."
17639
17640 #. type: =item
17641 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7475
17642 msgid "b"
17643 msgstr "b"
17644
17645 #. type: textblock
17646 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7477
17647 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17648 msgstr ""
17649
17650 #. type: =item
17651 #: ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:7480
17652 msgid "l (lower case letter L)"
17653 msgstr ""
17654
17655 #. type: textblock
17656 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7482
17657 msgid ""
17658 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17659 "examining binaries in Windows guests."
17660 msgstr ""
17661
17662 #. type: =item
17663 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7485
17664 msgid "B"
17665 msgstr "B"
17666
17667 #. type: textblock
17668 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7487
17669 msgid "32-bit big endian such as UCS-4BE."
17670 msgstr ""
17671
17672 #. type: =item
17673 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7489
17674 msgid "L"
17675 msgstr "L"
17676
17677 #. type: textblock
17678 #: ../fish/guestfish-actions.pod:4878 ../src/guestfs-actions.pod:7491
17679 msgid "32-bit little endian such as UCS-4LE."
17680 msgstr ""
17681
17682 #. type: textblock
17683 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7495
17684 msgid "The returned strings are transcoded to UTF-8."
17685 msgstr ""
17686
17687 #. type: =head2
17688 #: ../fish/guestfish-actions.pod:4887
17689 msgid "swapoff-device"
17690 msgstr "swapoff-device"
17691
17692 #. type: verbatim
17693 #: ../fish/guestfish-actions.pod:4889
17694 #, no-wrap
17695 msgid ""
17696 " swapoff-device device\n"
17697 "\n"
17698 msgstr ""
17699 " swapoff-device пристрій\n"
17700 "\n"
17701
17702 #. type: textblock
17703 #: ../fish/guestfish-actions.pod:4891
17704 msgid ""
17705 "This command disables the libguestfs appliance swap device or partition "
17706 "named C<device>.  See L</swapon-device>."
17707 msgstr ""
17708
17709 #. type: =head2
17710 #: ../fish/guestfish-actions.pod:4895
17711 msgid "swapoff-file"
17712 msgstr "swapoff-file"
17713
17714 #. type: verbatim
17715 #: ../fish/guestfish-actions.pod:4897
17716 #, no-wrap
17717 msgid ""
17718 " swapoff-file file\n"
17719 "\n"
17720 msgstr ""
17721 " swapoff-file файл\n"
17722 "\n"
17723
17724 #. type: textblock
17725 #: ../fish/guestfish-actions.pod:4899 ../src/guestfs-actions.pod:7526
17726 msgid "This command disables the libguestfs appliance swap on file."
17727 msgstr ""
17728
17729 #. type: =head2
17730 #: ../fish/guestfish-actions.pod:4901
17731 msgid "swapoff-label"
17732 msgstr "swapoff-label"
17733
17734 #. type: verbatim
17735 #: ../fish/guestfish-actions.pod:4903
17736 #, no-wrap
17737 msgid ""
17738 " swapoff-label label\n"
17739 "\n"
17740 msgstr ""
17741 " swapoff-label мітка\n"
17742 "\n"
17743
17744 #. type: textblock
17745 #: ../fish/guestfish-actions.pod:4905 ../src/guestfs-actions.pod:7538
17746 msgid ""
17747 "This command disables the libguestfs appliance swap on labeled swap "
17748 "partition."
17749 msgstr ""
17750
17751 #. type: =head2
17752 #: ../fish/guestfish-actions.pod:4908
17753 msgid "swapoff-uuid"
17754 msgstr "swapoff-uuid"
17755
17756 #. type: verbatim
17757 #: ../fish/guestfish-actions.pod:4910
17758 #, no-wrap
17759 msgid ""
17760 " swapoff-uuid uuid\n"
17761 "\n"
17762 msgstr ""
17763 " swapoff-uuid uuid\n"
17764 "\n"
17765
17766 #. type: textblock
17767 #: ../fish/guestfish-actions.pod:4912 ../src/guestfs-actions.pod:7551
17768 msgid ""
17769 "This command disables the libguestfs appliance swap partition with the given "
17770 "UUID."
17771 msgstr ""
17772
17773 #. type: =head2
17774 #: ../fish/guestfish-actions.pod:4915
17775 msgid "swapon-device"
17776 msgstr "swapon-device"
17777
17778 #. type: verbatim
17779 #: ../fish/guestfish-actions.pod:4917
17780 #, no-wrap
17781 msgid ""
17782 " swapon-device device\n"
17783 "\n"
17784 msgstr ""
17785 " swapon-device пристрій\n"
17786 "\n"
17787
17788 #. type: textblock
17789 #: ../fish/guestfish-actions.pod:4919
17790 msgid ""
17791 "This command enables the libguestfs appliance to use the swap device or "
17792 "partition named C<device>.  The increased memory is made available for all "
17793 "commands, for example those run using L</command> or L</sh>."
17794 msgstr ""
17795
17796 #. type: textblock
17797 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7569
17798 msgid ""
17799 "Note that you should not swap to existing guest swap partitions unless you "
17800 "know what you are doing.  They may contain hibernation information, or other "
17801 "information that the guest doesn't want you to trash.  You also risk leaking "
17802 "information about the host to the guest this way.  Instead, attach a new "
17803 "host device to the guest and swap on that."
17804 msgstr ""
17805
17806 #. type: =head2
17807 #: ../fish/guestfish-actions.pod:4931
17808 msgid "swapon-file"
17809 msgstr "swapon-file"
17810
17811 #. type: verbatim
17812 #: ../fish/guestfish-actions.pod:4933
17813 #, no-wrap
17814 msgid ""
17815 " swapon-file file\n"
17816 "\n"
17817 msgstr ""
17818 " swapon-file файл\n"
17819 "\n"
17820
17821 #. type: textblock
17822 #: ../fish/guestfish-actions.pod:4935
17823 msgid ""
17824 "This command enables swap to a file.  See L</swapon-device> for other notes."
17825 msgstr ""
17826
17827 #. type: =head2
17828 #: ../fish/guestfish-actions.pod:4938
17829 msgid "swapon-label"
17830 msgstr "swapon-label"
17831
17832 #. type: verbatim
17833 #: ../fish/guestfish-actions.pod:4940
17834 #, no-wrap
17835 msgid ""
17836 " swapon-label label\n"
17837 "\n"
17838 msgstr ""
17839 " swapon-label мітка\n"
17840 "\n"
17841
17842 #. type: textblock
17843 #: ../fish/guestfish-actions.pod:4942
17844 msgid ""
17845 "This command enables swap to a labeled swap partition.  See L</swapon-"
17846 "device> for other notes."
17847 msgstr ""
17848
17849 #. type: =head2
17850 #: ../fish/guestfish-actions.pod:4945
17851 msgid "swapon-uuid"
17852 msgstr "swapon-uuid"
17853
17854 #. type: verbatim
17855 #: ../fish/guestfish-actions.pod:4947
17856 #, no-wrap
17857 msgid ""
17858 " swapon-uuid uuid\n"
17859 "\n"
17860 msgstr ""
17861 " swapon-uuid uuid\n"
17862 "\n"
17863
17864 #. type: textblock
17865 #: ../fish/guestfish-actions.pod:4949
17866 msgid ""
17867 "This command enables swap to a swap partition with the given UUID.  See L</"
17868 "swapon-device> for other notes."
17869 msgstr ""
17870
17871 #. type: =head2
17872 #: ../fish/guestfish-actions.pod:4952
17873 msgid "sync"
17874 msgstr "sync"
17875
17876 #. type: verbatim
17877 #: ../fish/guestfish-actions.pod:4954
17878 #, no-wrap
17879 msgid ""
17880 " sync\n"
17881 "\n"
17882 msgstr ""
17883 " sync\n"
17884 "\n"
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7624
17888 msgid ""
17889 "This syncs the disk, so that any writes are flushed through to the "
17890 "underlying disk image."
17891 msgstr ""
17892
17893 #. type: textblock
17894 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7627
17895 msgid ""
17896 "You should always call this if you have modified a disk image, before "
17897 "closing the handle."
17898 msgstr ""
17899
17900 #. type: =head2
17901 #: ../fish/guestfish-actions.pod:4962
17902 msgid "tail"
17903 msgstr "tail"
17904
17905 #. type: verbatim
17906 #: ../fish/guestfish-actions.pod:4964
17907 #, no-wrap
17908 msgid ""
17909 " tail path\n"
17910 "\n"
17911 msgstr ""
17912 " tail шлях\n"
17913 "\n"
17914
17915 #. type: textblock
17916 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7640
17917 msgid ""
17918 "This command returns up to the last 10 lines of a file as a list of strings."
17919 msgstr ""
17920
17921 #. type: =head2
17922 #: ../fish/guestfish-actions.pod:4972
17923 msgid "tail-n"
17924 msgstr "tail-n"
17925
17926 #. type: verbatim
17927 #: ../fish/guestfish-actions.pod:4974
17928 #, no-wrap
17929 msgid ""
17930 " tail-n nrlines path\n"
17931 "\n"
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish-actions.pod:4976 ../src/guestfs-actions.pod:7659
17936 msgid ""
17937 "If the parameter C<nrlines> is a positive number, this returns the last "
17938 "C<nrlines> lines of the file C<path>."
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7662
17943 msgid ""
17944 "If the parameter C<nrlines> is a negative number, this returns lines from "
17945 "the file C<path>, starting with the C<-nrlines>th line."
17946 msgstr ""
17947
17948 #. type: =head2
17949 #: ../fish/guestfish-actions.pod:4987
17950 msgid "tar-in"
17951 msgstr "tar-in"
17952
17953 #. type: verbatim
17954 #: ../fish/guestfish-actions.pod:4989
17955 #, no-wrap
17956 msgid ""
17957 " tar-in (tarfile|-) directory\n"
17958 "\n"
17959 msgstr ""
17960 " tar-in (файл_tar|-) каталог\n"
17961 "\n"
17962
17963 #. type: textblock
17964 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7683
17965 msgid ""
17966 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17967 "tar file) into C<directory>."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish-actions.pod:4994
17972 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17973 msgstr ""
17974
17975 #. type: =head2
17976 #: ../fish/guestfish-actions.pod:4999
17977 msgid "tar-out"
17978 msgstr "tar-out"
17979
17980 #. type: verbatim
17981 #: ../fish/guestfish-actions.pod:5001
17982 #, no-wrap
17983 msgid ""
17984 " tar-out directory (tarfile|-)\n"
17985 "\n"
17986 msgstr ""
17987 " tar-out каталог (файл tar|-)\n"
17988 "\n"
17989
17990 #. type: textblock
17991 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7700
17992 msgid ""
17993 "This command packs the contents of C<directory> and downloads it to local "
17994 "file C<tarfile>."
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish-actions.pod:5006
17999 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
18000 msgstr ""
18001
18002 #. type: =head2
18003 #: ../fish/guestfish-actions.pod:5011
18004 msgid "tgz-in"
18005 msgstr "tgz-in"
18006
18007 #. type: verbatim
18008 #: ../fish/guestfish-actions.pod:5013
18009 #, no-wrap
18010 msgid ""
18011 " tgz-in (tarball|-) directory\n"
18012 "\n"
18013 msgstr ""
18014 " tgz-in (архів tar|-) каталог\n"
18015 "\n"
18016
18017 #. type: textblock
18018 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7717
18019 msgid ""
18020 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18021 "tar file) into C<directory>."
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../fish/guestfish-actions.pod:5018
18026 msgid "To upload an uncompressed tarball, use L</tar-in>."
18027 msgstr ""
18028
18029 #. type: =head2
18030 #: ../fish/guestfish-actions.pod:5022
18031 msgid "tgz-out"
18032 msgstr "tgz-out"
18033
18034 #. type: verbatim
18035 #: ../fish/guestfish-actions.pod:5024
18036 #, no-wrap
18037 msgid ""
18038 " tgz-out directory (tarball|-)\n"
18039 "\n"
18040 msgstr ""
18041 " tgz-out каталог (архів tar|-)\n"
18042 "\n"
18043
18044 #. type: textblock
18045 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7733
18046 msgid ""
18047 "This command packs the contents of C<directory> and downloads it to local "
18048 "file C<tarball>."
18049 msgstr ""
18050
18051 #. type: textblock
18052 #: ../fish/guestfish-actions.pod:5029
18053 msgid "To download an uncompressed tarball, use L</tar-out>."
18054 msgstr ""
18055
18056 #. type: =head2
18057 #: ../fish/guestfish-actions.pod:5033
18058 msgid "touch"
18059 msgstr "touch"
18060
18061 #. type: verbatim
18062 #: ../fish/guestfish-actions.pod:5035
18063 #, no-wrap
18064 msgid ""
18065 " touch path\n"
18066 "\n"
18067 msgstr ""
18068 " touch шлях\n"
18069 "\n"
18070
18071 #. type: textblock
18072 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7748
18073 msgid ""
18074 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18075 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18076 "length file."
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish-actions.pod:5041 ../src/guestfs-actions.pod:7752
18081 msgid ""
18082 "This command only works on regular files, and will fail on other file types "
18083 "such as directories, symbolic links, block special etc."
18084 msgstr ""
18085
18086 #. type: =head2
18087 #: ../fish/guestfish-actions.pod:5044
18088 msgid "truncate"
18089 msgstr "truncate"
18090
18091 #. type: verbatim
18092 #: ../fish/guestfish-actions.pod:5046
18093 #, no-wrap
18094 msgid ""
18095 " truncate path\n"
18096 "\n"
18097 msgstr ""
18098 " truncate шлях\n"
18099 "\n"
18100
18101 #. type: textblock
18102 #: ../fish/guestfish-actions.pod:5048 ../src/guestfs-actions.pod:7765
18103 msgid ""
18104 "This command truncates C<path> to a zero-length file.  The file must exist "
18105 "already."
18106 msgstr ""
18107
18108 #. type: =head2
18109 #: ../fish/guestfish-actions.pod:5051
18110 msgid "truncate-size"
18111 msgstr "truncate-size"
18112
18113 #. type: verbatim
18114 #: ../fish/guestfish-actions.pod:5053
18115 #, no-wrap
18116 msgid ""
18117 " truncate-size path size\n"
18118 "\n"
18119 msgstr ""
18120 " truncate-size шлях розмір\n"
18121 "\n"
18122
18123 #. type: textblock
18124 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7779
18125 msgid ""
18126 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18127 "already."
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../fish/guestfish-actions.pod:5058
18132 msgid ""
18133 "If the current file size is less than C<size> then the file is extended to "
18134 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18135 "blocks are not allocated for the file until you write to it).  To create a "
18136 "non-sparse file of zeroes, use L</fallocate64> instead."
18137 msgstr ""
18138
18139 #. type: =head2
18140 #: ../fish/guestfish-actions.pod:5064
18141 #, fuzzy
18142 #| msgid "tune2fs-l"
18143 msgid "tune2fs"
18144 msgstr "tune2fs-l"
18145
18146 #. type: verbatim
18147 #: ../fish/guestfish-actions.pod:5066
18148 #, no-wrap
18149 msgid ""
18150 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
18151 "\n"
18152 msgstr ""
18153
18154 #. type: textblock
18155 #: ../fish/guestfish-actions.pod:5068 ../src/guestfs-actions.pod:7815
18156 msgid ""
18157 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
18158 "ext4 filesystem called C<device>."
18159 msgstr ""
18160
18161 #. type: textblock
18162 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7824
18163 msgid ""
18164 "Force tune2fs to complete the operation even in the face of errors.  This is "
18165 "the same as the tune2fs C<-f> option."
18166 msgstr ""
18167
18168 #. type: =item
18169 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7827
18170 #, fuzzy
18171 #| msgid "mkmountpoint"
18172 msgid "C<maxmountcount>"
18173 msgstr "mkmountpoint"
18174
18175 #. type: textblock
18176 #: ../fish/guestfish-actions.pod:5082 ../src/guestfs-actions.pod:7829
18177 msgid ""
18178 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
18179 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
18180 "same as the tune2fs C<-c> option."
18181 msgstr ""
18182
18183 #. type: =item
18184 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7833
18185 #, fuzzy
18186 #| msgid "mountpoints"
18187 msgid "C<mountcount>"
18188 msgstr "mountpoints"
18189
18190 #. type: textblock
18191 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7835
18192 msgid ""
18193 "Set the number of times the filesystem has been mounted.  This is the same "
18194 "as the tune2fs C<-C> option."
18195 msgstr ""
18196
18197 #. type: =item
18198 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7838
18199 msgid "C<errorbehavior>"
18200 msgstr ""
18201
18202 #. type: textblock
18203 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7840
18204 msgid ""
18205 "Change the behavior of the kernel code when errors are detected.  Possible "
18206 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
18207 "these options don't really make any difference, particularly for write "
18208 "errors."
18209 msgstr ""
18210
18211 #. type: textblock
18212 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7845
18213 msgid "This is the same as the tune2fs C<-e> option."
18214 msgstr ""
18215
18216 #. type: =item
18217 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7847
18218 #, fuzzy
18219 #| msgid "B<--volgroups>"
18220 msgid "C<group>"
18221 msgstr "B<--volgroups>"
18222
18223 #. type: textblock
18224 #: ../fish/guestfish-actions.pod:5102 ../src/guestfs-actions.pod:7849
18225 msgid ""
18226 "Set the group which can use reserved filesystem blocks.  This is the same as "
18227 "the tune2fs C<-g> option except that it can only be specified as a number."
18228 msgstr ""
18229
18230 #. type: =item
18231 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7853
18232 msgid "C<intervalbetweenchecks>"
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7855
18237 msgid ""
18238 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
18239 "option is passed as C<0> then time-dependent checking is disabled."
18240 msgstr ""
18241
18242 #. type: textblock
18243 #: ../fish/guestfish-actions.pod:5112 ../src/guestfs-actions.pod:7859
18244 msgid "This is the same as the tune2fs C<-i> option."
18245 msgstr ""
18246
18247 #. type: =item
18248 #: ../fish/guestfish-actions.pod:5114 ../src/guestfs-actions.pod:7861
18249 msgid "C<reservedblockspercentage>"
18250 msgstr ""
18251
18252 #. type: textblock
18253 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7863
18254 msgid ""
18255 "Set the percentage of the filesystem which may only be allocated by "
18256 "privileged processes.  This is the same as the tune2fs C<-m> option."
18257 msgstr ""
18258
18259 #. type: =item
18260 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7867
18261 msgid "C<lastmounteddirectory>"
18262 msgstr ""
18263
18264 #. type: textblock
18265 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7869
18266 msgid ""
18267 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
18268 "option."
18269 msgstr ""
18270
18271 #. type: =item
18272 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7872
18273 msgid ""
18274 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
18275 "is the same as the tune2fs C<-r> option."
18276 msgstr ""
18277
18278 #. type: =item
18279 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7876
18280 msgid "C<user>"
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7878
18285 msgid ""
18286 "Set the user who can use the reserved filesystem blocks.  This is the same "
18287 "as the tune2fs C<-u> option except that it can only be specified as a number."
18288 msgstr ""
18289
18290 #. type: textblock
18291 #: ../fish/guestfish-actions.pod:5137
18292 msgid ""
18293 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
18294 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
18295 msgstr ""
18296
18297 #. type: =head2
18298 #: ../fish/guestfish-actions.pod:5143
18299 msgid "tune2fs-l"
18300 msgstr "tune2fs-l"
18301
18302 #. type: verbatim
18303 #: ../fish/guestfish-actions.pod:5145
18304 #, no-wrap
18305 msgid ""
18306 " tune2fs-l device\n"
18307 "\n"
18308 msgstr ""
18309 " tune2fs-l пристрій\n"
18310 "\n"
18311
18312 #. type: textblock
18313 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7920
18314 msgid ""
18315 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18316 "C<device>."
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7923
18321 msgid ""
18322 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18323 "for more details.  The list of fields returned isn't clearly defined, and "
18324 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18325 "and the filesystem itself."
18326 msgstr ""
18327
18328 #. type: =head2
18329 #: ../fish/guestfish-actions.pod:5155
18330 msgid "txz-in"
18331 msgstr "txz-in"
18332
18333 #. type: verbatim
18334 #: ../fish/guestfish-actions.pod:5157
18335 #, no-wrap
18336 msgid ""
18337 " txz-in (tarball|-) directory\n"
18338 "\n"
18339 msgstr ""
18340 " txz-in (архів tar|-) каталог\n"
18341 "\n"
18342
18343 #. type: textblock
18344 #: ../fish/guestfish-actions.pod:5159 ../src/guestfs-actions.pod:7943
18345 msgid ""
18346 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18347 "tar file) into C<directory>."
18348 msgstr ""
18349
18350 #. type: =head2
18351 #: ../fish/guestfish-actions.pod:5164
18352 msgid "txz-out"
18353 msgstr "txz-out"
18354
18355 #. type: verbatim
18356 #: ../fish/guestfish-actions.pod:5166
18357 #, no-wrap
18358 msgid ""
18359 " txz-out directory (tarball|-)\n"
18360 "\n"
18361 msgstr ""
18362 " txz-out каталог (архів tar|-)\n"
18363 "\n"
18364
18365 #. type: textblock
18366 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7957
18367 msgid ""
18368 "This command packs the contents of C<directory> and downloads it to local "
18369 "file C<tarball> (as an xz compressed tar archive)."
18370 msgstr ""
18371
18372 #. type: =head2
18373 #: ../fish/guestfish-actions.pod:5173
18374 msgid "umask"
18375 msgstr "umask"
18376
18377 #. type: verbatim
18378 #: ../fish/guestfish-actions.pod:5175
18379 #, no-wrap
18380 msgid ""
18381 " umask mask\n"
18382 "\n"
18383 msgstr ""
18384 " umask маска\n"
18385 "\n"
18386
18387 #. type: textblock
18388 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7970
18389 msgid ""
18390 "This function sets the mask used for creating new files and device nodes to "
18391 "C<mask & 0777>."
18392 msgstr ""
18393
18394 #. type: textblock
18395 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7973
18396 msgid ""
18397 "Typical umask values would be C<022> which creates new files with "
18398 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18399 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18400 msgstr ""
18401
18402 #. type: textblock
18403 #: ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:7978
18404 msgid ""
18405 "The default umask is C<022>.  This is important because it means that "
18406 "directories and device nodes will be created with C<0644> or C<0755> mode "
18407 "even if you specify C<0777>."
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish-actions.pod:5189
18412 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18413 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18414
18415 #. type: textblock
18416 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7985
18417 msgid "This call returns the previous umask."
18418 msgstr ""
18419
18420 #. type: =head2
18421 #: ../fish/guestfish-actions.pod:5194
18422 msgid "umount"
18423 msgstr "umount"
18424
18425 #. type: =head2
18426 #: ../fish/guestfish-actions.pod:5196
18427 msgid "unmount"
18428 msgstr "unmount"
18429
18430 #. type: verbatim
18431 #: ../fish/guestfish-actions.pod:5198
18432 #, no-wrap
18433 msgid ""
18434 " umount pathordevice\n"
18435 "\n"
18436 msgstr ""
18437 " umount шлях_або_пристрій\n"
18438 "\n"
18439
18440 #. type: textblock
18441 #: ../fish/guestfish-actions.pod:5200 ../src/guestfs-actions.pod:7997
18442 msgid ""
18443 "This unmounts the given filesystem.  The filesystem may be specified either "
18444 "by its mountpoint (path) or the device which contains the filesystem."
18445 msgstr ""
18446
18447 #. type: =head2
18448 #: ../fish/guestfish-actions.pod:5204
18449 msgid "umount-all"
18450 msgstr "umount-all"
18451
18452 #. type: =head2
18453 #: ../fish/guestfish-actions.pod:5206
18454 msgid "unmount-all"
18455 msgstr "unmount-all"
18456
18457 #. type: verbatim
18458 #: ../fish/guestfish-actions.pod:5208
18459 #, no-wrap
18460 msgid ""
18461 " umount-all\n"
18462 "\n"
18463 msgstr ""
18464 " umount-all\n"
18465 "\n"
18466
18467 #. type: textblock
18468 #: ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:8010
18469 msgid "This unmounts all mounted filesystems."
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8012
18474 msgid "Some internal mounts are not unmounted by this call."
18475 msgstr ""
18476
18477 #. type: =head2
18478 #: ../fish/guestfish-actions.pod:5214
18479 msgid "upload"
18480 msgstr "upload"
18481
18482 #. type: verbatim
18483 #: ../fish/guestfish-actions.pod:5216
18484 #, no-wrap
18485 msgid ""
18486 " upload (filename|-) remotefilename\n"
18487 "\n"
18488 msgstr ""
18489 " upload (назва_файла|-) назва_віддаленого_файла\n"
18490 "\n"
18491
18492 #. type: textblock
18493 #: ../fish/guestfish-actions.pod:5218 ../fish/guestfish-actions.pod:5231
18494 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8049
18495 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish-actions.pod:5223
18500 msgid "See also L</download>."
18501 msgstr "Див. також L</download>."
18502
18503 #. type: =head2
18504 #: ../fish/guestfish-actions.pod:5227
18505 msgid "upload-offset"
18506 msgstr "upload-offset"
18507
18508 #. type: verbatim
18509 #: ../fish/guestfish-actions.pod:5229
18510 #, no-wrap
18511 msgid ""
18512 " upload-offset (filename|-) remotefilename offset\n"
18513 "\n"
18514 msgstr ""
18515 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
18516 "\n"
18517
18518 #. type: textblock
18519 #: ../fish/guestfish-actions.pod:5234 ../src/guestfs-actions.pod:8052
18520 msgid ""
18521 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18522 "The intention is to overwrite parts of existing files or devices, although "
18523 "if a non-existant file is specified then it is created with a \"hole\" "
18524 "before C<offset>.  The size of the data written is implicit in the size of "
18525 "the source C<filename>."
18526 msgstr ""
18527
18528 #. type: textblock
18529 #: ../fish/guestfish-actions.pod:5241
18530 msgid ""
18531 "Note that there is no limit on the amount of data that can be uploaded with "
18532 "this call, unlike with L</pwrite>, and this call always writes the full "
18533 "amount unless an error occurs."
18534 msgstr ""
18535
18536 #. type: textblock
18537 #: ../fish/guestfish-actions.pod:5246
18538 msgid "See also L</upload>, L</pwrite>."
18539 msgstr "Див. також L</upload>, L</pwrite>."
18540
18541 #. type: =head2
18542 #: ../fish/guestfish-actions.pod:5250
18543 msgid "utimens"
18544 msgstr "utimens"
18545
18546 #. type: verbatim
18547 #: ../fish/guestfish-actions.pod:5252
18548 #, no-wrap
18549 msgid ""
18550 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
18551 "\n"
18552 msgstr ""
18553
18554 #. type: textblock
18555 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8085
18556 msgid "This command sets the timestamps of a file with nanosecond precision."
18557 msgstr ""
18558
18559 #. type: textblock
18560 #: ../fish/guestfish-actions.pod:5257 ../src/guestfs-actions.pod:8088
18561 msgid ""
18562 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18563 "from the epoch."
18564 msgstr ""
18565
18566 #. type: textblock
18567 #: ../fish/guestfish-actions.pod:5260 ../src/guestfs-actions.pod:8091
18568 msgid ""
18569 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18570 "nanoseconds from the epoch."
18571 msgstr ""
18572
18573 #. type: textblock
18574 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8094
18575 msgid ""
18576 "If the C<*nsecs> field contains the special value C<-1> then the "
18577 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18578 "ignored in this case)."
18579 msgstr ""
18580
18581 #. type: textblock
18582 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8098
18583 msgid ""
18584 "If the C<*nsecs> field contains the special value C<-2> then the "
18585 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18586 "in this case)."
18587 msgstr ""
18588
18589 #. type: =head2
18590 #: ../fish/guestfish-actions.pod:5271
18591 msgid "version"
18592 msgstr "version"
18593
18594 #. type: verbatim
18595 #: ../fish/guestfish-actions.pod:5273
18596 #, no-wrap
18597 msgid ""
18598 " version\n"
18599 "\n"
18600 msgstr ""
18601 " version\n"
18602 "\n"
18603
18604 #. type: textblock
18605 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8111
18606 msgid ""
18607 "Return the libguestfs version number that the program is linked against."
18608 msgstr ""
18609
18610 #. type: textblock
18611 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8114
18612 msgid ""
18613 "Note that because of dynamic linking this is not necessarily the version of "
18614 "libguestfs that you compiled against.  You can compile the program, and then "
18615 "at runtime dynamically link against a completely different C<libguestfs.so> "
18616 "library."
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../fish/guestfish-actions.pod:5283 ../src/guestfs-actions.pod:8119
18621 msgid ""
18622 "This call was added in version C<1.0.58>.  In previous versions of "
18623 "libguestfs there was no way to get the version number.  From C code you can "
18624 "use dynamic linker functions to find out if this symbol exists (if it "
18625 "doesn't, then it's an earlier version)."
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/guestfish-actions.pod:5289 ../src/guestfs-actions.pod:8125
18630 msgid ""
18631 "The call returns a structure with four elements.  The first three (C<major>, "
18632 "C<minor> and C<release>) are numbers and correspond to the usual version "
18633 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18634 "but may be used for distro-specific information."
18635 msgstr ""
18636
18637 #. type: textblock
18638 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8131
18639 msgid ""
18640 "To construct the original version string: C<$major.$minor.$release$extra>"
18641 msgstr ""
18642
18643 #. type: textblock
18644 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8134
18645 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18646 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18647
18648 #. type: textblock
18649 #: ../fish/guestfish-actions.pod:5300
18650 msgid ""
18651 "I<Note:> Don't use this call to test for availability of features.  In "
18652 "enterprise distributions we backport features from later versions into "
18653 "earlier versions, making this an unreliable way to test for features.  Use "
18654 "L</available> instead."
18655 msgstr ""
18656
18657 #. type: =head2
18658 #: ../fish/guestfish-actions.pod:5306
18659 msgid "vfs-label"
18660 msgstr "vfs-label"
18661
18662 #. type: verbatim
18663 #: ../fish/guestfish-actions.pod:5308
18664 #, no-wrap
18665 msgid ""
18666 " vfs-label device\n"
18667 "\n"
18668 msgstr ""
18669 " vfs-label пристрій\n"
18670 "\n"
18671
18672 #. type: textblock
18673 #: ../fish/guestfish-actions.pod:5310 ../src/guestfs-actions.pod:8154
18674 msgid "This returns the filesystem label of the filesystem on C<device>."
18675 msgstr ""
18676
18677 #. type: textblock
18678 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8157
18679 msgid "If the filesystem is unlabeled, this returns the empty string."
18680 msgstr ""
18681
18682 #. type: textblock
18683 #: ../fish/guestfish-actions.pod:5315
18684 msgid "To find a filesystem from the label, use L</findfs-label>."
18685 msgstr ""
18686
18687 #. type: =head2
18688 #: ../fish/guestfish-actions.pod:5317
18689 msgid "vfs-type"
18690 msgstr "vfs-type"
18691
18692 #. type: verbatim
18693 #: ../fish/guestfish-actions.pod:5319
18694 #, no-wrap
18695 msgid ""
18696 " vfs-type device\n"
18697 "\n"
18698 msgstr ""
18699 " vfs-type пристрій\n"
18700 "\n"
18701
18702 #. type: textblock
18703 #: ../fish/guestfish-actions.pod:5321 ../src/guestfs-actions.pod:8172
18704 msgid ""
18705 "This command gets the filesystem type corresponding to the filesystem on "
18706 "C<device>."
18707 msgstr ""
18708
18709 #. type: textblock
18710 #: ../fish/guestfish-actions.pod:5324 ../src/guestfs-actions.pod:8175
18711 msgid ""
18712 "For most filesystems, the result is the name of the Linux VFS module which "
18713 "would be used to mount this filesystem if you mounted it without specifying "
18714 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18715 msgstr ""
18716
18717 #. type: =head2
18718 #: ../fish/guestfish-actions.pod:5329
18719 msgid "vfs-uuid"
18720 msgstr "vfs-uuid"
18721
18722 #. type: verbatim
18723 #: ../fish/guestfish-actions.pod:5331
18724 #, no-wrap
18725 msgid ""
18726 " vfs-uuid device\n"
18727 "\n"
18728 msgstr ""
18729 " vfs-uuid пристрій\n"
18730 "\n"
18731
18732 #. type: textblock
18733 #: ../fish/guestfish-actions.pod:5333 ../src/guestfs-actions.pod:8191
18734 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18735 msgstr ""
18736
18737 #. type: textblock
18738 #: ../fish/guestfish-actions.pod:5336 ../src/guestfs-actions.pod:8194
18739 msgid "If the filesystem does not have a UUID, this returns the empty string."
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../fish/guestfish-actions.pod:5338
18744 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18745 msgstr ""
18746
18747 #. type: =head2
18748 #: ../fish/guestfish-actions.pod:5340
18749 msgid "vg-activate"
18750 msgstr "vg-activate"
18751
18752 #. type: verbatim
18753 #: ../fish/guestfish-actions.pod:5342
18754 #, no-wrap
18755 msgid ""
18756 " vg-activate true|false 'volgroups ...'\n"
18757 "\n"
18758 msgstr ""
18759
18760 #. type: textblock
18761 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8210
18762 msgid ""
18763 "This command activates or (if C<activate> is false) deactivates all logical "
18764 "volumes in the listed volume groups C<volgroups>."
18765 msgstr ""
18766
18767 #. type: textblock
18768 #: ../fish/guestfish-actions.pod:5347 ../src/guestfs-actions.pod:8213
18769 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18770 msgstr ""
18771
18772 #. type: textblock
18773 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8215
18774 msgid ""
18775 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18776 "activated or deactivated."
18777 msgstr ""
18778
18779 #. type: =head2
18780 #: ../fish/guestfish-actions.pod:5352
18781 msgid "vg-activate-all"
18782 msgstr "vg-activate-all"
18783
18784 #. type: verbatim
18785 #: ../fish/guestfish-actions.pod:5354
18786 #, no-wrap
18787 msgid ""
18788 " vg-activate-all true|false\n"
18789 "\n"
18790 msgstr ""
18791 " vg-activate-all true|false\n"
18792 "\n"
18793
18794 #. type: textblock
18795 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8228
18796 msgid ""
18797 "This command activates or (if C<activate> is false) deactivates all logical "
18798 "volumes in all volume groups."
18799 msgstr ""
18800
18801 #. type: textblock
18802 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8231
18803 msgid "This command is the same as running C<vgchange -a y|n>"
18804 msgstr ""
18805
18806 #. type: =head2
18807 #: ../fish/guestfish-actions.pod:5361
18808 msgid "vgcreate"
18809 msgstr "vgcreate"
18810
18811 #. type: verbatim
18812 #: ../fish/guestfish-actions.pod:5363
18813 #, no-wrap
18814 msgid ""
18815 " vgcreate volgroup 'physvols ...'\n"
18816 "\n"
18817 msgstr ""
18818
18819 #. type: textblock
18820 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8244
18821 msgid ""
18822 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18823 "of physical volumes C<physvols>."
18824 msgstr ""
18825
18826 #. type: =head2
18827 #: ../fish/guestfish-actions.pod:5368
18828 msgid "vglvuuids"
18829 msgstr "vglvuuids"
18830
18831 #. type: verbatim
18832 #: ../fish/guestfish-actions.pod:5370
18833 #, no-wrap
18834 msgid ""
18835 " vglvuuids vgname\n"
18836 "\n"
18837 msgstr ""
18838
18839 #. type: textblock
18840 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8257
18841 msgid ""
18842 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18843 "volumes created in this volume group."
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/guestfish-actions.pod:5375
18848 msgid ""
18849 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18850 "logical volumes and volume groups."
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fish/guestfish-actions.pod:5378
18855 msgid "See also L</vgpvuuids>."
18856 msgstr "Див. також L</vgpvuuids>."
18857
18858 #. type: =head2
18859 #: ../fish/guestfish-actions.pod:5380
18860 msgid "vgpvuuids"
18861 msgstr "vgpvuuids"
18862
18863 #. type: verbatim
18864 #: ../fish/guestfish-actions.pod:5382
18865 #, no-wrap
18866 msgid ""
18867 " vgpvuuids vgname\n"
18868 "\n"
18869 msgstr ""
18870
18871 #. type: textblock
18872 #: ../fish/guestfish-actions.pod:5384 ../src/guestfs-actions.pod:8277
18873 msgid ""
18874 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18875 "volumes that this volume group resides on."
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish-actions.pod:5387
18880 msgid ""
18881 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18882 "physical volumes and volume groups."
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/guestfish-actions.pod:5390
18887 msgid "See also L</vglvuuids>."
18888 msgstr "Див. також L</vglvuuids>."
18889
18890 #. type: =head2
18891 #: ../fish/guestfish-actions.pod:5392
18892 msgid "vgremove"
18893 msgstr "vgremove"
18894
18895 #. type: verbatim
18896 #: ../fish/guestfish-actions.pod:5394
18897 #, no-wrap
18898 msgid ""
18899 " vgremove vgname\n"
18900 "\n"
18901 msgstr ""
18902
18903 #. type: textblock
18904 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8297
18905 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18906 msgstr ""
18907
18908 #. type: textblock
18909 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8299
18910 msgid ""
18911 "This also forcibly removes all logical volumes in the volume group (if any)."
18912 msgstr ""
18913
18914 #. type: =head2
18915 #: ../fish/guestfish-actions.pod:5401
18916 msgid "vgrename"
18917 msgstr "vgrename"
18918
18919 #. type: verbatim
18920 #: ../fish/guestfish-actions.pod:5403
18921 #, no-wrap
18922 msgid ""
18923 " vgrename volgroup newvolgroup\n"
18924 "\n"
18925 msgstr ""
18926
18927 #. type: textblock
18928 #: ../fish/guestfish-actions.pod:5405 ../src/guestfs-actions.pod:8313
18929 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18930 msgstr ""
18931
18932 #. type: =head2
18933 #: ../fish/guestfish-actions.pod:5407
18934 msgid "vgs"
18935 msgstr "vgs"
18936
18937 #. type: verbatim
18938 #: ../fish/guestfish-actions.pod:5409
18939 #, no-wrap
18940 msgid ""
18941 " vgs\n"
18942 "\n"
18943 msgstr ""
18944 " vgs\n"
18945 "\n"
18946
18947 #. type: textblock
18948 #: ../fish/guestfish-actions.pod:5411 ../src/guestfs-actions.pod:8324
18949 msgid ""
18950 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18951 "> command."
18952 msgstr ""
18953
18954 #. type: textblock
18955 #: ../fish/guestfish-actions.pod:5414 ../src/guestfs-actions.pod:8327
18956 msgid ""
18957 "This returns a list of just the volume group names that were detected (eg. "
18958 "C<VolGroup00>)."
18959 msgstr ""
18960
18961 #. type: textblock
18962 #: ../fish/guestfish-actions.pod:5417
18963 msgid "See also L</vgs-full>."
18964 msgstr "Див. також L</vgs-full>."
18965
18966 #. type: =head2
18967 #: ../fish/guestfish-actions.pod:5419
18968 msgid "vgs-full"
18969 msgstr "vgs-full"
18970
18971 #. type: verbatim
18972 #: ../fish/guestfish-actions.pod:5421
18973 #, no-wrap
18974 msgid ""
18975 " vgs-full\n"
18976 "\n"
18977 msgstr ""
18978 " vgs-full\n"
18979 "\n"
18980
18981 #. type: textblock
18982 #: ../fish/guestfish-actions.pod:5423 ../src/guestfs-actions.pod:8343
18983 msgid ""
18984 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18985 "> command.  The \"full\" version includes all fields."
18986 msgstr ""
18987
18988 #. type: =head2
18989 #: ../fish/guestfish-actions.pod:5426
18990 msgid "vgscan"
18991 msgstr "vgscan"
18992
18993 #. type: verbatim
18994 #: ../fish/guestfish-actions.pod:5428
18995 #, no-wrap
18996 msgid ""
18997 " vgscan\n"
18998 "\n"
18999 msgstr ""
19000 " vgscan\n"
19001 "\n"
19002
19003 #. type: textblock
19004 #: ../fish/guestfish-actions.pod:5430 ../src/guestfs-actions.pod:8357
19005 msgid ""
19006 "This rescans all block devices and rebuilds the list of LVM physical "
19007 "volumes, volume groups and logical volumes."
19008 msgstr ""
19009
19010 #. type: =head2
19011 #: ../fish/guestfish-actions.pod:5433
19012 msgid "vguuid"
19013 msgstr "vguuid"
19014
19015 #. type: verbatim
19016 #: ../fish/guestfish-actions.pod:5435
19017 #, no-wrap
19018 msgid ""
19019 " vguuid vgname\n"
19020 "\n"
19021 msgstr ""
19022
19023 #. type: textblock
19024 #: ../fish/guestfish-actions.pod:5437 ../src/guestfs-actions.pod:8370
19025 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19026 msgstr ""
19027
19028 #. type: =head2
19029 #: ../fish/guestfish-actions.pod:5439
19030 msgid "wc-c"
19031 msgstr "wc-c"
19032
19033 #. type: verbatim
19034 #: ../fish/guestfish-actions.pod:5441
19035 #, no-wrap
19036 msgid ""
19037 " wc-c path\n"
19038 "\n"
19039 msgstr ""
19040 " wc-c шлях\n"
19041 "\n"
19042
19043 #. type: textblock
19044 #: ../fish/guestfish-actions.pod:5443 ../src/guestfs-actions.pod:8410
19045 msgid ""
19046 "This command counts the characters in a file, using the C<wc -c> external "
19047 "command."
19048 msgstr ""
19049
19050 #. type: =head2
19051 #: ../fish/guestfish-actions.pod:5446
19052 msgid "wc-l"
19053 msgstr "wc-l"
19054
19055 #. type: verbatim
19056 #: ../fish/guestfish-actions.pod:5448
19057 #, no-wrap
19058 msgid ""
19059 " wc-l path\n"
19060 "\n"
19061 msgstr ""
19062 " wc-l шлях\n"
19063 "\n"
19064
19065 #. type: textblock
19066 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8423
19067 msgid ""
19068 "This command counts the lines in a file, using the C<wc -l> external command."
19069 msgstr ""
19070
19071 #. type: =head2
19072 #: ../fish/guestfish-actions.pod:5453
19073 msgid "wc-w"
19074 msgstr "wc-w"
19075
19076 #. type: verbatim
19077 #: ../fish/guestfish-actions.pod:5455
19078 #, no-wrap
19079 msgid ""
19080 " wc-w path\n"
19081 "\n"
19082 msgstr ""
19083 " wc-w шлях\n"
19084 "\n"
19085
19086 #. type: textblock
19087 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8436
19088 msgid ""
19089 "This command counts the words in a file, using the C<wc -w> external command."
19090 msgstr ""
19091
19092 #. type: =head2
19093 #: ../fish/guestfish-actions.pod:5460
19094 msgid "write"
19095 msgstr "write"
19096
19097 #. type: verbatim
19098 #: ../fish/guestfish-actions.pod:5462
19099 #, no-wrap
19100 msgid ""
19101 " write path content\n"
19102 "\n"
19103 msgstr ""
19104 " write шлях дані\n"
19105 "\n"
19106
19107 #. type: textblock
19108 #: ../fish/guestfish-actions.pod:5464 ../src/guestfs-actions.pod:8451
19109 msgid ""
19110 "This call creates a file called C<path>.  The content of the file is the "
19111 "string C<content> (which can contain any 8 bit data)."
19112 msgstr ""
19113
19114 #. type: textblock
19115 #: ../fish/guestfish-actions.pod:5467
19116 msgid "See also L</write-append>."
19117 msgstr "Див. також L</write-append>."
19118
19119 #. type: =head2
19120 #: ../fish/guestfish-actions.pod:5472
19121 msgid "write-append"
19122 msgstr ""
19123
19124 #. type: verbatim
19125 #: ../fish/guestfish-actions.pod:5474
19126 #, no-wrap
19127 msgid ""
19128 " write-append path content\n"
19129 "\n"
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../fish/guestfish-actions.pod:5476 ../src/guestfs-actions.pod:8471
19134 msgid ""
19135 "This call appends C<content> to the end of file C<path>.  If C<path> does "
19136 "not exist, then a new file is created."
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../fish/guestfish-actions.pod:5479
19141 msgid "See also L</write>."
19142 msgstr "Див. також L</write>."
19143
19144 #. type: =head2
19145 #: ../fish/guestfish-actions.pod:5484
19146 msgid "write-file"
19147 msgstr "write-file"
19148
19149 #. type: verbatim
19150 #: ../fish/guestfish-actions.pod:5486
19151 #, no-wrap
19152 msgid ""
19153 " write-file path content size\n"
19154 "\n"
19155 msgstr ""
19156
19157 #. type: textblock
19158 #: ../fish/guestfish-actions.pod:5488 ../src/guestfs-actions.pod:8498
19159 msgid ""
19160 "This call creates a file called C<path>.  The contents of the file is the "
19161 "string C<content> (which can contain any 8 bit data), with length C<size>."
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8502
19166 msgid ""
19167 "As a special case, if C<size> is C<0> then the length is calculated using "
19168 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19169 msgstr ""
19170
19171 #. type: textblock
19172 #: ../fish/guestfish-actions.pod:5496 ../src/guestfs-actions.pod:8506
19173 msgid ""
19174 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19175 "I<not> work, even if the length is specified."
19176 msgstr ""
19177
19178 #. type: textblock
19179 #: ../fish/guestfish-actions.pod:5502
19180 msgid ""
19181 "I<This function is deprecated.> In new code, use the L</write> call instead."
19182 msgstr ""
19183
19184 #. type: =head2
19185 #: ../fish/guestfish-actions.pod:5509
19186 msgid "zegrep"
19187 msgstr "zegrep"
19188
19189 #. type: verbatim
19190 #: ../fish/guestfish-actions.pod:5511
19191 #, no-wrap
19192 msgid ""
19193 " zegrep regex path\n"
19194 "\n"
19195 msgstr ""
19196 " zegrep формальний_вираз шлях\n"
19197 "\n"
19198
19199 #. type: textblock
19200 #: ../fish/guestfish-actions.pod:5513 ../src/guestfs-actions.pod:8523
19201 msgid ""
19202 "This calls the external C<zegrep> program and returns the matching lines."
19203 msgstr ""
19204
19205 #. type: =head2
19206 #: ../fish/guestfish-actions.pod:5519
19207 msgid "zegrepi"
19208 msgstr "zegrepi"
19209
19210 #. type: verbatim
19211 #: ../fish/guestfish-actions.pod:5521
19212 #, no-wrap
19213 msgid ""
19214 " zegrepi regex path\n"
19215 "\n"
19216 msgstr ""
19217
19218 #. type: textblock
19219 #: ../fish/guestfish-actions.pod:5523 ../src/guestfs-actions.pod:8542
19220 msgid ""
19221 "This calls the external C<zegrep -i> program and returns the matching lines."
19222 msgstr ""
19223
19224 #. type: =head2
19225 #: ../fish/guestfish-actions.pod:5529
19226 msgid "zero"
19227 msgstr "zero"
19228
19229 #. type: verbatim
19230 #: ../fish/guestfish-actions.pod:5531
19231 #, no-wrap
19232 msgid ""
19233 " zero device\n"
19234 "\n"
19235 msgstr ""
19236 " zero пристрій\n"
19237 "\n"
19238
19239 #. type: textblock
19240 #: ../fish/guestfish-actions.pod:5533 ../src/guestfs-actions.pod:8560
19241 msgid "This command writes zeroes over the first few blocks of C<device>."
19242 msgstr ""
19243
19244 #. type: textblock
19245 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8562
19246 msgid ""
19247 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19248 "securely wipe the device).  It should be sufficient to remove any partition "
19249 "tables, filesystem superblocks and so on."
19250 msgstr ""
19251
19252 #. type: textblock
19253 #: ../fish/guestfish-actions.pod:5539 ../fish/guestfish-actions.pod:5554
19254 #: ../src/guestfs-actions.pod:8566 ../src/guestfs-actions.pod:8592
19255 msgid ""
19256 "If blocks are already zero, then this command avoids writing zeroes.  This "
19257 "prevents the underlying device from becoming non-sparse or growing "
19258 "unnecessarily."
19259 msgstr ""
19260
19261 #. type: textblock
19262 #: ../fish/guestfish-actions.pod:5543
19263 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
19264 msgstr ""
19265
19266 #. type: =head2
19267 #: ../fish/guestfish-actions.pod:5546
19268 msgid "zero-device"
19269 msgstr "zero-device"
19270
19271 #. type: verbatim
19272 #: ../fish/guestfish-actions.pod:5548
19273 #, no-wrap
19274 msgid ""
19275 " zero-device device\n"
19276 "\n"
19277 msgstr ""
19278 " zero-device пристрій\n"
19279 "\n"
19280
19281 #. type: textblock
19282 #: ../fish/guestfish-actions.pod:5550
19283 msgid ""
19284 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
19285 "which just zeroes the first few blocks of a device."
19286 msgstr ""
19287
19288 #. type: =head2
19289 #: ../fish/guestfish-actions.pod:5558
19290 msgid "zerofree"
19291 msgstr "zerofree"
19292
19293 #. type: verbatim
19294 #: ../fish/guestfish-actions.pod:5560
19295 #, no-wrap
19296 msgid ""
19297 " zerofree device\n"
19298 "\n"
19299 msgstr ""
19300 " zerofree пристрій\n"
19301 "\n"
19302
19303 #. type: textblock
19304 #: ../fish/guestfish-actions.pod:5562 ../src/guestfs-actions.pod:8611
19305 msgid ""
19306 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
19307 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19308 "possible to compress the filesystem more effectively."
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish-actions.pod:5567 ../src/guestfs-actions.pod:8616
19313 msgid "You should B<not> run this program if the filesystem is mounted."
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fish/guestfish-actions.pod:5570 ../src/guestfs-actions.pod:8619
19318 msgid ""
19319 "It is possible that using this program can damage the filesystem or data on "
19320 "the filesystem."
19321 msgstr ""
19322
19323 #. type: =head2
19324 #: ../fish/guestfish-actions.pod:5573
19325 msgid "zfgrep"
19326 msgstr "zfgrep"
19327
19328 #. type: verbatim
19329 #: ../fish/guestfish-actions.pod:5575
19330 #, no-wrap
19331 msgid ""
19332 " zfgrep pattern path\n"
19333 "\n"
19334 msgstr ""
19335 " zfgrep шаблон шлях\n"
19336 "\n"
19337
19338 #. type: textblock
19339 #: ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:8633
19340 msgid ""
19341 "This calls the external C<zfgrep> program and returns the matching lines."
19342 msgstr ""
19343
19344 #. type: =head2
19345 #: ../fish/guestfish-actions.pod:5583
19346 msgid "zfgrepi"
19347 msgstr "zfgrepi"
19348
19349 #. type: verbatim
19350 #: ../fish/guestfish-actions.pod:5585
19351 #, no-wrap
19352 msgid ""
19353 " zfgrepi pattern path\n"
19354 "\n"
19355 msgstr ""
19356 " zfgrepi шаблон шлях\n"
19357 "\n"
19358
19359 #. type: textblock
19360 #: ../fish/guestfish-actions.pod:5587 ../src/guestfs-actions.pod:8652
19361 msgid ""
19362 "This calls the external C<zfgrep -i> program and returns the matching lines."
19363 msgstr ""
19364
19365 #. type: =head2
19366 #: ../fish/guestfish-actions.pod:5593
19367 msgid "zfile"
19368 msgstr "zfile"
19369
19370 #. type: verbatim
19371 #: ../fish/guestfish-actions.pod:5595
19372 #, no-wrap
19373 msgid ""
19374 " zfile meth path\n"
19375 "\n"
19376 msgstr ""
19377 " zfile метод шлях\n"
19378 "\n"
19379
19380 #. type: textblock
19381 #: ../fish/guestfish-actions.pod:5597 ../src/guestfs-actions.pod:8678
19382 msgid ""
19383 "This command runs C<file> after first decompressing C<path> using C<method>."
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../fish/guestfish-actions.pod:5600 ../src/guestfs-actions.pod:8681
19388 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19389 msgstr ""
19390
19391 #. type: textblock
19392 #: ../fish/guestfish-actions.pod:5602
19393 msgid ""
19394 "Since 1.0.63, use L</file> instead which can now process compressed files."
19395 msgstr ""
19396
19397 #. type: textblock
19398 #: ../fish/guestfish-actions.pod:5605
19399 msgid ""
19400 "I<This function is deprecated.> In new code, use the L</file> call instead."
19401 msgstr ""
19402
19403 #. type: =head2
19404 #: ../fish/guestfish-actions.pod:5612
19405 msgid "zgrep"
19406 msgstr "zgrep"
19407
19408 #. type: verbatim
19409 #: ../fish/guestfish-actions.pod:5614
19410 #, no-wrap
19411 msgid ""
19412 " zgrep regex path\n"
19413 "\n"
19414 msgstr ""
19415 " zgrep формальний_вираз шлях\n"
19416 "\n"
19417
19418 #. type: textblock
19419 #: ../fish/guestfish-actions.pod:5616 ../src/guestfs-actions.pod:8698
19420 msgid ""
19421 "This calls the external C<zgrep> program and returns the matching lines."
19422 msgstr ""
19423
19424 #. type: =head2
19425 #: ../fish/guestfish-actions.pod:5622
19426 msgid "zgrepi"
19427 msgstr "zgrepi"
19428
19429 #. type: verbatim
19430 #: ../fish/guestfish-actions.pod:5624
19431 #, no-wrap
19432 msgid ""
19433 " zgrepi regex path\n"
19434 "\n"
19435 msgstr ""
19436 " zgrepi формальний_вираз шлях\n"
19437 "\n"
19438
19439 #. type: textblock
19440 #: ../fish/guestfish-actions.pod:5626 ../src/guestfs-actions.pod:8717
19441 msgid ""
19442 "This calls the external C<zgrep -i> program and returns the matching lines."
19443 msgstr ""
19444
19445 #. type: =head2
19446 #: ../fish/guestfish-commands.pod:1
19447 msgid "alloc"
19448 msgstr "alloc"
19449
19450 #. type: =head2
19451 #: ../fish/guestfish-commands.pod:3
19452 msgid "allocate"
19453 msgstr ""
19454
19455 #. type: verbatim
19456 #: ../fish/guestfish-commands.pod:5
19457 #, no-wrap
19458 msgid ""
19459 " alloc filename size\n"
19460 "\n"
19461 msgstr ""
19462
19463 #. type: textblock
19464 #: ../fish/guestfish-commands.pod:7
19465 msgid ""
19466 "This creates an empty (zeroed) file of the given size, and then adds so it "
19467 "can be further examined."
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:243
19472 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
19473 msgstr ""
19474
19475 #. type: textblock
19476 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:245
19477 msgid "Size can be specified using standard suffixes, eg. C<1M>."
19478 msgstr ""
19479
19480 #. type: textblock
19481 #: ../fish/guestfish-commands.pod:14
19482 msgid ""
19483 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
19484 "image, see L</PREPARED DISK IMAGES>."
19485 msgstr ""
19486
19487 #. type: =head2
19488 #: ../fish/guestfish-commands.pod:17
19489 msgid "copy-in"
19490 msgstr "copy-in"
19491
19492 #. type: verbatim
19493 #: ../fish/guestfish-commands.pod:19
19494 #, no-wrap
19495 msgid ""
19496 " copy-in local [local ...] /remotedir\n"
19497 "\n"
19498 msgstr ""
19499
19500 #. type: textblock
19501 #: ../fish/guestfish-commands.pod:21
19502 msgid ""
19503 "C<copy-in> copies local files or directories recursively into the disk "
19504 "image, placing them in the directory called C</remotedir> (which must "
19505 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
19506 "other commands as necessary."
19507 msgstr ""
19508
19509 #. type: textblock
19510 #: ../fish/guestfish-commands.pod:26
19511 msgid ""
19512 "Multiple local files and directories can be specified, but the last "
19513 "parameter must always be a remote directory.  Wildcards cannot be used."
19514 msgstr ""
19515
19516 #. type: =head2
19517 #: ../fish/guestfish-commands.pod:30
19518 msgid "copy-out"
19519 msgstr "copy-out"
19520
19521 #. type: verbatim
19522 #: ../fish/guestfish-commands.pod:32
19523 #, no-wrap
19524 msgid ""
19525 " copy-out remote [remote ...] localdir\n"
19526 "\n"
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fish/guestfish-commands.pod:34
19531 msgid ""
19532 "C<copy-out> copies remote files or directories recursively out of the disk "
19533 "image, placing them on the host disk in a local directory called C<localdir> "
19534 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
19535 "download>, L</tar-out> and other commands as necessary."
19536 msgstr ""
19537
19538 #. type: textblock
19539 #: ../fish/guestfish-commands.pod:40
19540 msgid ""
19541 "Multiple remote files and directories can be specified, but the last "
19542 "parameter must always be a local directory.  To download to the current "
19543 "directory, use C<.> as in:"
19544 msgstr ""
19545
19546 #. type: verbatim
19547 #: ../fish/guestfish-commands.pod:44
19548 #, no-wrap
19549 msgid ""
19550 " copy-out /home .\n"
19551 "\n"
19552 msgstr ""
19553 " copy-out /home .\n"
19554 "\n"
19555
19556 #. type: textblock
19557 #: ../fish/guestfish-commands.pod:46
19558 msgid ""
19559 "Wildcards cannot be used in the ordinary command, but you can use them with "
19560 "the help of L</glob> like this:"
19561 msgstr ""
19562
19563 #. type: verbatim
19564 #: ../fish/guestfish-commands.pod:49
19565 #, no-wrap
19566 msgid ""
19567 " glob copy-out /home/* .\n"
19568 "\n"
19569 msgstr ""
19570 " glob copy-out /home/* .\n"
19571 "\n"
19572
19573 #. type: =head2
19574 #: ../fish/guestfish-commands.pod:51
19575 msgid "delete-event"
19576 msgstr ""
19577
19578 #. type: verbatim
19579 #: ../fish/guestfish-commands.pod:53
19580 #, no-wrap
19581 msgid ""
19582 " delete-event name\n"
19583 "\n"
19584 msgstr ""
19585
19586 #. type: textblock
19587 #: ../fish/guestfish-commands.pod:55
19588 msgid ""
19589 "Delete the event handler which was previously registered as C<name>.  If "
19590 "multiple event handlers were registered with the same name, they are all "
19591 "deleted."
19592 msgstr ""
19593
19594 #. type: textblock
19595 #: ../fish/guestfish-commands.pod:59
19596 msgid "See also the guestfish commands C<event> and C<list-events>."
19597 msgstr ""
19598
19599 #. type: =head2
19600 #: ../fish/guestfish-commands.pod:61
19601 msgid "display"
19602 msgstr ""
19603
19604 #. type: verbatim
19605 #: ../fish/guestfish-commands.pod:63
19606 #, no-wrap
19607 msgid ""
19608 " display filename\n"
19609 "\n"
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../fish/guestfish-commands.pod:65
19614 msgid ""
19615 "Use C<display> (a graphical display program) to display an image file.  It "
19616 "downloads the file, and runs C<display> on it."
19617 msgstr ""
19618
19619 #. type: textblock
19620 #: ../fish/guestfish-commands.pod:68
19621 msgid ""
19622 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
19623 "environment variable.  For example to use the GNOME display program:"
19624 msgstr ""
19625
19626 #. type: verbatim
19627 #: ../fish/guestfish-commands.pod:71
19628 #, no-wrap
19629 msgid ""
19630 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
19631 "\n"
19632 msgstr ""
19633
19634 #. type: textblock
19635 #: ../fish/guestfish-commands.pod:73
19636 msgid "See also L<display(1)>."
19637 msgstr "Див. також L<display(1)>."
19638
19639 #. type: =head2
19640 #: ../fish/guestfish-commands.pod:75
19641 msgid "echo"
19642 msgstr "echo"
19643
19644 #. type: verbatim
19645 #: ../fish/guestfish-commands.pod:77
19646 #, no-wrap
19647 msgid ""
19648 " echo [params ...]\n"
19649 "\n"
19650 msgstr ""
19651 " echo [параметри...]\n"
19652 "\n"
19653
19654 #. type: textblock
19655 #: ../fish/guestfish-commands.pod:79
19656 msgid "This echos the parameters to the terminal."
19657 msgstr ""
19658
19659 #. type: =head2
19660 #: ../fish/guestfish-commands.pod:81
19661 msgid "edit"
19662 msgstr "edit"
19663
19664 #. type: =head2
19665 #: ../fish/guestfish-commands.pod:83
19666 msgid "vi"
19667 msgstr "vi"
19668
19669 #. type: =head2
19670 #: ../fish/guestfish-commands.pod:85
19671 msgid "emacs"
19672 msgstr "emacs"
19673
19674 #. type: verbatim
19675 #: ../fish/guestfish-commands.pod:87
19676 #, no-wrap
19677 msgid ""
19678 " edit filename\n"
19679 "\n"
19680 msgstr ""
19681 " edit назва_файла\n"
19682 "\n"
19683
19684 #. type: textblock
19685 #: ../fish/guestfish-commands.pod:89
19686 msgid ""
19687 "This is used to edit a file.  It downloads the file, edits it locally using "
19688 "your editor, then uploads the result."
19689 msgstr ""
19690
19691 #. type: textblock
19692 #: ../fish/guestfish-commands.pod:92
19693 msgid ""
19694 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
19695 "or C<emacs> you will get those corresponding editors."
19696 msgstr ""
19697
19698 #. type: =head2
19699 #: ../fish/guestfish-commands.pod:96
19700 msgid "event"
19701 msgstr ""
19702
19703 #. type: verbatim
19704 #: ../fish/guestfish-commands.pod:98
19705 #, no-wrap
19706 msgid ""
19707 " event name eventset \"shell script ...\"\n"
19708 "\n"
19709 msgstr ""
19710
19711 #. type: textblock
19712 #: ../fish/guestfish-commands.pod:100
19713 msgid ""
19714 "Register a shell script fragment which is executed when an event is raised.  "
19715 "See L<guestfs(3)/guestfs_set_event_callback> for a discussion of the event "
19716 "API in libguestfs."
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../fish/guestfish-commands.pod:104
19721 msgid ""
19722 "The C<name> parameter is a name that you give to this event handler.  It can "
19723 "be any string (even the empty string) and is simply there so you can delete "
19724 "the handler using the guestfish C<delete-event> command."
19725 msgstr ""
19726
19727 #. type: textblock
19728 #: ../fish/guestfish-commands.pod:109
19729 msgid ""
19730 "The C<eventset> parameter is a comma-separated list of one or more events, "
19731 "for example C<close> or C<close,trace>.  The special value C<*> means all "
19732 "events."
19733 msgstr ""
19734
19735 #. type: textblock
19736 #: ../fish/guestfish-commands.pod:113
19737 msgid ""
19738 "The third and final parameter is the shell script fragment (or any external "
19739 "command) that is executed when any of the events in the eventset occurs.  It "
19740 "is executed using C<$SHELL -c>, or if C<$SHELL> is not set then C</bin/sh -"
19741 "c>."
19742 msgstr ""
19743
19744 #. type: textblock
19745 #: ../fish/guestfish-commands.pod:118
19746 msgid ""
19747 "The shell script fragment receives callback parameters as arguments C<$1>, C<"
19748 "$2> etc.  The actual event that was called is available in the environment "
19749 "variable C<$EVENT>."
19750 msgstr ""
19751
19752 #. type: verbatim
19753 #: ../fish/guestfish-commands.pod:122
19754 #, no-wrap
19755 msgid ""
19756 " event \"\" close \"echo closed\"\n"
19757 " event messages appliance,library,trace \"echo $@\"\n"
19758 " event \"\" progress \"echo progress: $3/$4\"\n"
19759 " event \"\" * \"echo $EVENT $@\"\n"
19760 "\n"
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../fish/guestfish-commands.pod:127
19765 msgid "See also the guestfish commands C<delete-event> and C<list-events>."
19766 msgstr ""
19767
19768 #. type: =head2
19769 #: ../fish/guestfish-commands.pod:129
19770 msgid "glob"
19771 msgstr "glob"
19772
19773 #. type: verbatim
19774 #: ../fish/guestfish-commands.pod:131
19775 #, no-wrap
19776 msgid ""
19777 " glob command args...\n"
19778 "\n"
19779 msgstr ""
19780 " glob команда параметри...\n"
19781 "\n"
19782
19783 #. type: textblock
19784 #: ../fish/guestfish-commands.pod:133
19785 msgid ""
19786 "Expand wildcards in any paths in the args list, and run C<command> "
19787 "repeatedly on each matching path."
19788 msgstr ""
19789
19790 #. type: textblock
19791 #: ../fish/guestfish-commands.pod:136
19792 msgid "See L</WILDCARDS AND GLOBBING>."
19793 msgstr "Див. L</WILDCARDS AND GLOBBING>."
19794
19795 #. type: =head2
19796 #: ../fish/guestfish-commands.pod:138
19797 msgid "hexedit"
19798 msgstr "hexedit"
19799
19800 #. type: verbatim
19801 #: ../fish/guestfish-commands.pod:140
19802 #, no-wrap
19803 msgid ""
19804 " hexedit <filename|device>\n"
19805 " hexedit <filename|device> <max>\n"
19806 " hexedit <filename|device> <start> <max>\n"
19807 "\n"
19808 msgstr ""
19809
19810 #. type: textblock
19811 #: ../fish/guestfish-commands.pod:144
19812 msgid ""
19813 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19814 "device."
19815 msgstr ""
19816
19817 #. type: textblock
19818 #: ../fish/guestfish-commands.pod:147
19819 msgid ""
19820 "This command works by downloading potentially the whole file or device, "
19821 "editing it locally, then uploading it.  If the file or device is large, you "
19822 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19823 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
19824 "usual modifiers allowed such as C<1M> (1 megabyte)."
19825 msgstr ""
19826
19827 #. type: textblock
19828 #: ../fish/guestfish-commands.pod:154
19829 msgid "For example to edit the first few sectors of a disk you might do:"
19830 msgstr ""
19831
19832 #. type: verbatim
19833 #: ../fish/guestfish-commands.pod:157
19834 #, no-wrap
19835 msgid ""
19836 " hexedit /dev/sda 1M\n"
19837 "\n"
19838 msgstr ""
19839 " hexedit /dev/sda 1M\n"
19840 "\n"
19841
19842 #. type: textblock
19843 #: ../fish/guestfish-commands.pod:159
19844 msgid ""
19845 "which would allow you to edit anywhere within the first megabyte of the disk."
19846 msgstr ""
19847
19848 #. type: textblock
19849 #: ../fish/guestfish-commands.pod:162
19850 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19851 msgstr ""
19852
19853 #. type: verbatim
19854 #: ../fish/guestfish-commands.pod:164
19855 #, no-wrap
19856 msgid ""
19857 " hexedit /dev/sda1 0x400 0x400\n"
19858 "\n"
19859 msgstr ""
19860 " hexedit /dev/sda1 0x400 0x400\n"
19861 "\n"
19862
19863 #. type: textblock
19864 #: ../fish/guestfish-commands.pod:166
19865 msgid "(assuming the superblock is in the standard location)."
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../fish/guestfish-commands.pod:168
19870 msgid ""
19871 "This command requires the external L<hexedit(1)> program.  You can specify "
19872 "another program to use by setting the C<HEXEDITOR> environment variable."
19873 msgstr ""
19874
19875 #. type: textblock
19876 #: ../fish/guestfish-commands.pod:172
19877 msgid "See also L</hexdump>."
19878 msgstr "Див. також L</hexdump>."
19879
19880 #. type: =head2
19881 #: ../fish/guestfish-commands.pod:174
19882 msgid "lcd"
19883 msgstr "lcd"
19884
19885 #. type: verbatim
19886 #: ../fish/guestfish-commands.pod:176
19887 #, no-wrap
19888 msgid ""
19889 " lcd directory\n"
19890 "\n"
19891 msgstr ""
19892
19893 #. type: textblock
19894 #: ../fish/guestfish-commands.pod:178
19895 msgid ""
19896 "Change the local directory, ie. the current directory of guestfish itself."
19897 msgstr ""
19898
19899 #. type: textblock
19900 #: ../fish/guestfish-commands.pod:181
19901 msgid "Note that C<!cd> won't do what you might expect."
19902 msgstr ""
19903
19904 #. type: =head2
19905 #: ../fish/guestfish-commands.pod:183
19906 #, fuzzy
19907 #| msgid "list-devices"
19908 msgid "list-events"
19909 msgstr "list-devices"
19910
19911 #. type: verbatim
19912 #: ../fish/guestfish-commands.pod:185
19913 #, fuzzy, no-wrap
19914 #| msgid ""
19915 #| " list-devices\n"
19916 #| "\n"
19917 msgid ""
19918 " list-events\n"
19919 "\n"
19920 msgstr ""
19921 " list-devices\n"
19922 "\n"
19923
19924 #. type: textblock
19925 #: ../fish/guestfish-commands.pod:187
19926 msgid ""
19927 "List the event handlers registered using the guestfish C<event> command."
19928 msgstr ""
19929
19930 #. type: =head2
19931 #: ../fish/guestfish-commands.pod:190
19932 msgid "man"
19933 msgstr "man"
19934
19935 #. type: =head2
19936 #: ../fish/guestfish-commands.pod:192
19937 msgid "manual"
19938 msgstr "підручник"
19939
19940 #. type: verbatim
19941 #: ../fish/guestfish-commands.pod:194
19942 #, no-wrap
19943 msgid ""
19944 "  man\n"
19945 "\n"
19946 msgstr ""
19947 "  man\n"
19948 "\n"
19949
19950 #. type: textblock
19951 #: ../fish/guestfish-commands.pod:196
19952 msgid "Opens the manual page for guestfish."
19953 msgstr ""
19954
19955 #. type: =head2
19956 #: ../fish/guestfish-commands.pod:198
19957 msgid "more"
19958 msgstr "more"
19959
19960 #. type: =head2
19961 #: ../fish/guestfish-commands.pod:200
19962 msgid "less"
19963 msgstr "less"
19964
19965 #. type: verbatim
19966 #: ../fish/guestfish-commands.pod:202
19967 #, no-wrap
19968 msgid ""
19969 " more filename\n"
19970 "\n"
19971 msgstr ""
19972
19973 #. type: verbatim
19974 #: ../fish/guestfish-commands.pod:204
19975 #, no-wrap
19976 msgid ""
19977 " less filename\n"
19978 "\n"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../fish/guestfish-commands.pod:206
19983 msgid "This is used to view a file."
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../fish/guestfish-commands.pod:208
19988 msgid ""
19989 "The default viewer is C<$PAGER>.  However if you use the alternate command "
19990 "C<less> you will get the C<less> command specifically."
19991 msgstr ""
19992
19993 #. type: =head2
19994 #: ../fish/guestfish-commands.pod:211
19995 msgid "reopen"
19996 msgstr "reopen"
19997
19998 #. type: verbatim
19999 #: ../fish/guestfish-commands.pod:213
20000 #, no-wrap
20001 msgid ""
20002 "  reopen\n"
20003 "\n"
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish-commands.pod:215
20008 msgid ""
20009 "Close and reopen the libguestfs handle.  It is not necessary to use this "
20010 "normally, because the handle is closed properly when guestfish exits.  "
20011 "However this is occasionally useful for testing."
20012 msgstr ""
20013
20014 #. type: =head2
20015 #: ../fish/guestfish-commands.pod:219
20016 msgid "setenv"
20017 msgstr ""
20018
20019 #. type: verbatim
20020 #: ../fish/guestfish-commands.pod:221
20021 #, no-wrap
20022 msgid ""
20023 "  setenv VAR value\n"
20024 "\n"
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../fish/guestfish-commands.pod:223
20029 msgid "Set the environment variable C<VAR> to the string C<value>."
20030 msgstr ""
20031
20032 #. type: textblock
20033 #: ../fish/guestfish-commands.pod:225
20034 msgid ""
20035 "To print the value of an environment variable use a shell command such as:"
20036 msgstr ""
20037
20038 #. type: verbatim
20039 #: ../fish/guestfish-commands.pod:228
20040 #, no-wrap
20041 msgid ""
20042 " !echo $VAR\n"
20043 "\n"
20044 msgstr ""
20045
20046 #. type: =head2
20047 #: ../fish/guestfish-commands.pod:230
20048 msgid "sparse"
20049 msgstr "sparse"
20050
20051 #. type: verbatim
20052 #: ../fish/guestfish-commands.pod:232
20053 #, no-wrap
20054 msgid ""
20055 " sparse filename size\n"
20056 "\n"
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/guestfish-commands.pod:234
20061 msgid ""
20062 "This creates an empty sparse file of the given size, and then adds so it can "
20063 "be further examined."
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/guestfish-commands.pod:237
20068 msgid ""
20069 "In all respects it works the same as the L</alloc> command, except that the "
20070 "image file is allocated sparsely, which means that disk blocks are not "
20071 "assigned to the file until they are needed.  Sparse disk files only use "
20072 "space when written to, but they are slower and there is a danger you could "
20073 "run out of real disk space during a write operation."
20074 msgstr ""
20075
20076 #. type: =head2
20077 #: ../fish/guestfish-commands.pod:247
20078 msgid "supported"
20079 msgstr "supported"
20080
20081 #. type: verbatim
20082 #: ../fish/guestfish-commands.pod:249
20083 #, no-wrap
20084 msgid ""
20085 " supported\n"
20086 "\n"
20087 msgstr ""
20088 " supported\n"
20089 "\n"
20090
20091 #. type: textblock
20092 #: ../fish/guestfish-commands.pod:251
20093 msgid ""
20094 "This command returns a list of the optional groups known to the daemon, and "
20095 "indicates which ones are supported by this build of the libguestfs appliance."
20096 msgstr ""
20097
20098 #. type: textblock
20099 #: ../fish/guestfish-commands.pod:255
20100 msgid "See also L<guestfs(3)/AVAILABILITY>."
20101 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
20102
20103 #. type: =head2
20104 #: ../fish/guestfish-commands.pod:257
20105 msgid "time"
20106 msgstr "time"
20107
20108 #. type: verbatim
20109 #: ../fish/guestfish-commands.pod:259
20110 #, no-wrap
20111 msgid ""
20112 " time command args...\n"
20113 "\n"
20114 msgstr ""
20115
20116 #. type: textblock
20117 #: ../fish/guestfish-commands.pod:261
20118 msgid ""
20119 "Run the command as usual, but print the elapsed time afterwards.  This can "
20120 "be useful for benchmarking operations."
20121 msgstr ""
20122
20123 #. type: =head2
20124 #: ../fish/guestfish-commands.pod:264
20125 msgid "unsetenv"
20126 msgstr ""
20127
20128 #. type: verbatim
20129 #: ../fish/guestfish-commands.pod:266
20130 #, no-wrap
20131 msgid ""
20132 "  unsetenv VAR\n"
20133 "\n"
20134 msgstr ""
20135
20136 #. type: textblock
20137 #: ../fish/guestfish-commands.pod:268
20138 msgid "Remove C<VAR> from the environment."
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../fish/guestfish.pod:5
20143 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20144 msgstr ""
20145
20146 #. type: verbatim
20147 #: ../fish/guestfish.pod:9
20148 #, no-wrap
20149 msgid ""
20150 " guestfish [--options] [commands]\n"
20151 "\n"
20152 msgstr ""
20153
20154 #. type: verbatim
20155 #: ../fish/guestfish.pod:11
20156 #, no-wrap
20157 msgid ""
20158 " guestfish\n"
20159 "\n"
20160 msgstr ""
20161
20162 #. type: verbatim
20163 #: ../fish/guestfish.pod:13
20164 #, no-wrap
20165 msgid ""
20166 " guestfish [--ro|--rw] -a disk.img\n"
20167 "\n"
20168 msgstr ""
20169
20170 #. type: verbatim
20171 #: ../fish/guestfish.pod:15
20172 #, no-wrap
20173 msgid ""
20174 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20175 "\n"
20176 msgstr ""
20177
20178 #. type: verbatim
20179 #: ../fish/guestfish.pod:17
20180 #, no-wrap
20181 msgid ""
20182 " guestfish -d libvirt-domain\n"
20183 "\n"
20184 msgstr ""
20185
20186 #. type: verbatim
20187 #: ../fish/guestfish.pod:19
20188 #, no-wrap
20189 msgid ""
20190 " guestfish [--ro|--rw] -a disk.img -i\n"
20191 "\n"
20192 msgstr ""
20193
20194 #. type: verbatim
20195 #: ../fish/guestfish.pod:21
20196 #, no-wrap
20197 msgid ""
20198 " guestfish -d libvirt-domain -i\n"
20199 "\n"
20200 msgstr ""
20201
20202 #. type: textblock
20203 #: ../fish/guestfish.pod:25
20204 msgid ""
20205 "Using guestfish in read/write mode on live virtual machines can be "
20206 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
20207 "option to use guestfish safely if the disk image or virtual machine might be "
20208 "live."
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../fish/guestfish.pod:32
20213 msgid ""
20214 "Guestfish is a shell and command-line tool for examining and modifying "
20215 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20216 "functionality of the guestfs API, see L<guestfs(3)>."
20217 msgstr ""
20218
20219 #. type: textblock
20220 #: ../fish/guestfish.pod:36
20221 msgid ""
20222 "Guestfish gives you structured access to the libguestfs API, from shell "
20223 "scripts or the command line or interactively.  If you want to rescue a "
20224 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20225 "command."
20226 msgstr ""
20227
20228 #. type: =head2
20229 #: ../fish/guestfish.pod:43
20230 msgid "As an interactive shell"
20231 msgstr ""
20232
20233 #. type: verbatim
20234 #: ../fish/guestfish.pod:45
20235 #, no-wrap
20236 msgid ""
20237 " $ guestfish\n"
20238 " \n"
20239 msgstr ""
20240
20241 #. type: verbatim
20242 #: ../fish/guestfish.pod:47
20243 #, no-wrap
20244 msgid ""
20245 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20246 " editing virtual machine filesystems.\n"
20247 " \n"
20248 msgstr ""
20249
20250 #. type: verbatim
20251 #: ../fish/guestfish.pod:50
20252 #, no-wrap
20253 msgid ""
20254 " Type: 'help' for a list of commands\n"
20255 "       'man' to read the manual\n"
20256 "       'quit' to quit the shell\n"
20257 " \n"
20258 msgstr ""
20259
20260 #. type: verbatim
20261 #: ../fish/guestfish.pod:54
20262 #, no-wrap
20263 msgid ""
20264 " ><fs> add-ro disk.img\n"
20265 " ><fs> run\n"
20266 " ><fs> list-filesystems\n"
20267 " /dev/sda1: ext4\n"
20268 " /dev/vg_guest/lv_root: ext4\n"
20269 " /dev/vg_guest/lv_swap: swap\n"
20270 " ><fs> mount /dev/vg_guest/lv_root /\n"
20271 " ><fs> cat /etc/fstab\n"
20272 " # /etc/fstab\n"
20273 " # Created by anaconda\n"
20274 " [...]\n"
20275 " ><fs> exit\n"
20276 "\n"
20277 msgstr ""
20278
20279 #. type: =head2
20280 #: ../fish/guestfish.pod:67
20281 msgid "From shell scripts"
20282 msgstr ""
20283
20284 #. type: textblock
20285 #: ../fish/guestfish.pod:69
20286 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20287 msgstr ""
20288
20289 #. type: verbatim
20290 #: ../fish/guestfish.pod:71
20291 #, no-wrap
20292 msgid ""
20293 " guestfish <<_EOF_\n"
20294 " add disk.img\n"
20295 " run\n"
20296 " mount /dev/vg_guest/lv_root /\n"
20297 " write /etc/motd \"Welcome, new users\"\n"
20298 " _EOF_\n"
20299 "\n"
20300 msgstr ""
20301
20302 #. type: textblock
20303 #: ../fish/guestfish.pod:78
20304 msgid "List the LVM logical volumes in a disk image:"
20305 msgstr ""
20306
20307 #. type: verbatim
20308 #: ../fish/guestfish.pod:80
20309 #, no-wrap
20310 msgid ""
20311 " guestfish -a disk.img --ro <<_EOF_\n"
20312 " run\n"
20313 " lvs\n"
20314 " _EOF_\n"
20315 "\n"
20316 msgstr ""
20317
20318 #. type: textblock
20319 #: ../fish/guestfish.pod:85
20320 msgid "List all the filesystems in a disk image:"
20321 msgstr ""
20322
20323 #. type: verbatim
20324 #: ../fish/guestfish.pod:87
20325 #, no-wrap
20326 msgid ""
20327 " guestfish -a disk.img --ro <<_EOF_\n"
20328 " run\n"
20329 " list-filesystems\n"
20330 " _EOF_\n"
20331 "\n"
20332 msgstr ""
20333
20334 #. type: =head2
20335 #: ../fish/guestfish.pod:92
20336 msgid "On one command line"
20337 msgstr ""
20338
20339 #. type: textblock
20340 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
20341 msgid "Update C</etc/resolv.conf> in a guest:"
20342 msgstr ""
20343
20344 #. type: verbatim
20345 #: ../fish/guestfish.pod:96
20346 #, no-wrap
20347 msgid ""
20348 " guestfish \\\n"
20349 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20350 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20351 "\n"
20352 msgstr ""
20353
20354 #. type: textblock
20355 #: ../fish/guestfish.pod:100
20356 msgid "Edit C</boot/grub/grub.conf> interactively:"
20357 msgstr ""
20358
20359 #. type: verbatim
20360 #: ../fish/guestfish.pod:102
20361 #, no-wrap
20362 msgid ""
20363 " guestfish --rw --add disk.img \\\n"
20364 "   --mount /dev/vg_guest/lv_root \\\n"
20365 "   --mount /dev/sda1:/boot \\\n"
20366 "   edit /boot/grub/grub.conf\n"
20367 "\n"
20368 msgstr ""
20369
20370 #. type: =head2
20371 #: ../fish/guestfish.pod:107
20372 msgid "Mount disks automatically"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:109
20377 msgid ""
20378 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20379 msgstr ""
20380
20381 #. type: verbatim
20382 #: ../fish/guestfish.pod:112
20383 #, no-wrap
20384 msgid ""
20385 " guestfish --ro -a disk.img -i cat /etc/group\n"
20386 "\n"
20387 msgstr ""
20388
20389 #. type: verbatim
20390 #: ../fish/guestfish.pod:114
20391 #, no-wrap
20392 msgid ""
20393 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20394 "\n"
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../fish/guestfish.pod:116
20399 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20400 msgstr ""
20401
20402 #. type: verbatim
20403 #: ../fish/guestfish.pod:118
20404 #, no-wrap
20405 msgid ""
20406 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20407 "\n"
20408 msgstr ""
20409
20410 #. type: =head2
20411 #: ../fish/guestfish.pod:120
20412 msgid "As a script interpreter"
20413 msgstr ""
20414
20415 #. type: textblock
20416 #: ../fish/guestfish.pod:122
20417 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20418 msgstr ""
20419
20420 #. type: verbatim
20421 #: ../fish/guestfish.pod:124
20422 #, no-wrap
20423 msgid ""
20424 " #!/usr/bin/guestfish -f\n"
20425 " sparse test1.img 100M\n"
20426 " run\n"
20427 " part-disk /dev/sda mbr\n"
20428 " mkfs ext2 /dev/sda1\n"
20429 "\n"
20430 msgstr ""
20431
20432 #. type: =head2
20433 #: ../fish/guestfish.pod:130
20434 msgid "Start with a prepared disk"
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../fish/guestfish.pod:132
20439 msgid ""
20440 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20441 "single ext2-formatted partition:"
20442 msgstr ""
20443
20444 #. type: verbatim
20445 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
20446 #, no-wrap
20447 msgid ""
20448 " guestfish -N fs\n"
20449 "\n"
20450 msgstr ""
20451
20452 #. type: textblock
20453 #: ../fish/guestfish.pod:137
20454 msgid "To list what is available do:"
20455 msgstr ""
20456
20457 #. type: verbatim
20458 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
20459 #, no-wrap
20460 msgid ""
20461 " guestfish -N help | less\n"
20462 "\n"
20463 msgstr ""
20464
20465 #. type: =head2
20466 #: ../fish/guestfish.pod:141
20467 msgid "Remote control"
20468 msgstr "Дистанційне керування"
20469
20470 #. type: verbatim
20471 #: ../fish/guestfish.pod:143
20472 #, no-wrap
20473 msgid ""
20474 " eval \"`guestfish --listen`\"\n"
20475 " guestfish --remote add-ro disk.img\n"
20476 " guestfish --remote run\n"
20477 " guestfish --remote lvs\n"
20478 "\n"
20479 msgstr ""
20480 " eval \"`guestfish --listen`\"\n"
20481 " guestfish --remote add-ro disk.img\n"
20482 " guestfish --remote run\n"
20483 " guestfish --remote lvs\n"
20484 "\n"
20485
20486 #. type: textblock
20487 #: ../fish/guestfish.pod:154
20488 msgid "Displays general help on options."
20489 msgstr ""
20490
20491 #. type: =item
20492 #: ../fish/guestfish.pod:158
20493 msgid "B<--cmd-help>"
20494 msgstr "B<--cmd-help>"
20495
20496 #. type: textblock
20497 #: ../fish/guestfish.pod:160
20498 msgid "Lists all available guestfish commands."
20499 msgstr ""
20500
20501 #. type: =item
20502 #: ../fish/guestfish.pod:162
20503 msgid "B<-h cmd>"
20504 msgstr "B<-h команда>"
20505
20506 #. type: =item
20507 #: ../fish/guestfish.pod:164
20508 msgid "B<--cmd-help cmd>"
20509 msgstr "B<--cmd-help команда>"
20510
20511 #. type: textblock
20512 #: ../fish/guestfish.pod:166
20513 msgid "Displays detailed help on a single command C<cmd>."
20514 msgstr ""
20515
20516 #. type: =item
20517 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
20518 msgid "B<-a image>"
20519 msgstr "B<-a образ>"
20520
20521 #. type: =item
20522 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
20523 msgid "B<--add image>"
20524 msgstr "B<--add образ>"
20525
20526 #. type: textblock
20527 #: ../fish/guestfish.pod:172
20528 msgid "Add a block device or virtual machine image to the shell."
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../fish/guestfish.pod:177
20533 msgid ""
20534 "Using this flag is mostly equivalent to using the C<add> command, with "
20535 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20536 "the I<--format=...> flag was given."
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
20541 msgid ""
20542 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20543 "URI to use.  The default is to use the default libvirt connection."
20544 msgstr ""
20545
20546 #. type: =item
20547 #: ../fish/guestfish.pod:189
20548 msgid "B<--csh>"
20549 msgstr "B<--csh>"
20550
20551 #. type: textblock
20552 #: ../fish/guestfish.pod:191
20553 msgid ""
20554 "If using the I<--listen> option and a csh-like shell, use this option.  See "
20555 "section L</REMOTE CONTROL AND CSH> below."
20556 msgstr ""
20557
20558 #. type: =item
20559 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
20560 msgid "B<-d libvirt-domain>"
20561 msgstr "B<-d домен-libvirt>"
20562
20563 #. type: =item
20564 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
20565 msgid "B<--domain libvirt-domain>"
20566 msgstr "B<--domain домен-libvirt>"
20567
20568 #. type: textblock
20569 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
20570 msgid ""
20571 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
20572 "used, then any libvirt domain can be used.  However in write mode, only "
20573 "libvirt domains which are shut down can be named here."
20574 msgstr ""
20575
20576 #. type: textblock
20577 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
20578 msgid "Domain UUIDs can be used instead of names."
20579 msgstr ""
20580
20581 #. type: textblock
20582 #: ../fish/guestfish.pod:204
20583 msgid ""
20584 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20585 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20586 "if the I<--format=...> flag was given."
20587 msgstr ""
20588
20589 #. type: =item
20590 #: ../fish/guestfish.pod:208
20591 msgid "B<-D>"
20592 msgstr "B<-D>"
20593
20594 #. type: =item
20595 #: ../fish/guestfish.pod:210
20596 msgid "B<--no-dest-paths>"
20597 msgstr "B<--no-dest-paths>"
20598
20599 #. type: textblock
20600 #: ../fish/guestfish.pod:212
20601 msgid ""
20602 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
20603 "to hit the tab key to complete paths on the guest filesystem, but this "
20604 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20605 "allow this feature to be disabled."
20606 msgstr ""
20607
20608 #. type: textblock
20609 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
20610 msgid ""
20611 "When prompting for keys and passphrases, guestfish normally turns echoing "
20612 "off so you cannot see what you are typing.  If you are not worried about "
20613 "Tempest attacks and there is no one else in the room you can specify this "
20614 "flag to see what you are typing."
20615 msgstr ""
20616
20617 #. type: =item
20618 #: ../fish/guestfish.pod:224
20619 msgid "B<-f file>"
20620 msgstr "B<-f файл>"
20621
20622 #. type: =item
20623 #: ../fish/guestfish.pod:226
20624 msgid "B<--file file>"
20625 msgstr "B<--file файл>"
20626
20627 #. type: textblock
20628 #: ../fish/guestfish.pod:228
20629 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
20630 msgstr ""
20631
20632 #. type: verbatim
20633 #: ../fish/guestfish.pod:231
20634 #, no-wrap
20635 msgid ""
20636 " #!/usr/bin/guestfish -f\n"
20637 "\n"
20638 msgstr ""
20639 " #!/usr/bin/guestfish -f\n"
20640 "\n"
20641
20642 #. type: verbatim
20643 #: ../fish/guestfish.pod:244
20644 #, no-wrap
20645 msgid ""
20646 " guestfish --format=raw -a disk.img\n"
20647 "\n"
20648 msgstr ""
20649 " guestfish --format=raw -a disk.img\n"
20650 "\n"
20651
20652 #. type: verbatim
20653 #: ../fish/guestfish.pod:248
20654 #, no-wrap
20655 msgid ""
20656 " guestfish --format=raw -a disk.img --format -a another.img\n"
20657 "\n"
20658 msgstr ""
20659 " guestfish --format=raw -a disk.img --format -a another.img\n"
20660 "\n"
20661
20662 #. type: textblock
20663 #: ../fish/guestfish.pod:253
20664 msgid ""
20665 "If you have untrusted raw-format guest disk images, you should use this "
20666 "option to specify the disk format.  This avoids a possible security problem "
20667 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
20668 msgstr ""
20669
20670 #. type: =item
20671 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
20672 msgid "B<--inspector>"
20673 msgstr "B<--inspector>"
20674
20675 #. type: textblock
20676 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
20677 msgid ""
20678 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20679 "system and mount filesystems as they would be mounted on the real virtual "
20680 "machine."
20681 msgstr ""
20682
20683 #. type: textblock
20684 #: ../fish/guestfish.pod:266
20685 msgid "Typical usage is either:"
20686 msgstr ""
20687
20688 #. type: verbatim
20689 #: ../fish/guestfish.pod:268
20690 #, no-wrap
20691 msgid ""
20692 " guestfish -d myguest -i\n"
20693 "\n"
20694 msgstr ""
20695 " guestfish -d myguest -i\n"
20696 "\n"
20697
20698 #. type: textblock
20699 #: ../fish/guestfish.pod:270
20700 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20701 msgstr ""
20702
20703 #. type: verbatim
20704 #: ../fish/guestfish.pod:272
20705 #, no-wrap
20706 msgid ""
20707 " guestfish --ro -d myguest -i\n"
20708 "\n"
20709 msgstr ""
20710 " guestfish --ro -d myguest -i\n"
20711 "\n"
20712
20713 #. type: textblock
20714 #: ../fish/guestfish.pod:274
20715 msgid "(for active domains, readonly), or specify the block device directly:"
20716 msgstr ""
20717
20718 #. type: verbatim
20719 #: ../fish/guestfish.pod:276
20720 #, no-wrap
20721 msgid ""
20722 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20723 "\n"
20724 msgstr ""
20725 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20726 "\n"
20727
20728 #. type: textblock
20729 #: ../fish/guestfish.pod:278
20730 msgid ""
20731 "Note that the command line syntax changed slightly over older versions of "
20732 "guestfish.  You can still use the old syntax:"
20733 msgstr ""
20734
20735 #. type: verbatim
20736 #: ../fish/guestfish.pod:281
20737 #, no-wrap
20738 msgid ""
20739 " guestfish [--ro] -i disk.img\n"
20740 "\n"
20741 msgstr ""
20742 " guestfish [--ro] -i disk.img\n"
20743 "\n"
20744
20745 #. type: verbatim
20746 #: ../fish/guestfish.pod:283
20747 #, no-wrap
20748 msgid ""
20749 " guestfish [--ro] -i libvirt-domain\n"
20750 "\n"
20751 msgstr ""
20752
20753 #. type: textblock
20754 #: ../fish/guestfish.pod:285
20755 msgid ""
20756 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20757 "then using other commands to mount the filesystems that were found."
20758 msgstr ""
20759
20760 #. type: =item
20761 #: ../fish/guestfish.pod:294
20762 msgid "B<--listen>"
20763 msgstr "B<--listen>"
20764
20765 #. type: textblock
20766 #: ../fish/guestfish.pod:296
20767 msgid ""
20768 "Fork into the background and listen for remote commands.  See section L</"
20769 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20770 msgstr ""
20771
20772 #. type: =item
20773 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20774 msgid "B<--live>"
20775 msgstr "B<--live>"
20776
20777 #. type: textblock
20778 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20779 msgid ""
20780 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
20781 "ATTACHING TO RUNNING DAEMONS>)."
20782 msgstr ""
20783
20784 #. type: =item
20785 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20786 msgid "B<-m dev[:mountpoint[:options]]>"
20787 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
20788
20789 #. type: =item
20790 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20791 msgid "B<--mount dev[:mountpoint[:options]]>"
20792 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
20793
20794 #. type: textblock
20795 #: ../fish/guestfish.pod:308
20796 msgid "Mount the named partition or logical volume on the given mountpoint."
20797 msgstr ""
20798
20799 #. type: textblock
20800 #: ../fish/guestfish.pod:310
20801 msgid "If the mountpoint is omitted, it defaults to C</>."
20802 msgstr ""
20803
20804 #. type: textblock
20805 #: ../fish/guestfish.pod:312
20806 msgid "You have to mount something on C</> before most commands will work."
20807 msgstr ""
20808
20809 #. type: textblock
20810 #: ../fish/guestfish.pod:314
20811 msgid ""
20812 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20813 "launched."
20814 msgstr ""
20815
20816 #. type: textblock
20817 #: ../fish/guestfish.pod:317
20818 msgid ""
20819 "If you don't know what filesystems a disk image contains, you can either run "
20820 "guestfish without this option, then list the partitions, filesystems and LVs "
20821 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20822 "commands), or you can use the L<virt-filesystems(1)> program."
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20827 msgid ""
20828 "The third (and rarely used) part of the mount parameter is the list of mount "
20829 "options used to mount the underlying filesystem.  If this is not given, then "
20830 "the mount options are either the empty string or C<ro> (the latter if the "
20831 "I<--ro> flag is used).  By specifying the mount options, you override this "
20832 "default choice.  Probably the only time you would use this is to enable ACLs "
20833 "and/or extended attributes if the filesystem can support them:"
20834 msgstr ""
20835
20836 #. type: verbatim
20837 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20838 #, no-wrap
20839 msgid ""
20840 " -m /dev/sda1:/:acl,user_xattr\n"
20841 "\n"
20842 msgstr ""
20843
20844 #. type: textblock
20845 #: ../fish/guestfish.pod:333
20846 msgid "Using this flag is equivalent to using the C<mount-options> command."
20847 msgstr ""
20848
20849 #. type: =item
20850 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20851 #: ../resize/virt-resize.pod:441
20852 msgid "B<-n>"
20853 msgstr "B<-n>"
20854
20855 #. type: =item
20856 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20857 msgid "B<--no-sync>"
20858 msgstr "B<--no-sync>"
20859
20860 #. type: textblock
20861 #: ../fish/guestfish.pod:339
20862 msgid ""
20863 "Disable autosync.  This is enabled by default.  See the discussion of "
20864 "autosync in the L<guestfs(3)> manpage."
20865 msgstr ""
20866
20867 #. type: =item
20868 #: ../fish/guestfish.pod:342
20869 msgid "B<-N type>"
20870 msgstr "B<-N тип>"
20871
20872 #. type: =item
20873 #: ../fish/guestfish.pod:344
20874 msgid "B<--new type>"
20875 msgstr "B<--new тип>"
20876
20877 #. type: =item
20878 #: ../fish/guestfish.pod:346
20879 msgid "B<-N help>"
20880 msgstr "B<-N help>"
20881
20882 #. type: textblock
20883 #: ../fish/guestfish.pod:348
20884 msgid ""
20885 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20886 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20887 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20888 "IMAGES> below."
20889 msgstr ""
20890
20891 #. type: =item
20892 #: ../fish/guestfish.pod:353
20893 msgid "B<--progress-bars>"
20894 msgstr "B<--progress-bars>"
20895
20896 #. type: textblock
20897 #: ../fish/guestfish.pod:355
20898 msgid "Enable progress bars, even when guestfish is used non-interactively."
20899 msgstr ""
20900
20901 #. type: textblock
20902 #: ../fish/guestfish.pod:357
20903 msgid ""
20904 "Progress bars are enabled by default when guestfish is used as an "
20905 "interactive shell."
20906 msgstr ""
20907
20908 #. type: =item
20909 #: ../fish/guestfish.pod:360
20910 msgid "B<--no-progress-bars>"
20911 msgstr "B<--no-progress-bars>"
20912
20913 #. type: textblock
20914 #: ../fish/guestfish.pod:362
20915 msgid "Disable progress bars."
20916 msgstr ""
20917
20918 #. type: =item
20919 #: ../fish/guestfish.pod:364
20920 msgid "B<--remote[=pid]>"
20921 msgstr "B<--remote[=pid]>"
20922
20923 #. type: textblock
20924 #: ../fish/guestfish.pod:366
20925 msgid ""
20926 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20927 "CONTROL GUESTFISH OVER A SOCKET> below."
20928 msgstr ""
20929
20930 #. type: =item
20931 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20932 #: ../rescue/virt-rescue.pod:189
20933 msgid "B<-r>"
20934 msgstr "B<-r>"
20935
20936 #. type: =item
20937 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20938 #: ../rescue/virt-rescue.pod:191
20939 msgid "B<--ro>"
20940 msgstr "B<--ro>"
20941
20942 #. type: textblock
20943 #: ../fish/guestfish.pod:373
20944 msgid ""
20945 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20946 "mounts are done read-only."
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20951 msgid ""
20952 "The option must always be used if the disk image or virtual machine might be "
20953 "running, and is generally recommended in cases where you don't need write "
20954 "access to the disk."
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../fish/guestfish.pod:380
20959 msgid ""
20960 "Note that prepared disk images created with I<-N> are not affected by this "
20961 "option.  Also commands like C<add> are not affected - you have to specify "
20962 "the C<readonly:true> option explicitly if you need it."
20963 msgstr ""
20964
20965 #. type: textblock
20966 #: ../fish/guestfish.pod:384
20967 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20968 msgstr ""
20969
20970 #. type: =item
20971 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20972 #: ../rescue/virt-rescue.pod:201
20973 msgid "B<--selinux>"
20974 msgstr "B<--selinux>"
20975
20976 #. type: textblock
20977 #: ../fish/guestfish.pod:388
20978 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20979 msgstr ""
20980
20981 #. type: textblock
20982 #: ../fish/guestfish.pod:394
20983 msgid ""
20984 "Enable very verbose messages.  This is particularly useful if you find a bug."
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../fish/guestfish.pod:401
20989 msgid "Display the guestfish / libguestfs version number and exit."
20990 msgstr ""
20991
20992 #. type: =item
20993 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20994 #: ../rescue/virt-rescue.pod:231
20995 msgid "B<-w>"
20996 msgstr "B<-w>"
20997
20998 #. type: =item
20999 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
21000 #: ../rescue/virt-rescue.pod:233
21001 msgid "B<--rw>"
21002 msgstr "B<--rw>"
21003
21004 #. type: textblock
21005 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
21006 msgid ""
21007 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21008 "mounts are done read-write."
21009 msgstr ""
21010
21011 #. type: textblock
21012 #: ../fish/guestfish.pod:410
21013 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
21014 msgstr ""
21015
21016 #. type: textblock
21017 #: ../fish/guestfish.pod:414
21018 msgid "Echo each command before executing it."
21019 msgstr ""
21020
21021 #. type: =head1
21022 #: ../fish/guestfish.pod:418
21023 msgid "COMMANDS ON COMMAND LINE"
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../fish/guestfish.pod:420
21028 msgid ""
21029 "Any additional (non-option) arguments are treated as commands to execute."
21030 msgstr ""
21031
21032 #. type: textblock
21033 #: ../fish/guestfish.pod:423
21034 msgid ""
21035 "Commands to execute should be separated by a colon (C<:>), where the colon "
21036 "is a separate parameter.  Thus:"
21037 msgstr ""
21038
21039 #. type: verbatim
21040 #: ../fish/guestfish.pod:426
21041 #, no-wrap
21042 msgid ""
21043 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21044 "\n"
21045 msgstr ""
21046
21047 #. type: textblock
21048 #: ../fish/guestfish.pod:428
21049 msgid ""
21050 "If there are no additional arguments, then we enter a shell, either an "
21051 "interactive shell with a prompt (if the input is a terminal) or a non-"
21052 "interactive shell."
21053 msgstr ""
21054
21055 #. type: textblock
21056 #: ../fish/guestfish.pod:432
21057 msgid ""
21058 "In either command line mode or non-interactive shell, the first command that "
21059 "gives an error causes the whole shell to exit.  In interactive mode (with a "
21060 "prompt) if a command fails, you can continue to enter commands."
21061 msgstr ""
21062
21063 #. type: =head1
21064 #: ../fish/guestfish.pod:437
21065 msgid "USING launch (OR run)"
21066 msgstr ""
21067
21068 #. type: textblock
21069 #: ../fish/guestfish.pod:439
21070 msgid ""
21071 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
21072 "then launch it, then mount any disks you need, and finally issue actions/"
21073 "commands.  So the general order of the day is:"
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../fish/guestfish.pod:447
21078 msgid "add or -a/--add"
21079 msgstr ""
21080
21081 #. type: textblock
21082 #: ../fish/guestfish.pod:451
21083 msgid "launch (aka run)"
21084 msgstr ""
21085
21086 #. type: textblock
21087 #: ../fish/guestfish.pod:455
21088 msgid "mount or -m/--mount"
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../fish/guestfish.pod:459
21093 msgid "any other commands"
21094 msgstr ""
21095
21096 #. type: textblock
21097 #: ../fish/guestfish.pod:463
21098 msgid ""
21099 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
21100 "guest before mounting or performing any other commands."
21101 msgstr ""
21102
21103 #. type: textblock
21104 #: ../fish/guestfish.pod:466
21105 msgid ""
21106 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
21107 "I<--new> options were given then C<run> is done automatically, simply "
21108 "because guestfish can't perform the action you asked for without doing this."
21109 msgstr ""
21110
21111 #. type: =head1
21112 #: ../fish/guestfish.pod:471
21113 msgid "OPENING DISKS FOR READ AND WRITE"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../fish/guestfish.pod:473
21118 msgid ""
21119 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
21120 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
21121 "I<-i> and I<-m> open disk images read-only or for writing."
21122 msgstr ""
21123
21124 #. type: textblock
21125 #: ../fish/guestfish.pod:478
21126 msgid ""
21127 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
21128 "opening disk images supplied on the command line for write.  To open a disk "
21129 "image read-only you have to do I<-a image --ro>."
21130 msgstr ""
21131
21132 #. type: textblock
21133 #: ../fish/guestfish.pod:482
21134 msgid ""
21135 "This matters: If you accidentally open a live VM disk image writable then "
21136 "you will cause irreversible disk corruption."
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../fish/guestfish.pod:485
21141 msgid ""
21142 "In a future libguestfs we intend to change the default the other way.  Disk "
21143 "images will be opened read-only.  You will have to either specify "
21144 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
21145 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
21146 "access for disk images specified by those other command line options."
21147 msgstr ""
21148
21149 #. type: textblock
21150 #: ../fish/guestfish.pod:492
21151 msgid ""
21152 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
21153 "which does nothing (it is already the default).  However it is highly "
21154 "recommended that you use this option to indicate that you need write access, "
21155 "and prepare your scripts for the day when this option will be required for "
21156 "write access."
21157 msgstr ""
21158
21159 #. type: textblock
21160 #: ../fish/guestfish.pod:498
21161 msgid ""
21162 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
21163 "other libguestfs program apart from guestfish and guestmount."
21164 msgstr ""
21165
21166 #. type: =head1
21167 #: ../fish/guestfish.pod:501
21168 msgid "QUOTING"
21169 msgstr ""
21170
21171 #. type: textblock
21172 #: ../fish/guestfish.pod:503
21173 msgid ""
21174 "You can quote ordinary parameters using either single or double quotes.  For "
21175 "example:"
21176 msgstr ""
21177
21178 #. type: verbatim
21179 #: ../fish/guestfish.pod:506
21180 #, no-wrap
21181 msgid ""
21182 " add \"file with a space.img\"\n"
21183 "\n"
21184 msgstr ""
21185
21186 #. type: verbatim
21187 #: ../fish/guestfish.pod:508
21188 #, no-wrap
21189 msgid ""
21190 " rm '/file name'\n"
21191 "\n"
21192 msgstr ""
21193
21194 #. type: verbatim
21195 #: ../fish/guestfish.pod:510
21196 #, no-wrap
21197 msgid ""
21198 " rm '/\"'\n"
21199 "\n"
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../fish/guestfish.pod:512
21204 msgid ""
21205 "A few commands require a list of strings to be passed.  For these, use a "
21206 "whitespace-separated list, enclosed in quotes.  Strings containing "
21207 "whitespace to be passed through must be enclosed in single quotes.  A "
21208 "literal single quote must be escaped with a backslash."
21209 msgstr ""
21210
21211 #. type: verbatim
21212 #: ../fish/guestfish.pod:517
21213 #, no-wrap
21214 msgid ""
21215 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21216 " command \"/bin/echo 'foo      bar'\"\n"
21217 " command \"/bin/echo \\'foo\\'\"\n"
21218 "\n"
21219 msgstr ""
21220
21221 #. type: =head2
21222 #: ../fish/guestfish.pod:521
21223 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../fish/guestfish.pod:523
21228 msgid ""
21229 "In double-quoted arguments (only) use backslash to insert special characters:"
21230 msgstr ""
21231
21232 #. type: =item
21233 #: ../fish/guestfish.pod:528
21234 msgid "C<\\a>"
21235 msgstr "C<\\a>"
21236
21237 #. type: textblock
21238 #: ../fish/guestfish.pod:530
21239 msgid "Alert (bell) character."
21240 msgstr "Символ гудка (дзвінка)."
21241
21242 #. type: =item
21243 #: ../fish/guestfish.pod:532
21244 msgid "C<\\b>"
21245 msgstr "C<\\b>"
21246
21247 #. type: textblock
21248 #: ../fish/guestfish.pod:534
21249 msgid "Backspace character."
21250 msgstr ""
21251
21252 #. type: =item
21253 #: ../fish/guestfish.pod:536
21254 msgid "C<\\f>"
21255 msgstr "C<\\f>"
21256
21257 #. type: textblock
21258 #: ../fish/guestfish.pod:538
21259 msgid "Form feed character."
21260 msgstr ""
21261
21262 #. type: =item
21263 #: ../fish/guestfish.pod:540
21264 msgid "C<\\n>"
21265 msgstr "C<\\n>"
21266
21267 #. type: textblock
21268 #: ../fish/guestfish.pod:542
21269 msgid "Newline character."
21270 msgstr ""
21271
21272 #. type: =item
21273 #: ../fish/guestfish.pod:544
21274 msgid "C<\\r>"
21275 msgstr "C<\\r>"
21276
21277 #. type: textblock
21278 #: ../fish/guestfish.pod:546
21279 msgid "Carriage return character."
21280 msgstr "Символ повернення каретки."
21281
21282 #. type: =item
21283 #: ../fish/guestfish.pod:548
21284 msgid "C<\\t>"
21285 msgstr "C<\\t>"
21286
21287 #. type: textblock
21288 #: ../fish/guestfish.pod:550
21289 msgid "Horizontal tab character."
21290 msgstr "Символ горизонтальної табуляції"
21291
21292 #. type: =item
21293 #: ../fish/guestfish.pod:552
21294 msgid "C<\\v>"
21295 msgstr "C<\\v>"
21296
21297 #. type: textblock
21298 #: ../fish/guestfish.pod:554
21299 msgid "Vertical tab character."
21300 msgstr "Символ вертикальної табуляції."
21301
21302 #. type: =item
21303 #: ../fish/guestfish.pod:556
21304 msgid "C<\\\">"
21305 msgstr "C<\\\">"
21306
21307 #. type: textblock
21308 #: ../fish/guestfish.pod:558
21309 msgid "A literal double quote character."
21310 msgstr ""
21311
21312 #. type: =item
21313 #: ../fish/guestfish.pod:560
21314 msgid "C<\\ooo>"
21315 msgstr "C<\\ooo>"
21316
21317 #. type: textblock
21318 #: ../fish/guestfish.pod:562
21319 msgid ""
21320 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
21321 "(unlike C)."
21322 msgstr ""
21323
21324 #. type: =item
21325 #: ../fish/guestfish.pod:565
21326 msgid "C<\\xhh>"
21327 msgstr "C<\\xhh>"
21328
21329 #. type: textblock
21330 #: ../fish/guestfish.pod:567
21331 msgid ""
21332 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
21333 msgstr ""
21334
21335 #. type: textblock
21336 #: ../fish/guestfish.pod:570
21337 msgid ""
21338 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
21339 "strings."
21340 msgstr ""
21341
21342 #. type: =item
21343 #: ../fish/guestfish.pod:573
21344 msgid "C<\\\\>"
21345 msgstr "C<\\\\>"
21346
21347 #. type: textblock
21348 #: ../fish/guestfish.pod:575
21349 msgid "A literal backslash character."
21350 msgstr ""
21351
21352 #. type: =head1
21353 #: ../fish/guestfish.pod:579
21354 msgid "OPTIONAL ARGUMENTS"
21355 msgstr ""
21356
21357 #. type: textblock
21358 #: ../fish/guestfish.pod:581
21359 msgid ""
21360 "Some commands take optional arguments.  These arguments appear in this "
21361 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21362 msgstr ""
21363
21364 #. type: verbatim
21365 #: ../fish/guestfish.pod:585
21366 #, no-wrap
21367 msgid ""
21368 " add-drive-opts filename\n"
21369 "\n"
21370 msgstr ""
21371
21372 #. type: verbatim
21373 #: ../fish/guestfish.pod:587
21374 #, no-wrap
21375 msgid ""
21376 " add-drive-opts filename readonly:true\n"
21377 "\n"
21378 msgstr ""
21379
21380 #. type: verbatim
21381 #: ../fish/guestfish.pod:589
21382 #, no-wrap
21383 msgid ""
21384 " add-drive-opts filename format:qcow2 readonly:false\n"
21385 "\n"
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fish/guestfish.pod:591
21390 msgid ""
21391 "Each optional argument can appear at most once.  All optional arguments must "
21392 "appear after the required ones."
21393 msgstr ""
21394
21395 #. type: =head1
21396 #: ../fish/guestfish.pod:594
21397 msgid "NUMBERS"
21398 msgstr "ЧИСЛА"
21399
21400 #. type: textblock
21401 #: ../fish/guestfish.pod:596
21402 msgid ""
21403 "This section applies to all commands which can take integers as parameters."
21404 msgstr ""
21405
21406 #. type: =head2
21407 #: ../fish/guestfish.pod:599
21408 msgid "SIZE SUFFIX"
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../fish/guestfish.pod:601
21413 msgid ""
21414 "When the command takes a parameter measured in bytes, you can use one of the "
21415 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21416 msgstr ""
21417
21418 #. type: =item
21419 #: ../fish/guestfish.pod:607
21420 msgid "B<k> or B<K> or B<KiB>"
21421 msgstr "B<k>, B<K> або B<KiB>"
21422
21423 #. type: textblock
21424 #: ../fish/guestfish.pod:609
21425 msgid "The size in kilobytes (multiplied by 1024)."
21426 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
21427
21428 #. type: =item
21429 #: ../fish/guestfish.pod:611
21430 msgid "B<KB>"
21431 msgstr "B<KB>"
21432
21433 #. type: textblock
21434 #: ../fish/guestfish.pod:613
21435 msgid "The size in SI 1000 byte units."
21436 msgstr "Розмір у одиницях СІ: 1000 байтів."
21437
21438 #. type: =item
21439 #: ../fish/guestfish.pod:615
21440 msgid "B<M> or B<MiB>"
21441 msgstr "B<M> або B<MiB>"
21442
21443 #. type: textblock
21444 #: ../fish/guestfish.pod:617
21445 msgid "The size in megabytes (multiplied by 1048576)."
21446 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
21447
21448 #. type: =item
21449 #: ../fish/guestfish.pod:619
21450 msgid "B<MB>"
21451 msgstr "B<MB>"
21452
21453 #. type: textblock
21454 #: ../fish/guestfish.pod:621
21455 msgid "The size in SI 1000000 byte units."
21456 msgstr "Розмір у одиницях СІ: 1000000 байтів."
21457
21458 #. type: =item
21459 #: ../fish/guestfish.pod:623
21460 msgid "B<G> or B<GiB>"
21461 msgstr "B<G> або B<GiB>"
21462
21463 #. type: textblock
21464 #: ../fish/guestfish.pod:625
21465 msgid "The size in gigabytes (multiplied by 2**30)."
21466 msgstr "Розмір у гігабайтах (з множником 2**30)."
21467
21468 #. type: =item
21469 #: ../fish/guestfish.pod:627
21470 msgid "B<GB>"
21471 msgstr "B<GB>"
21472
21473 #. type: textblock
21474 #: ../fish/guestfish.pod:629
21475 msgid "The size in SI 10**9 byte units."
21476 msgstr "Розмір у одиницях СІ: 10**9 байтів."
21477
21478 #. type: =item
21479 #: ../fish/guestfish.pod:631
21480 msgid "B<T> or B<TiB>"
21481 msgstr "B<T> або B<TiB>"
21482
21483 #. type: textblock
21484 #: ../fish/guestfish.pod:633
21485 msgid "The size in terabytes (multiplied by 2**40)."
21486 msgstr "Розмір у терабайтах (з множником 2**40)."
21487
21488 #. type: =item
21489 #: ../fish/guestfish.pod:635
21490 msgid "B<TB>"
21491 msgstr "B<TB>"
21492
21493 #. type: textblock
21494 #: ../fish/guestfish.pod:637
21495 msgid "The size in SI 10**12 byte units."
21496 msgstr "Розмір у одиницях СІ: 10**12 байтів."
21497
21498 #. type: =item
21499 #: ../fish/guestfish.pod:639
21500 msgid "B<P> or B<PiB>"
21501 msgstr "B<P> або B<PiB>"
21502
21503 #. type: textblock
21504 #: ../fish/guestfish.pod:641
21505 msgid "The size in petabytes (multiplied by 2**50)."
21506 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
21507
21508 #. type: =item
21509 #: ../fish/guestfish.pod:643
21510 msgid "B<PB>"
21511 msgstr "B<PB>"
21512
21513 #. type: textblock
21514 #: ../fish/guestfish.pod:645
21515 msgid "The size in SI 10**15 byte units."
21516 msgstr "Розмір у одиницях СІ: 10**15 байтів."
21517
21518 #. type: =item
21519 #: ../fish/guestfish.pod:647
21520 msgid "B<E> or B<EiB>"
21521 msgstr "B<E> або B<EiB>"
21522
21523 #. type: textblock
21524 #: ../fish/guestfish.pod:649
21525 msgid "The size in exabytes (multiplied by 2**60)."
21526 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
21527
21528 #. type: =item
21529 #: ../fish/guestfish.pod:651
21530 msgid "B<EB>"
21531 msgstr "B<EB>"
21532
21533 #. type: textblock
21534 #: ../fish/guestfish.pod:653
21535 msgid "The size in SI 10**18 byte units."
21536 msgstr "Розмір у одиницях СІ: 10**18 байтів."
21537
21538 #. type: =item
21539 #: ../fish/guestfish.pod:655
21540 msgid "B<Z> or B<ZiB>"
21541 msgstr "B<Z> або B<ZiB>"
21542
21543 #. type: textblock
21544 #: ../fish/guestfish.pod:657
21545 msgid "The size in zettabytes (multiplied by 2**70)."
21546 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
21547
21548 #. type: =item
21549 #: ../fish/guestfish.pod:659
21550 msgid "B<ZB>"
21551 msgstr "B<ZB>"
21552
21553 #. type: textblock
21554 #: ../fish/guestfish.pod:661
21555 msgid "The size in SI 10**21 byte units."
21556 msgstr "Розмір у одиницях СІ: 10**21 байтів."
21557
21558 #. type: =item
21559 #: ../fish/guestfish.pod:663
21560 msgid "B<Y> or B<YiB>"
21561 msgstr "B<Y> або B<YiB>"
21562
21563 #. type: textblock
21564 #: ../fish/guestfish.pod:665
21565 msgid "The size in yottabytes (multiplied by 2**80)."
21566 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
21567
21568 #. type: =item
21569 #: ../fish/guestfish.pod:667
21570 msgid "B<YB>"
21571 msgstr "B<YB>"
21572
21573 #. type: textblock
21574 #: ../fish/guestfish.pod:669
21575 msgid "The size in SI 10**24 byte units."
21576 msgstr "Розмір у одиницях СІ: 10**24 байтів."
21577
21578 #. type: verbatim
21579 #: ../fish/guestfish.pod:675
21580 #, no-wrap
21581 msgid ""
21582 " truncate-size /file 1G\n"
21583 "\n"
21584 msgstr ""
21585
21586 #. type: textblock
21587 #: ../fish/guestfish.pod:677
21588 msgid "would truncate the file to 1 gigabyte."
21589 msgstr ""
21590
21591 #. type: textblock
21592 #: ../fish/guestfish.pod:679
21593 msgid ""
21594 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21595 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
21596 "suffix will probably not do what you expect."
21597 msgstr ""
21598
21599 #. type: =head2
21600 #: ../fish/guestfish.pod:683
21601 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21602 msgstr ""
21603
21604 #. type: textblock
21605 #: ../fish/guestfish.pod:685
21606 msgid ""
21607 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21608 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
21609 msgstr ""
21610
21611 #. type: verbatim
21612 #: ../fish/guestfish.pod:688
21613 #, no-wrap
21614 msgid ""
21615 " 1234      decimal number 1234\n"
21616 " 02322     octal number, equivalent to decimal 1234\n"
21617 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
21618 "\n"
21619 msgstr ""
21620
21621 #. type: textblock
21622 #: ../fish/guestfish.pod:692
21623 msgid ""
21624 "When using the C<chmod> command, you almost always want to specify an octal "
21625 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21626 "L<chmod(1)> program):"
21627 msgstr ""
21628
21629 #. type: verbatim
21630 #: ../fish/guestfish.pod:696
21631 #, no-wrap
21632 msgid ""
21633 " chmod 0777 /public  # OK\n"
21634 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
21635 "\n"
21636 msgstr ""
21637
21638 #. type: textblock
21639 #: ../fish/guestfish.pod:699
21640 msgid ""
21641 "Commands that return numbers usually print them in decimal, but some "
21642 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21643 "octal, preceeded by C<0>)."
21644 msgstr ""
21645
21646 #. type: =head1
21647 #: ../fish/guestfish.pod:703
21648 msgid "WILDCARDS AND GLOBBING"
21649 msgstr ""
21650
21651 #. type: textblock
21652 #: ../fish/guestfish.pod:705
21653 msgid ""
21654 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21655 "(globbing) by default.  So for example the following will not do what you "
21656 "expect:"
21657 msgstr ""
21658
21659 #. type: verbatim
21660 #: ../fish/guestfish.pod:709
21661 #, no-wrap
21662 msgid ""
21663 " rm-rf /home/*\n"
21664 "\n"
21665 msgstr ""
21666
21667 #. type: textblock
21668 #: ../fish/guestfish.pod:711
21669 msgid ""
21670 "Assuming you don't have a directory called literally C</home/*> then the "
21671 "above command will return an error."
21672 msgstr ""
21673
21674 #. type: textblock
21675 #: ../fish/guestfish.pod:714
21676 msgid "To perform wildcard expansion, use the C<glob> command."
21677 msgstr ""
21678
21679 #. type: verbatim
21680 #: ../fish/guestfish.pod:716
21681 #, no-wrap
21682 msgid ""
21683 " glob rm-rf /home/*\n"
21684 "\n"
21685 msgstr ""
21686
21687 #. type: textblock
21688 #: ../fish/guestfish.pod:718
21689 msgid ""
21690 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21691 "many times), equivalent to:"
21692 msgstr ""
21693
21694 #. type: verbatim
21695 #: ../fish/guestfish.pod:721
21696 #, no-wrap
21697 msgid ""
21698 " rm-rf /home/jim\n"
21699 " rm-rf /home/joe\n"
21700 " rm-rf /home/mary\n"
21701 "\n"
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../fish/guestfish.pod:725
21706 msgid "C<glob> only works on simple guest paths and not on device names."
21707 msgstr ""
21708
21709 #. type: textblock
21710 #: ../fish/guestfish.pod:727
21711 msgid ""
21712 "If you have several parameters, each containing a wildcard, then glob will "
21713 "perform a Cartesian product."
21714 msgstr ""
21715
21716 #. type: =head1
21717 #: ../fish/guestfish.pod:730
21718 msgid "COMMENTS"
21719 msgstr "КОМЕНТАРІ"
21720
21721 #. type: textblock
21722 #: ../fish/guestfish.pod:732
21723 msgid ""
21724 "Any line which starts with a I<#> character is treated as a comment and "
21725 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
21726 "a command.  For example:"
21727 msgstr ""
21728
21729 #. type: verbatim
21730 #: ../fish/guestfish.pod:736
21731 #, no-wrap
21732 msgid ""
21733 " # this is a comment\n"
21734 "         # this is a comment\n"
21735 " foo # NOT a comment\n"
21736 "\n"
21737 msgstr ""
21738
21739 #. type: textblock
21740 #: ../fish/guestfish.pod:740
21741 msgid "Blank lines are also ignored."
21742 msgstr ""
21743
21744 #. type: =head1
21745 #: ../fish/guestfish.pod:742
21746 msgid "RUNNING COMMANDS LOCALLY"
21747 msgstr ""
21748
21749 #. type: textblock
21750 #: ../fish/guestfish.pod:744
21751 msgid ""
21752 "Any line which starts with a I<!> character is treated as a command sent to "
21753 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
21754 msgstr ""
21755
21756 #. type: verbatim
21757 #: ../fish/guestfish.pod:748
21758 #, no-wrap
21759 msgid ""
21760 " !mkdir local\n"
21761 " tgz-out /remote local/remote-data.tar.gz\n"
21762 "\n"
21763 msgstr ""
21764
21765 #. type: textblock
21766 #: ../fish/guestfish.pod:751
21767 msgid ""
21768 "will create a directory C<local> on the host, and then export the contents "
21769 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
21770 "(See C<tgz-out>)."
21771 msgstr ""
21772
21773 #. type: textblock
21774 #: ../fish/guestfish.pod:755
21775 msgid ""
21776 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
21777 "effect, due to the way that subprocesses work in Unix."
21778 msgstr ""
21779
21780 #. type: =head2
21781 #: ../fish/guestfish.pod:758
21782 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21783 msgstr ""
21784
21785 #. type: textblock
21786 #: ../fish/guestfish.pod:760
21787 msgid ""
21788 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21789 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21790 "and executed as guestfish commands."
21791 msgstr ""
21792
21793 #. type: textblock
21794 #: ../fish/guestfish.pod:764
21795 msgid ""
21796 "Thus you can use shell script to construct arbitrary guestfish commands "
21797 "which are then parsed by guestfish."
21798 msgstr ""
21799
21800 #. type: textblock
21801 #: ../fish/guestfish.pod:767
21802 msgid ""
21803 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21804 "through C</foo.100>) using guestfish commands alone.  However this is simple "
21805 "if we use a shell script to create the guestfish commands for us:"
21806 msgstr ""
21807
21808 #. type: verbatim
21809 #: ../fish/guestfish.pod:772
21810 #, no-wrap
21811 msgid ""
21812 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21813 "\n"
21814 msgstr ""
21815
21816 #. type: textblock
21817 #: ../fish/guestfish.pod:774
21818 msgid "or with names like C</foo.001>:"
21819 msgstr ""
21820
21821 #. type: verbatim
21822 #: ../fish/guestfish.pod:776
21823 #, no-wrap
21824 msgid ""
21825 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21826 "\n"
21827 msgstr ""
21828
21829 #. type: textblock
21830 #: ../fish/guestfish.pod:778
21831 msgid ""
21832 "When using guestfish interactively it can be helpful to just run the shell "
21833 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21834 "ordinary I<!> local command), see what guestfish commands it would run, and "
21835 "when you are happy with those prepend the C<E<lt>> character to run the "
21836 "guestfish commands for real."
21837 msgstr ""
21838
21839 #. type: =head1
21840 #: ../fish/guestfish.pod:784
21841 msgid "PIPES"
21842 msgstr "КАНАЛИ"
21843
21844 #. type: textblock
21845 #: ../fish/guestfish.pod:786
21846 msgid ""
21847 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21848 "command (a guestfish command) to the second command (any host command).  For "
21849 "example:"
21850 msgstr ""
21851
21852 #. type: verbatim
21853 #: ../fish/guestfish.pod:790
21854 #, no-wrap
21855 msgid ""
21856 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21857 "\n"
21858 msgstr ""
21859
21860 #. type: textblock
21861 #: ../fish/guestfish.pod:792
21862 msgid ""
21863 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21864 "program).  The above command would list all accounts in the guest filesystem "
21865 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21866 msgstr ""
21867
21868 #. type: verbatim
21869 #: ../fish/guestfish.pod:797
21870 #, no-wrap
21871 msgid ""
21872 " hexdump /bin/ls | head\n"
21873 " list-devices | tail -1\n"
21874 " tgz-out / - | tar ztf -\n"
21875 "\n"
21876 msgstr ""
21877
21878 #. type: textblock
21879 #: ../fish/guestfish.pod:801
21880 msgid ""
21881 "The space before the pipe symbol is required, any space after the pipe "
21882 "symbol is optional.  Everything after the pipe symbol is just passed "
21883 "straight to the host shell, so it can contain redirections, globs and "
21884 "anything else that makes sense on the host side."
21885 msgstr ""
21886
21887 #. type: textblock
21888 #: ../fish/guestfish.pod:806
21889 msgid ""
21890 "To use a literal argument which begins with a pipe symbol, you have to quote "
21891 "it, eg:"
21892 msgstr ""
21893
21894 #. type: verbatim
21895 #: ../fish/guestfish.pod:809
21896 #, no-wrap
21897 msgid ""
21898 " echo \"|\"\n"
21899 "\n"
21900 msgstr ""
21901
21902 #. type: =head1
21903 #: ../fish/guestfish.pod:811
21904 msgid "HOME DIRECTORIES"
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../fish/guestfish.pod:813
21909 msgid ""
21910 "If a parameter starts with the character C<~> then the tilde may be expanded "
21911 "as a home directory path (either C<~> for the current user's home directory, "
21912 "or C<~user> for another user)."
21913 msgstr ""
21914
21915 #. type: textblock
21916 #: ../fish/guestfish.pod:817
21917 msgid ""
21918 "Note that home directory expansion happens for users known I<on the host>, "
21919 "not in the guest filesystem."
21920 msgstr ""
21921
21922 #. type: textblock
21923 #: ../fish/guestfish.pod:820
21924 msgid ""
21925 "To use a literal argument which begins with a tilde, you have to quote it, "
21926 "eg:"
21927 msgstr ""
21928
21929 #. type: verbatim
21930 #: ../fish/guestfish.pod:823
21931 #, no-wrap
21932 msgid ""
21933 " echo \"~\"\n"
21934 "\n"
21935 msgstr ""
21936
21937 #. type: =head2
21938 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21939 msgid "ENCRYPTED DISKS"
21940 msgstr "ЗАШИФРОВАНІ ДИСКИ"
21941
21942 #. type: textblock
21943 #: ../fish/guestfish.pod:827
21944 msgid ""
21945 "Libguestfs has some support for Linux guests encrypted according to the "
21946 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21947 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21948 "LUKS is supported."
21949 msgstr ""
21950
21951 #. type: textblock
21952 #: ../fish/guestfish.pod:832
21953 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21954 msgstr ""
21955
21956 #. type: verbatim
21957 #: ../fish/guestfish.pod:834
21958 #, no-wrap
21959 msgid ""
21960 " ><fs> vfs-type /dev/sda2\n"
21961 " crypto_LUKS\n"
21962 "\n"
21963 msgstr ""
21964
21965 #. type: textblock
21966 #: ../fish/guestfish.pod:837
21967 msgid ""
21968 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21969 "device called C</dev/mapper/luksdev>."
21970 msgstr ""
21971
21972 #. type: verbatim
21973 #: ../fish/guestfish.pod:840
21974 #, no-wrap
21975 msgid ""
21976 " ><fs> luks-open /dev/sda2 luksdev\n"
21977 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21978 "\n"
21979 msgstr ""
21980
21981 #. type: textblock
21982 #: ../fish/guestfish.pod:843
21983 msgid ""
21984 "Finally you have to tell LVM to scan for volume groups on the newly created "
21985 "mapper device:"
21986 msgstr ""
21987
21988 #. type: verbatim
21989 #: ../fish/guestfish.pod:846
21990 #, no-wrap
21991 msgid ""
21992 " vgscan\n"
21993 " vg-activate-all true\n"
21994 "\n"
21995 msgstr ""
21996
21997 #. type: textblock
21998 #: ../fish/guestfish.pod:849
21999 msgid "The logical volume(s) can now be mounted in the usual way."
22000 msgstr ""
22001
22002 #. type: textblock
22003 #: ../fish/guestfish.pod:851
22004 msgid ""
22005 "Before closing a LUKS device you must unmount any logical volumes on it and "
22006 "deactivate the volume groups by calling C<vg-activate false VG> on each "
22007 "one.  Then you can close the mapper device:"
22008 msgstr ""
22009
22010 #. type: verbatim
22011 #: ../fish/guestfish.pod:855
22012 #, no-wrap
22013 msgid ""
22014 " vg-activate false /dev/VG\n"
22015 " luks-close /dev/mapper/luksdev\n"
22016 "\n"
22017 msgstr ""
22018
22019 #. type: textblock
22020 #: ../fish/guestfish.pod:860
22021 msgid ""
22022 "If a path is prefixed with C<win:> then you can use Windows-style drive "
22023 "letters and paths (with some limitations).  The following commands are "
22024 "equivalent:"
22025 msgstr ""
22026
22027 #. type: verbatim
22028 #: ../fish/guestfish.pod:864
22029 #, no-wrap
22030 msgid ""
22031 " file /WINDOWS/system32/config/system.LOG\n"
22032 "\n"
22033 msgstr ""
22034
22035 #. type: verbatim
22036 #: ../fish/guestfish.pod:866
22037 #, no-wrap
22038 msgid ""
22039 " file win:\\windows\\system32\\config\\system.log\n"
22040 "\n"
22041 msgstr ""
22042
22043 #. type: verbatim
22044 #: ../fish/guestfish.pod:868
22045 #, no-wrap
22046 msgid ""
22047 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
22048 "\n"
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../fish/guestfish.pod:870
22053 msgid ""
22054 "The parameter is rewritten \"behind the scenes\" by looking up the position "
22055 "where the drive is mounted, prepending that to the path, changing all "
22056 "backslash characters to forward slash, then resolving the result using L</"
22057 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
22058 "the parameter might be rewritten like this:"
22059 msgstr ""
22060
22061 #. type: verbatim
22062 #: ../fish/guestfish.pod:876
22063 #, no-wrap
22064 msgid ""
22065 " win:e:\\foo\\bar => /e/FOO/bar\n"
22066 "\n"
22067 msgstr ""
22068
22069 #. type: textblock
22070 #: ../fish/guestfish.pod:878
22071 msgid "This only works in argument positions that expect a path."
22072 msgstr ""
22073
22074 #. type: =head1
22075 #: ../fish/guestfish.pod:880
22076 msgid "UPLOADING AND DOWNLOADING FILES"
22077 msgstr ""
22078
22079 #. type: textblock
22080 #: ../fish/guestfish.pod:882
22081 msgid ""
22082 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
22083 "others which upload from or download to a local file, you can use the "
22084 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
22085 msgstr ""
22086
22087 #. type: verbatim
22088 #: ../fish/guestfish.pod:886
22089 #, no-wrap
22090 msgid ""
22091 " upload - /foo\n"
22092 "\n"
22093 msgstr ""
22094
22095 #. type: textblock
22096 #: ../fish/guestfish.pod:888
22097 msgid ""
22098 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22099 msgstr ""
22100
22101 #. type: verbatim
22102 #: ../fish/guestfish.pod:891
22103 #, no-wrap
22104 msgid ""
22105 " tar-out /etc - | tar tf -\n"
22106 "\n"
22107 msgstr ""
22108
22109 #. type: textblock
22110 #: ../fish/guestfish.pod:893
22111 msgid ""
22112 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22113 "command (see L</PIPES>)."
22114 msgstr ""
22115
22116 #. type: textblock
22117 #: ../fish/guestfish.pod:896
22118 msgid ""
22119 "When using C<-> to read from stdin, the input is read up to the end of "
22120 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
22121 "some arbitrary end marker:"
22122 msgstr ""
22123
22124 #. type: verbatim
22125 #: ../fish/guestfish.pod:900
22126 #, no-wrap
22127 msgid ""
22128 " upload -<<END /foo\n"
22129 " input line 1\n"
22130 " input line 2\n"
22131 " input line 3\n"
22132 " END\n"
22133 "\n"
22134 msgstr ""
22135
22136 #. type: textblock
22137 #: ../fish/guestfish.pod:906
22138 msgid ""
22139 "Any string of characters can be used instead of C<END>.  The end marker must "
22140 "appear on a line of its own, without any preceeding or following characters "
22141 "(not even spaces)."
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../fish/guestfish.pod:910
22146 msgid ""
22147 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22148 "upload local files (so-called \"FileIn\" parameters in the generator)."
22149 msgstr ""
22150
22151 #. type: =head1
22152 #: ../fish/guestfish.pod:913
22153 msgid "EXIT ON ERROR BEHAVIOUR"
22154 msgstr ""
22155
22156 #. type: textblock
22157 #: ../fish/guestfish.pod:915
22158 msgid ""
22159 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22160 "taking commands from a human over a tty), and will exit on the first error "
22161 "in non-interactive mode (scripts, commands given on the command line)."
22162 msgstr ""
22163
22164 #. type: textblock
22165 #: ../fish/guestfish.pod:920
22166 msgid ""
22167 "If you prefix a command with a I<-> character, then that command will not "
22168 "cause guestfish to exit, even if that (one) command returns an error."
22169 msgstr ""
22170
22171 #. type: =head1
22172 #: ../fish/guestfish.pod:924
22173 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22174 msgstr ""
22175
22176 #. type: textblock
22177 #: ../fish/guestfish.pod:926
22178 msgid ""
22179 "Guestfish can be remote-controlled over a socket.  This is useful "
22180 "particularly in shell scripts where you want to make several different "
22181 "changes to a filesystem, but you don't want the overhead of starting up a "
22182 "guestfish process each time."
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../fish/guestfish.pod:931
22187 msgid "Start a guestfish server process using:"
22188 msgstr ""
22189
22190 #. type: verbatim
22191 #: ../fish/guestfish.pod:933
22192 #, no-wrap
22193 msgid ""
22194 " eval \"`guestfish --listen`\"\n"
22195 "\n"
22196 msgstr ""
22197
22198 #. type: textblock
22199 #: ../fish/guestfish.pod:935
22200 msgid "and then send it commands by doing:"
22201 msgstr ""
22202
22203 #. type: verbatim
22204 #: ../fish/guestfish.pod:937
22205 #, no-wrap
22206 msgid ""
22207 " guestfish --remote cmd [...]\n"
22208 "\n"
22209 msgstr ""
22210
22211 #. type: textblock
22212 #: ../fish/guestfish.pod:939
22213 msgid "To cause the server to exit, send it the exit command:"
22214 msgstr ""
22215
22216 #. type: textblock
22217 #: ../fish/guestfish.pod:943
22218 msgid ""
22219 "Note that the server will normally exit if there is an error in a command.  "
22220 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22221 "BEHAVIOUR>."
22222 msgstr ""
22223
22224 #. type: =head2
22225 #: ../fish/guestfish.pod:947
22226 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22227 msgstr ""
22228
22229 #. type: textblock
22230 #: ../fish/guestfish.pod:949
22231 msgid ""
22232 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22233 "is how the I<--remote> option knows where to send the commands.  You can "
22234 "have several guestfish listener processes running using:"
22235 msgstr ""
22236
22237 #. type: verbatim
22238 #: ../fish/guestfish.pod:953
22239 #, no-wrap
22240 msgid ""
22241 " eval \"`guestfish --listen`\"\n"
22242 " pid1=$GUESTFISH_PID\n"
22243 " eval \"`guestfish --listen`\"\n"
22244 " pid2=$GUESTFISH_PID\n"
22245 " ...\n"
22246 " guestfish --remote=$pid1 cmd\n"
22247 " guestfish --remote=$pid2 cmd\n"
22248 "\n"
22249 msgstr ""
22250
22251 #. type: =head2
22252 #: ../fish/guestfish.pod:961
22253 msgid "REMOTE CONTROL AND CSH"
22254 msgstr ""
22255
22256 #. type: textblock
22257 #: ../fish/guestfish.pod:963
22258 msgid ""
22259 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22260 "option:"
22261 msgstr ""
22262
22263 #. type: verbatim
22264 #: ../fish/guestfish.pod:966
22265 #, no-wrap
22266 msgid ""
22267 " eval \"`guestfish --listen --csh`\"\n"
22268 "\n"
22269 msgstr ""
22270
22271 #. type: =head2
22272 #: ../fish/guestfish.pod:968
22273 msgid "REMOTE CONTROL DETAILS"
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../fish/guestfish.pod:970
22278 msgid ""
22279 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22280 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22281 "and C<$PID> is the process ID of the server."
22282 msgstr ""
22283
22284 #. type: textblock
22285 #: ../fish/guestfish.pod:974
22286 msgid "Guestfish client and server versions must match exactly."
22287 msgstr ""
22288
22289 #. type: =head2
22290 #: ../fish/guestfish.pod:976
22291 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
22292 msgstr ""
22293
22294 #. type: textblock
22295 #: ../fish/guestfish.pod:978
22296 msgid ""
22297 "From Bash, you can use the following code which creates a guestfish "
22298 "instance, correctly quotes the command line, handles failure to start, and "
22299 "cleans up guestfish when the script exits:"
22300 msgstr ""
22301
22302 #. type: verbatim
22303 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
22304 #, no-wrap
22305 msgid ""
22306 " #!/bin/bash -\n"
22307 " \n"
22308 msgstr ""
22309
22310 #. type: verbatim
22311 #: ../fish/guestfish.pod:986
22312 #, no-wrap
22313 msgid ""
22314 " guestfish[0]=\"guestfish\"\n"
22315 " guestfish[1]=\"--listen\"\n"
22316 " guestfish[2]=\"--ro\"\n"
22317 " guestfish[3]=\"-a\"\n"
22318 " guestfish[4]=\"disk.img\"\n"
22319 " \n"
22320 msgstr ""
22321
22322 #. type: verbatim
22323 #: ../fish/guestfish.pod:992
22324 #, no-wrap
22325 msgid ""
22326 " GUESTFISH_PID=\n"
22327 " eval $(\"${guestfish[@]}\")\n"
22328 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
22329 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
22330 "     exit 1\n"
22331 " fi\n"
22332 " \n"
22333 msgstr ""
22334
22335 #. type: verbatim
22336 #: ../fish/guestfish.pod:999
22337 #, no-wrap
22338 msgid ""
22339 " cleanup_guestfish ()\n"
22340 " {\n"
22341 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
22342 " }\n"
22343 " trap cleanup_guestfish EXIT ERR\n"
22344 " \n"
22345 msgstr ""
22346
22347 #. type: verbatim
22348 #: ../fish/guestfish.pod:1005
22349 #, no-wrap
22350 msgid ""
22351 " guestfish --remote -- run\n"
22352 " \n"
22353 msgstr ""
22354
22355 #. type: verbatim
22356 #: ../fish/guestfish.pod:1007
22357 #, no-wrap
22358 msgid ""
22359 " # ...\n"
22360 "\n"
22361 msgstr ""
22362
22363 #. type: =head2
22364 #: ../fish/guestfish.pod:1009
22365 msgid "REMOTE CONTROL RUN COMMAND HANGING"
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../fish/guestfish.pod:1011
22370 msgid ""
22371 "Using the C<run> (or C<launch>) command remotely in a command substitution "
22372 "context hangs, ie. don't do (note the backquotes):"
22373 msgstr ""
22374
22375 #. type: verbatim
22376 #: ../fish/guestfish.pod:1014
22377 #, no-wrap
22378 msgid ""
22379 " a=`guestfish --remote run`\n"
22380 "\n"
22381 msgstr ""
22382
22383 #. type: textblock
22384 #: ../fish/guestfish.pod:1016
22385 msgid ""
22386 "Since the C<run> command produces no output on stdout, this is not useful "
22387 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
22388 "cgi?id=592910>."
22389 msgstr ""
22390
22391 #. type: =head1
22392 #: ../fish/guestfish.pod:1020
22393 msgid "PREPARED DISK IMAGES"
22394 msgstr ""
22395
22396 #. type: textblock
22397 #: ../fish/guestfish.pod:1022
22398 msgid ""
22399 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22400 "preformatted disk images that guestfish can make for you to save typing.  "
22401 "This is particularly useful for testing purposes.  This option is used "
22402 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22403 "can be mixed with I<-a>)."
22404 msgstr ""
22405
22406 #. type: textblock
22407 #: ../fish/guestfish.pod:1028
22408 msgid ""
22409 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22410 "the second and so on.  Existing files in the current directory are "
22411 "I<overwritten>."
22412 msgstr ""
22413
22414 #. type: textblock
22415 #: ../fish/guestfish.pod:1032
22416 msgid ""
22417 "The type briefly describes how the disk should be sized, partitioned, how "
22418 "filesystem(s) should be created, and how content should be added.  "
22419 "Optionally the type can be followed by extra parameters, separated by C<:> "
22420 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
22421 "allocated disk, containing a single partition, with the partition formatted "
22422 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22423 "disk instead."
22424 msgstr ""
22425
22426 #. type: textblock
22427 #: ../fish/guestfish.pod:1040
22428 msgid "To list the available types and any extra parameters they take, run:"
22429 msgstr ""
22430
22431 #. type: textblock
22432 #: ../fish/guestfish.pod:1044
22433 msgid ""
22434 "Note that the prepared filesystem is not mounted.  You would usually have to "
22435 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22436 msgstr ""
22437
22438 #. type: textblock
22439 #: ../fish/guestfish.pod:1048
22440 msgid ""
22441 "If any I<-N> or I<--new> options are given, the guest is automatically "
22442 "launched."
22443 msgstr ""
22444
22445 #. type: textblock
22446 #: ../fish/guestfish.pod:1053
22447 msgid "Create a 100MB disk with an ext4-formatted partition:"
22448 msgstr ""
22449
22450 #. type: verbatim
22451 #: ../fish/guestfish.pod:1055
22452 #, no-wrap
22453 msgid ""
22454 " guestfish -N fs:ext4\n"
22455 "\n"
22456 msgstr ""
22457
22458 #. type: textblock
22459 #: ../fish/guestfish.pod:1057
22460 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22461 msgstr ""
22462
22463 #. type: verbatim
22464 #: ../fish/guestfish.pod:1059
22465 #, no-wrap
22466 msgid ""
22467 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22468 "\n"
22469 msgstr ""
22470
22471 #. type: textblock
22472 #: ../fish/guestfish.pod:1061
22473 msgid "Create a blank 200MB disk:"
22474 msgstr ""
22475
22476 #. type: verbatim
22477 #: ../fish/guestfish.pod:1063
22478 #, no-wrap
22479 msgid ""
22480 " guestfish -N disk:200M\n"
22481 "\n"
22482 msgstr ""
22483
22484 #. type: =head1
22485 #: ../fish/guestfish.pod:1065
22486 msgid "PROGRESS BARS"
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../fish/guestfish.pod:1067
22491 msgid ""
22492 "Some (not all) long-running commands send progress notification messages as "
22493 "they are running.  Guestfish turns these messages into progress bars."
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../fish/guestfish.pod:1071
22498 msgid ""
22499 "When a command that supports progress bars takes longer than two seconds to "
22500 "run, and if progress bars are enabled, then you will see one appearing below "
22501 "the command:"
22502 msgstr ""
22503
22504 #. type: verbatim
22505 #: ../fish/guestfish.pod:1075
22506 #, no-wrap
22507 msgid ""
22508 " ><fs> copy-size /large-file /another-file 2048M\n"
22509 " / 10% [#####-----------------------------------------] 00:30\n"
22510 "\n"
22511 msgstr ""
22512
22513 #. type: textblock
22514 #: ../fish/guestfish.pod:1078
22515 msgid ""
22516 "The spinner on the left hand side moves round once for every progress "
22517 "notification received from the backend.  This is a (reasonably) golden "
22518 "assurance that the command is \"doing something\" even if the progress bar "
22519 "is not moving, because the command is able to send the progress "
22520 "notifications.  When the bar reaches 100% and the command finishes, the "
22521 "spinner disappears."
22522 msgstr ""
22523
22524 #. type: textblock
22525 #: ../fish/guestfish.pod:1085
22526 msgid ""
22527 "Progress bars are enabled by default when guestfish is used interactively.  "
22528 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22529 "and you can disable them completely using I<--no-progress-bars>."
22530 msgstr ""
22531
22532 #. type: =head1
22533 #: ../fish/guestfish.pod:1090
22534 msgid "GUESTFISH COMMANDS"
22535 msgstr ""
22536
22537 #. type: textblock
22538 #: ../fish/guestfish.pod:1092
22539 msgid ""
22540 "The commands in this section are guestfish convenience commands, in other "
22541 "words, they are not part of the L<guestfs(3)> API."
22542 msgstr ""
22543
22544 #. type: =head2
22545 #: ../fish/guestfish.pod:1095
22546 msgid "help"
22547 msgstr "help"
22548
22549 #. type: verbatim
22550 #: ../fish/guestfish.pod:1097
22551 #, no-wrap
22552 msgid ""
22553 " help\n"
22554 " help cmd\n"
22555 "\n"
22556 msgstr ""
22557 " help\n"
22558 " help команда\n"
22559 "\n"
22560
22561 #. type: textblock
22562 #: ../fish/guestfish.pod:1100
22563 msgid "Without any parameter, this provides general help."
22564 msgstr "Без параметра показує загальну довідкову інформацію."
22565
22566 #. type: textblock
22567 #: ../fish/guestfish.pod:1102
22568 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22569 msgstr ""
22570
22571 #. type: =head2
22572 #: ../fish/guestfish.pod:1104
22573 msgid "quit | exit"
22574 msgstr ""
22575
22576 #. type: textblock
22577 #: ../fish/guestfish.pod:1106
22578 msgid "This exits guestfish.  You can also use C<^D> key."
22579 msgstr ""
22580
22581 #. type: textblock
22582 #: ../fish/guestfish.pod:1108
22583 msgid "@FISH_COMMANDS@"
22584 msgstr ""
22585
22586 #. type: =head1
22587 #: ../fish/guestfish.pod:1110
22588 msgid "COMMANDS"
22589 msgstr "КОМАНДИ"
22590
22591 #. type: textblock
22592 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
22593 msgid "@ACTIONS@"
22594 msgstr "@ACTIONS@"
22595
22596 #. type: textblock
22597 #: ../fish/guestfish.pod:1116
22598 msgid ""
22599 "guestfish returns 0 if the commands completed without error, or 1 if there "
22600 "was an error."
22601 msgstr ""
22602
22603 #. type: =item
22604 #: ../fish/guestfish.pod:1123
22605 msgid "EDITOR"
22606 msgstr "РЕДАКТОР"
22607
22608 #. type: textblock
22609 #: ../fish/guestfish.pod:1125
22610 msgid ""
22611 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
22612 "C<vi>."
22613 msgstr ""
22614
22615 #. type: =item
22616 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3199
22617 msgid "FEBOOTSTRAP_KERNEL"
22618 msgstr ""
22619
22620 #. type: =item
22621 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3201
22622 msgid "FEBOOTSTRAP_MODULES"
22623 msgstr ""
22624
22625 #. type: textblock
22626 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3203
22627 msgid ""
22628 "These two environment variables allow the kernel that libguestfs uses in the "
22629 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
22630 "most recent host kernel is chosen.  For more information about kernel "
22631 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
22632 "available in febootstrap E<ge> 3.8."
22633 msgstr ""
22634
22635 #. type: =item
22636 #: ../fish/guestfish.pod:1138
22637 msgid "GUESTFISH_DISPLAY_IMAGE"
22638 msgstr ""
22639
22640 #. type: textblock
22641 #: ../fish/guestfish.pod:1140
22642 msgid ""
22643 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
22644 "If not set, it uses L<display(1)>."
22645 msgstr ""
22646
22647 #. type: =item
22648 #: ../fish/guestfish.pod:1143
22649 msgid "GUESTFISH_PID"
22650 msgstr ""
22651
22652 #. type: textblock
22653 #: ../fish/guestfish.pod:1145
22654 msgid ""
22655 "Used with the I<--remote> option to specify the remote guestfish process to "
22656 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22657 msgstr ""
22658
22659 #. type: =item
22660 #: ../fish/guestfish.pod:1149
22661 msgid "HEXEDITOR"
22662 msgstr ""
22663
22664 #. type: textblock
22665 #: ../fish/guestfish.pod:1151
22666 msgid ""
22667 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
22668 "not specified, the external L<hexedit(1)> program is used."
22669 msgstr ""
22670
22671 #. type: =item
22672 #: ../fish/guestfish.pod:1155
22673 msgid "HOME"
22674 msgstr "ДОМІВКА"
22675
22676 #. type: textblock
22677 #: ../fish/guestfish.pod:1157
22678 msgid ""
22679 "If compiled with GNU readline support, various files in the home directory "
22680 "can be used.  See L</FILES>."
22681 msgstr ""
22682
22683 #. type: =item
22684 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3209
22685 msgid "LIBGUESTFS_APPEND"
22686 msgstr ""
22687
22688 #. type: textblock
22689 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3211
22690 msgid "Pass additional options to the guest kernel."
22691 msgstr ""
22692
22693 #. type: =item
22694 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3213
22695 msgid "LIBGUESTFS_DEBUG"
22696 msgstr "LIBGUESTFS_DEBUG"
22697
22698 #. type: textblock
22699 #: ../fish/guestfish.pod:1166
22700 msgid ""
22701 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
22702 "effect as using the B<-v> option."
22703 msgstr ""
22704
22705 #. type: =item
22706 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3218
22707 msgid "LIBGUESTFS_MEMSIZE"
22708 msgstr "LIBGUESTFS_MEMSIZE"
22709
22710 #. type: textblock
22711 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3220
22712 msgid ""
22713 "Set the memory allocated to the qemu process, in megabytes.  For example:"
22714 msgstr ""
22715
22716 #. type: verbatim
22717 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3223
22718 #, no-wrap
22719 msgid ""
22720 " LIBGUESTFS_MEMSIZE=700\n"
22721 "\n"
22722 msgstr ""
22723 " LIBGUESTFS_MEMSIZE=700\n"
22724 "\n"
22725
22726 #. type: =item
22727 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3225
22728 msgid "LIBGUESTFS_PATH"
22729 msgstr ""
22730
22731 #. type: textblock
22732 #: ../fish/guestfish.pod:1178
22733 msgid ""
22734 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
22735 "the discussion of paths in L<guestfs(3)>."
22736 msgstr ""
22737
22738 #. type: =item
22739 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3230
22740 msgid "LIBGUESTFS_QEMU"
22741 msgstr ""
22742
22743 #. type: textblock
22744 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3232
22745 msgid ""
22746 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
22747 "which was found at compile time by the configure script is used."
22748 msgstr ""
22749
22750 #. type: =item
22751 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3238
22752 msgid "LIBGUESTFS_TRACE"
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../fish/guestfish.pod:1189
22757 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22758 msgstr ""
22759
22760 #. type: =item
22761 #: ../fish/guestfish.pod:1191
22762 msgid "PAGER"
22763 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
22764
22765 #. type: textblock
22766 #: ../fish/guestfish.pod:1193
22767 msgid ""
22768 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22769 "C<more>."
22770 msgstr ""
22771
22772 #. type: =item
22773 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260
22774 #: ../src/guestfs.pod:3243
22775 msgid "TMPDIR"
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3245
22780 msgid ""
22781 "Location of temporary directory, defaults to C</tmp> except for the cached "
22782 "supermin appliance which defaults to C</var/tmp>."
22783 msgstr ""
22784
22785 #. type: textblock
22786 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3248
22787 msgid ""
22788 "If libguestfs was compiled to use the supermin appliance then the real "
22789 "appliance is cached in this directory, shared between all handles belonging "
22790 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
22791 "use in case C</var/tmp> is not large enough."
22792 msgstr ""
22793
22794 #. type: =head1
22795 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22796 #: ../rescue/virt-rescue.pod:310
22797 msgid "FILES"
22798 msgstr "ФАЙЛИ"
22799
22800 #. type: =item
22801 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22802 #: ../rescue/virt-rescue.pod:314
22803 msgid "$HOME/.libguestfs-tools.rc"
22804 msgstr ""
22805
22806 #. type: =item
22807 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22808 #: ../rescue/virt-rescue.pod:316
22809 msgid "/etc/libguestfs-tools.conf"
22810 msgstr ""
22811
22812 #. type: textblock
22813 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22814 #: ../rescue/virt-rescue.pod:318
22815 msgid ""
22816 "This configuration file controls the default read-only or read-write mode "
22817 "(I<--ro> or I<--rw>)."
22818 msgstr ""
22819
22820 #. type: textblock
22821 #: ../fish/guestfish.pod:1220
22822 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22823 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
22824
22825 #. type: =item
22826 #: ../fish/guestfish.pod:1222
22827 msgid "$HOME/.guestfish"
22828 msgstr ""
22829
22830 #. type: textblock
22831 #: ../fish/guestfish.pod:1224
22832 msgid ""
22833 "If compiled with GNU readline support, then the command history is saved in "
22834 "this file."
22835 msgstr ""
22836
22837 #. type: =item
22838 #: ../fish/guestfish.pod:1227
22839 msgid "$HOME/.inputrc"
22840 msgstr ""
22841
22842 #. type: =item
22843 #: ../fish/guestfish.pod:1229
22844 msgid "/etc/inputrc"
22845 msgstr ""
22846
22847 #. type: textblock
22848 #: ../fish/guestfish.pod:1231
22849 msgid ""
22850 "If compiled with GNU readline support, then these files can be used to "
22851 "configure readline.  For further information, please see L<readline(3)/"
22852 "INITIALIZATION FILE>."
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../fish/guestfish.pod:1235
22857 msgid "To write rules which only apply to guestfish, use:"
22858 msgstr ""
22859
22860 #. type: verbatim
22861 #: ../fish/guestfish.pod:1237
22862 #, no-wrap
22863 msgid ""
22864 " $if guestfish\n"
22865 " ...\n"
22866 " $endif\n"
22867 "\n"
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../fish/guestfish.pod:1241
22872 msgid ""
22873 "Variables that you can set in inputrc that change the behaviour of guestfish "
22874 "in useful ways include:"
22875 msgstr ""
22876
22877 #. type: =item
22878 #: ../fish/guestfish.pod:1246
22879 msgid "completion-ignore-case (default: on)"
22880 msgstr ""
22881
22882 #. type: textblock
22883 #: ../fish/guestfish.pod:1248
22884 msgid ""
22885 "By default, guestfish will ignore case when tab-completing paths on the "
22886 "disk.  Use:"
22887 msgstr ""
22888
22889 #. type: verbatim
22890 #: ../fish/guestfish.pod:1251
22891 #, no-wrap
22892 msgid ""
22893 " set completion-ignore-case off\n"
22894 "\n"
22895 msgstr ""
22896
22897 #. type: textblock
22898 #: ../fish/guestfish.pod:1253
22899 msgid "to make guestfish case sensitive."
22900 msgstr ""
22901
22902 #. type: =item
22903 #: ../fish/guestfish.pod:1257
22904 msgid "test1.img"
22905 msgstr ""
22906
22907 #. type: =item
22908 #: ../fish/guestfish.pod:1259
22909 msgid "test2.img (etc)"
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../fish/guestfish.pod:1261
22914 msgid ""
22915 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22916 "will be created in the file C<test1.img> in the current directory.  The "
22917 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
22918 "the same name will be overwritten."
22919 msgstr ""
22920
22921 #. type: textblock
22922 #: ../fish/guestfish.pod:1270
22923 msgid ""
22924 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22925 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22926 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22927 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22928 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22929 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22930 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22931 msgstr ""
22932
22933 #. type: textblock
22934 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3341
22935 #: ../test-tool/libguestfs-test-tool.pod:112
22936 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
22937 msgstr ""
22938
22939 #. type: textblock
22940 #: ../fish/virt-copy-in.pod:5
22941 msgid ""
22942 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22943 msgstr ""
22944
22945 #. type: verbatim
22946 #: ../fish/virt-copy-in.pod:9
22947 #, no-wrap
22948 msgid ""
22949 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22950 "\n"
22951 msgstr ""
22952
22953 #. type: verbatim
22954 #: ../fish/virt-copy-in.pod:11
22955 #, no-wrap
22956 msgid ""
22957 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22958 "\n"
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../fish/virt-copy-in.pod:15
22963 msgid ""
22964 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22965 "causing disk corruption.  The virtual machine must be shut down before you "
22966 "use this command."
22967 msgstr ""
22968
22969 #. type: textblock
22970 #: ../fish/virt-copy-in.pod:21
22971 msgid ""
22972 "C<virt-copy-in> copies files and directories from the local disk into a "
22973 "virtual machine disk image or named libvirt domain."
22974 msgstr ""
22975
22976 #. type: textblock
22977 #: ../fish/virt-copy-in.pod:24
22978 msgid ""
22979 "You can give one of more filenames and directories on the command line.  "
22980 "Directories are copied in recursively.  The final parameter must be the "
22981 "destination directory in the disk image which must be an absolute path "
22982 "starting with a C</> character."
22983 msgstr ""
22984
22985 #. type: verbatim
22986 #: ../fish/virt-copy-in.pod:33
22987 #, no-wrap
22988 msgid ""
22989 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22990 "\n"
22991 msgstr ""
22992
22993 #. type: textblock
22994 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22995 msgid "Upload a home directory to a guest:"
22996 msgstr ""
22997
22998 #. type: verbatim
22999 #: ../fish/virt-copy-in.pod:37
23000 #, no-wrap
23001 msgid ""
23002 " virt-copy-in -d MyGuest skel /home\n"
23003 "\n"
23004 msgstr ""
23005
23006 #. type: =head1
23007 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
23008 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
23009 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
23010 msgstr ""
23011
23012 #. type: textblock
23013 #: ../fish/virt-copy-in.pod:41
23014 msgid ""
23015 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23016 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
23017 "are probably better off using guestfish directly."
23018 msgstr ""
23019
23020 #. type: textblock
23021 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
23022 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
23023 msgid ""
23024 "Since the shell script just passes options straight to guestfish, read "
23025 "L<guestfish(1)> to see the full list of options."
23026 msgstr ""
23027
23028 #. type: textblock
23029 #: ../fish/virt-copy-in.pod:52
23030 msgid ""
23031 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
23032 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
23033 msgstr ""
23034
23035 #. type: textblock
23036 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
23037 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
23038 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../fish/virt-copy-out.pod:5
23043 msgid ""
23044 "virt-copy-out - Copy files and directories out of a virtual machine disk "
23045 "image."
23046 msgstr ""
23047
23048 #. type: verbatim
23049 #: ../fish/virt-copy-out.pod:9
23050 #, no-wrap
23051 msgid ""
23052 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
23053 "\n"
23054 msgstr ""
23055
23056 #. type: verbatim
23057 #: ../fish/virt-copy-out.pod:11
23058 #, no-wrap
23059 msgid ""
23060 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
23061 "\n"
23062 msgstr ""
23063
23064 #. type: textblock
23065 #: ../fish/virt-copy-out.pod:15
23066 msgid ""
23067 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
23068 "image or named libvirt domain."
23069 msgstr ""
23070
23071 #. type: textblock
23072 #: ../fish/virt-copy-out.pod:18
23073 msgid ""
23074 "You can give one of more filenames and directories on the command line.  "
23075 "Directories are copied out recursively."
23076 msgstr ""
23077
23078 #. type: textblock
23079 #: ../fish/virt-copy-out.pod:23
23080 msgid "Download the home directories from a virtual machine:"
23081 msgstr ""
23082
23083 #. type: verbatim
23084 #: ../fish/virt-copy-out.pod:25
23085 #, no-wrap
23086 msgid ""
23087 " mkdir homes\n"
23088 " virt-copy-out -d MyGuest /home homes\n"
23089 "\n"
23090 msgstr ""
23091
23092 #. type: textblock
23093 #: ../fish/virt-copy-out.pod:30
23094 msgid ""
23095 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23096 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
23097 "are probably better off using guestfish directly."
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../fish/virt-copy-out.pod:41
23102 msgid ""
23103 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
23104 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
23105 msgstr ""
23106
23107 #. type: textblock
23108 #: ../fish/virt-tar-in.pod:5
23109 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
23110 msgstr ""
23111
23112 #. type: verbatim
23113 #: ../fish/virt-tar-in.pod:9
23114 #, no-wrap
23115 msgid ""
23116 " virt-tar-in -a disk.img data.tar /destination\n"
23117 "\n"
23118 msgstr ""
23119
23120 #. type: verbatim
23121 #: ../fish/virt-tar-in.pod:11
23122 #, no-wrap
23123 msgid ""
23124 " virt-tar-in -d domain data.tar /destination\n"
23125 "\n"
23126 msgstr ""
23127
23128 #. type: verbatim
23129 #: ../fish/virt-tar-in.pod:13
23130 #, no-wrap
23131 msgid ""
23132 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
23133 "\n"
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../fish/virt-tar-in.pod:17
23138 msgid ""
23139 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
23140 "causing disk corruption.  The virtual machine must be shut down before you "
23141 "use this command."
23142 msgstr ""
23143
23144 #. type: textblock
23145 #: ../fish/virt-tar-in.pod:23
23146 msgid ""
23147 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
23148 "image or named libvirt domain."
23149 msgstr ""
23150
23151 #. type: textblock
23152 #: ../fish/virt-tar-in.pod:26
23153 msgid ""
23154 "The first parameter is the tar file.  Use C<-> to read the tar file from "
23155 "standard input.  The second parameter is the absolute target directory to "
23156 "unpack into."
23157 msgstr ""
23158
23159 #. type: verbatim
23160 #: ../fish/virt-tar-in.pod:34
23161 #, no-wrap
23162 msgid ""
23163 " virt-tar-in -d MyGuest homes.tar /home\n"
23164 "\n"
23165 msgstr ""
23166
23167 #. type: textblock
23168 #: ../fish/virt-tar-in.pod:38
23169 msgid ""
23170 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23171 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
23172 "probably better off using guestfish directly."
23173 msgstr ""
23174
23175 #. type: textblock
23176 #: ../fish/virt-tar-in.pod:49
23177 msgid ""
23178 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23179 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
23180 "org/>."
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../fish/virt-tar-out.pod:5
23185 msgid ""
23186 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
23187 msgstr ""
23188
23189 #. type: verbatim
23190 #: ../fish/virt-tar-out.pod:9
23191 #, no-wrap
23192 msgid ""
23193 " virt-tar-out -a disk.img /dir files.tar\n"
23194 "\n"
23195 msgstr ""
23196
23197 #. type: verbatim
23198 #: ../fish/virt-tar-out.pod:11
23199 #, no-wrap
23200 msgid ""
23201 " virt-tar-out -d domain /dir files.tar\n"
23202 "\n"
23203 msgstr ""
23204
23205 #. type: verbatim
23206 #: ../fish/virt-tar-out.pod:13
23207 #, no-wrap
23208 msgid ""
23209 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
23210 "\n"
23211 msgstr ""
23212
23213 #. type: textblock
23214 #: ../fish/virt-tar-out.pod:17
23215 msgid ""
23216 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
23217 msgstr ""
23218
23219 #. type: textblock
23220 #: ../fish/virt-tar-out.pod:20
23221 msgid ""
23222 "The first parameter is the absolute path of the virtual machine directory.  "
23223 "The second parameter is the tar file to write.  Use C<-> to write to "
23224 "standard output."
23225 msgstr ""
23226
23227 #. type: textblock
23228 #: ../fish/virt-tar-out.pod:26
23229 msgid "Download the home directories from a guest:"
23230 msgstr ""
23231
23232 #. type: verbatim
23233 #: ../fish/virt-tar-out.pod:28
23234 #, no-wrap
23235 msgid ""
23236 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
23237 "\n"
23238 msgstr ""
23239
23240 #. type: textblock
23241 #: ../fish/virt-tar-out.pod:32
23242 msgid ""
23243 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23244 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
23245 "are probably better off using guestfish directly."
23246 msgstr ""
23247
23248 #. type: textblock
23249 #: ../fish/virt-tar-out.pod:43
23250 msgid ""
23251 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23252 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
23253 msgstr ""
23254
23255 #. type: textblock
23256 #: ../fuse/guestmount.pod:5
23257 msgid ""
23258 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23259 msgstr ""
23260
23261 #. type: verbatim
23262 #: ../fuse/guestmount.pod:9
23263 #, no-wrap
23264 msgid ""
23265 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23266 "\n"
23267 msgstr ""
23268
23269 #. type: verbatim
23270 #: ../fuse/guestmount.pod:11
23271 #, no-wrap
23272 msgid ""
23273 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23274 "\n"
23275 msgstr ""
23276
23277 #. type: verbatim
23278 #: ../fuse/guestmount.pod:13
23279 #, no-wrap
23280 msgid ""
23281 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23282 "\n"
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../fuse/guestmount.pod:17
23287 msgid ""
23288 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23289 "machines.  If you do this, you risk disk corruption in the VM."
23290 msgstr ""
23291
23292 #. type: textblock
23293 #: ../fuse/guestmount.pod:22
23294 msgid ""
23295 "The guestmount program can be used to mount virtual machine filesystems and "
23296 "other disk images on the host.  It uses libguestfs for access to the guest "
23297 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23298 "a mountable device."
23299 msgstr ""
23300
23301 #. type: textblock
23302 #: ../fuse/guestmount.pod:27
23303 msgid ""
23304 "Along with other options, you have to give at least one device (I<-a> "
23305 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23306 "option) or use the I<-i> inspection option or the I<--live> option.  How "
23307 "this works is better explained in the L<guestfish(1)> manual page, or by "
23308 "looking at the examples below."
23309 msgstr ""
23310
23311 #. type: textblock
23312 #: ../fuse/guestmount.pod:33
23313 msgid ""
23314 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23315 "by you, and the filesystem will not be visible to any other users unless you "
23316 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23317 "the filesystem, use the C<fusermount -u> command."
23318 msgstr ""
23319
23320 #. type: textblock
23321 #: ../fuse/guestmount.pod:41
23322 msgid ""
23323 "For a typical Windows guest which has its main filesystem on the first "
23324 "partition:"
23325 msgstr ""
23326
23327 #. type: verbatim
23328 #: ../fuse/guestmount.pod:44
23329 #, no-wrap
23330 msgid ""
23331 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23332 "\n"
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../fuse/guestmount.pod:46
23337 msgid ""
23338 "For a typical Linux guest which has a /boot filesystem on the first "
23339 "partition, and the root filesystem on a logical volume:"
23340 msgstr ""
23341
23342 #. type: verbatim
23343 #: ../fuse/guestmount.pod:49
23344 #, no-wrap
23345 msgid ""
23346 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23347 "\n"
23348 msgstr ""
23349
23350 #. type: textblock
23351 #: ../fuse/guestmount.pod:51
23352 msgid "To get libguestfs to detect guest mountpoints for you:"
23353 msgstr ""
23354
23355 #. type: verbatim
23356 #: ../fuse/guestmount.pod:53
23357 #, no-wrap
23358 msgid ""
23359 " guestmount -a guest.img -i --ro /mnt\n"
23360 "\n"
23361 msgstr ""
23362
23363 #. type: textblock
23364 #: ../fuse/guestmount.pod:55
23365 msgid "For a libvirt guest called \"Guest\" you could do:"
23366 msgstr ""
23367
23368 #. type: verbatim
23369 #: ../fuse/guestmount.pod:57
23370 #, no-wrap
23371 msgid ""
23372 " guestmount -d Guest -i --ro /mnt\n"
23373 "\n"
23374 msgstr ""
23375
23376 #. type: textblock
23377 #: ../fuse/guestmount.pod:59
23378 msgid ""
23379 "If you don't know what filesystems are contained in a guest or disk image, "
23380 "use L<virt-filesystems(1)> first:"
23381 msgstr ""
23382
23383 #. type: verbatim
23384 #: ../fuse/guestmount.pod:62
23385 #, no-wrap
23386 msgid ""
23387 " virt-filesystems MyGuest\n"
23388 "\n"
23389 msgstr ""
23390
23391 #. type: textblock
23392 #: ../fuse/guestmount.pod:64
23393 msgid ""
23394 "If you want to trace the libguestfs calls but without excessive debugging "
23395 "information, we recommend:"
23396 msgstr ""
23397
23398 #. type: verbatim
23399 #: ../fuse/guestmount.pod:67
23400 #, no-wrap
23401 msgid ""
23402 " guestmount [...] --trace /mnt\n"
23403 "\n"
23404 msgstr ""
23405
23406 #. type: textblock
23407 #: ../fuse/guestmount.pod:69
23408 msgid "If you want to debug the program, we recommend:"
23409 msgstr ""
23410
23411 #. type: verbatim
23412 #: ../fuse/guestmount.pod:71
23413 #, no-wrap
23414 msgid ""
23415 " guestmount [...] --trace --verbose /mnt\n"
23416 "\n"
23417 msgstr ""
23418
23419 #. type: =head1
23420 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
23421 #: ../resize/virt-resize.pod:627
23422 msgid "NOTES"
23423 msgstr "ПРИМІТКИ"
23424
23425 #. type: =head2
23426 #: ../fuse/guestmount.pod:75
23427 msgid "Other users cannot see the filesystem by default"
23428 msgstr ""
23429
23430 #. type: textblock
23431 #: ../fuse/guestmount.pod:77
23432 msgid ""
23433 "If you mount a filesystem as one user (eg. root), then other users will not "
23434 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
23435 "option when mounting:"
23436 msgstr ""
23437
23438 #. type: verbatim
23439 #: ../fuse/guestmount.pod:81
23440 #, no-wrap
23441 msgid ""
23442 " sudo guestmount [...] -o allow_other /mnt\n"
23443 "\n"
23444 msgstr ""
23445
23446 #. type: =head2
23447 #: ../fuse/guestmount.pod:83
23448 msgid "Enabling FUSE"
23449 msgstr ""
23450
23451 #. type: textblock
23452 #: ../fuse/guestmount.pod:85
23453 msgid ""
23454 "On some distros, you may need to add yourself to a special group (eg. "
23455 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
23456 "Debian and derivatives."
23457 msgstr ""
23458
23459 #. type: textblock
23460 #: ../fuse/guestmount.pod:89
23461 msgid ""
23462 "On other distros, no special group is required.  It is not necessary on "
23463 "Fedora or Red Hat Enterprise Linux."
23464 msgstr ""
23465
23466 #. type: textblock
23467 #: ../fuse/guestmount.pod:100
23468 msgid "Add a block device or virtual machine image."
23469 msgstr ""
23470
23471 #. type: =item
23472 #: ../fuse/guestmount.pod:123
23473 msgid "B<--dir-cache-timeout N>"
23474 msgstr "B<--dir-cache-timeout N>"
23475
23476 #. type: textblock
23477 #: ../fuse/guestmount.pod:125
23478 msgid ""
23479 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23480 "seconds.  The readdir cache [actually, there are several semi-independent "
23481 "caches] is populated after a readdir(2) call with the stat and extended "
23482 "attributes of the files in the directory, in anticipation that they will be "
23483 "requested soon after."
23484 msgstr ""
23485
23486 #. type: textblock
23487 #: ../fuse/guestmount.pod:131
23488 msgid ""
23489 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23490 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23491 "requests, only cache existing ones."
23492 msgstr ""
23493
23494 #. type: textblock
23495 #: ../fuse/guestmount.pod:151
23496 msgid ""
23497 "If you have untrusted raw-format guest disk images, you should use this "
23498 "option to specify the disk format.  This avoids a possible security problem "
23499 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
23500 "guestfs_add_drive_opts>."
23501 msgstr ""
23502
23503 #. type: =item
23504 #: ../fuse/guestmount.pod:156
23505 msgid "B<--fuse-help>"
23506 msgstr "B<--fuse-help>"
23507
23508 #. type: textblock
23509 #: ../fuse/guestmount.pod:158
23510 msgid "Display help on special FUSE options (see I<-o> below)."
23511 msgstr ""
23512
23513 #. type: textblock
23514 #: ../fuse/guestmount.pod:162
23515 msgid "Display brief help and exit."
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../fuse/guestmount.pod:186
23520 msgid ""
23521 "Mount the named partition or logical volume on the given mountpoint B<in the "
23522 "guest> (this has nothing to do with mountpoints in the host)."
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../fuse/guestmount.pod:189
23527 msgid ""
23528 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23529 "something on C</>."
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../fuse/guestmount.pod:206
23534 msgid ""
23535 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23536 "unmounted.  If you specify this option, then we don't attempt to sync the "
23537 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23538 msgstr ""
23539
23540 #. type: =item
23541 #: ../fuse/guestmount.pod:211
23542 msgid "B<-o option>"
23543 msgstr "B<-o параметр>"
23544
23545 #. type: =item
23546 #: ../fuse/guestmount.pod:213
23547 msgid "B<--option option>"
23548 msgstr "B<--option параметр>"
23549
23550 #. type: textblock
23551 #: ../fuse/guestmount.pod:215
23552 msgid "Pass extra options to FUSE."
23553 msgstr ""
23554
23555 #. type: textblock
23556 #: ../fuse/guestmount.pod:217
23557 msgid ""
23558 "To get a list of all the extra options supported by FUSE, use the command "
23559 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
23560 "of them are a good idea."
23561 msgstr ""
23562
23563 #. type: verbatim
23564 #: ../fuse/guestmount.pod:221
23565 #, no-wrap
23566 msgid ""
23567 " guestmount --fuse-help\n"
23568 "\n"
23569 msgstr ""
23570
23571 #. type: textblock
23572 #: ../fuse/guestmount.pod:223
23573 msgid "Some potentially useful FUSE options:"
23574 msgstr ""
23575
23576 #. type: =item
23577 #: ../fuse/guestmount.pod:227
23578 msgid "B<-o allow_other>"
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../fuse/guestmount.pod:229
23583 msgid "Allow other users to see the filesystem."
23584 msgstr ""
23585
23586 #. type: =item
23587 #: ../fuse/guestmount.pod:231
23588 msgid "B<-o attr_timeout=N>"
23589 msgstr "B<-o attr_timeout=N>"
23590
23591 #. type: textblock
23592 #: ../fuse/guestmount.pod:233
23593 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23594 msgstr ""
23595
23596 #. type: =item
23597 #: ../fuse/guestmount.pod:235
23598 msgid "B<-o kernel_cache>"
23599 msgstr ""
23600
23601 #. type: textblock
23602 #: ../fuse/guestmount.pod:237
23603 msgid ""
23604 "Allow the kernel to cache files (reduces the number of reads that have to go "
23605 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
23606 "afford the extra memory usage."
23607 msgstr ""
23608
23609 #. type: =item
23610 #: ../fuse/guestmount.pod:241
23611 msgid "B<-o uid=N> B<-o gid=N>"
23612 msgstr "B<-o uid=N> B<-o gid=N>"
23613
23614 #. type: textblock
23615 #: ../fuse/guestmount.pod:243
23616 msgid ""
23617 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23618 "the chosen values."
23619 msgstr ""
23620
23621 #. type: textblock
23622 #: ../fuse/guestmount.pod:252
23623 msgid ""
23624 "Add devices and mount everything read-only.  Also disallow writes and make "
23625 "the disk appear read-only to FUSE."
23626 msgstr ""
23627
23628 #. type: textblock
23629 #: ../fuse/guestmount.pod:255
23630 msgid ""
23631 "This is highly recommended if you are not going to edit the guest disk.  If "
23632 "the guest is running and this option is I<not> supplied, then there is a "
23633 "strong risk of disk corruption in the guest.  We try to prevent this from "
23634 "happening, but it is not always possible."
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
23639 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23640 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23641
23642 #. type: textblock
23643 #: ../fuse/guestmount.pod:264
23644 msgid "Enable SELinux support for the guest."
23645 msgstr ""
23646
23647 #. type: textblock
23648 #: ../fuse/guestmount.pod:270
23649 msgid "Enable verbose messages from underlying libguestfs."
23650 msgstr ""
23651
23652 #. type: textblock
23653 #: ../fuse/guestmount.pod:276
23654 msgid "Display the program version and exit."
23655 msgstr ""
23656
23657 #. type: textblock
23658 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
23659 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
23660 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23661 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23662
23663 #. type: =item
23664 #: ../fuse/guestmount.pod:289
23665 msgid "B<--trace>"
23666 msgstr "B<--trace>"
23667
23668 #. type: textblock
23669 #: ../fuse/guestmount.pod:291
23670 msgid "Trace libguestfs calls and entry into each FUSE function."
23671 msgstr ""
23672
23673 #. type: textblock
23674 #: ../fuse/guestmount.pod:293
23675 msgid "This also stops the daemon from forking into the background."
23676 msgstr ""
23677
23678 #. type: textblock
23679 #: ../fuse/guestmount.pod:319
23680 msgid ""
23681 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23682 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23683 "net/>."
23684 msgstr ""
23685 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23686 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23687 "net/>."
23688
23689 #. type: textblock
23690 #: ../fuse/guestmount.pod:334
23691 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../inspector/virt-inspector.pod:5
23696 msgid ""
23697 "virt-inspector - Display operating system version and other information "
23698 "about a virtual machine"
23699 msgstr ""
23700
23701 #. type: verbatim
23702 #: ../inspector/virt-inspector.pod:9
23703 #, no-wrap
23704 msgid ""
23705 " virt-inspector [--options] -d domname\n"
23706 "\n"
23707 msgstr ""
23708
23709 #. type: verbatim
23710 #: ../inspector/virt-inspector.pod:11
23711 #, no-wrap
23712 msgid ""
23713 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
23714 "\n"
23715 msgstr ""
23716
23717 #. type: verbatim
23718 #: ../inspector/virt-inspector.pod:15
23719 #, no-wrap
23720 msgid ""
23721 " virt-inspector domname\n"
23722 "\n"
23723 msgstr ""
23724
23725 #. type: verbatim
23726 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
23727 #, no-wrap
23728 msgid ""
23729 " virt-inspector disk.img [disk.img ...]\n"
23730 "\n"
23731 msgstr ""
23732
23733 #. type: textblock
23734 #: ../inspector/virt-inspector.pod:21
23735 msgid ""
23736 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23737 "determine the version of the operating system and other information about "
23738 "the virtual machine."
23739 msgstr ""
23740
23741 #. type: textblock
23742 #: ../inspector/virt-inspector.pod:25
23743 msgid "Virt-inspector produces XML output for feeding into other programs."
23744 msgstr ""
23745
23746 #. type: textblock
23747 #: ../inspector/virt-inspector.pod:27
23748 msgid ""
23749 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
23750 "the libvirt domain (see: C<virsh list --all>)."
23751 msgstr ""
23752
23753 #. type: textblock
23754 #: ../inspector/virt-inspector.pod:30
23755 msgid ""
23756 "You can also run virt-inspector directly on disk images from a single "
23757 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
23758 "has several block devices, in which case you should list several I<-a> "
23759 "options one after another, with the first corresponding to the guest's C</"
23760 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23761 msgstr ""
23762
23763 #. type: textblock
23764 #: ../inspector/virt-inspector.pod:37
23765 msgid ""
23766 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23767 "keys and similar."
23768 msgstr ""
23769
23770 #. type: textblock
23771 #: ../inspector/virt-inspector.pod:40
23772 msgid ""
23773 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23774 "inspect several virtual machines, you have to run virt-inspector several "
23775 "times (for example, from a shell script for-loop)."
23776 msgstr ""
23777
23778 #. type: textblock
23779 #: ../inspector/virt-inspector.pod:45
23780 msgid ""
23781 "Because virt-inspector needs direct access to guest images, it won't "
23782 "normally work over remote libvirt connections."
23783 msgstr ""
23784
23785 #. type: textblock
23786 #: ../inspector/virt-inspector.pod:48
23787 msgid ""
23788 "All of the information available from virt-inspector is also available "
23789 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
23790 "The same information can also be fetched using guestfish or via libguestfs "
23791 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23792 "WITH OTHER PROGRAMMING LANGUAGES>)."
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../inspector/virt-inspector.pod:81
23797 msgid ""
23798 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23799 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23800 "at all."
23801 msgstr ""
23802
23803 #. type: textblock
23804 #: ../inspector/virt-inspector.pod:94
23805 msgid ""
23806 "When prompting for keys and passphrases, virt-inspector normally turns "
23807 "echoing off so you cannot see what you are typing.  If you are not worried "
23808 "about Tempest attacks and there is no one else in the room you can specify "
23809 "this flag to see what you are typing."
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23814 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23815 #: ../tools/virt-win-reg.pl:144
23816 msgid ""
23817 "Specify the format of disk images given on the command line.  If this is "
23818 "omitted then the format is autodetected from the content of the disk image."
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23823 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23824 #: ../tools/virt-win-reg.pl:148
23825 msgid ""
23826 "If disk images are requested from libvirt, then this program asks libvirt "
23827 "for this information.  In this case, the value of the format parameter is "
23828 "ignored."
23829 msgstr ""
23830
23831 #. type: textblock
23832 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397
23833 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144
23834 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23835 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23836 msgid ""
23837 "If working with untrusted raw-format guest disk images, you should ensure "
23838 "the format is always specified."
23839 msgstr ""
23840
23841 #. type: =item
23842 #: ../inspector/virt-inspector.pod:135
23843 #, fuzzy
23844 #| msgid "B<--parts>"
23845 msgid "B<--xpath> query"
23846 msgstr "B<--parts>"
23847
23848 #. type: textblock
23849 #: ../inspector/virt-inspector.pod:137
23850 msgid ""
23851 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
23852 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23853 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
23854 msgstr ""
23855
23856 #. type: textblock
23857 #: ../inspector/virt-inspector.pod:146
23858 msgid "Previous versions of virt-inspector allowed you to write either:"
23859 msgstr ""
23860
23861 #. type: verbatim
23862 #: ../inspector/virt-inspector.pod:152
23863 #, no-wrap
23864 msgid ""
23865 " virt-inspector guestname\n"
23866 "\n"
23867 msgstr ""
23868
23869 #. type: =head1
23870 #: ../inspector/virt-inspector.pod:160
23871 msgid "XML FORMAT"
23872 msgstr ""
23873
23874 #. type: textblock
23875 #: ../inspector/virt-inspector.pod:162
23876 msgid ""
23877 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23878 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
23879 "just an overview."
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../inspector/virt-inspector.pod:166
23884 msgid ""
23885 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23886 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
23887 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23888 "which is vanishingly rare in real world VMs."
23889 msgstr ""
23890
23891 #. type: =head2
23892 #: ../inspector/virt-inspector.pod:171
23893 msgid "E<lt>operatingsystemE<gt>"
23894 msgstr ""
23895
23896 #. type: textblock
23897 #: ../inspector/virt-inspector.pod:173
23898 msgid ""
23899 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23900 "describe the operating system, its architecture, the descriptive \"product "
23901 "name\" string, the type of OS and so on, as in this example:"
23902 msgstr ""
23903
23904 #. type: verbatim
23905 #: ../inspector/virt-inspector.pod:177
23906 #, no-wrap
23907 msgid ""
23908 " <operatingsystems>\n"
23909 "   <operatingsystem>\n"
23910 "     <root>/dev/sda2</root>\n"
23911 "     <name>windows</name>\n"
23912 "     <arch>i386</arch>\n"
23913 "     <distro>windows</distro>\n"
23914 "     <product_name>Windows 7 Enterprise</product_name>\n"
23915 "     <product_variant>Client</product_variant>\n"
23916 "     <major_version>6</major_version>\n"
23917 "     <minor_version>1</minor_version>\n"
23918 "     <windows_systemroot>/Windows</windows_systemroot>\n"
23919 "     <format>installed</format>\n"
23920 "\n"
23921 msgstr ""
23922
23923 #. type: textblock
23924 #: ../inspector/virt-inspector.pod:190
23925 msgid ""
23926 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23927 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23928 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23929 "architecture.  The other fields are fairly self-explanatory, but because "
23930 "these fields are taken directly from the libguestfs inspection API you can "
23931 "find precise information from L<guestfs(3)/INSPECTION>."
23932 msgstr ""
23933
23934 #. type: textblock
23935 #: ../inspector/virt-inspector.pod:198
23936 msgid ""
23937 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23938 "of view of libguestfs (block devices may have completely different names "
23939 "inside the VM itself)."
23940 msgstr ""
23941
23942 #. type: =head2
23943 #: ../inspector/virt-inspector.pod:202
23944 msgid "E<lt>mountpointsE<gt>"
23945 msgstr ""
23946
23947 #. type: textblock
23948 #: ../inspector/virt-inspector.pod:204
23949 msgid ""
23950 "Un*x-like guests typically have multiple filesystems which are mounted at "
23951 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23952 "element which looks like this:"
23953 msgstr ""
23954
23955 #. type: verbatim
23956 #: ../inspector/virt-inspector.pod:208
23957 #, no-wrap
23958 msgid ""
23959 " <operatingsystems>\n"
23960 "   <operatingsystem>\n"
23961 "     ...\n"
23962 "     <mountpoints>\n"
23963 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23964 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23965 "     </mountpoints>\n"
23966 "\n"
23967 msgstr ""
23968
23969 #. type: textblock
23970 #: ../inspector/virt-inspector.pod:216
23971 msgid ""
23972 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23973 "and may have completely different names inside the guest.  Only mountable "
23974 "filesystems appear in this list, not things like swap devices."
23975 msgstr ""
23976
23977 #. type: =head2
23978 #: ../inspector/virt-inspector.pod:221
23979 msgid "E<lt>filesystemsE<gt>"
23980 msgstr ""
23981
23982 #. type: textblock
23983 #: ../inspector/virt-inspector.pod:223
23984 msgid ""
23985 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23986 "filesystems belonging to the guest, including swap and empty partitions.  "
23987 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23988 "this OS or shared with this OS and other OSes)."
23989 msgstr ""
23990
23991 #. type: textblock
23992 #: ../inspector/virt-inspector.pod:229
23993 msgid "You might see something like this:"
23994 msgstr ""
23995
23996 #. type: verbatim
23997 #: ../inspector/virt-inspector.pod:231
23998 #, no-wrap
23999 msgid ""
24000 " <operatingsystems>\n"
24001 "   <operatingsystem>\n"
24002 "     ...\n"
24003 "     <filesystems>\n"
24004 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24005 "         <type>ext4</type>\n"
24006 "         <label>Fedora-13-x86_64</label>\n"
24007 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24008 "       </filesystem>\n"
24009 "\n"
24010 msgstr ""
24011
24012 #. type: textblock
24013 #: ../inspector/virt-inspector.pod:241
24014 msgid ""
24015 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24016 "the label, and the UUID."
24017 msgstr ""
24018
24019 #. type: =head2
24020 #: ../inspector/virt-inspector.pod:244
24021 msgid "E<lt>applicationsE<gt>"
24022 msgstr ""
24023
24024 #. type: textblock
24025 #: ../inspector/virt-inspector.pod:246
24026 msgid ""
24027 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24028 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24029 "machine."
24030 msgstr ""
24031
24032 #. type: textblock
24033 #: ../inspector/virt-inspector.pod:250
24034 msgid ""
24035 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24036 "Typical values would be C<rpm> and C<deb>."
24037 msgstr ""
24038
24039 #. type: textblock
24040 #: ../inspector/virt-inspector.pod:253
24041 msgid ""
24042 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24043 "Typical values include C<yum>, C<up2date> and C<apt>"
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../inspector/virt-inspector.pod:256
24048 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24049 msgstr ""
24050
24051 #. type: verbatim
24052 #: ../inspector/virt-inspector.pod:259
24053 #, no-wrap
24054 msgid ""
24055 " <operatingsystems>\n"
24056 "   <operatingsystem>\n"
24057 "     ...\n"
24058 "     <applications>\n"
24059 "       <application>\n"
24060 "         <name>coreutils</name>\n"
24061 "         <version>8.5</version>\n"
24062 "         <release>1</release>\n"
24063 "       </application>\n"
24064 "\n"
24065 msgstr ""
24066
24067 #. type: textblock
24068 #: ../inspector/virt-inspector.pod:269
24069 msgid ""
24070 "The version and release fields may not be available for some types guests.  "
24071 "Other fields are possible, see L<guestfs(3)/"
24072 "guestfs_inspect_list_applications>."
24073 msgstr ""
24074
24075 #. type: =head2
24076 #: ../inspector/virt-inspector.pod:273
24077 msgid "E<lt>drive_mappingsE<gt>"
24078 msgstr ""
24079
24080 #. type: textblock
24081 #: ../inspector/virt-inspector.pod:275
24082 msgid ""
24083 "For operating systems like Windows which use drive letters, virt-inspector "
24084 "is able to find out how drive letters map to filesystems."
24085 msgstr ""
24086
24087 #. type: verbatim
24088 #: ../inspector/virt-inspector.pod:279
24089 #, no-wrap
24090 msgid ""
24091 " <operatingsystems>\n"
24092 "   <operatingsystem>\n"
24093 "     ...\n"
24094 "     <drive_mappings>\n"
24095 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
24096 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
24097 "     </drive_mappings>\n"
24098 "\n"
24099 msgstr ""
24100
24101 #. type: textblock
24102 #: ../inspector/virt-inspector.pod:287
24103 msgid ""
24104 "In the example above, drive C maps to the filesystem on the second partition "
24105 "on the first disk, and drive E maps to the filesystem on the first partition "
24106 "on the second disk."
24107 msgstr ""
24108
24109 #. type: textblock
24110 #: ../inspector/virt-inspector.pod:291
24111 msgid ""
24112 "Note that this only covers permanent local filesystem mappings, not things "
24113 "like network shares.  Furthermore NTFS volume mount points may not be listed "
24114 "here."
24115 msgstr ""
24116
24117 #. type: =head2
24118 #: ../inspector/virt-inspector.pod:295
24119 msgid "E<lt>iconE<gt>"
24120 msgstr ""
24121
24122 #. type: textblock
24123 #: ../inspector/virt-inspector.pod:297
24124 msgid ""
24125 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
24126 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
24127 "very large and high quality."
24128 msgstr ""
24129
24130 #. type: verbatim
24131 #: ../inspector/virt-inspector.pod:301
24132 #, no-wrap
24133 msgid ""
24134 " <operatingsystems>\n"
24135 "   <operatingsystem>\n"
24136 "     ...\n"
24137 "     <icon>\n"
24138 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
24139 "       [... many lines of base64 data ...]\n"
24140 "     </icon>\n"
24141 "\n"
24142 msgstr ""
24143
24144 #. type: textblock
24145 #: ../inspector/virt-inspector.pod:309
24146 msgid ""
24147 "To display the icon, you have to extract it and convert the base64 data back "
24148 "to a binary file.  Use an XPath query or simply an editor to extract the "
24149 "data, then use the coreutils L<base64(1)> program to do the conversion back "
24150 "to a PNG file:"
24151 msgstr ""
24152
24153 #. type: verbatim
24154 #: ../inspector/virt-inspector.pod:314
24155 #, no-wrap
24156 msgid ""
24157 " base64 -i -d < icon.data > icon.png\n"
24158 "\n"
24159 msgstr ""
24160
24161 #. type: =head2
24162 #: ../inspector/virt-inspector.pod:316
24163 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
24164 msgstr ""
24165
24166 #. type: textblock
24167 #: ../inspector/virt-inspector.pod:318
24168 msgid ""
24169 "Virt-inspector can detect some operating system installers on install disks, "
24170 "live CDs, bootable USB keys and more."
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../inspector/virt-inspector.pod:321
24175 msgid ""
24176 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
24177 "fields may be present to indicate a live CD, network installer, or one part "
24178 "of a multipart CD.  For example:"
24179 msgstr ""
24180
24181 #. type: verbatim
24182 #: ../inspector/virt-inspector.pod:325
24183 #, no-wrap
24184 msgid ""
24185 " <operatingsystems>\n"
24186 "   <operatingsystem>\n"
24187 "     <root>/dev/sda</root>\n"
24188 "     <name>linux</name>\n"
24189 "     <arch>i386</arch>\n"
24190 "     <distro>ubuntu</distro>\n"
24191 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
24192 "     <major_version>10</major_version>\n"
24193 "     <minor_version>10</minor_version>\n"
24194 "     <format>installer</format>\n"
24195 "     <live/>\n"
24196 "\n"
24197 msgstr ""
24198
24199 #. type: =head1
24200 #: ../inspector/virt-inspector.pod:337
24201 msgid "XPATH QUERIES"
24202 msgstr ""
24203
24204 #. type: textblock
24205 #: ../inspector/virt-inspector.pod:339
24206 msgid ""
24207 "Virt-inspector includes built in support for running XPath queries.  The "
24208 "reason for including XPath support directly in virt-inspector is simply that "
24209 "there are no good and widely available command line programs that can do "
24210 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
24211 "available on Red Hat Enterprise Linux."
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../inspector/virt-inspector.pod:346
24216 msgid ""
24217 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
24218 "mode, virt-inspector simply reads XML from stdin and outputs the query "
24219 "result on stdout.  All other inspection features are disabled in this mode."
24220 msgstr ""
24221
24222 #. type: verbatim
24223 #: ../inspector/virt-inspector.pod:353
24224 #, no-wrap
24225 msgid ""
24226 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
24227 " <filesystems>\n"
24228 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24229 "        <type>ext4</type>\n"
24230 " [...]\n"
24231 "\n"
24232 msgstr ""
24233
24234 #. type: verbatim
24235 #: ../inspector/virt-inspector.pod:359
24236 #, no-wrap
24237 msgid ""
24238 " $ virt-inspector -d Guest | \\\n"
24239 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24240 " ext4\n"
24241 "\n"
24242 msgstr ""
24243
24244 #. type: verbatim
24245 #: ../inspector/virt-inspector.pod:363
24246 #, no-wrap
24247 msgid ""
24248 " $ virt-inspector -d Guest | \\\n"
24249 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
24250 " [displays the guest icon, if there is one]\n"
24251 "\n"
24252 msgstr ""
24253
24254 #. type: =head1
24255 #: ../inspector/virt-inspector.pod:374
24256 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../inspector/virt-inspector.pod:376
24261 msgid ""
24262 "Early versions of libguestfs shipped with a different virt-inspector program "
24263 "written in Perl (the current version is written in C).  The XML output of "
24264 "the Perl virt-inspector was different and it could also output in other "
24265 "formats like text."
24266 msgstr ""
24267
24268 #. type: textblock
24269 #: ../inspector/virt-inspector.pod:381
24270 msgid ""
24271 "The old virt-inspector is no longer supported or shipped with libguestfs."
24272 msgstr ""
24273
24274 #. type: textblock
24275 #: ../inspector/virt-inspector.pod:384
24276 msgid ""
24277 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
24278 "versions of virt-inspector with different names:"
24279 msgstr ""
24280
24281 #. type: verbatim
24282 #: ../inspector/virt-inspector.pod:387
24283 #, no-wrap
24284 msgid ""
24285 " virt-inspector     Old Perl version.\n"
24286 " virt-inspector2    New C version.\n"
24287 "\n"
24288 msgstr ""
24289
24290 #. type: textblock
24291 #: ../inspector/virt-inspector.pod:397
24292 msgid ""
24293 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
24294 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
24295 msgstr ""
24296
24297 #. type: textblock
24298 #: ../inspector/virt-inspector.pod:414
24299 msgid "Matthew Booth L<mbooth@redhat.com>"
24300 msgstr ""
24301
24302 #. type: textblock
24303 #: ../java/examples/guestfs-java.pod:5
24304 msgid "guestfs-java - How to use libguestfs from Java"
24305 msgstr ""
24306
24307 #. type: verbatim
24308 #: ../java/examples/guestfs-java.pod:9
24309 #, no-wrap
24310 msgid ""
24311 " import com.redhat.et.libguestfs.*;\n"
24312 " \n"
24313 msgstr ""
24314
24315 #. type: verbatim
24316 #: ../java/examples/guestfs-java.pod:11
24317 #, no-wrap
24318 msgid ""
24319 " GuestFS g = new GuestFS ();\n"
24320 " g.add_drive_opts (\"disk.img\", null);\n"
24321 " g.launch ();\n"
24322 "\n"
24323 msgstr ""
24324
24325 #. type: textblock
24326 #: ../java/examples/guestfs-java.pod:17
24327 msgid ""
24328 "This manual page documents how to call libguestfs from the Java programming "
24329 "language.  This page just documents the differences from the C API and gives "
24330 "some examples.  If you are not familiar with using libguestfs, you also need "
24331 "to read L<guestfs(3)>."
24332 msgstr ""
24333
24334 #. type: =head2
24335 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
24336 msgid "CLOSING THE HANDLE"
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../java/examples/guestfs-java.pod:24
24341 msgid ""
24342 "The handle is closed when it is reaped by the garbage collector.  Because "
24343 "libguestfs handles include a lot of state, it is also possible to close (and "
24344 "hence free) them explicitly by calling the C<close> method."
24345 msgstr ""
24346
24347 #. type: =head2
24348 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
24349 #: ../python/examples/guestfs-python.pod:21
24350 #: ../ruby/examples/guestfs-ruby.pod:22
24351 msgid "EXCEPTIONS"
24352 msgstr "ВИНЯТКИ"
24353
24354 #. type: textblock
24355 #: ../java/examples/guestfs-java.pod:31
24356 msgid ""
24357 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
24358 "exception.  This has a single parameter which is the error message (a "
24359 "C<String>)."
24360 msgstr ""
24361
24362 #. type: textblock
24363 #: ../java/examples/guestfs-java.pod:35
24364 msgid "Calling any method on a closed handle raises the same exception."
24365 msgstr ""
24366
24367 #. type: textblock
24368 #: ../java/examples/guestfs-java.pod:47
24369 msgid ""
24370 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
24371 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24372 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24373 msgstr ""
24374
24375 #. type: textblock
24376 #: ../ocaml/examples/guestfs-ocaml.pod:5
24377 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
24378 msgstr ""
24379
24380 #. type: textblock
24381 #: ../ocaml/examples/guestfs-ocaml.pod:9
24382 msgid "Module style:"
24383 msgstr ""
24384
24385 #. type: verbatim
24386 #: ../ocaml/examples/guestfs-ocaml.pod:11
24387 #, no-wrap
24388 msgid ""
24389 " let g = Guestfs.create () in\n"
24390 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24391 " Guestfs.launch g;\n"
24392 "\n"
24393 msgstr ""
24394
24395 #. type: textblock
24396 #: ../ocaml/examples/guestfs-ocaml.pod:15
24397 msgid "Object-oriented style:"
24398 msgstr ""
24399
24400 #. type: verbatim
24401 #: ../ocaml/examples/guestfs-ocaml.pod:17
24402 #, no-wrap
24403 msgid ""
24404 " let g = new Guestfs.guestfs () in\n"
24405 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24406 " g#launch ();\n"
24407 "\n"
24408 msgstr ""
24409
24410 #. type: verbatim
24411 #: ../ocaml/examples/guestfs-ocaml.pod:21
24412 #, no-wrap
24413 msgid ""
24414 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
24415 "or:\n"
24416 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
24417 "\n"
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../ocaml/examples/guestfs-ocaml.pod:27
24422 msgid ""
24423 "This manual page documents how to call libguestfs from the OCaml programming "
24424 "language.  This page just documents the differences from the C API and gives "
24425 "some examples.  If you are not familiar with using libguestfs, you also need "
24426 "to read L<guestfs(3)>."
24427 msgstr ""
24428
24429 #. type: =head2
24430 #: ../ocaml/examples/guestfs-ocaml.pod:32
24431 msgid "PROGRAMMING STYLES"
24432 msgstr ""
24433
24434 #. type: textblock
24435 #: ../ocaml/examples/guestfs-ocaml.pod:34
24436 msgid ""
24437 "There are two different programming styles supported by the OCaml bindings.  "
24438 "You can use a module style, with each C function mapped to an OCaml function:"
24439 msgstr ""
24440
24441 #. type: verbatim
24442 #: ../ocaml/examples/guestfs-ocaml.pod:38
24443 #, no-wrap
24444 msgid ""
24445 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
24446 "\n"
24447 msgstr ""
24448
24449 #. type: textblock
24450 #: ../ocaml/examples/guestfs-ocaml.pod:40
24451 msgid "becomes:"
24452 msgstr ""
24453
24454 #. type: verbatim
24455 #: ../ocaml/examples/guestfs-ocaml.pod:42
24456 #, no-wrap
24457 msgid ""
24458 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
24459 "\n"
24460 msgstr ""
24461
24462 #. type: textblock
24463 #: ../ocaml/examples/guestfs-ocaml.pod:44
24464 msgid ""
24465 "Alternately you can use an object-oriented style, calling methods on the "
24466 "class C<Guestfs.guestfs>:"
24467 msgstr ""
24468
24469 #. type: verbatim
24470 #: ../ocaml/examples/guestfs-ocaml.pod:47
24471 #, no-wrap
24472 msgid ""
24473 " method set_verbose : bool -> unit\n"
24474 "\n"
24475 msgstr ""
24476
24477 #. type: textblock
24478 #: ../ocaml/examples/guestfs-ocaml.pod:49
24479 msgid ""
24480 "The object-oriented style is usually briefer, and the minor performance "
24481 "penalty isn't noticable in the general overhead of performing libguestfs "
24482 "functions."
24483 msgstr ""
24484
24485 #. type: textblock
24486 #: ../ocaml/examples/guestfs-ocaml.pod:55
24487 msgid ""
24488 "The handle is closed when it is reaped by the garbage collector.  Because "
24489 "libguestfs handles include a lot of state, it is also possible to close (and "
24490 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
24491 "method."
24492 msgstr ""
24493
24494 #. type: textblock
24495 #: ../ocaml/examples/guestfs-ocaml.pod:62
24496 msgid ""
24497 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
24498 "exception.  This has a single parameter which is the error message (a "
24499 "string)."
24500 msgstr ""
24501
24502 #. type: textblock
24503 #: ../ocaml/examples/guestfs-ocaml.pod:66
24504 msgid ""
24505 "Calling any function/method on a closed handle raises C<Guestfs."
24506 "Handle_closed>.  The single parameter is the name of the function that you "
24507 "called."
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../ocaml/examples/guestfs-ocaml.pod:80
24512 msgid ""
24513 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24514 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24515 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24516 msgstr ""
24517
24518 #. type: textblock
24519 #: ../perl/examples/guestfs-perl.pod:5
24520 msgid "guestfs-perl - How to use libguestfs from Perl"
24521 msgstr ""
24522
24523 #. type: verbatim
24524 #: ../perl/examples/guestfs-perl.pod:9
24525 #, no-wrap
24526 msgid ""
24527 " use Sys::Guestfs;\n"
24528 " \n"
24529 msgstr ""
24530
24531 #. type: verbatim
24532 #: ../perl/examples/guestfs-perl.pod:11
24533 #, no-wrap
24534 msgid ""
24535 " my $h = Sys::Guestfs->new ();\n"
24536 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
24537 " $h->launch ();\n"
24538 " $h->mount_options ('', '/dev/sda1', '/');\n"
24539 " $h->touch ('/hello');\n"
24540 " $h->sync ();\n"
24541 "\n"
24542 msgstr ""
24543
24544 #. type: textblock
24545 #: ../perl/examples/guestfs-perl.pod:20
24546 msgid ""
24547 "This manual page documents how to call libguestfs from the Perl programming "
24548 "language.  This page just documents the differences from the C API and gives "
24549 "some examples.  If you are not familiar with using libguestfs, you also need "
24550 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
24551 msgstr ""
24552
24553 #. type: =head2
24554 #: ../perl/examples/guestfs-perl.pod:26
24555 msgid "ERRORS"
24556 msgstr "ПОМИЛКИ"
24557
24558 #. type: textblock
24559 #: ../perl/examples/guestfs-perl.pod:28
24560 msgid ""
24561 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
24562 ">)."
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../perl/examples/guestfs-perl.pod:41
24567 msgid ""
24568 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
24569 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
24570 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24571 msgstr ""
24572
24573 #. type: textblock
24574 #: ../python/examples/guestfs-python.pod:5
24575 msgid "guestfs-python - How to use libguestfs from Python"
24576 msgstr ""
24577
24578 #. type: verbatim
24579 #: ../python/examples/guestfs-python.pod:9
24580 #, fuzzy, no-wrap
24581 #| msgid ""
24582 #| " guestfs_h *g = guestfs_create ();\n"
24583 #| " guestfs_add_drive_ro (g, \"disk.img\");\n"
24584 #| " guestfs_launch (g);\n"
24585 #| "\n"
24586 msgid ""
24587 " import guestfs\n"
24588 " g = guestfs.GuestFS ()\n"
24589 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
24590 " g.launch ()\n"
24591 "\n"
24592 msgstr ""
24593 " guestfs_h *g = guestfs_create ();\n"
24594 " guestfs_add_drive_ro (g, \"disk.img\");\n"
24595 " guestfs_launch (g);\n"
24596 "\n"
24597
24598 #. type: textblock
24599 #: ../python/examples/guestfs-python.pod:16
24600 msgid ""
24601 "This manual page documents how to call libguestfs from the Python "
24602 "programming language.  This page just documents the differences from the C "
24603 "API and gives some examples.  If you are not familiar with using libguestfs, "
24604 "you also need to read L<guestfs(3)>."
24605 msgstr ""
24606
24607 #. type: textblock
24608 #: ../python/examples/guestfs-python.pod:23
24609 msgid ""
24610 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
24611 "single string argument which is the error message."
24612 msgstr ""
24613
24614 #. type: =head2
24615 #: ../python/examples/guestfs-python.pod:26
24616 msgid "MORE DOCUMENTATION"
24617 msgstr ""
24618
24619 #. type: textblock
24620 #: ../python/examples/guestfs-python.pod:28
24621 msgid "Type:"
24622 msgstr "Тип:"
24623
24624 #. type: verbatim
24625 #: ../python/examples/guestfs-python.pod:30
24626 #, no-wrap
24627 msgid ""
24628 " $ python\n"
24629 " >>> import guestfs\n"
24630 " >>> help (guestfs)\n"
24631 "\n"
24632 msgstr ""
24633
24634 #. type: textblock
24635 #: ../python/examples/guestfs-python.pod:44
24636 msgid ""
24637 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24638 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
24639 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24640 msgstr ""
24641
24642 #. type: textblock
24643 #: ../rescue/virt-rescue.pod:5
24644 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24645 msgstr ""
24646
24647 #. type: verbatim
24648 #: ../rescue/virt-rescue.pod:9
24649 #, no-wrap
24650 msgid ""
24651 " virt-rescue [--options] -d domname\n"
24652 "\n"
24653 msgstr ""
24654
24655 #. type: verbatim
24656 #: ../rescue/virt-rescue.pod:11
24657 #, no-wrap
24658 msgid ""
24659 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
24660 "\n"
24661 msgstr ""
24662
24663 #. type: verbatim
24664 #: ../rescue/virt-rescue.pod:13
24665 #, fuzzy, no-wrap
24666 #| msgid ""
24667 #| " virt-filesystems --format=raw -a disk.img\n"
24668 #| "\n"
24669 msgid ""
24670 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
24671 "\n"
24672 msgstr ""
24673 " virt-filesystems --format=raw -a диск.img\n"
24674 "\n"
24675
24676 #. type: verbatim
24677 #: ../rescue/virt-rescue.pod:17
24678 #, no-wrap
24679 msgid ""
24680 " virt-rescue [--options] domname\n"
24681 "\n"
24682 msgstr ""
24683
24684 #. type: verbatim
24685 #: ../rescue/virt-rescue.pod:19
24686 #, no-wrap
24687 msgid ""
24688 " virt-rescue [--options] disk.img [disk.img ...]\n"
24689 "\n"
24690 msgstr ""
24691
24692 #. type: textblock
24693 #: ../rescue/virt-rescue.pod:23
24694 msgid ""
24695 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24696 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24697 "you from doing this, but doesn't catch all cases."
24698 msgstr ""
24699
24700 #. type: textblock
24701 #: ../rescue/virt-rescue.pod:27
24702 msgid ""
24703 "However if you use the I<--ro> (read only) option, then you can attach a "
24704 "shell to a live virtual machine.  The results might be strange or "
24705 "inconsistent at times but you won't get disk corruption."
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../rescue/virt-rescue.pod:33
24710 msgid ""
24711 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24712 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24713 "recovery tools which you can use to examine or rescue a virtual machine or "
24714 "disk image."
24715 msgstr ""
24716
24717 #. type: textblock
24718 #: ../rescue/virt-rescue.pod:38
24719 msgid ""
24720 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24721 "on disk image(s):"
24722 msgstr ""
24723
24724 #. type: verbatim
24725 #: ../rescue/virt-rescue.pod:41
24726 #, no-wrap
24727 msgid ""
24728 " virt-rescue -d GuestName\n"
24729 "\n"
24730 msgstr ""
24731
24732 #. type: verbatim
24733 #: ../rescue/virt-rescue.pod:43
24734 #, no-wrap
24735 msgid ""
24736 " virt-rescue --ro -a /path/to/disk.img\n"
24737 "\n"
24738 msgstr ""
24739
24740 #. type: verbatim
24741 #: ../rescue/virt-rescue.pod:45
24742 #, no-wrap
24743 msgid ""
24744 " virt-rescue -a /dev/sdc\n"
24745 "\n"
24746 msgstr ""
24747
24748 #. type: textblock
24749 #: ../rescue/virt-rescue.pod:47
24750 msgid "For live VMs you I<must> use the --ro option."
24751 msgstr ""
24752
24753 #. type: textblock
24754 #: ../rescue/virt-rescue.pod:49
24755 msgid ""
24756 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24757 "in an interactive bash shell where you can use many ordinary Linux "
24758 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24759 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24760 "is an empty directory called C</sysroot> where you can mount filesystems."
24761 msgstr ""
24762
24763 #. type: textblock
24764 #: ../rescue/virt-rescue.pod:56
24765 msgid ""
24766 "You can get virt-rescue to suggest mount commands for you by using the I<--"
24767 "suggest> option (in another terminal):"
24768 msgstr ""
24769
24770 #. type: verbatim
24771 #: ../rescue/virt-rescue.pod:59
24772 #, no-wrap
24773 msgid ""
24774 " $ virt-rescue --suggest -d Fedora15\n"
24775 " Inspecting the virtual machine or disk image ...\n"
24776 " \n"
24777 msgstr ""
24778
24779 #. type: verbatim
24780 #: ../rescue/virt-rescue.pod:62
24781 #, no-wrap
24782 msgid ""
24783 " This disk contains one or more operating systems.  You can use these\n"
24784 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
24785 " filesystems.\n"
24786 " \n"
24787 msgstr ""
24788
24789 #. type: verbatim
24790 #: ../rescue/virt-rescue.pod:66
24791 #, no-wrap
24792 msgid ""
24793 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
24794 " # type: linux, distro: fedora, version: 15.0\n"
24795 " # Fedora release 15 (Lovelock)\n"
24796 " \n"
24797 msgstr ""
24798
24799 #. type: verbatim
24800 #: ../rescue/virt-rescue.pod:70
24801 #, no-wrap
24802 msgid ""
24803 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
24804 " mount /dev/vda1 /sysroot/boot\n"
24805 " mount --bind /dev /sysroot/dev\n"
24806 " mount --bind /dev/pts /sysroot/dev/pts\n"
24807 " mount --bind /proc /sysroot/proc\n"
24808 " mount --bind /sys /sysroot/sys\n"
24809 "\n"
24810 msgstr ""
24811
24812 #. type: textblock
24813 #: ../rescue/virt-rescue.pod:77
24814 msgid ""
24815 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
24816 "(with L<parted(8)>) and mount them by hand:"
24817 msgstr ""
24818
24819 #. type: verbatim
24820 #: ../rescue/virt-rescue.pod:80
24821 #, no-wrap
24822 msgid ""
24823 " ><rescue> lvs\n"
24824 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24825 " lv_root vg_f15x32 -wi-a-   8.83G\n"
24826 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
24827 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
24828 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
24829 " ><rescue> ls /sysroot\n"
24830 "\n"
24831 msgstr ""
24832
24833 #. type: textblock
24834 #: ../rescue/virt-rescue.pod:88
24835 msgid ""
24836 "Another command to list available filesystems is L<virt-filesystems(1)>."
24837 msgstr ""
24838
24839 #. type: textblock
24840 #: ../rescue/virt-rescue.pod:91
24841 msgid ""
24842 "To run commands in a Linux guest (for example, grub), you should chroot into "
24843 "the /sysroot directory first:"
24844 msgstr ""
24845
24846 #. type: verbatim
24847 #: ../rescue/virt-rescue.pod:94
24848 #, no-wrap
24849 msgid ""
24850 " ><rescue> chroot /sysroot\n"
24851 "\n"
24852 msgstr ""
24853
24854 #. type: textblock
24855 #: ../rescue/virt-rescue.pod:98
24856 msgid ""
24857 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24858 "virtual machine.  For example you can use it on a blank file if you want to "
24859 "partition that file (although we would recommend using L<guestfish(1)> "
24860 "instead as it is more suitable for this purpose).  You can even use virt-"
24861 "rescue on things like SD cards."
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../rescue/virt-rescue.pod:104
24866 msgid ""
24867 "Virt-rescue does not require root.  You only need to run it as root if you "
24868 "need root to open the disk image."
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../rescue/virt-rescue.pod:107
24873 msgid ""
24874 "This tool is just designed for quick interactive hacking on a virtual "
24875 "machine.  For more structured access to a virtual machine disk image, you "
24876 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24877 "make scripted changes to guests, use L<guestfish(1)>."
24878 msgstr ""
24879
24880 #. type: =item
24881 #: ../rescue/virt-rescue.pod:131
24882 msgid "B<--append kernelopts>"
24883 msgstr "B<--append параметри_ядра>"
24884
24885 #. type: textblock
24886 #: ../rescue/virt-rescue.pod:133
24887 msgid "Pass additional options to the rescue kernel."
24888 msgstr ""
24889
24890 #. type: verbatim
24891 #: ../rescue/virt-rescue.pod:163
24892 #, no-wrap
24893 msgid ""
24894 " virt-rescue --format=raw -a disk.img\n"
24895 "\n"
24896 msgstr ""
24897
24898 #. type: verbatim
24899 #: ../rescue/virt-rescue.pod:167
24900 #, no-wrap
24901 msgid ""
24902 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24903 "\n"
24904 msgstr ""
24905
24906 #. type: =item
24907 #: ../rescue/virt-rescue.pod:176
24908 msgid "B<-m MB>"
24909 msgstr "B<-m МБ>"
24910
24911 #. type: =item
24912 #: ../rescue/virt-rescue.pod:178
24913 msgid "B<--memsize MB>"
24914 msgstr "B<--memsize МБ>"
24915
24916 #. type: textblock
24917 #: ../rescue/virt-rescue.pod:180
24918 msgid ""
24919 "Change the amount of memory allocated to the rescue system.  The default is "
24920 "set by libguestfs and is small but adequate for running system tools.  The "
24921 "occasional program might need more memory.  The parameter is specified in "
24922 "megabytes."
24923 msgstr ""
24924
24925 #. type: =item
24926 #: ../rescue/virt-rescue.pod:185
24927 msgid "B<--network>"
24928 msgstr "B<--network>"
24929
24930 #. type: textblock
24931 #: ../rescue/virt-rescue.pod:187
24932 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
24933 msgstr ""
24934
24935 #. type: textblock
24936 #: ../rescue/virt-rescue.pod:193
24937 msgid "Open the image read-only."
24938 msgstr ""
24939
24940 #. type: textblock
24941 #: ../rescue/virt-rescue.pod:203
24942 msgid ""
24943 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
24944 "SELINUX> before using this option."
24945 msgstr ""
24946
24947 #. type: =item
24948 #: ../rescue/virt-rescue.pod:206
24949 msgid "B<--smp> N"
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../rescue/virt-rescue.pod:208
24954 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24955 msgstr ""
24956
24957 #. type: =item
24958 #: ../rescue/virt-rescue.pod:210
24959 #, fuzzy
24960 #| msgid "B<--quiet>"
24961 msgid "B<--suggest>"
24962 msgstr "B<--quiet>"
24963
24964 #. type: textblock
24965 #: ../rescue/virt-rescue.pod:212
24966 msgid ""
24967 "Inspect the disk image and suggest what mount commands should be used to "
24968 "mount the disks.  You should use the I<--suggest> option in a second "
24969 "terminal, then paste the commands into another virt-rescue."
24970 msgstr ""
24971
24972 #. type: textblock
24973 #: ../rescue/virt-rescue.pod:216
24974 msgid ""
24975 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24976 "another virt-rescue is running."
24977 msgstr ""
24978
24979 #. type: textblock
24980 #: ../rescue/virt-rescue.pod:235
24981 msgid ""
24982 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24983 "are done read-write."
24984 msgstr ""
24985
24986 #. type: textblock
24987 #: ../rescue/virt-rescue.pod:248
24988 msgid "Previous versions of virt-rescue allowed you to write either:"
24989 msgstr ""
24990
24991 #. type: verbatim
24992 #: ../rescue/virt-rescue.pod:250
24993 #, no-wrap
24994 msgid ""
24995 " virt-rescue disk.img [disk.img ...]\n"
24996 "\n"
24997 msgstr ""
24998
24999 #. type: verbatim
25000 #: ../rescue/virt-rescue.pod:254
25001 #, no-wrap
25002 msgid ""
25003 " virt-rescue guestname\n"
25004 "\n"
25005 msgstr ""
25006
25007 #. type: =head1
25008 #: ../rescue/virt-rescue.pod:262
25009 msgid "NETWORK"
25010 msgstr "МЕРЕЖА"
25011
25012 #. type: textblock
25013 #: ../rescue/virt-rescue.pod:264
25014 msgid ""
25015 "Adding the I<--network> option enables QEMU user networking in the rescue "
25016 "appliance.  There are some differences between user networking and ordinary "
25017 "networking:"
25018 msgstr ""
25019
25020 #. type: =item
25021 #: ../rescue/virt-rescue.pod:270
25022 msgid "ping does not work"
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../rescue/virt-rescue.pod:272
25027 msgid ""
25028 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
25029 "send the ping packets, and because virt-rescue must be able to run as non-"
25030 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
25031 "The ping command will appear to resolve addresses but will not be able to "
25032 "send or receive any packets.  This does not mean that the network is not "
25033 "working."
25034 msgstr ""
25035
25036 #. type: =item
25037 #: ../rescue/virt-rescue.pod:279
25038 msgid "cannot receive connections"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../rescue/virt-rescue.pod:281
25043 msgid "QEMU user networking cannot receive incoming connections."
25044 msgstr ""
25045
25046 #. type: =item
25047 #: ../rescue/virt-rescue.pod:283
25048 msgid "making TCP connections"
25049 msgstr ""
25050
25051 #. type: textblock
25052 #: ../rescue/virt-rescue.pod:285
25053 msgid ""
25054 "The virt-rescue appliance needs to be small and so does not include many "
25055 "network tools.  In particular there is no L<telnet(1)> command.  You can "
25056 "make TCP connections from the shell using the magical C</dev/tcp/"
25057 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
25058 msgstr ""
25059
25060 #. type: verbatim
25061 #: ../rescue/virt-rescue.pod:290
25062 #, no-wrap
25063 msgid ""
25064 " exec 3<>/dev/tcp/redhat.com/80\n"
25065 " echo \"GET /\" >&3\n"
25066 " cat <&3\n"
25067 "\n"
25068 msgstr ""
25069
25070 #. type: textblock
25071 #: ../rescue/virt-rescue.pod:294
25072 msgid "See L<bash(1)> for more details."
25073 msgstr ""
25074
25075 #. type: textblock
25076 #: ../rescue/virt-rescue.pod:300
25077 msgid ""
25078 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
25079 "ENVIRONMENT VARIABLES> for the complete list."
25080 msgstr ""
25081
25082 #. type: textblock
25083 #: ../rescue/virt-rescue.pod:327
25084 #, fuzzy
25085 #| msgid ""
25086 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
25087 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
25088 msgid ""
25089 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
25090 "filesystems(1)>, L<http://libguestfs.org/>."
25091 msgstr ""
25092 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
25093 "tar-out(1)>, L<http://libguestfs.org/>."
25094
25095 #. type: textblock
25096 #: ../resize/virt-resize.pod:5
25097 msgid "virt-resize - Resize a virtual machine disk"
25098 msgstr ""
25099
25100 #. type: verbatim
25101 #: ../resize/virt-resize.pod:9
25102 #, no-wrap
25103 msgid ""
25104 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25105 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25106 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25107 "\n"
25108 msgstr ""
25109
25110 #. type: textblock
25111 #: ../resize/virt-resize.pod:15
25112 msgid ""
25113 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25114 "larger or smaller overall, and resizing or deleting any partitions contained "
25115 "within."
25116 msgstr ""
25117
25118 #. type: textblock
25119 #: ../resize/virt-resize.pod:19
25120 msgid ""
25121 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25122 "not> be used on live virtual machines - for consistent results, shut the "
25123 "virtual machine down before resizing it."
25124 msgstr ""
25125
25126 #. type: textblock
25127 #: ../resize/virt-resize.pod:23
25128 msgid ""
25129 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
25130 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
25131 msgstr ""
25132
25133 #. type: =item
25134 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603
25135 #: ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484
25136 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
25137 msgid "1."
25138 msgstr "1."
25139
25140 #. type: textblock
25141 #: ../resize/virt-resize.pod:33
25142 msgid ""
25143 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25144 "fill the extra 5GB of space."
25145 msgstr ""
25146
25147 #. type: verbatim
25148 #: ../resize/virt-resize.pod:36
25149 #, no-wrap
25150 msgid ""
25151 " virt-filesystems --long -h --all -a olddisk\n"
25152 " \n"
25153 msgstr ""
25154
25155 #. type: verbatim
25156 #: ../resize/virt-resize.pod:38
25157 #, no-wrap
25158 msgid ""
25159 " truncate -r olddisk newdisk\n"
25160 " truncate -s +5G newdisk\n"
25161 " \n"
25162 msgstr ""
25163
25164 #. type: verbatim
25165 #: ../resize/virt-resize.pod:41
25166 #, no-wrap
25167 msgid ""
25168 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25169 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25170 "\n"
25171 msgstr ""
25172
25173 #. type: =item
25174 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610
25175 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490
25176 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
25177 msgid "2."
25178 msgstr "2."
25179
25180 #. type: textblock
25181 #: ../resize/virt-resize.pod:46
25182 msgid ""
25183 "As above, but make the /boot partition 200MB bigger, while giving the "
25184 "remaining space to /dev/sda2:"
25185 msgstr ""
25186
25187 #. type: verbatim
25188 #: ../resize/virt-resize.pod:49
25189 #, no-wrap
25190 msgid ""
25191 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25192 "   olddisk newdisk\n"
25193 "\n"
25194 msgstr ""
25195
25196 #. type: =item
25197 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616
25198 #: ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501
25199 #: ../src/guestfs.pod:1451
25200 msgid "3."
25201 msgstr "3."
25202
25203 #. type: textblock
25204 #: ../resize/virt-resize.pod:54
25205 msgid ""
25206 "As in the first example, but expand a logical volume as the final step.  "
25207 "This is what you would typically use for Linux guests that use LVM:"
25208 msgstr ""
25209
25210 #. type: verbatim
25211 #: ../resize/virt-resize.pod:58
25212 #, no-wrap
25213 msgid ""
25214 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
25215 "   olddisk newdisk\n"
25216 "\n"
25217 msgstr ""
25218
25219 #. type: =item
25220 #: ../resize/virt-resize.pod:61
25221 msgid "4."
25222 msgstr ""
25223
25224 #. type: textblock
25225 #: ../resize/virt-resize.pod:63
25226 msgid ""
25227 "As in the first example, but the output format will be qcow2 instead of a "
25228 "raw disk:"
25229 msgstr ""
25230
25231 #. type: verbatim
25232 #: ../resize/virt-resize.pod:66
25233 #, no-wrap
25234 msgid ""
25235 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25236 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25237 "\n"
25238 msgstr ""
25239
25240 #. type: =head1
25241 #: ../resize/virt-resize.pod:71
25242 msgid "DETAILED USAGE"
25243 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
25244
25245 #. type: =head2
25246 #: ../resize/virt-resize.pod:73
25247 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25248 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
25249
25250 #. type: =item
25251 #: ../resize/virt-resize.pod:77
25252 msgid "1. Shut down the virtual machine"
25253 msgstr ""
25254
25255 #. type: =item
25256 #: ../resize/virt-resize.pod:79
25257 msgid "2. Locate input disk image"
25258 msgstr ""
25259
25260 #. type: textblock
25261 #: ../resize/virt-resize.pod:81
25262 msgid ""
25263 "Locate the input disk image (ie. the file or device on the host containing "
25264 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25265 "dumpxml> like this to find the disk image name:"
25266 msgstr ""
25267
25268 #. type: verbatim
25269 #: ../resize/virt-resize.pod:85
25270 #, no-wrap
25271 msgid ""
25272 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25273 " Found 1 nodes:\n"
25274 " -- NODE --\n"
25275 " <source dev=\"/dev/vg/lv_guest\" />\n"
25276 "\n"
25277 msgstr ""
25278
25279 #. type: =item
25280 #: ../resize/virt-resize.pod:90
25281 msgid "3. Look at current sizing"
25282 msgstr ""
25283
25284 #. type: textblock
25285 #: ../resize/virt-resize.pod:92
25286 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
25287 msgstr ""
25288
25289 #. type: verbatim
25290 #: ../resize/virt-resize.pod:95
25291 #, no-wrap
25292 msgid ""
25293 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
25294 " Name       Type       Size  Parent\n"
25295 " /dev/sda1  partition  101M  /dev/sda\n"
25296 " /dev/sda2  partition  7.9G  /dev/sda\n"
25297 " /dev/sda   device     8.0G  -\n"
25298 "\n"
25299 msgstr ""
25300
25301 #. type: textblock
25302 #: ../resize/virt-resize.pod:101
25303 msgid ""
25304 "(This example is a virtual machine with an 8 GB disk which we would like to "
25305 "expand up to 10 GB)."
25306 msgstr ""
25307
25308 #. type: =item
25309 #: ../resize/virt-resize.pod:104
25310 msgid "4. Create output disk"
25311 msgstr ""
25312
25313 #. type: textblock
25314 #: ../resize/virt-resize.pod:106
25315 msgid ""
25316 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25317 "to store the resized output disk."
25318 msgstr ""
25319
25320 #. type: textblock
25321 #: ../resize/virt-resize.pod:109
25322 msgid ""
25323 "To store the resized disk image in a file, create a file of a suitable size:"
25324 msgstr ""
25325
25326 #. type: verbatim
25327 #: ../resize/virt-resize.pod:112
25328 #, no-wrap
25329 msgid ""
25330 " # rm -f outdisk\n"
25331 " # truncate -s 10G outdisk\n"
25332 "\n"
25333 msgstr ""
25334
25335 #. type: textblock
25336 #: ../resize/virt-resize.pod:115
25337 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25338 msgstr ""
25339
25340 #. type: verbatim
25341 #: ../resize/virt-resize.pod:117
25342 #, no-wrap
25343 msgid ""
25344 " # lvcreate -L 10G -n lv_name vg_name\n"
25345 "\n"
25346 msgstr ""
25347
25348 #. type: textblock
25349 #: ../resize/virt-resize.pod:119
25350 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25351 msgstr ""
25352
25353 #. type: verbatim
25354 #: ../resize/virt-resize.pod:121
25355 #, no-wrap
25356 msgid ""
25357 " # virsh pool-list\n"
25358 " # virsh vol-create-as poolname newvol 10G\n"
25359 "\n"
25360 msgstr ""
25361
25362 #. type: =item
25363 #: ../resize/virt-resize.pod:124
25364 msgid "5. Resize"
25365 msgstr "5. Зміна розміру"
25366
25367 #. type: textblock
25368 #: ../resize/virt-resize.pod:126
25369 msgid ""
25370 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25371 "file) and the output disk.  The output disk is the one created in the "
25372 "previous step."
25373 msgstr ""
25374
25375 #. type: verbatim
25376 #: ../resize/virt-resize.pod:130
25377 #, no-wrap
25378 msgid ""
25379 " # virt-resize indisk outdisk\n"
25380 "\n"
25381 msgstr ""
25382
25383 #. type: textblock
25384 #: ../resize/virt-resize.pod:132
25385 msgid ""
25386 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25387 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25388 "larger, then an extra, empty partition is created at the end of the disk "
25389 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25390 "error."
25391 msgstr ""
25392
25393 #. type: textblock
25394 #: ../resize/virt-resize.pod:138
25395 msgid ""
25396 "More realistically you'd want to expand existing partitions in the disk "
25397 "image by passing extra options (for the full list see the L</OPTIONS> "
25398 "section below)."
25399 msgstr ""
25400
25401 #. type: textblock
25402 #: ../resize/virt-resize.pod:142
25403 msgid ""
25404 "L</--expand> is the most useful option.  It expands the named partition "
25405 "within the disk to fill any extra space:"
25406 msgstr ""
25407
25408 #. type: verbatim
25409 #: ../resize/virt-resize.pod:145
25410 #, no-wrap
25411 msgid ""
25412 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25413 "\n"
25414 msgstr ""
25415
25416 #. type: textblock
25417 #: ../resize/virt-resize.pod:147
25418 msgid ""
25419 "(In this case, an extra partition is I<not> created at the end of the disk, "
25420 "because there will be no unused space)."
25421 msgstr ""
25422
25423 #. type: textblock
25424 #: ../resize/virt-resize.pod:150
25425 msgid ""
25426 "L</--resize> is the other commonly used option.  The following would "
25427 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25428 "rest of the available space:"
25429 msgstr ""
25430
25431 #. type: verbatim
25432 #: ../resize/virt-resize.pod:154
25433 #, no-wrap
25434 msgid ""
25435 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25436 "     indisk outdisk\n"
25437 "\n"
25438 msgstr ""
25439
25440 #. type: textblock
25441 #: ../resize/virt-resize.pod:157
25442 msgid ""
25443 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25444 "if virt-resize knows how, it will resize the contents, the equivalent of "
25445 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
25446 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
25447 "filesystems, so you would have to online resize them after booting the guest."
25448 msgstr ""
25449
25450 #. type: textblock
25451 #: ../resize/virt-resize.pod:164
25452 msgid "Other options are covered below."
25453 msgstr ""
25454
25455 #. type: =item
25456 #: ../resize/virt-resize.pod:166
25457 msgid "6. Test"
25458 msgstr "6. Перевірка"
25459
25460 #. type: textblock
25461 #: ../resize/virt-resize.pod:168
25462 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25463 msgstr ""
25464
25465 #. type: textblock
25466 #: ../resize/virt-resize.pod:170
25467 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25468 msgstr ""
25469
25470 #. type: verbatim
25471 #: ../resize/virt-resize.pod:172
25472 #, no-wrap
25473 msgid ""
25474 " # virsh edit guestname\n"
25475 "\n"
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../resize/virt-resize.pod:174
25480 msgid ""
25481 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25482 "html#elementsDisks>"
25483 msgstr ""
25484
25485 #. type: textblock
25486 #: ../resize/virt-resize.pod:177
25487 msgid "Then start up the domain with the new, resized disk:"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../resize/virt-resize.pod:179
25492 #, no-wrap
25493 msgid ""
25494 " # virsh start guestname\n"
25495 "\n"
25496 msgstr ""
25497
25498 #. type: textblock
25499 #: ../resize/virt-resize.pod:181
25500 msgid ""
25501 "and check that it still works.  See also the L</NOTES> section below for "
25502 "additional information."
25503 msgstr ""
25504
25505 #. type: =item
25506 #: ../resize/virt-resize.pod:184
25507 msgid "7. Resize LVs etc inside the guest"
25508 msgstr ""
25509
25510 #. type: textblock
25511 #: ../resize/virt-resize.pod:186
25512 msgid "(This can also be done offline using L<guestfish(1)>)"
25513 msgstr ""
25514
25515 #. type: textblock
25516 #: ../resize/virt-resize.pod:188
25517 msgid ""
25518 "Once the guest has booted you should see the new space available, at least "
25519 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25520 "may need to resize LVs inside PVs, and also resize filesystem types that "
25521 "virt-resize does not know how to expand."
25522 msgstr ""
25523
25524 #. type: =head2
25525 #: ../resize/virt-resize.pod:195
25526 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25527 msgstr ""
25528
25529 #. type: textblock
25530 #: ../resize/virt-resize.pod:197
25531 msgid ""
25532 "Shrinking is somewhat more complex than expanding, and only an overview is "
25533 "given here."
25534 msgstr ""
25535
25536 #. type: textblock
25537 #: ../resize/virt-resize.pod:200
25538 msgid ""
25539 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25540 "filesystems).  The user has to shrink content before passing the disk image "
25541 "to virt-resize, and virt-resize will check that the content has been shrunk "
25542 "properly."
25543 msgstr ""
25544
25545 #. type: textblock
25546 #: ../resize/virt-resize.pod:205
25547 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../resize/virt-resize.pod:207
25552 msgid ""
25553 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25554 "steps 3 and 4 above to allocate a new disk image."
25555 msgstr ""
25556
25557 #. type: textblock
25558 #: ../resize/virt-resize.pod:210
25559 msgid ""
25560 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
25561 msgstr ""
25562
25563 #. type: =head2
25564 #: ../resize/virt-resize.pod:213
25565 msgid "IGNORING OR DELETING PARTITIONS"
25566 msgstr ""
25567
25568 #. type: textblock
25569 #: ../resize/virt-resize.pod:215
25570 msgid ""
25571 "virt-resize also gives a convenient way to ignore or delete partitions when "
25572 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25573 "up the copy where you don't care about the existing contents of a "
25574 "partition.  Deleting a partition removes it completely, but note that it "
25575 "also renumbers any partitions after the one which is deleted, which can "
25576 "leave some guests unbootable."
25577 msgstr ""
25578
25579 #. type: =head2
25580 #: ../resize/virt-resize.pod:222
25581 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25582 msgstr ""
25583
25584 #. type: textblock
25585 #: ../resize/virt-resize.pod:224
25586 msgid ""
25587 "If the input disk is in qcow2 format, then you may prefer that the output is "
25588 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
25589 "the fly.  The output format is simply determined by the format of the empty "
25590 "output container that you provide.  Thus to create qcow2 output, use:"
25591 msgstr ""
25592
25593 #. type: verbatim
25594 #: ../resize/virt-resize.pod:230
25595 #, no-wrap
25596 msgid ""
25597 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25598 "\n"
25599 msgstr ""
25600
25601 #. type: textblock
25602 #: ../resize/virt-resize.pod:232
25603 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../resize/virt-resize.pod:234
25608 msgid "Similarly, to get non-sparse raw output use:"
25609 msgstr ""
25610
25611 #. type: verbatim
25612 #: ../resize/virt-resize.pod:236
25613 #, no-wrap
25614 msgid ""
25615 " fallocate -l size outdisk\n"
25616 "\n"
25617 msgstr ""
25618
25619 #. type: textblock
25620 #: ../resize/virt-resize.pod:238
25621 msgid ""
25622 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
25623 "dev/zero of=outdisk bs=1M count=..>)"
25624 msgstr ""
25625
25626 #. type: =head2
25627 #: ../resize/virt-resize.pod:241
25628 msgid "LOGICAL PARTITIONS"
25629 msgstr ""
25630
25631 #. type: textblock
25632 #: ../resize/virt-resize.pod:243
25633 msgid ""
25634 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
25635 "tables) cannot be resized."
25636 msgstr ""
25637
25638 #. type: textblock
25639 #: ../resize/virt-resize.pod:246
25640 msgid ""
25641 "To understand what is going on, firstly one of the four partitions C</dev/"
25642 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
25643 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
25644 "type."
25645 msgstr ""
25646
25647 #. type: textblock
25648 #: ../resize/virt-resize.pod:251
25649 msgid "Logical partitions live inside the extended partition."
25650 msgstr ""
25651
25652 #. type: textblock
25653 #: ../resize/virt-resize.pod:253
25654 msgid ""
25655 "The extended partition can be expanded, but not shrunk (unless you force it, "
25656 "which is not advisable).  When the extended partition is copied across, all "
25657 "the logical partitions contained inside are copied over implicitly.  Virt-"
25658 "resize does not look inside the extended partition, so it copies the logical "
25659 "partitions blindly."
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../resize/virt-resize.pod:259
25664 msgid ""
25665 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
25666 "line.  Doing so will give an error."
25667 msgstr ""
25668
25669 #. type: textblock
25670 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
25671 msgid "Display help."
25672 msgstr ""
25673
25674 #. type: =item
25675 #: ../resize/virt-resize.pod:270
25676 msgid "B<--align-first auto>"
25677 msgstr ""
25678
25679 #. type: =item
25680 #: ../resize/virt-resize.pod:272
25681 msgid "B<--align-first never>"
25682 msgstr ""
25683
25684 #. type: =item
25685 #: ../resize/virt-resize.pod:274
25686 msgid "B<--align-first always>"
25687 msgstr ""
25688
25689 #. type: textblock
25690 #: ../resize/virt-resize.pod:276
25691 msgid ""
25692 "Align the first partition for improved performance (see also the I<--"
25693 "alignment> option)."
25694 msgstr ""
25695
25696 #. type: textblock
25697 #: ../resize/virt-resize.pod:279
25698 msgid ""
25699 "The default is I<--align-first auto> which only aligns the first partition "
25700 "if it is safe to do so.  That is, only when we know how to fix the "
25701 "bootloader automatically, and at the moment that can only be done for "
25702 "Windows guests."
25703 msgstr ""
25704
25705 #. type: textblock
25706 #: ../resize/virt-resize.pod:284
25707 msgid ""
25708 "I<--align-first never> means we never move the first partition.  This is the "
25709 "safest option.  Try this if the guest does not boot after resizing."
25710 msgstr ""
25711
25712 #. type: textblock
25713 #: ../resize/virt-resize.pod:288
25714 msgid ""
25715 "I<--align-first always> means we always align the first partition (if it "
25716 "needs to be aligned).  For some guests this will break the bootloader, "
25717 "making the guest unbootable."
25718 msgstr ""
25719
25720 #. type: =item
25721 #: ../resize/virt-resize.pod:292
25722 msgid "B<--alignment N>"
25723 msgstr ""
25724
25725 #. type: textblock
25726 #: ../resize/virt-resize.pod:294
25727 msgid ""
25728 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
25729 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
25730 msgstr ""
25731
25732 #. type: textblock
25733 #: ../resize/virt-resize.pod:298
25734 msgid ""
25735 "Assuming 512 byte sector size inside the guest, here are some suitable "
25736 "values for this:"
25737 msgstr ""
25738
25739 #. type: =item
25740 #: ../resize/virt-resize.pod:303
25741 msgid "I<--alignment 1> (512 bytes)"
25742 msgstr ""
25743
25744 #. type: textblock
25745 #: ../resize/virt-resize.pod:305
25746 msgid ""
25747 "The partitions would be packed together as closely as possible, but would be "
25748 "completely unaligned.  In some cases this can cause very poor performance.  "
25749 "See L<virt-alignment-scan(1)> for further details."
25750 msgstr ""
25751
25752 #. type: =item
25753 #: ../resize/virt-resize.pod:309
25754 msgid "I<--alignment 8> (4K)"
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../resize/virt-resize.pod:311
25759 msgid ""
25760 "This would be the minimum acceptable alignment for reasonable performance on "
25761 "modern hosts."
25762 msgstr ""
25763
25764 #. type: =item
25765 #: ../resize/virt-resize.pod:314
25766 msgid "I<--alignment 128> (64K)"
25767 msgstr ""
25768
25769 #. type: textblock
25770 #: ../resize/virt-resize.pod:316
25771 msgid ""
25772 "This alignment provides good performance when the host is using high end "
25773 "network storage."
25774 msgstr ""
25775
25776 #. type: =item
25777 #: ../resize/virt-resize.pod:319
25778 msgid "I<--alignment 2048> (1M)"
25779 msgstr ""
25780
25781 #. type: textblock
25782 #: ../resize/virt-resize.pod:321
25783 msgid ""
25784 "This is the standard alignment used by all newly installed guests since "
25785 "around 2008."
25786 msgstr ""
25787
25788 #. type: =item
25789 #: ../resize/virt-resize.pod:326
25790 msgid "B<-d>"
25791 msgstr "B<-d>"
25792
25793 #. type: =item
25794 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25795 #: ../tools/virt-win-reg.pl:120
25796 msgid "B<--debug>"
25797 msgstr "B<--debug>"
25798
25799 #. type: textblock
25800 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25801 msgid "Enable debugging messages."
25802 msgstr ""
25803
25804 #. type: =item
25805 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
25806 #, fuzzy
25807 #| msgid "B<--debug>"
25808 msgid "B<--debug-gc>"
25809 msgstr "B<--debug>"
25810
25811 #. type: textblock
25812 #: ../resize/virt-resize.pod:334
25813 msgid ""
25814 "Debug garbage collection and memory allocation.  This is only useful when "
25815 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
25816 msgstr ""
25817
25818 #. type: =item
25819 #: ../resize/virt-resize.pod:338
25820 msgid "B<--delete part>"
25821 msgstr "B<--delete розділ>"
25822
25823 #. type: textblock
25824 #: ../resize/virt-resize.pod:340
25825 msgid ""
25826 "Delete the named partition.  It would be more accurate to describe this as "
25827 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25828 "the original disk image is left intact."
25829 msgstr ""
25830
25831 #. type: textblock
25832 #: ../resize/virt-resize.pod:344
25833 msgid ""
25834 "Note that when you delete a partition, then anything contained in the "
25835 "partition is also deleted.  Furthermore, this causes any partitions that "
25836 "come after to be I<renumbered>, which can easily make your guest unbootable."
25837 msgstr ""
25838
25839 #. type: textblock
25840 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
25841 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
25842 msgid "You can give this option multiple times."
25843 msgstr ""
25844
25845 #. type: =item
25846 #: ../resize/virt-resize.pod:351
25847 msgid "B<--expand part>"
25848 msgstr "B<--expand розділ>"
25849
25850 #. type: textblock
25851 #: ../resize/virt-resize.pod:353
25852 msgid ""
25853 "Expand the named partition so it uses up all extra space (space left over "
25854 "after any other resize changes that you request have been done)."
25855 msgstr ""
25856
25857 #. type: textblock
25858 #: ../resize/virt-resize.pod:356
25859 msgid ""
25860 "If virt-resize knows how, it will expand the direct content of the "
25861 "partition.  For example, if the partition is an LVM PV, it will expand the "
25862 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25863 "content it doesn't know about alone."
25864 msgstr ""
25865
25866 #. type: textblock
25867 #: ../resize/virt-resize.pod:361
25868 msgid "Currently virt-resize can resize:"
25869 msgstr ""
25870
25871 #. type: textblock
25872 #: ../resize/virt-resize.pod:367
25873 msgid "ext2, ext3 and ext4 filesystems."
25874 msgstr ""
25875
25876 #. type: textblock
25877 #: ../resize/virt-resize.pod:371
25878 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25879 msgstr ""
25880
25881 #. type: textblock
25882 #: ../resize/virt-resize.pod:373
25883 msgid ""
25884 "The filesystem must have been shut down consistently last time it was used.  "
25885 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25886 "consistency check, so at the first boot after resizing Windows will check "
25887 "the disk."
25888 msgstr ""
25889
25890 #. type: textblock
25891 #: ../resize/virt-resize.pod:380
25892 msgid ""
25893 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
25894 "inside the PV, but see the I<--LV-expand> option.  The user could also "
25895 "resize LVs as desired after boot."
25896 msgstr ""
25897
25898 #. type: textblock
25899 #: ../resize/virt-resize.pod:386
25900 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25901 msgstr ""
25902
25903 #. type: textblock
25904 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
25905 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25906 msgstr ""
25907
25908 #. type: =item
25909 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137
25910 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25911 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25912 msgid "B<--format> raw"
25913 msgstr "B<--format> raw"
25914
25915 #. type: textblock
25916 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
25917 msgid ""
25918 "Specify the format of the input disk image.  If this flag is not given then "
25919 "it is auto-detected from the image itself."
25920 msgstr ""
25921
25922 #. type: textblock
25923 #: ../resize/virt-resize.pod:400
25924 msgid ""
25925 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25926 "AND NON-SPARSE RAW FORMATS>."
25927 msgstr ""
25928
25929 #. type: =item
25930 #: ../resize/virt-resize.pod:403
25931 msgid "B<--ignore part>"
25932 msgstr "B<--ignore розділ>"
25933
25934 #. type: textblock
25935 #: ../resize/virt-resize.pod:405
25936 msgid ""
25937 "Ignore the named partition.  Effectively this means the partition is "
25938 "allocated on the destination disk, but the content is not copied across from "
25939 "the source disk.  The content of the partition will be blank (all zero "
25940 "bytes)."
25941 msgstr ""
25942
25943 #. type: =item
25944 #: ../resize/virt-resize.pod:412
25945 msgid "B<--LV-expand logvol>"
25946 msgstr "B<--LV-expand логічний_том>"
25947
25948 #. type: textblock
25949 #: ../resize/virt-resize.pod:414
25950 msgid ""
25951 "This takes the logical volume and, as a final step, expands it to fill all "
25952 "the space available in its volume group.  A typical usage, assuming a Linux "
25953 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25954 "lv_root> would be:"
25955 msgstr ""
25956
25957 #. type: verbatim
25958 #: ../resize/virt-resize.pod:419
25959 #, no-wrap
25960 msgid ""
25961 " virt-resize indisk outdisk \\\n"
25962 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25963 "\n"
25964 msgstr ""
25965
25966 #. type: textblock
25967 #: ../resize/virt-resize.pod:422
25968 msgid ""
25969 "This would first expand the partition (and PV), and then expand the root "
25970 "device to fill the extra space in the PV."
25971 msgstr ""
25972
25973 #. type: textblock
25974 #: ../resize/virt-resize.pod:425
25975 msgid ""
25976 "The contents of the LV are also resized if virt-resize knows how to do "
25977 "that.  You can stop virt-resize from trying to expand the content by using "
25978 "the option I<--no-expand-content>."
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../resize/virt-resize.pod:429
25983 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25984 msgstr ""
25985
25986 #. type: textblock
25987 #: ../resize/virt-resize.pod:431
25988 msgid ""
25989 "You can give this option multiple times, I<but> it doesn't make sense to do "
25990 "this unless the logical volumes you specify are all in different volume "
25991 "groups."
25992 msgstr ""
25993
25994 #. type: =item
25995 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
25996 msgid "B<--machine-readable>"
25997 msgstr ""
25998
25999 #. type: textblock
26000 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
26001 msgid ""
26002 "This option is used to make the output more machine friendly when being "
26003 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
26004 msgstr ""
26005
26006 #. type: =item
26007 #: ../resize/virt-resize.pod:443
26008 msgid "B<--dryrun>"
26009 msgstr "B<--dryrun>"
26010
26011 #. type: textblock
26012 #: ../resize/virt-resize.pod:445
26013 msgid "Print a summary of what would be done, but don't do anything."
26014 msgstr ""
26015
26016 #. type: =item
26017 #: ../resize/virt-resize.pod:447
26018 msgid "B<--no-copy-boot-loader>"
26019 msgstr "B<--no-copy-boot-loader>"
26020
26021 #. type: textblock
26022 #: ../resize/virt-resize.pod:449
26023 msgid ""
26024 "By default, virt-resize copies over some sectors at the start of the disk "
26025 "(up to the beginning of the first partition).  Commonly these sectors "
26026 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26027 "in order for the guest to boot correctly."
26028 msgstr ""
26029
26030 #. type: textblock
26031 #: ../resize/virt-resize.pod:454
26032 msgid ""
26033 "If you specify this flag, then this initial copy is not done.  You may need "
26034 "to reinstall the boot loader in this case."
26035 msgstr ""
26036
26037 #. type: =item
26038 #: ../resize/virt-resize.pod:457
26039 msgid "B<--no-extra-partition>"
26040 msgstr "B<--no-extra-partition>"
26041
26042 #. type: textblock
26043 #: ../resize/virt-resize.pod:459
26044 msgid ""
26045 "By default, virt-resize creates an extra partition if there is any extra, "
26046 "unused space after all resizing has happened.  Use this option to prevent "
26047 "the extra partition from being created.  If you do this then the extra space "
26048 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26049 "tool in the guest."
26050 msgstr ""
26051
26052 #. type: textblock
26053 #: ../resize/virt-resize.pod:465
26054 msgid ""
26055 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26056 "will be created."
26057 msgstr ""
26058
26059 #. type: =item
26060 #: ../resize/virt-resize.pod:468
26061 msgid "B<--no-expand-content>"
26062 msgstr "B<--no-expand-content>"
26063
26064 #. type: textblock
26065 #: ../resize/virt-resize.pod:470
26066 msgid ""
26067 "By default, virt-resize will try to expand the direct contents of "
26068 "partitions, if it knows how (see I<--expand> option above)."
26069 msgstr ""
26070
26071 #. type: textblock
26072 #: ../resize/virt-resize.pod:473
26073 msgid ""
26074 "If you give the I<--no-expand-content> option then virt-resize will not "
26075 "attempt this."
26076 msgstr ""
26077
26078 #. type: =item
26079 #: ../resize/virt-resize.pod:476
26080 msgid "B<--ntfsresize-force>"
26081 msgstr "B<--ntfsresize-force>"
26082
26083 #. type: textblock
26084 #: ../resize/virt-resize.pod:478
26085 msgid ""
26086 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
26087 "the NTFS disk is marked as needing a consistency check.  You have to use "
26088 "this option if you want to resize a Windows guest multiple times without "
26089 "booting into Windows between each resize."
26090 msgstr ""
26091
26092 #. type: =item
26093 #: ../resize/virt-resize.pod:484
26094 msgid "B<--output-format> raw"
26095 msgstr "B<--output-format> raw"
26096
26097 #. type: textblock
26098 #: ../resize/virt-resize.pod:486
26099 msgid ""
26100 "Specify the format of the output disk image.  If this flag is not given then "
26101 "it is auto-detected from the image itself."
26102 msgstr ""
26103
26104 #. type: textblock
26105 #: ../resize/virt-resize.pod:492
26106 msgid ""
26107 "Note that this option I<does not create> the output format.  This option "
26108 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
26109 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
26110 "SPARSE RAW FORMATS>."
26111 msgstr ""
26112
26113 #. type: textblock
26114 #: ../resize/virt-resize.pod:501
26115 msgid "Don't print the summary."
26116 msgstr ""
26117
26118 #. type: =item
26119 #: ../resize/virt-resize.pod:503
26120 msgid "B<--resize part=size>"
26121 msgstr "B<--resize розділ=розмір>"
26122
26123 #. type: textblock
26124 #: ../resize/virt-resize.pod:505
26125 msgid ""
26126 "Resize the named partition (expanding or shrinking it) so that it has the "
26127 "given size."
26128 msgstr ""
26129
26130 #. type: textblock
26131 #: ../resize/virt-resize.pod:508
26132 msgid ""
26133 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
26134 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
26135 "size; or as a relative number or percentage.  For example:"
26136 msgstr ""
26137
26138 #. type: verbatim
26139 #: ../resize/virt-resize.pod:514
26140 #, no-wrap
26141 msgid ""
26142 " --resize /dev/sda2=10G\n"
26143 "\n"
26144 msgstr ""
26145
26146 #. type: verbatim
26147 #: ../resize/virt-resize.pod:516
26148 #, no-wrap
26149 msgid ""
26150 " --resize /dev/sda4=90%\n"
26151 "\n"
26152 msgstr ""
26153
26154 #. type: verbatim
26155 #: ../resize/virt-resize.pod:518
26156 #, no-wrap
26157 msgid ""
26158 " --resize /dev/sda2=+1G\n"
26159 "\n"
26160 msgstr ""
26161
26162 #. type: verbatim
26163 #: ../resize/virt-resize.pod:520
26164 #, no-wrap
26165 msgid ""
26166 " --resize /dev/sda2=-200M\n"
26167 "\n"
26168 msgstr ""
26169
26170 #. type: verbatim
26171 #: ../resize/virt-resize.pod:522
26172 #, no-wrap
26173 msgid ""
26174 " --resize /dev/sda1=+128K\n"
26175 "\n"
26176 msgstr ""
26177
26178 #. type: verbatim
26179 #: ../resize/virt-resize.pod:524
26180 #, no-wrap
26181 msgid ""
26182 " --resize /dev/sda1=+10%\n"
26183 "\n"
26184 msgstr ""
26185
26186 #. type: verbatim
26187 #: ../resize/virt-resize.pod:526
26188 #, no-wrap
26189 msgid ""
26190 " --resize /dev/sda1=-10%\n"
26191 "\n"
26192 msgstr ""
26193
26194 #. type: textblock
26195 #: ../resize/virt-resize.pod:528
26196 msgid ""
26197 "You can increase the size of any partition.  Virt-resize will expand the "
26198 "direct content of the partition if it knows how (see I<--expand> below)."
26199 msgstr ""
26200
26201 #. type: textblock
26202 #: ../resize/virt-resize.pod:532
26203 msgid ""
26204 "You can only I<decrease> the size of partitions that contain filesystems or "
26205 "PVs which have already been shrunk.  Virt-resize will check this has been "
26206 "done before proceeding, or else will print an error (see also I<--resize-"
26207 "force>)."
26208 msgstr ""
26209
26210 #. type: =item
26211 #: ../resize/virt-resize.pod:539
26212 msgid "B<--resize-force part=size>"
26213 msgstr "B<--resize-force розділ=розмір>"
26214
26215 #. type: textblock
26216 #: ../resize/virt-resize.pod:541
26217 msgid ""
26218 "This is the same as I<--resize> except that it will let you decrease the "
26219 "size of any partition.  Generally this means you will lose any data which "
26220 "was at the end of the partition you shrink, but you may not care about that "
26221 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26222 "as a swap partition)."
26223 msgstr ""
26224
26225 #. type: textblock
26226 #: ../resize/virt-resize.pod:547
26227 msgid "See also the I<--ignore> option."
26228 msgstr ""
26229
26230 #. type: =item
26231 #: ../resize/virt-resize.pod:549
26232 msgid "B<--shrink part>"
26233 msgstr "B<--shrink розділ>"
26234
26235 #. type: textblock
26236 #: ../resize/virt-resize.pod:551
26237 msgid ""
26238 "Shrink the named partition until the overall disk image fits in the "
26239 "destination.  The named partition B<must> contain a filesystem or PV which "
26240 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26241 "online tools).  Virt-resize will check this and give an error if it has not "
26242 "been done."
26243 msgstr ""
26244
26245 #. type: textblock
26246 #: ../resize/virt-resize.pod:557
26247 msgid ""
26248 "The amount by which the overall disk must be shrunk (after carrying out all "
26249 "other operations requested by the user) is called the \"deficit\".  For "
26250 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26251 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26252 "would give an error unless the user specified a partition to shrink and that "
26253 "partition had more than a gigabyte of free space."
26254 msgstr ""
26255
26256 #. type: =head1
26257 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
26258 msgid "MACHINE READABLE OUTPUT"
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../resize/virt-resize.pod:577
26263 msgid ""
26264 "The I<--machine-readable> option can be used to make the output more machine "
26265 "friendly, which is useful when calling virt-resize from other programs, GUIs "
26266 "etc."
26267 msgstr ""
26268
26269 #. type: textblock
26270 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
26271 msgid "There are two ways to use this option."
26272 msgstr ""
26273
26274 #. type: textblock
26275 #: ../resize/virt-resize.pod:583
26276 msgid ""
26277 "Firstly use the option on its own to query the capabilities of the virt-"
26278 "resize binary.  Typical output looks like this:"
26279 msgstr ""
26280
26281 #. type: verbatim
26282 #: ../resize/virt-resize.pod:586
26283 #, no-wrap
26284 msgid ""
26285 " $ virt-resize --machine-readable\n"
26286 " virt-resize\n"
26287 " ntfsresize-force\n"
26288 " 32bitok\n"
26289 " ntfs\n"
26290 " btrfs\n"
26291 "\n"
26292 msgstr ""
26293
26294 #. type: textblock
26295 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
26296 msgid ""
26297 "A list of features is printed, one per line, and the program exits with "
26298 "status 0."
26299 msgstr ""
26300
26301 #. type: textblock
26302 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
26303 msgid ""
26304 "Secondly use the option in conjunction with other options to make the "
26305 "regular program output more machine friendly."
26306 msgstr ""
26307
26308 #. type: textblock
26309 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
26310 msgid "At the moment this means:"
26311 msgstr ""
26312
26313 #. type: textblock
26314 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
26315 msgid ""
26316 "Progress bar messages can be parsed from stdout by looking for this regular "
26317 "expression:"
26318 msgstr ""
26319
26320 #. type: verbatim
26321 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
26322 #, no-wrap
26323 msgid ""
26324 " ^[0-9]+/[0-9]+$\n"
26325 "\n"
26326 msgstr ""
26327
26328 #. type: textblock
26329 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
26330 msgid ""
26331 "The calling program should treat messages sent to stdout (except for "
26332 "progress bar messages) as status messages.  They can be logged and/or "
26333 "displayed to the user."
26334 msgstr ""
26335
26336 #. type: textblock
26337 #: ../resize/virt-resize.pod:618
26338 msgid ""
26339 "The calling program should treat messages sent to stderr as error messages.  "
26340 "In addition, virt-resize exits with a non-zero status code if there was a "
26341 "fatal error."
26342 msgstr ""
26343
26344 #. type: textblock
26345 #: ../resize/virt-resize.pod:624
26346 msgid ""
26347 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
26348 "readable> option and will return an error."
26349 msgstr ""
26350
26351 #. type: =head2
26352 #: ../resize/virt-resize.pod:629
26353 msgid "\"Partition 1 does not end on cylinder boundary.\""
26354 msgstr ""
26355
26356 #. type: textblock
26357 #: ../resize/virt-resize.pod:631
26358 msgid ""
26359 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
26360 "alignment> parameter).  Usually this means the partitions will not be "
26361 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
26362 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
26363 "drives.  Alignment of partitions to cylinders is not required by any modern "
26364 "operating system."
26365 msgstr ""
26366
26367 #. type: =head2
26368 #: ../resize/virt-resize.pod:638
26369 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26370 msgstr ""
26371
26372 #. type: textblock
26373 #: ../resize/virt-resize.pod:640
26374 msgid ""
26375 "In Windows Vista and later versions, Microsoft switched to using a separate "
26376 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26377 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
26378 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
26379 "the second partition (ie. C: drive)  should work."
26380 msgstr ""
26381
26382 #. type: textblock
26383 #: ../resize/virt-resize.pod:647
26384 msgid ""
26385 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26386 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26387 "it find errors) is nothing to worry about."
26388 msgstr ""
26389
26390 #. type: =head2
26391 #: ../resize/virt-resize.pod:651
26392 msgid "GUEST BOOT STUCK AT \"GRUB\""
26393 msgstr ""
26394
26395 #. type: textblock
26396 #: ../resize/virt-resize.pod:653
26397 msgid ""
26398 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26399 "printing C<GRUB> on the console, try reinstalling grub."
26400 msgstr ""
26401
26402 #. type: verbatim
26403 #: ../resize/virt-resize.pod:656
26404 #, no-wrap
26405 msgid ""
26406 " guestfish -i -a newdisk\n"
26407 " ><fs> cat /boot/grub/device.map\n"
26408 " # check the contents of this file are sensible or\n"
26409 " # edit the file if necessary\n"
26410 " ><fs> grub-install / /dev/vda\n"
26411 " ><fs> exit\n"
26412 "\n"
26413 msgstr ""
26414
26415 #. type: textblock
26416 #: ../resize/virt-resize.pod:663
26417 msgid ""
26418 "For more flexible guest reconfiguration, including if you need to specify "
26419 "other parameters to grub-install, use L<virt-rescue(1)>."
26420 msgstr ""
26421
26422 #. type: =head1
26423 #: ../resize/virt-resize.pod:666
26424 msgid "ALTERNATIVE TOOLS"
26425 msgstr ""
26426
26427 #. type: textblock
26428 #: ../resize/virt-resize.pod:668
26429 msgid ""
26430 "There are several proprietary tools for resizing partitions.  We won't "
26431 "mention any here."
26432 msgstr ""
26433
26434 #. type: textblock
26435 #: ../resize/virt-resize.pod:671
26436 msgid ""
26437 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26438 "operations on disk images.  They can resize and move partitions, but I don't "
26439 "think they can do anything with the contents, and they certainly don't "
26440 "understand LVM."
26441 msgstr ""
26442
26443 #. type: textblock
26444 #: ../resize/virt-resize.pod:676
26445 msgid ""
26446 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26447 "but at a much lower level.  You will probably end up hand-calculating sector "
26448 "offsets, which is something that virt-resize was designed to avoid.  If you "
26449 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26450 "I<--debug> flag."
26451 msgstr ""
26452
26453 #. type: textblock
26454 #: ../resize/virt-resize.pod:696
26455 msgid ""
26456 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
26457 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
26458 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
26459 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
26460 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
26461 msgstr ""
26462
26463 #. type: textblock
26464 #: ../ruby/examples/guestfs-ruby.pod:5
26465 msgid "guestfs-ruby - How to use libguestfs from Ruby"
26466 msgstr ""
26467
26468 #. type: verbatim
26469 #: ../ruby/examples/guestfs-ruby.pod:9
26470 #, no-wrap
26471 msgid ""
26472 " require 'guestfs'\n"
26473 " g = Guestfs::Guestfs.new()\n"
26474 " g.add_drive_opts(\"disk.img\",\n"
26475 "                  :readonly => 1, :format => \"raw\")\n"
26476 " g.launch()\n"
26477 "\n"
26478 msgstr ""
26479
26480 #. type: textblock
26481 #: ../ruby/examples/guestfs-ruby.pod:17
26482 msgid ""
26483 "This manual page documents how to call libguestfs from the Ruby programming "
26484 "language.  This page just documents the differences from the C API and gives "
26485 "some examples.  If you are not familiar with using libguestfs, you also need "
26486 "to read L<guestfs(3)>."
26487 msgstr ""
26488
26489 #. type: textblock
26490 #: ../ruby/examples/guestfs-ruby.pod:24
26491 msgid ""
26492 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
26493 "This has a single parameter which is the error message (a string)."
26494 msgstr ""
26495
26496 #. type: textblock
26497 #: ../ruby/examples/guestfs-ruby.pod:38
26498 msgid ""
26499 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
26500 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
26501 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
26502 msgstr ""
26503
26504 #. type: textblock
26505 #: ../sparsify/virt-sparsify.pod:5
26506 msgid "virt-sparsify - Make a virtual machine disk sparse"
26507 msgstr ""
26508
26509 #. type: verbatim
26510 #: ../sparsify/virt-sparsify.pod:9
26511 #, no-wrap
26512 msgid ""
26513 " virt-sparsify [--options] indisk outdisk\n"
26514 "\n"
26515 msgstr ""
26516
26517 #. type: textblock
26518 #: ../sparsify/virt-sparsify.pod:13
26519 msgid ""
26520 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
26521 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
26522 "the disk image can be converted back to free space on the host."
26523 msgstr ""
26524
26525 #. type: textblock
26526 #: ../sparsify/virt-sparsify.pod:18
26527 msgid ""
26528 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
26529 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
26530 msgstr ""
26531
26532 #. type: textblock
26533 #: ../sparsify/virt-sparsify.pod:21
26534 msgid ""
26535 "Virt-sparsify can also convert between some disk formats, for example "
26536 "converting a raw disk image to a thin-provisioned qcow2 image."
26537 msgstr ""
26538
26539 #. type: textblock
26540 #: ../sparsify/virt-sparsify.pod:24
26541 msgid ""
26542 "Virt-sparsify can operate on any disk image, not just ones from virtual "
26543 "machines.  If a virtual machine has more than one attached disk, you must "
26544 "sparsify each one separately."
26545 msgstr ""
26546
26547 #. type: =head2
26548 #: ../sparsify/virt-sparsify.pod:28
26549 msgid "IMPORTANT LIMITATIONS"
26550 msgstr ""
26551
26552 #. type: textblock
26553 #: ../sparsify/virt-sparsify.pod:34
26554 msgid ""
26555 "Virt-sparsify does not do in-place modifications.  It copies from a source "
26556 "image to a destination image, leaving the source unchanged.  I<Check that "
26557 "the sparsification was successful before deleting the source image>."
26558 msgstr ""
26559
26560 #. type: textblock
26561 #: ../sparsify/virt-sparsify.pod:41
26562 msgid "The virtual machine I<must be shut down> before using this tool."
26563 msgstr ""
26564
26565 #. type: textblock
26566 #: ../sparsify/virt-sparsify.pod:45
26567 msgid ""
26568 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
26569 "(1 temporary copy + 1 destination image).  This is in the worst case and "
26570 "usually much less space is required."
26571 msgstr ""
26572
26573 #. type: textblock
26574 #: ../sparsify/virt-sparsify.pod:51
26575 msgid ""
26576 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
26577 msgstr ""
26578
26579 #. type: textblock
26580 #: ../sparsify/virt-sparsify.pod:56
26581 msgid "Virt-sparsify cannot handle encrypted disks."
26582 msgstr ""
26583
26584 #. type: textblock
26585 #: ../sparsify/virt-sparsify.pod:60
26586 msgid ""
26587 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
26588 "this space is often used for critical items like bootloaders so it's not "
26589 "really unused."
26590 msgstr ""
26591
26592 #. type: textblock
26593 #: ../sparsify/virt-sparsify.pod:66
26594 msgid ""
26595 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
26596 "to do this unless we can be sure there is no hibernation data, so at the "
26597 "moment swap partitions are ignored."
26598 msgstr ""
26599
26600 #. type: textblock
26601 #: ../sparsify/virt-sparsify.pod:72
26602 msgid ""
26603 "You may also want to read the manual pages for the associated tools L<virt-"
26604 "filesystems(1)> and L<virt-df(1)> before starting."
26605 msgstr ""
26606
26607 #. type: textblock
26608 #: ../sparsify/virt-sparsify.pod:77
26609 msgid "Typical usage is:"
26610 msgstr ""
26611
26612 #. type: verbatim
26613 #: ../sparsify/virt-sparsify.pod:79
26614 #, no-wrap
26615 msgid ""
26616 " virt-sparsify indisk outdisk\n"
26617 "\n"
26618 msgstr ""
26619
26620 #. type: textblock
26621 #: ../sparsify/virt-sparsify.pod:81
26622 msgid ""
26623 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
26624 "is created, or overwritten if it already exists.  The format of the input "
26625 "disk is detected (eg. qcow2) and the same format is used for the output disk."
26626 msgstr ""
26627
26628 #. type: textblock
26629 #: ../sparsify/virt-sparsify.pod:86
26630 msgid "To convert between formats, use the I<--convert> option:"
26631 msgstr ""
26632
26633 #. type: verbatim
26634 #: ../sparsify/virt-sparsify.pod:88
26635 #, no-wrap
26636 msgid ""
26637 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
26638 "\n"
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../sparsify/virt-sparsify.pod:90
26643 msgid ""
26644 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
26645 "can find within the source disk image.  You can get it to ignore (don't zero "
26646 "free space on) certain filesystems by doing:"
26647 msgstr ""
26648
26649 #. type: verbatim
26650 #: ../sparsify/virt-sparsify.pod:94
26651 #, no-wrap
26652 msgid ""
26653 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
26654 "\n"
26655 msgstr ""
26656
26657 #. type: textblock
26658 #: ../sparsify/virt-sparsify.pod:96
26659 msgid ""
26660 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
26661 msgstr ""
26662
26663 #. type: =item
26664 #: ../sparsify/virt-sparsify.pod:107
26665 #, fuzzy
26666 #| msgid "B<--parts>"
26667 msgid "B<--compress>"
26668 msgstr "B<--parts>"
26669
26670 #. type: textblock
26671 #: ../sparsify/virt-sparsify.pod:109
26672 msgid ""
26673 "Compress the output file.  This I<only> works if the output format is "
26674 "C<qcow2>."
26675 msgstr ""
26676
26677 #. type: =item
26678 #: ../sparsify/virt-sparsify.pod:112
26679 msgid "B<--convert> raw"
26680 msgstr ""
26681
26682 #. type: =item
26683 #: ../sparsify/virt-sparsify.pod:114
26684 msgid "B<--convert> qcow2"
26685 msgstr ""
26686
26687 #. type: =item
26688 #: ../sparsify/virt-sparsify.pod:116
26689 msgid "B<--convert> [other formats]"
26690 msgstr ""
26691
26692 #. type: textblock
26693 #: ../sparsify/virt-sparsify.pod:118
26694 msgid ""
26695 "Use C<output-format> as the format for the destination image.  If this is "
26696 "not specified, then the input format is used."
26697 msgstr ""
26698
26699 #. type: textblock
26700 #: ../sparsify/virt-sparsify.pod:121
26701 msgid ""
26702 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
26703 msgstr ""
26704
26705 #. type: textblock
26706 #: ../sparsify/virt-sparsify.pod:123
26707 msgid ""
26708 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
26709 "C<vmdk>, but support for other formats is reliant on qemu."
26710 msgstr ""
26711
26712 #. type: textblock
26713 #: ../sparsify/virt-sparsify.pod:126
26714 msgid ""
26715 "Specifying the I<--convert> option is usually a good idea, because then virt-"
26716 "sparsify doesn't need to try to guess the input format."
26717 msgstr ""
26718
26719 #. type: textblock
26720 #: ../sparsify/virt-sparsify.pod:129
26721 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
26722 msgstr ""
26723
26724 #. type: textblock
26725 #: ../sparsify/virt-sparsify.pod:133
26726 msgid ""
26727 "Debug garbage collection and memory allocation.  This is only useful when "
26728 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
26729 msgstr ""
26730
26731 #. type: =item
26732 #: ../sparsify/virt-sparsify.pod:139
26733 msgid "B<--format> qcow2"
26734 msgstr ""
26735
26736 #. type: =item
26737 #: ../sparsify/virt-sparsify.pod:147
26738 msgid "B<--ignore> filesystem"
26739 msgstr ""
26740
26741 #. type: =item
26742 #: ../sparsify/virt-sparsify.pod:149
26743 msgid "B<--ignore> volgroup"
26744 msgstr ""
26745
26746 #. type: textblock
26747 #: ../sparsify/virt-sparsify.pod:151
26748 msgid ""
26749 "Ignore the named filesystem.  Free space on the filesystem will not be "
26750 "zeroed, but existing blocks of zeroes will still be sparsified."
26751 msgstr ""
26752
26753 #. type: textblock
26754 #: ../sparsify/virt-sparsify.pod:154
26755 msgid ""
26756 "In the second form, this ignores the named volume group.  Use the volume "
26757 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
26758 msgstr ""
26759
26760 #. type: =item
26761 #: ../sparsify/virt-sparsify.pod:165
26762 #, fuzzy
26763 #| msgid "B<--option option>"
26764 msgid "B<-o> option[,option,...]"
26765 msgstr "B<--option параметр>"
26766
26767 #. type: textblock
26768 #: ../sparsify/virt-sparsify.pod:167
26769 msgid ""
26770 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
26771 "format.  Options available depend on the output format (see I<--convert>) "
26772 "and the installed version of the qemu-img program."
26773 msgstr ""
26774
26775 #. type: textblock
26776 #: ../sparsify/virt-sparsify.pod:171
26777 msgid ""
26778 "You should use I<-o> at most once.  To pass multiple options, separate them "
26779 "with commas, eg:"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../sparsify/virt-sparsify.pod:174
26784 #, no-wrap
26785 msgid ""
26786 " virt-sparsify --convert qcow2 \\\n"
26787 "   -o cluster_size=512,preallocation=metadata ...\n"
26788 "\n"
26789 msgstr ""
26790
26791 #. type: textblock
26792 #: ../sparsify/virt-sparsify.pod:181
26793 msgid "This disables progress bars and other unnecessary output."
26794 msgstr ""
26795
26796 #. type: textblock
26797 #: ../sparsify/virt-sparsify.pod:203
26798 msgid ""
26799 "The I<--machine-readable> option can be used to make the output more machine "
26800 "friendly, which is useful when calling virt-sparsify from other programs, "
26801 "GUIs etc."
26802 msgstr ""
26803
26804 #. type: textblock
26805 #: ../sparsify/virt-sparsify.pod:209
26806 msgid ""
26807 "Firstly use the option on its own to query the capabilities of the virt-"
26808 "sparsify binary.  Typical output looks like this:"
26809 msgstr ""
26810
26811 #. type: verbatim
26812 #: ../sparsify/virt-sparsify.pod:212
26813 #, no-wrap
26814 msgid ""
26815 " $ virt-sparsify --machine-readable\n"
26816 " virt-sparsify\n"
26817 " ntfs\n"
26818 " btrfs\n"
26819 "\n"
26820 msgstr ""
26821
26822 #. type: textblock
26823 #: ../sparsify/virt-sparsify.pod:242
26824 msgid ""
26825 "The calling program should treat messages sent to stderr as error messages.  "
26826 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26827 "fatal error."
26828 msgstr ""
26829
26830 #. type: textblock
26831 #: ../sparsify/virt-sparsify.pod:248
26832 msgid ""
26833 "All versions of virt-sparsify have supported the I<--machine-readable> "
26834 "option."
26835 msgstr ""
26836
26837 #. type: textblock
26838 #: ../sparsify/virt-sparsify.pod:262
26839 msgid ""
26840 "Location of the temporary directory used for the potentially large temporary "
26841 "overlay file."
26842 msgstr ""
26843
26844 #. type: textblock
26845 #: ../sparsify/virt-sparsify.pod:265
26846 msgid ""
26847 "You should ensure there is enough free space in the worst case for a full "
26848 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26849 "to another directory that has enough space."
26850 msgstr ""
26851
26852 #. type: textblock
26853 #: ../sparsify/virt-sparsify.pod:269
26854 msgid "This defaults to C</tmp>."
26855 msgstr ""
26856
26857 #. type: textblock
26858 #: ../sparsify/virt-sparsify.pod:273
26859 msgid ""
26860 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26861 msgstr ""
26862
26863 #. type: textblock
26864 #: ../sparsify/virt-sparsify.pod:277
26865 msgid ""
26866 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26867 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26868 "(1)>, L<http://libguestfs.org/>."
26869 msgstr ""
26870
26871 #. type: =head2
26872 #: ../src/guestfs-actions.pod:1
26873 msgid "guestfs_add_cdrom"
26874 msgstr ""
26875
26876 #. type: verbatim
26877 #: ../src/guestfs-actions.pod:3
26878 #, no-wrap
26879 msgid ""
26880 " int\n"
26881 " guestfs_add_cdrom (guestfs_h *g,\n"
26882 "                    const char *filename);\n"
26883 "\n"
26884 msgstr ""
26885
26886 #. type: textblock
26887 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26888 #: ../src/guestfs-actions.pod:323
26889 msgid ""
26890 "I<This function is deprecated.> In new code, use the L</"
26891 "guestfs_add_drive_opts> call instead."
26892 msgstr ""
26893
26894 #. type: textblock
26895 #: ../src/guestfs-actions.pod:24
26896 msgid ""
26897 "This call checks for the existence of C<filename>.  This stops you from "
26898 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26899 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
26900 "instead."
26901 msgstr ""
26902
26903 #. type: textblock
26904 #: ../src/guestfs-actions.pod:31
26905 msgid ""
26906 "If you just want to add an ISO file (often you use this as an efficient way "
26907 "to transfer large files into the guest), then you should probably use "
26908 "C<guestfs_add_drive_ro> instead."
26909 msgstr ""
26910
26911 #. type: textblock
26912 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26913 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26914 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26915 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26916 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26917 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26918 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26919 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26920 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:773
26921 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:890
26922 #: ../src/guestfs-actions.pod:904 ../src/guestfs-actions.pod:918
26923 #: ../src/guestfs-actions.pod:955 ../src/guestfs-actions.pod:1138
26924 #: ../src/guestfs-actions.pod:1158 ../src/guestfs-actions.pod:1176
26925 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1325
26926 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1411
26927 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1517
26928 #: ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1629
26929 #: ../src/guestfs-actions.pod:1648 ../src/guestfs-actions.pod:1662
26930 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1760
26931 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
26932 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1971
26933 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2213
26934 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:2322
26935 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2974
26936 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3070
26937 #: ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:4146
26938 #: ../src/guestfs-actions.pod:4171 ../src/guestfs-actions.pod:4373
26939 #: ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4400
26940 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4429
26941 #: ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:4537
26942 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4574
26943 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4614
26944 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4668
26945 #: ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4722
26946 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4767
26947 #: ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4796
26948 #: ../src/guestfs-actions.pod:4811 ../src/guestfs-actions.pod:4828
26949 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5060
26950 #: ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5090
26951 #: ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5154
26952 #: ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5190
26953 #: ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5220
26954 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5251
26955 #: ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5293
26956 #: ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5429
26957 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5479
26958 #: ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5510
26959 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5540
26960 #: ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5570
26961 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628
26962 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5687
26963 #: ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5718
26964 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5820
26965 #: ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5910
26966 #: ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:5955
26967 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:6110
26968 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6189
26969 #: ../src/guestfs-actions.pod:6207 ../src/guestfs-actions.pod:6259
26970 #: ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6342
26971 #: ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6369
26972 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677
26973 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6710
26974 #: ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6736
26975 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6762
26976 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6796
26977 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834
26978 #: ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:6882
26979 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6923
26980 #: ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6963
26981 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:6999
26982 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7046
26983 #: ../src/guestfs-actions.pod:7070 ../src/guestfs-actions.pod:7089
26984 #: ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7129
26985 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7163
26986 #: ../src/guestfs-actions.pod:7182 ../src/guestfs-actions.pod:7226
26987 #: ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7283
26988 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7516
26989 #: ../src/guestfs-actions.pod:7528 ../src/guestfs-actions.pod:7541
26990 #: ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7576
26991 #: ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7602
26992 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7630
26993 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7706
26994 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7738
26995 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7768
26996 #: ../src/guestfs-actions.pod:7788 ../src/guestfs-actions.pod:7888
26997 #: ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7960
26998 #: ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8014
26999 #: ../src/guestfs-actions.pod:8032 ../src/guestfs-actions.pod:8066
27000 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8218
27001 #: ../src/guestfs-actions.pod:8233 ../src/guestfs-actions.pod:8247
27002 #: ../src/guestfs-actions.pod:8302 ../src/guestfs-actions.pod:8315
27003 #: ../src/guestfs-actions.pod:8360 ../src/guestfs-actions.pod:8400
27004 #: ../src/guestfs-actions.pod:8456 ../src/guestfs-actions.pod:8476
27005 #: ../src/guestfs-actions.pod:8509 ../src/guestfs-actions.pod:8573
27006 #: ../src/guestfs-actions.pod:8596 ../src/guestfs-actions.pod:8622
27007 msgid "This function returns 0 on success or -1 on error."
27008 msgstr ""
27009
27010 #. type: textblock
27011 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
27012 #: ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:2436
27013 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2659
27014 #: ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4153
27015 #: ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:6884
27016 #: ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7150
27017 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7757
27018 #: ../src/guestfs-actions.pod:8402
27019 msgid "(Added in 0.3)"
27020 msgstr "(Додано у 0.3)"
27021
27022 #. type: =head2
27023 #: ../src/guestfs-actions.pod:41
27024 msgid "guestfs_add_domain"
27025 msgstr ""
27026
27027 #. type: verbatim
27028 #: ../src/guestfs-actions.pod:43
27029 #, no-wrap
27030 msgid ""
27031 " int\n"
27032 " guestfs_add_domain (guestfs_h *g,\n"
27033 "                     const char *dom,\n"
27034 "                     ...);\n"
27035 "\n"
27036 msgstr ""
27037
27038 #. type: textblock
27039 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
27040 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:1253
27041 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1383
27042 #: ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1505
27043 #: ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:3327
27044 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5305
27045 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5831
27046 #: ../src/guestfs-actions.pod:7799
27047 msgid ""
27048 "You may supply a list of optional arguments to this call.  Use zero or more "
27049 "of the following pairs of parameters, and terminate the list with C<-1> on "
27050 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
27051 msgstr ""
27052
27053 #. type: verbatim
27054 #: ../src/guestfs-actions.pod:53
27055 #, no-wrap
27056 msgid ""
27057 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
27058 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
27059 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
27060 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
27061 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
27062 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
27063 "\n"
27064 msgstr ""
27065
27066 #. type: textblock
27067 #: ../src/guestfs-actions.pod:60
27068 msgid ""
27069 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
27070 "It works by connecting to libvirt, requesting the domain and domain XML from "
27071 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
27072 "one."
27073 msgstr ""
27074
27075 #. type: textblock
27076 #: ../src/guestfs-actions.pod:141
27077 msgid ""
27078 "The other optional parameters are passed directly through to "
27079 "C<guestfs_add_drive_opts>."
27080 msgstr ""
27081
27082 #. type: textblock
27083 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
27084 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:790
27085 #: ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:839
27086 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1836
27087 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2395
27088 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2557
27089 #: ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:2623
27090 #: ../src/guestfs-actions.pod:2646 ../src/guestfs-actions.pod:2961
27091 #: ../src/guestfs-actions.pod:3445 ../src/guestfs-actions.pod:3463
27092 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6007
27093 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6439
27094 #: ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:7987
27095 #: ../src/guestfs-actions.pod:8413 ../src/guestfs-actions.pod:8426
27096 #: ../src/guestfs-actions.pod:8439
27097 msgid "On error this function returns -1."
27098 msgstr ""
27099
27100 #. type: textblock
27101 #: ../src/guestfs-actions.pod:146
27102 msgid "(Added in 1.7.4)"
27103 msgstr "(Додано у 1.7.4)"
27104
27105 #. type: =head2
27106 #: ../src/guestfs-actions.pod:148
27107 msgid "guestfs_add_domain_va"
27108 msgstr ""
27109
27110 #. type: verbatim
27111 #: ../src/guestfs-actions.pod:150
27112 #, no-wrap
27113 msgid ""
27114 " int\n"
27115 " guestfs_add_domain_va (guestfs_h *g,\n"
27116 "                        const char *dom,\n"
27117 "                        va_list args);\n"
27118 "\n"
27119 msgstr ""
27120
27121 #. type: textblock
27122 #: ../src/guestfs-actions.pod:155
27123 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
27124 msgstr ""
27125
27126 #. type: textblock
27127 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
27128 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
27129 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:979
27130 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1294
27131 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1353
27132 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1442
27133 #: ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1495
27134 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1548
27135 #: ../src/guestfs-actions.pod:1594 ../src/guestfs-actions.pod:1606
27136 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3423
27137 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5010
27138 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5382
27139 #: ../src/guestfs-actions.pod:5642 ../src/guestfs-actions.pod:5654
27140 #: ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5891
27141 #: ../src/guestfs-actions.pod:7901 ../src/guestfs-actions.pod:7912
27142 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
27143 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
27144
27145 #. type: =head2
27146 #: ../src/guestfs-actions.pod:159
27147 msgid "guestfs_add_domain_argv"
27148 msgstr "guestfs_add_domain_argv"
27149
27150 #. type: verbatim
27151 #: ../src/guestfs-actions.pod:161
27152 #, no-wrap
27153 msgid ""
27154 " int\n"
27155 " guestfs_add_domain_argv (guestfs_h *g,\n"
27156 "                          const char *dom,\n"
27157 "                          const struct guestfs_add_domain_argv *optargs);\n"
27158 "\n"
27159 msgstr ""
27160
27161 #. type: textblock
27162 #: ../src/guestfs-actions.pod:166
27163 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
27164 msgstr ""
27165
27166 #. type: =head2
27167 #: ../src/guestfs-actions.pod:170
27168 msgid "guestfs_add_drive"
27169 msgstr ""
27170
27171 #. type: verbatim
27172 #: ../src/guestfs-actions.pod:172
27173 #, no-wrap
27174 msgid ""
27175 " int\n"
27176 " guestfs_add_drive (guestfs_h *g,\n"
27177 "                    const char *filename);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: textblock
27182 #: ../src/guestfs-actions.pod:176
27183 msgid ""
27184 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
27185 "optional parameters, so the disk is added writable, with the format being "
27186 "detected automatically."
27187 msgstr ""
27188
27189 #. type: textblock
27190 #: ../src/guestfs-actions.pod:180
27191 msgid ""
27192 "Automatic detection of the format opens you up to a potential security hole "
27193 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
27194 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
27195 "you should think about replacing calls to this function with calls to "
27196 "C<guestfs_add_drive_opts>, and specifying the format."
27197 msgstr ""
27198
27199 #. type: =head2
27200 #: ../src/guestfs-actions.pod:191
27201 msgid "guestfs_add_drive_opts"
27202 msgstr ""
27203
27204 #. type: verbatim
27205 #: ../src/guestfs-actions.pod:193
27206 #, no-wrap
27207 msgid ""
27208 " int\n"
27209 " guestfs_add_drive_opts (guestfs_h *g,\n"
27210 "                         const char *filename,\n"
27211 "                         ...);\n"
27212 "\n"
27213 msgstr ""
27214
27215 #. type: verbatim
27216 #: ../src/guestfs-actions.pod:203
27217 #, no-wrap
27218 msgid ""
27219 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
27220 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
27221 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
27222 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
27223 "\n"
27224 msgstr ""
27225
27226 #. type: textblock
27227 #: ../src/guestfs-actions.pod:233
27228 msgid ""
27229 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
27230 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
27231 "Possible formats include C<raw> and C<qcow2>."
27232 msgstr ""
27233
27234 #. type: textblock
27235 #: ../src/guestfs-actions.pod:244
27236 msgid ""
27237 "This rarely-used option lets you emulate the behaviour of the deprecated "
27238 "C<guestfs_add_drive_with_if> call (q.v.)"
27239 msgstr ""
27240
27241 #. type: textblock
27242 #: ../src/guestfs-actions.pod:256
27243 msgid "(Added in 1.5.23)"
27244 msgstr "(Додано у 1.5.23)"
27245
27246 #. type: =head2
27247 #: ../src/guestfs-actions.pod:258
27248 msgid "guestfs_add_drive_opts_va"
27249 msgstr ""
27250
27251 #. type: verbatim
27252 #: ../src/guestfs-actions.pod:260
27253 #, no-wrap
27254 msgid ""
27255 " int\n"
27256 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
27257 "                            const char *filename,\n"
27258 "                            va_list args);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: textblock
27263 #: ../src/guestfs-actions.pod:265
27264 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
27265 msgstr ""
27266
27267 #. type: =head2
27268 #: ../src/guestfs-actions.pod:269
27269 msgid "guestfs_add_drive_opts_argv"
27270 msgstr ""
27271
27272 #. type: verbatim
27273 #: ../src/guestfs-actions.pod:271
27274 #, no-wrap
27275 msgid ""
27276 " int\n"
27277 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
27278 "                              const char *filename,\n"
27279 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
27280 "\n"
27281 msgstr ""
27282
27283 #. type: textblock
27284 #: ../src/guestfs-actions.pod:276
27285 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
27286 msgstr ""
27287
27288 #. type: =head2
27289 #: ../src/guestfs-actions.pod:280
27290 msgid "guestfs_add_drive_ro"
27291 msgstr ""
27292
27293 #. type: verbatim
27294 #: ../src/guestfs-actions.pod:282
27295 #, no-wrap
27296 msgid ""
27297 " int\n"
27298 " guestfs_add_drive_ro (guestfs_h *g,\n"
27299 "                       const char *filename);\n"
27300 "\n"
27301 msgstr ""
27302
27303 #. type: textblock
27304 #: ../src/guestfs-actions.pod:286
27305 msgid ""
27306 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
27307 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
27308 "disk is added read-only, with the format being detected automatically."
27309 msgstr ""
27310
27311 #. type: textblock
27312 #: ../src/guestfs-actions.pod:293
27313 msgid "(Added in 1.0.38)"
27314 msgstr "(Додано у 1.0.38)"
27315
27316 #. type: =head2
27317 #: ../src/guestfs-actions.pod:295
27318 msgid "guestfs_add_drive_ro_with_if"
27319 msgstr ""
27320
27321 #. type: verbatim
27322 #: ../src/guestfs-actions.pod:297
27323 #, no-wrap
27324 msgid ""
27325 " int\n"
27326 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
27327 "                               const char *filename,\n"
27328 "                               const char *iface);\n"
27329 "\n"
27330 msgstr ""
27331
27332 #. type: textblock
27333 #: ../src/guestfs-actions.pod:309
27334 msgid ""
27335 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
27336 "QEMU interface emulation to use at run time."
27337 msgstr ""
27338
27339 #. type: textblock
27340 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
27341 #: ../src/guestfs-actions.pod:2920
27342 msgid "(Added in 1.0.84)"
27343 msgstr "(Додано у 1.0.84)"
27344
27345 #. type: =head2
27346 #: ../src/guestfs-actions.pod:316
27347 msgid "guestfs_add_drive_with_if"
27348 msgstr ""
27349
27350 #. type: verbatim
27351 #: ../src/guestfs-actions.pod:318
27352 #, no-wrap
27353 msgid ""
27354 " int\n"
27355 " guestfs_add_drive_with_if (guestfs_h *g,\n"
27356 "                            const char *filename,\n"
27357 "                            const char *iface);\n"
27358 "\n"
27359 msgstr ""
27360
27361 #. type: textblock
27362 #: ../src/guestfs-actions.pod:330
27363 msgid ""
27364 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
27365 "QEMU interface emulation to use at run time."
27366 msgstr ""
27367
27368 #. type: =head2
27369 #: ../src/guestfs-actions.pod:337
27370 msgid "guestfs_aug_clear"
27371 msgstr ""
27372
27373 #. type: verbatim
27374 #: ../src/guestfs-actions.pod:339
27375 #, no-wrap
27376 msgid ""
27377 " int\n"
27378 " guestfs_aug_clear (guestfs_h *g,\n"
27379 "                    const char *augpath);\n"
27380 "\n"
27381 msgstr ""
27382
27383 #. type: textblock
27384 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2648
27385 msgid "(Added in 1.3.4)"
27386 msgstr "(Додано у 1.3.4)"
27387
27388 #. type: =head2
27389 #: ../src/guestfs-actions.pod:350
27390 msgid "guestfs_aug_close"
27391 msgstr ""
27392
27393 #. type: verbatim
27394 #: ../src/guestfs-actions.pod:352
27395 #, no-wrap
27396 msgid ""
27397 " int\n"
27398 " guestfs_aug_close (guestfs_h *g);\n"
27399 "\n"
27400 msgstr ""
27401
27402 #. type: textblock
27403 #: ../src/guestfs-actions.pod:355
27404 msgid ""
27405 "Close the current Augeas handle and free up any resources used by it.  After "
27406 "calling this, you have to call C<guestfs_aug_init> again before you can use "
27407 "any other Augeas functions."
27408 msgstr ""
27409
27410 #. type: textblock
27411 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
27412 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
27413 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
27414 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
27415 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
27416 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
27417 #: ../src/guestfs-actions.pod:6516
27418 msgid "(Added in 0.7)"
27419 msgstr "(Додано у 0.7)"
27420
27421 #. type: =head2
27422 #: ../src/guestfs-actions.pod:364
27423 msgid "guestfs_aug_defnode"
27424 msgstr ""
27425
27426 #. type: verbatim
27427 #: ../src/guestfs-actions.pod:366
27428 #, no-wrap
27429 msgid ""
27430 " struct guestfs_int_bool *\n"
27431 " guestfs_aug_defnode (guestfs_h *g,\n"
27432 "                      const char *name,\n"
27433 "                      const char *expr,\n"
27434 "                      const char *val);\n"
27435 "\n"
27436 msgstr ""
27437
27438 #. type: textblock
27439 #: ../src/guestfs-actions.pod:375
27440 msgid ""
27441 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
27442 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
27443 "containing that single node."
27444 msgstr ""
27445
27446 #. type: textblock
27447 #: ../src/guestfs-actions.pod:383
27448 msgid ""
27449 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
27450 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
27451 msgstr ""
27452
27453 #. type: =head2
27454 #: ../src/guestfs-actions.pod:389
27455 msgid "guestfs_aug_defvar"
27456 msgstr ""
27457
27458 #. type: verbatim
27459 #: ../src/guestfs-actions.pod:391
27460 #, no-wrap
27461 msgid ""
27462 " int\n"
27463 " guestfs_aug_defvar (guestfs_h *g,\n"
27464 "                     const char *name,\n"
27465 "                     const char *expr);\n"
27466 "\n"
27467 msgstr ""
27468
27469 #. type: =head2
27470 #: ../src/guestfs-actions.pod:407
27471 msgid "guestfs_aug_get"
27472 msgstr "guestfs_aug_get"
27473
27474 #. type: verbatim
27475 #: ../src/guestfs-actions.pod:409
27476 #, no-wrap
27477 msgid ""
27478 " char *\n"
27479 " guestfs_aug_get (guestfs_h *g,\n"
27480 "                  const char *augpath);\n"
27481 "\n"
27482 msgstr ""
27483 " char *\n"
27484 " guestfs_aug_get (guestfs_h *g,\n"
27485 "                  const char *augpath);\n"
27486 "\n"
27487
27488 #. type: textblock
27489 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:1019
27490 #: ../src/guestfs-actions.pod:1037 ../src/guestfs-actions.pod:1097
27491 #: ../src/guestfs-actions.pod:1113 ../src/guestfs-actions.pod:1216
27492 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1722
27493 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1875
27494 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2175
27495 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2355
27496 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2465
27497 #: ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2671
27498 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:3089
27499 #: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3295
27500 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3529
27501 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3578
27502 #: ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:3679
27503 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3719
27504 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4706
27505 #: ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:5132
27506 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6226
27507 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6592
27508 #: ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:7301
27509 #: ../src/guestfs-actions.pod:7317 ../src/guestfs-actions.pod:7341
27510 #: ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:8161
27511 #: ../src/guestfs-actions.pod:8180 ../src/guestfs-actions.pod:8198
27512 #: ../src/guestfs-actions.pod:8372 ../src/guestfs-actions.pod:8686
27513 msgid ""
27514 "This function returns a string, or NULL on error.  I<The caller must free "
27515 "the returned string after use>."
27516 msgstr ""
27517
27518 #. type: =head2
27519 #: ../src/guestfs-actions.pod:421
27520 msgid "guestfs_aug_init"
27521 msgstr "guestfs_aug_init"
27522
27523 #. type: verbatim
27524 #: ../src/guestfs-actions.pod:423
27525 #, no-wrap
27526 msgid ""
27527 " int\n"
27528 " guestfs_aug_init (guestfs_h *g,\n"
27529 "                   const char *root,\n"
27530 "                   int flags);\n"
27531 "\n"
27532 msgstr ""
27533 " int\n"
27534 " guestfs_aug_init (guestfs_h *g,\n"
27535 "                   const char *root,\n"
27536 "                   int flags);\n"
27537 "\n"
27538
27539 #. type: textblock
27540 #: ../src/guestfs-actions.pod:432
27541 msgid "You must call this before using any other C<guestfs_aug_*> commands."
27542 msgstr ""
27543
27544 #. type: textblock
27545 #: ../src/guestfs-actions.pod:457
27546 msgid ""
27547 "This option is only useful when debugging Augeas lenses.  Use of this option "
27548 "may require additional memory for the libguestfs appliance.  You may need to "
27549 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
27550 "C<guestfs_set_memsize>."
27551 msgstr ""
27552
27553 #. type: textblock
27554 #: ../src/guestfs-actions.pod:472
27555 msgid "Do not load the tree in C<guestfs_aug_init>."
27556 msgstr ""
27557
27558 #. type: textblock
27559 #: ../src/guestfs-actions.pod:476
27560 msgid "To close the handle, you can call C<guestfs_aug_close>."
27561 msgstr ""
27562
27563 #. type: =head2
27564 #: ../src/guestfs-actions.pod:484
27565 msgid "guestfs_aug_insert"
27566 msgstr "guestfs_aug_insert"
27567
27568 #. type: verbatim
27569 #: ../src/guestfs-actions.pod:486
27570 #, no-wrap
27571 msgid ""
27572 " int\n"
27573 " guestfs_aug_insert (guestfs_h *g,\n"
27574 "                     const char *augpath,\n"
27575 "                     const char *label,\n"
27576 "                     int before);\n"
27577 "\n"
27578 msgstr ""
27579 " int\n"
27580 " guestfs_aug_insert (guestfs_h *g,\n"
27581 "                     const char *augpath,\n"
27582 "                     const char *label,\n"
27583 "                     int before);\n"
27584 "\n"
27585
27586 #. type: =head2
27587 #: ../src/guestfs-actions.pod:504
27588 msgid "guestfs_aug_load"
27589 msgstr "guestfs_aug_load"
27590
27591 #. type: verbatim
27592 #: ../src/guestfs-actions.pod:506
27593 #, no-wrap
27594 msgid ""
27595 " int\n"
27596 " guestfs_aug_load (guestfs_h *g);\n"
27597 "\n"
27598 msgstr ""
27599 " int\n"
27600 " guestfs_aug_load (guestfs_h *g);\n"
27601 "\n"
27602
27603 #. type: =head2
27604 #: ../src/guestfs-actions.pod:518
27605 msgid "guestfs_aug_ls"
27606 msgstr "guestfs_aug_ls"
27607
27608 #. type: verbatim
27609 #: ../src/guestfs-actions.pod:520
27610 #, no-wrap
27611 msgid ""
27612 " char **\n"
27613 " guestfs_aug_ls (guestfs_h *g,\n"
27614 "                 const char *augpath);\n"
27615 "\n"
27616 msgstr ""
27617 " char **\n"
27618 " guestfs_aug_ls (guestfs_h *g,\n"
27619 "                 const char *augpath);\n"
27620 "\n"
27621
27622 #. type: textblock
27623 #: ../src/guestfs-actions.pod:524
27624 msgid ""
27625 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
27626 "sorting the resulting nodes into alphabetical order."
27627 msgstr ""
27628
27629 #. type: textblock
27630 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
27631 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1235
27632 #: ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1909
27633 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2031
27634 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2743
27635 #: ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2778
27636 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2867
27637 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2987
27638 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3631
27639 #: ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:4229
27640 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4266
27641 #: ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4341
27642 #: ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4845
27643 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:6386
27644 #: ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6626
27645 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7442
27646 #: ../src/guestfs-actions.pod:7497 ../src/guestfs-actions.pod:7643
27647 #: ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:8265
27648 #: ../src/guestfs-actions.pod:8285 ../src/guestfs-actions.pod:8332
27649 #: ../src/guestfs-actions.pod:8526 ../src/guestfs-actions.pod:8545
27650 #: ../src/guestfs-actions.pod:8636 ../src/guestfs-actions.pod:8655
27651 #: ../src/guestfs-actions.pod:8701 ../src/guestfs-actions.pod:8720
27652 msgid ""
27653 "This function returns a NULL-terminated array of strings (like L<environ(3)"
27654 ">), or NULL if there was an error.  I<The caller must free the strings and "
27655 "the array after use>."
27656 msgstr ""
27657
27658 #. type: textblock
27659 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1160
27660 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1947
27661 #: ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4024
27662 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4736
27663 #: ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5105
27664 #: ../src/guestfs-actions.pod:5268 ../src/guestfs-actions.pod:5755
27665 #: ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6724
27666 #: ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6750
27667 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:8003
27668 #: ../src/guestfs-actions.pod:8016 ../src/guestfs-actions.pod:8249
27669 #: ../src/guestfs-actions.pod:8514
27670 msgid "(Added in 0.8)"
27671 msgstr "(Додано у 0.8)"
27672
27673 #. type: =head2
27674 #: ../src/guestfs-actions.pod:533
27675 msgid "guestfs_aug_match"
27676 msgstr "guestfs_aug_match"
27677
27678 #. type: verbatim
27679 #: ../src/guestfs-actions.pod:535
27680 #, no-wrap
27681 msgid ""
27682 " char **\n"
27683 " guestfs_aug_match (guestfs_h *g,\n"
27684 "                    const char *augpath);\n"
27685 "\n"
27686 msgstr ""
27687 " char **\n"
27688 " guestfs_aug_match (guestfs_h *g,\n"
27689 "                    const char *augpath);\n"
27690 "\n"
27691
27692 #. type: =head2
27693 #: ../src/guestfs-actions.pod:549
27694 msgid "guestfs_aug_mv"
27695 msgstr "guestfs_aug_mv"
27696
27697 #. type: verbatim
27698 #: ../src/guestfs-actions.pod:551
27699 #, no-wrap
27700 msgid ""
27701 " int\n"
27702 " guestfs_aug_mv (guestfs_h *g,\n"
27703 "                 const char *src,\n"
27704 "                 const char *dest);\n"
27705 "\n"
27706 msgstr ""
27707 " int\n"
27708 " guestfs_aug_mv (guestfs_h *g,\n"
27709 "                 const char *src,\n"
27710 "                 const char *dest);\n"
27711 "\n"
27712
27713 #. type: =head2
27714 #: ../src/guestfs-actions.pod:563
27715 msgid "guestfs_aug_rm"
27716 msgstr "guestfs_aug_rm"
27717
27718 #. type: verbatim
27719 #: ../src/guestfs-actions.pod:565
27720 #, no-wrap
27721 msgid ""
27722 " int\n"
27723 " guestfs_aug_rm (guestfs_h *g,\n"
27724 "                 const char *augpath);\n"
27725 "\n"
27726 msgstr ""
27727 " int\n"
27728 " guestfs_aug_rm (guestfs_h *g,\n"
27729 "                 const char *augpath);\n"
27730 "\n"
27731
27732 #. type: =head2
27733 #: ../src/guestfs-actions.pod:577
27734 msgid "guestfs_aug_save"
27735 msgstr "guestfs_aug_save"
27736
27737 #. type: verbatim
27738 #: ../src/guestfs-actions.pod:579
27739 #, no-wrap
27740 msgid ""
27741 " int\n"
27742 " guestfs_aug_save (guestfs_h *g);\n"
27743 "\n"
27744 msgstr ""
27745 " int\n"
27746 " guestfs_aug_save (guestfs_h *g);\n"
27747 "\n"
27748
27749 #. type: textblock
27750 #: ../src/guestfs-actions.pod:584
27751 msgid ""
27752 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
27753 "are saved."
27754 msgstr ""
27755
27756 #. type: =head2
27757 #: ../src/guestfs-actions.pod:591
27758 msgid "guestfs_aug_set"
27759 msgstr "guestfs_aug_set"
27760
27761 #. type: verbatim
27762 #: ../src/guestfs-actions.pod:593
27763 #, no-wrap
27764 msgid ""
27765 " int\n"
27766 " guestfs_aug_set (guestfs_h *g,\n"
27767 "                  const char *augpath,\n"
27768 "                  const char *val);\n"
27769 "\n"
27770 msgstr ""
27771 " int\n"
27772 " guestfs_aug_set (guestfs_h *g,\n"
27773 "                  const char *augpath,\n"
27774 "                  const char *val);\n"
27775 "\n"
27776
27777 #. type: textblock
27778 #: ../src/guestfs-actions.pod:600
27779 msgid ""
27780 "In the Augeas API, it is possible to clear a node by setting the value to "
27781 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
27782 "this call.  Instead you must use the C<guestfs_aug_clear> call."
27783 msgstr ""
27784
27785 #. type: =head2
27786 #: ../src/guestfs-actions.pod:609
27787 msgid "guestfs_available"
27788 msgstr "guestfs_available"
27789
27790 #. type: verbatim
27791 #: ../src/guestfs-actions.pod:611
27792 #, no-wrap
27793 msgid ""
27794 " int\n"
27795 " guestfs_available (guestfs_h *g,\n"
27796 "                    char *const *groups);\n"
27797 "\n"
27798 msgstr ""
27799 " int\n"
27800 " guestfs_available (guestfs_h *g,\n"
27801 "                    char *const *groups);\n"
27802 "\n"
27803
27804 #. type: textblock
27805 #: ../src/guestfs-actions.pod:619
27806 msgid ""
27807 "The libguestfs groups, and the functions that those groups correspond to, "
27808 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
27809 "runtime by calling C<guestfs_available_all_groups>."
27810 msgstr ""
27811
27812 #. type: textblock
27813 #: ../src/guestfs-actions.pod:643
27814 msgid "You must call C<guestfs_launch> before calling this function."
27815 msgstr ""
27816
27817 #. type: textblock
27818 #: ../src/guestfs-actions.pod:665
27819 msgid ""
27820 "This call was added in version C<1.0.80>.  In previous versions of "
27821 "libguestfs all you could do would be to speculatively execute a command to "
27822 "find out if the daemon implemented it.  See also C<guestfs_version>."
27823 msgstr ""
27824
27825 #. type: textblock
27826 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1692
27827 msgid "(Added in 1.0.80)"
27828 msgstr "(Додано у 1.0.80)"
27829
27830 #. type: =head2
27831 #: ../src/guestfs-actions.pod:676
27832 msgid "guestfs_available_all_groups"
27833 msgstr "guestfs_available_all_groups"
27834
27835 #. type: verbatim
27836 #: ../src/guestfs-actions.pod:678
27837 #, no-wrap
27838 msgid ""
27839 " char **\n"
27840 " guestfs_available_all_groups (guestfs_h *g);\n"
27841 "\n"
27842 msgstr ""
27843 " char **\n"
27844 " guestfs_available_all_groups (guestfs_h *g);\n"
27845 "\n"
27846
27847 #. type: textblock
27848 #: ../src/guestfs-actions.pod:681
27849 msgid ""
27850 "This command returns a list of all optional groups that this daemon knows "
27851 "about.  Note this returns both supported and unsupported groups.  To find "
27852 "out which ones the daemon can actually support you have to call "
27853 "C<guestfs_available> on each member of the returned list."
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../src/guestfs-actions.pod:687
27858 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27859 msgstr ""
27860
27861 #. type: textblock
27862 #: ../src/guestfs-actions.pod:693
27863 msgid "(Added in 1.3.15)"
27864 msgstr "(Додано у 1.3.15)"
27865
27866 #. type: =head2
27867 #: ../src/guestfs-actions.pod:695
27868 msgid "guestfs_base64_in"
27869 msgstr "guestfs_base64_in"
27870
27871 #. type: verbatim
27872 #: ../src/guestfs-actions.pod:697
27873 #, no-wrap
27874 msgid ""
27875 " int\n"
27876 " guestfs_base64_in (guestfs_h *g,\n"
27877 "                    const char *base64file,\n"
27878 "                    const char *filename);\n"
27879 "\n"
27880 msgstr ""
27881 " int\n"
27882 " guestfs_base64_in (guestfs_h *g,\n"
27883 "                    const char *base64file,\n"
27884 "                    const char *filename);\n"
27885 "\n"
27886
27887 #. type: textblock
27888 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27889 msgid "(Added in 1.3.5)"
27890 msgstr "(Додано у 1.3.5)"
27891
27892 #. type: =head2
27893 #: ../src/guestfs-actions.pod:709
27894 msgid "guestfs_base64_out"
27895 msgstr "guestfs_base64_out"
27896
27897 #. type: verbatim
27898 #: ../src/guestfs-actions.pod:711
27899 #, no-wrap
27900 msgid ""
27901 " int\n"
27902 " guestfs_base64_out (guestfs_h *g,\n"
27903 "                     const char *filename,\n"
27904 "                     const char *base64file);\n"
27905 "\n"
27906 msgstr ""
27907 " int\n"
27908 " guestfs_base64_out (guestfs_h *g,\n"
27909 "                     const char *filename,\n"
27910 "                     const char *base64file);\n"
27911 "\n"
27912
27913 #. type: =head2
27914 #: ../src/guestfs-actions.pod:723
27915 #, fuzzy
27916 #| msgid "guestfs_lvuuid"
27917 msgid "guestfs_blkid"
27918 msgstr "guestfs_lvuuid"
27919
27920 #. type: verbatim
27921 #: ../src/guestfs-actions.pod:725
27922 #, fuzzy, no-wrap
27923 #| msgid ""
27924 #| " char *\n"
27925 #| " guestfs_lvuuid (guestfs_h *g,\n"
27926 #| "                 const char *device);\n"
27927 #| "\n"
27928 msgid ""
27929 " char **\n"
27930 " guestfs_blkid (guestfs_h *g,\n"
27931 "                const char *device);\n"
27932 "\n"
27933 msgstr ""
27934 " char *\n"
27935 " guestfs_lvuuid (guestfs_h *g,\n"
27936 "                 const char *device);\n"
27937 "\n"
27938
27939 #. type: textblock
27940 #: ../src/guestfs-actions.pod:756 ../src/guestfs-actions.pod:3231
27941 #: ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:4306
27942 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5731
27943 #: ../src/guestfs-actions.pod:7928
27944 msgid ""
27945 "This function returns a NULL-terminated array of strings, or NULL if there "
27946 "was an error.  The array of strings will always have length C<2n+1>, where "
27947 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27948 "caller must free the strings and the array after use>."
27949 msgstr ""
27950
27951 #. type: =head2
27952 #: ../src/guestfs-actions.pod:762
27953 msgid "guestfs_blockdev_flushbufs"
27954 msgstr "guestfs_blockdev_flushbufs"
27955
27956 #. type: verbatim
27957 #: ../src/guestfs-actions.pod:764
27958 #, no-wrap
27959 msgid ""
27960 " int\n"
27961 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27962 "                             const char *device);\n"
27963 "\n"
27964 msgstr ""
27965 " int\n"
27966 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27967 "                             const char *device);\n"
27968 "\n"
27969
27970 #. type: textblock
27971 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:792
27972 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:823
27973 #: ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:860
27974 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:892
27975 #: ../src/guestfs-actions.pod:906 ../src/guestfs-actions.pod:920
27976 msgid "(Added in 0.9.3)"
27977 msgstr "(Додано у 0.9.3)"
27978
27979 #. type: =head2
27980 #: ../src/guestfs-actions.pod:777
27981 msgid "guestfs_blockdev_getbsz"
27982 msgstr "guestfs_blockdev_getbsz"
27983
27984 #. type: verbatim
27985 #: ../src/guestfs-actions.pod:779
27986 #, no-wrap
27987 msgid ""
27988 " int\n"
27989 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27990 "                          const char *device);\n"
27991 "\n"
27992 msgstr ""
27993 " int\n"
27994 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27995 "                          const char *device);\n"
27996 "\n"
27997
27998 #. type: =head2
27999 #: ../src/guestfs-actions.pod:794
28000 msgid "guestfs_blockdev_getro"
28001 msgstr "guestfs_blockdev_getro"
28002
28003 #. type: verbatim
28004 #: ../src/guestfs-actions.pod:796
28005 #, no-wrap
28006 msgid ""
28007 " int\n"
28008 " guestfs_blockdev_getro (guestfs_h *g,\n"
28009 "                         const char *device);\n"
28010 "\n"
28011 msgstr ""
28012 " int\n"
28013 " guestfs_blockdev_getro (guestfs_h *g,\n"
28014 "                         const char *device);\n"
28015 "\n"
28016
28017 #. type: textblock
28018 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:1930
28019 #: ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2434
28020 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2517
28021 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2583
28022 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2634
28023 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:3736
28024 #: ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3770
28025 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3946
28026 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3975
28027 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4006
28028 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4036
28029 #: ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4063
28030 #: ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4093
28031 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4120
28032 #: ../src/guestfs-actions.pod:5989
28033 msgid "This function returns a C truth value on success or -1 on error."
28034 msgstr ""
28035
28036 #. type: =head2
28037 #: ../src/guestfs-actions.pod:809
28038 msgid "guestfs_blockdev_getsize64"
28039 msgstr "guestfs_blockdev_getsize64"
28040
28041 #. type: verbatim
28042 #: ../src/guestfs-actions.pod:811
28043 #, no-wrap
28044 msgid ""
28045 " int64_t\n"
28046 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
28047 "                             const char *device);\n"
28048 "\n"
28049 msgstr ""
28050 " int64_t\n"
28051 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
28052 "                             const char *device);\n"
28053 "\n"
28054
28055 #. type: textblock
28056 #: ../src/guestfs-actions.pod:817
28057 msgid "See also C<guestfs_blockdev_getsz>."
28058 msgstr ""
28059
28060 #. type: =head2
28061 #: ../src/guestfs-actions.pod:825
28062 msgid "guestfs_blockdev_getss"
28063 msgstr "guestfs_blockdev_getss"
28064
28065 #. type: verbatim
28066 #: ../src/guestfs-actions.pod:827
28067 #, no-wrap
28068 msgid ""
28069 " int\n"
28070 " guestfs_blockdev_getss (guestfs_h *g,\n"
28071 "                         const char *device);\n"
28072 "\n"
28073 msgstr ""
28074 " int\n"
28075 " guestfs_blockdev_getss (guestfs_h *g,\n"
28076 "                         const char *device);\n"
28077 "\n"
28078
28079 #. type: textblock
28080 #: ../src/guestfs-actions.pod:834
28081 msgid ""
28082 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
28083 "that)."
28084 msgstr ""
28085
28086 #. type: =head2
28087 #: ../src/guestfs-actions.pod:843
28088 msgid "guestfs_blockdev_getsz"
28089 msgstr "guestfs_blockdev_getsz"
28090
28091 #. type: verbatim
28092 #: ../src/guestfs-actions.pod:845
28093 #, no-wrap
28094 msgid ""
28095 " int64_t\n"
28096 " guestfs_blockdev_getsz (guestfs_h *g,\n"
28097 "                         const char *device);\n"
28098 "\n"
28099 msgstr ""
28100 " int64_t\n"
28101 " guestfs_blockdev_getsz (guestfs_h *g,\n"
28102 "                         const char *device);\n"
28103 "\n"
28104
28105 #. type: textblock
28106 #: ../src/guestfs-actions.pod:852
28107 msgid ""
28108 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
28109 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
28110 msgstr ""
28111
28112 #. type: =head2
28113 #: ../src/guestfs-actions.pod:862
28114 msgid "guestfs_blockdev_rereadpt"
28115 msgstr "guestfs_blockdev_rereadpt"
28116
28117 #. type: verbatim
28118 #: ../src/guestfs-actions.pod:864
28119 #, no-wrap
28120 msgid ""
28121 " int\n"
28122 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
28123 "                            const char *device);\n"
28124 "\n"
28125 msgstr ""
28126 " int\n"
28127 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
28128 "                            const char *device);\n"
28129 "\n"
28130
28131 #. type: =head2
28132 #: ../src/guestfs-actions.pod:876
28133 msgid "guestfs_blockdev_setbsz"
28134 msgstr "guestfs_blockdev_setbsz"
28135
28136 #. type: verbatim
28137 #: ../src/guestfs-actions.pod:878
28138 #, no-wrap
28139 msgid ""
28140 " int\n"
28141 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
28142 "                          const char *device,\n"
28143 "                          int blocksize);\n"
28144 "\n"
28145 msgstr ""
28146 " int\n"
28147 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
28148 "                          const char *device,\n"
28149 "                          int blocksize);\n"
28150 "\n"
28151
28152 #. type: =head2
28153 #: ../src/guestfs-actions.pod:894
28154 msgid "guestfs_blockdev_setro"
28155 msgstr "guestfs_blockdev_setro"
28156
28157 #. type: verbatim
28158 #: ../src/guestfs-actions.pod:896
28159 #, no-wrap
28160 msgid ""
28161 " int\n"
28162 " guestfs_blockdev_setro (guestfs_h *g,\n"
28163 "                         const char *device);\n"
28164 "\n"
28165 msgstr ""
28166 " int\n"
28167 " guestfs_blockdev_setro (guestfs_h *g,\n"
28168 "                         const char *device);\n"
28169 "\n"
28170
28171 #. type: =head2
28172 #: ../src/guestfs-actions.pod:908
28173 msgid "guestfs_blockdev_setrw"
28174 msgstr "guestfs_blockdev_setrw"
28175
28176 #. type: verbatim
28177 #: ../src/guestfs-actions.pod:910
28178 #, no-wrap
28179 msgid ""
28180 " int\n"
28181 " guestfs_blockdev_setrw (guestfs_h *g,\n"
28182 "                         const char *device);\n"
28183 "\n"
28184 msgstr ""
28185 " int\n"
28186 " guestfs_blockdev_setrw (guestfs_h *g,\n"
28187 "                         const char *device);\n"
28188 "\n"
28189
28190 #. type: =head2
28191 #: ../src/guestfs-actions.pod:922
28192 msgid "guestfs_btrfs_filesystem_resize"
28193 msgstr "guestfs_btrfs_filesystem_resize"
28194
28195 #. type: verbatim
28196 #: ../src/guestfs-actions.pod:924
28197 #, no-wrap
28198 msgid ""
28199 " int\n"
28200 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
28201 "                                  const char *mountpoint,\n"
28202 "                                  ...);\n"
28203 "\n"
28204 msgstr ""
28205 " int\n"
28206 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
28207 "                                  const char *mountpoint,\n"
28208 "                                  ...);\n"
28209 "\n"
28210
28211 #. type: verbatim
28212 #: ../src/guestfs-actions.pod:934
28213 #, no-wrap
28214 msgid ""
28215 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
28216 "\n"
28217 msgstr ""
28218 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
28219 "\n"
28220
28221 #. type: textblock
28222 #: ../src/guestfs-actions.pod:957
28223 msgid "(Added in 1.11.17)"
28224 msgstr "(Додано у 1.11.17)"
28225
28226 #. type: =head2
28227 #: ../src/guestfs-actions.pod:959
28228 msgid "guestfs_btrfs_filesystem_resize_va"
28229 msgstr "guestfs_btrfs_filesystem_resize_va"
28230
28231 #. type: verbatim
28232 #: ../src/guestfs-actions.pod:961
28233 #, no-wrap
28234 msgid ""
28235 " int\n"
28236 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
28237 "                                     const char *mountpoint,\n"
28238 "                                     va_list args);\n"
28239 "\n"
28240 msgstr ""
28241 " int\n"
28242 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
28243 "                                     const char *mountpoint,\n"
28244 "                                     va_list args);\n"
28245 "\n"
28246
28247 #. type: textblock
28248 #: ../src/guestfs-actions.pod:966
28249 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
28250 msgstr ""
28251
28252 #. type: =head2
28253 #: ../src/guestfs-actions.pod:970
28254 msgid "guestfs_btrfs_filesystem_resize_argv"
28255 msgstr "guestfs_btrfs_filesystem_resize_argv"
28256
28257 #. type: verbatim
28258 #: ../src/guestfs-actions.pod:972
28259 #, no-wrap
28260 msgid ""
28261 " int\n"
28262 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28263 "                                       const char *mountpoint,\n"
28264 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28265 "\n"
28266 msgstr ""
28267 " int\n"
28268 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28269 "                                       const char *mountpoint,\n"
28270 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28271 "\n"
28272
28273 #. type: textblock
28274 #: ../src/guestfs-actions.pod:977
28275 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
28276 msgstr ""
28277
28278 #. type: =head2
28279 #: ../src/guestfs-actions.pod:981
28280 msgid "guestfs_case_sensitive_path"
28281 msgstr ""
28282
28283 #. type: verbatim
28284 #: ../src/guestfs-actions.pod:983
28285 #, no-wrap
28286 msgid ""
28287 " char *\n"
28288 " guestfs_case_sensitive_path (guestfs_h *g,\n"
28289 "                              const char *path);\n"
28290 "\n"
28291 msgstr ""
28292
28293 #. type: textblock
28294 #: ../src/guestfs-actions.pod:1009
28295 msgid ""
28296 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
28297 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
28298 "how the directories were originally created under Windows)."
28299 msgstr ""
28300
28301 #. type: textblock
28302 #: ../src/guestfs-actions.pod:1017
28303 msgid "See also C<guestfs_realpath>."
28304 msgstr ""
28305
28306 #. type: textblock
28307 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:8183
28308 msgid "(Added in 1.0.75)"
28309 msgstr "(Додано у 1.0.75)"
28310
28311 #. type: =head2
28312 #: ../src/guestfs-actions.pod:1024
28313 msgid "guestfs_cat"
28314 msgstr ""
28315
28316 #. type: verbatim
28317 #: ../src/guestfs-actions.pod:1026
28318 #, no-wrap
28319 msgid ""
28320 " char *\n"
28321 " guestfs_cat (guestfs_h *g,\n"
28322 "              const char *path);\n"
28323 "\n"
28324 msgstr ""
28325
28326 #. type: textblock
28327 #: ../src/guestfs-actions.pod:1032
28328 msgid ""
28329 "Note that this function cannot correctly handle binary files (specifically, "
28330 "files containing C<\\0> character which is treated as end of string).  For "
28331 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
28332 "functions which have a more complex interface."
28333 msgstr ""
28334
28335 #. type: textblock
28336 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:4250
28337 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4362
28338 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4849
28339 #: ../src/guestfs-actions.pod:4863 ../src/guestfs-actions.pod:6390
28340 #: ../src/guestfs-actions.pod:6404 ../src/guestfs-actions.pod:8336
28341 #: ../src/guestfs-actions.pod:8350
28342 msgid "(Added in 0.4)"
28343 msgstr "(Додано у 0.4)"
28344
28345 #. type: =head2
28346 #: ../src/guestfs-actions.pod:1045
28347 msgid "guestfs_checksum"
28348 msgstr ""
28349
28350 #. type: verbatim
28351 #: ../src/guestfs-actions.pod:1047
28352 #, no-wrap
28353 msgid ""
28354 " char *\n"
28355 " guestfs_checksum (guestfs_h *g,\n"
28356 "                   const char *csumtype,\n"
28357 "                   const char *path);\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../src/guestfs-actions.pod:1093
28363 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
28364 msgstr ""
28365
28366 #. type: textblock
28367 #: ../src/guestfs-actions.pod:1095
28368 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
28369 msgstr ""
28370
28371 #. type: textblock
28372 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1767
28373 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3948
28374 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4038
28375 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:8039
28376 msgid "(Added in 1.0.2)"
28377 msgstr "(Додано у 1.0.2)"
28378
28379 #. type: =head2
28380 #: ../src/guestfs-actions.pod:1102
28381 msgid "guestfs_checksum_device"
28382 msgstr ""
28383
28384 #. type: verbatim
28385 #: ../src/guestfs-actions.pod:1104
28386 #, no-wrap
28387 msgid ""
28388 " char *\n"
28389 " guestfs_checksum_device (guestfs_h *g,\n"
28390 "                          const char *csumtype,\n"
28391 "                          const char *device);\n"
28392 "\n"
28393 msgstr ""
28394
28395 #. type: textblock
28396 #: ../src/guestfs-actions.pod:1109
28397 msgid ""
28398 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
28399 "device named C<device>.  For the types of checksums supported see the "
28400 "C<guestfs_checksum> command."
28401 msgstr ""
28402
28403 #. type: textblock
28404 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:5822
28405 #: ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5991
28406 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6191
28407 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7962
28408 #: ../src/guestfs-actions.pod:8362
28409 msgid "(Added in 1.3.2)"
28410 msgstr "(Додано у 1.3.2)"
28411
28412 #. type: =head2
28413 #: ../src/guestfs-actions.pod:1118
28414 msgid "guestfs_checksums_out"
28415 msgstr ""
28416
28417 #. type: verbatim
28418 #: ../src/guestfs-actions.pod:1120
28419 #, no-wrap
28420 msgid ""
28421 " int\n"
28422 " guestfs_checksums_out (guestfs_h *g,\n"
28423 "                        const char *csumtype,\n"
28424 "                        const char *directory,\n"
28425 "                        const char *sumsfile);\n"
28426 "\n"
28427 msgstr ""
28428
28429 #. type: textblock
28430 #: ../src/guestfs-actions.pod:1140
28431 msgid "(Added in 1.3.7)"
28432 msgstr "(Додано у 1.3.7)"
28433
28434 #. type: =head2
28435 #: ../src/guestfs-actions.pod:1142
28436 msgid "guestfs_chmod"
28437 msgstr ""
28438
28439 #. type: verbatim
28440 #: ../src/guestfs-actions.pod:1144
28441 #, no-wrap
28442 msgid ""
28443 " int\n"
28444 " guestfs_chmod (guestfs_h *g,\n"
28445 "                int mode,\n"
28446 "                const char *path);\n"
28447 "\n"
28448 msgstr ""
28449
28450 #. type: =head2
28451 #: ../src/guestfs-actions.pod:1162
28452 msgid "guestfs_chown"
28453 msgstr ""
28454
28455 #. type: verbatim
28456 #: ../src/guestfs-actions.pod:1164
28457 #, no-wrap
28458 msgid ""
28459 " int\n"
28460 " guestfs_chown (guestfs_h *g,\n"
28461 "                int owner,\n"
28462 "                int group,\n"
28463 "                const char *path);\n"
28464 "\n"
28465 msgstr ""
28466
28467 #. type: =head2
28468 #: ../src/guestfs-actions.pod:1180
28469 msgid "guestfs_command"
28470 msgstr ""
28471
28472 #. type: verbatim
28473 #: ../src/guestfs-actions.pod:1182
28474 #, no-wrap
28475 msgid ""
28476 " char *\n"
28477 " guestfs_command (guestfs_h *g,\n"
28478 "                  char *const *arguments);\n"
28479 "\n"
28480 msgstr ""
28481
28482 #. type: textblock
28483 #: ../src/guestfs-actions.pod:1191
28484 msgid ""
28485 "The single parameter is an argv-style list of arguments.  The first element "
28486 "is the name of the program to run.  Subsequent elements are parameters.  The "
28487 "list must be non-empty (ie. must contain a program name).  Note that the "
28488 "command runs directly, and is I<not> invoked via the shell (see "
28489 "C<guestfs_sh>)."
28490 msgstr ""
28491
28492 #. type: textblock
28493 #: ../src/guestfs-actions.pod:1222 ../src/guestfs-actions.pod:1242
28494 #: ../src/guestfs-actions.pod:2066
28495 msgid "(Added in 0.9.1)"
28496 msgstr "(Додано у 0.9.1)"
28497
28498 #. type: =head2
28499 #: ../src/guestfs-actions.pod:1224
28500 msgid "guestfs_command_lines"
28501 msgstr ""
28502
28503 #. type: verbatim
28504 #: ../src/guestfs-actions.pod:1226
28505 #, no-wrap
28506 msgid ""
28507 " char **\n"
28508 " guestfs_command_lines (guestfs_h *g,\n"
28509 "                        char *const *arguments);\n"
28510 "\n"
28511 msgstr ""
28512
28513 #. type: textblock
28514 #: ../src/guestfs-actions.pod:1230
28515 msgid ""
28516 "This is the same as C<guestfs_command>, but splits the result into a list of "
28517 "lines."
28518 msgstr ""
28519
28520 #. type: textblock
28521 #: ../src/guestfs-actions.pod:1233
28522 msgid "See also: C<guestfs_sh_lines>"
28523 msgstr ""
28524
28525 #. type: =head2
28526 #: ../src/guestfs-actions.pod:1244
28527 msgid "guestfs_compress_device_out"
28528 msgstr ""
28529
28530 #. type: verbatim
28531 #: ../src/guestfs-actions.pod:1246
28532 #, no-wrap
28533 msgid ""
28534 " int\n"
28535 " guestfs_compress_device_out (guestfs_h *g,\n"
28536 "                              const char *ctype,\n"
28537 "                              const char *device,\n"
28538 "                              const char *zdevice,\n"
28539 "                              ...);\n"
28540 "\n"
28541 msgstr ""
28542
28543 #. type: verbatim
28544 #: ../src/guestfs-actions.pod:1258
28545 #, no-wrap
28546 msgid ""
28547 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
28548 "\n"
28549 msgstr ""
28550
28551 #. type: textblock
28552 #: ../src/guestfs-actions.pod:1263
28553 msgid ""
28554 "The C<ctype> and optional C<level> parameters have the same meaning as in "
28555 "C<guestfs_compress_out>."
28556 msgstr ""
28557
28558 #. type: textblock
28559 #: ../src/guestfs-actions.pod:1268 ../src/guestfs-actions.pod:1327
28560 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:7107
28561 msgid "(Added in 1.13.15)"
28562 msgstr ""
28563
28564 #. type: =head2
28565 #: ../src/guestfs-actions.pod:1270
28566 msgid "guestfs_compress_device_out_va"
28567 msgstr ""
28568
28569 #. type: verbatim
28570 #: ../src/guestfs-actions.pod:1272
28571 #, no-wrap
28572 msgid ""
28573 " int\n"
28574 " guestfs_compress_device_out_va (guestfs_h *g,\n"
28575 "                                 const char *ctype,\n"
28576 "                                 const char *device,\n"
28577 "                                 const char *zdevice,\n"
28578 "                                 va_list args);\n"
28579 "\n"
28580 msgstr ""
28581
28582 #. type: textblock
28583 #: ../src/guestfs-actions.pod:1279
28584 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
28585 msgstr ""
28586
28587 #. type: =head2
28588 #: ../src/guestfs-actions.pod:1283
28589 msgid "guestfs_compress_device_out_argv"
28590 msgstr ""
28591
28592 #. type: verbatim
28593 #: ../src/guestfs-actions.pod:1285
28594 #, no-wrap
28595 msgid ""
28596 " int\n"
28597 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
28598 "                                   const char *ctype,\n"
28599 "                                   const char *device,\n"
28600 "                                   const char *zdevice,\n"
28601 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
28602 "\n"
28603 msgstr ""
28604
28605 #. type: textblock
28606 #: ../src/guestfs-actions.pod:1292
28607 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
28608 msgstr ""
28609
28610 #. type: =head2
28611 #: ../src/guestfs-actions.pod:1296
28612 msgid "guestfs_compress_out"
28613 msgstr ""
28614
28615 #. type: verbatim
28616 #: ../src/guestfs-actions.pod:1298
28617 #, no-wrap
28618 msgid ""
28619 " int\n"
28620 " guestfs_compress_out (guestfs_h *g,\n"
28621 "                       const char *ctype,\n"
28622 "                       const char *file,\n"
28623 "                       const char *zfile,\n"
28624 "                       ...);\n"
28625 "\n"
28626 msgstr ""
28627
28628 #. type: verbatim
28629 #: ../src/guestfs-actions.pod:1310
28630 #, no-wrap
28631 msgid ""
28632 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
28633 "\n"
28634 msgstr ""
28635
28636 #. type: =head2
28637 #: ../src/guestfs-actions.pod:1329
28638 msgid "guestfs_compress_out_va"
28639 msgstr ""
28640
28641 #. type: verbatim
28642 #: ../src/guestfs-actions.pod:1331
28643 #, no-wrap
28644 msgid ""
28645 " int\n"
28646 " guestfs_compress_out_va (guestfs_h *g,\n"
28647 "                          const char *ctype,\n"
28648 "                          const char *file,\n"
28649 "                          const char *zfile,\n"
28650 "                          va_list args);\n"
28651 "\n"
28652 msgstr ""
28653
28654 #. type: textblock
28655 #: ../src/guestfs-actions.pod:1338
28656 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
28657 msgstr ""
28658
28659 #. type: =head2
28660 #: ../src/guestfs-actions.pod:1342
28661 msgid "guestfs_compress_out_argv"
28662 msgstr ""
28663
28664 #. type: verbatim
28665 #: ../src/guestfs-actions.pod:1344
28666 #, no-wrap
28667 msgid ""
28668 " int\n"
28669 " guestfs_compress_out_argv (guestfs_h *g,\n"
28670 "                            const char *ctype,\n"
28671 "                            const char *file,\n"
28672 "                            const char *zfile,\n"
28673 "                            const struct guestfs_compress_out_argv *optargs);\n"
28674 "\n"
28675 msgstr ""
28676
28677 #. type: textblock
28678 #: ../src/guestfs-actions.pod:1351
28679 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
28680 msgstr ""
28681
28682 #. type: =head2
28683 #: ../src/guestfs-actions.pod:1355
28684 msgid "guestfs_config"
28685 msgstr ""
28686
28687 #. type: verbatim
28688 #: ../src/guestfs-actions.pod:1357
28689 #, no-wrap
28690 msgid ""
28691 " int\n"
28692 " guestfs_config (guestfs_h *g,\n"
28693 "                 const char *qemuparam,\n"
28694 "                 const char *qemuvalue);\n"
28695 "\n"
28696 msgstr ""
28697
28698 #. type: =head2
28699 #: ../src/guestfs-actions.pod:1375
28700 msgid "guestfs_copy_device_to_device"
28701 msgstr ""
28702
28703 #. type: verbatim
28704 #: ../src/guestfs-actions.pod:1377
28705 #, no-wrap
28706 msgid ""
28707 " int\n"
28708 " guestfs_copy_device_to_device (guestfs_h *g,\n"
28709 "                                const char *src,\n"
28710 "                                const char *dest,\n"
28711 "                                ...);\n"
28712 "\n"
28713 msgstr ""
28714
28715 #. type: verbatim
28716 #: ../src/guestfs-actions.pod:1388
28717 #, no-wrap
28718 msgid ""
28719 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28720 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28721 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
28722 "\n"
28723 msgstr ""
28724
28725 #. type: textblock
28726 #: ../src/guestfs-actions.pod:1392
28727 msgid ""
28728 "The four calls C<guestfs_copy_device_to_device>, "
28729 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
28730 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
28731 "destination (device|file)."
28732 msgstr ""
28733
28734 #. type: textblock
28735 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
28736 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:1577
28737 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1762
28738 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:1838
28739 #: ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2237
28740 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:8034
28741 #: ../src/guestfs-actions.pod:8068 ../src/guestfs-actions.pod:8575
28742 #: ../src/guestfs-actions.pod:8598
28743 msgid ""
28744 "This long-running command can generate progress notification messages so "
28745 "that the caller can display a progress bar or indicator.  To receive these "
28746 "messages, the caller must register a progress event callback.  See L<guestfs"
28747 "(3)/GUESTFS_EVENT_PROGRESS>."
28748 msgstr ""
28749
28750 #. type: textblock
28751 #: ../src/guestfs-actions.pod:1418 ../src/guestfs-actions.pod:1471
28752 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1582
28753 #: ../src/guestfs-actions.pod:6247
28754 #, fuzzy
28755 #| msgid "(Added in 1.3.5)"
28756 msgid "(Added in 1.13.25)"
28757 msgstr "(Додано у 1.3.5)"
28758
28759 #. type: =head2
28760 #: ../src/guestfs-actions.pod:1420
28761 msgid "guestfs_copy_device_to_device_va"
28762 msgstr ""
28763
28764 #. type: verbatim
28765 #: ../src/guestfs-actions.pod:1422
28766 #, no-wrap
28767 msgid ""
28768 " int\n"
28769 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
28770 "                                   const char *src,\n"
28771 "                                   const char *dest,\n"
28772 "                                   va_list args);\n"
28773 "\n"
28774 msgstr ""
28775
28776 #. type: textblock
28777 #: ../src/guestfs-actions.pod:1428
28778 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
28779 msgstr ""
28780
28781 #. type: =head2
28782 #: ../src/guestfs-actions.pod:1432
28783 msgid "guestfs_copy_device_to_device_argv"
28784 msgstr ""
28785
28786 #. type: verbatim
28787 #: ../src/guestfs-actions.pod:1434
28788 #, no-wrap
28789 msgid ""
28790 " int\n"
28791 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
28792 "                                     const char *src,\n"
28793 "                                     const char *dest,\n"
28794 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
28795 "\n"
28796 msgstr ""
28797
28798 #. type: textblock
28799 #: ../src/guestfs-actions.pod:1440
28800 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
28801 msgstr ""
28802
28803 #. type: =head2
28804 #: ../src/guestfs-actions.pod:1444
28805 msgid "guestfs_copy_device_to_file"
28806 msgstr ""
28807
28808 #. type: verbatim
28809 #: ../src/guestfs-actions.pod:1446
28810 #, no-wrap
28811 msgid ""
28812 " int\n"
28813 " guestfs_copy_device_to_file (guestfs_h *g,\n"
28814 "                              const char *src,\n"
28815 "                              const char *dest,\n"
28816 "                              ...);\n"
28817 "\n"
28818 msgstr ""
28819
28820 #. type: verbatim
28821 #: ../src/guestfs-actions.pod:1457
28822 #, no-wrap
28823 msgid ""
28824 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28825 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28826 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
28827 "\n"
28828 msgstr ""
28829
28830 #. type: textblock
28831 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:1514
28832 #: ../src/guestfs-actions.pod:1567
28833 msgid ""
28834 "See C<guestfs_copy_device_to_device> for a general overview of this call."
28835 msgstr ""
28836
28837 #. type: =head2
28838 #: ../src/guestfs-actions.pod:1473
28839 msgid "guestfs_copy_device_to_file_va"
28840 msgstr ""
28841
28842 #. type: verbatim
28843 #: ../src/guestfs-actions.pod:1475
28844 #, no-wrap
28845 msgid ""
28846 " int\n"
28847 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
28848 "                                 const char *src,\n"
28849 "                                 const char *dest,\n"
28850 "                                 va_list args);\n"
28851 "\n"
28852 msgstr ""
28853
28854 #. type: textblock
28855 #: ../src/guestfs-actions.pod:1481
28856 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28857 msgstr ""
28858
28859 #. type: =head2
28860 #: ../src/guestfs-actions.pod:1485
28861 msgid "guestfs_copy_device_to_file_argv"
28862 msgstr ""
28863
28864 #. type: verbatim
28865 #: ../src/guestfs-actions.pod:1487
28866 #, no-wrap
28867 msgid ""
28868 " int\n"
28869 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28870 "                                   const char *src,\n"
28871 "                                   const char *dest,\n"
28872 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
28873 "\n"
28874 msgstr ""
28875
28876 #. type: textblock
28877 #: ../src/guestfs-actions.pod:1493
28878 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28879 msgstr ""
28880
28881 #. type: =head2
28882 #: ../src/guestfs-actions.pod:1497
28883 msgid "guestfs_copy_file_to_device"
28884 msgstr ""
28885
28886 #. type: verbatim
28887 #: ../src/guestfs-actions.pod:1499
28888 #, no-wrap
28889 msgid ""
28890 " int\n"
28891 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28892 "                              const char *src,\n"
28893 "                              const char *dest,\n"
28894 "                              ...);\n"
28895 "\n"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:1510
28900 #, no-wrap
28901 msgid ""
28902 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28903 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28904 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:1526
28910 msgid "guestfs_copy_file_to_device_va"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:1528
28915 #, no-wrap
28916 msgid ""
28917 " int\n"
28918 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28919 "                                 const char *src,\n"
28920 "                                 const char *dest,\n"
28921 "                                 va_list args);\n"
28922 "\n"
28923 msgstr ""
28924
28925 #. type: textblock
28926 #: ../src/guestfs-actions.pod:1534
28927 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28928 msgstr ""
28929
28930 #. type: =head2
28931 #: ../src/guestfs-actions.pod:1538
28932 msgid "guestfs_copy_file_to_device_argv"
28933 msgstr ""
28934
28935 #. type: verbatim
28936 #: ../src/guestfs-actions.pod:1540
28937 #, no-wrap
28938 msgid ""
28939 " int\n"
28940 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28941 "                                   const char *src,\n"
28942 "                                   const char *dest,\n"
28943 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
28944 "\n"
28945 msgstr ""
28946
28947 #. type: textblock
28948 #: ../src/guestfs-actions.pod:1546
28949 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28950 msgstr ""
28951
28952 #. type: =head2
28953 #: ../src/guestfs-actions.pod:1550
28954 msgid "guestfs_copy_file_to_file"
28955 msgstr ""
28956
28957 #. type: verbatim
28958 #: ../src/guestfs-actions.pod:1552
28959 #, no-wrap
28960 msgid ""
28961 " int\n"
28962 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28963 "                            const char *src,\n"
28964 "                            const char *dest,\n"
28965 "                            ...);\n"
28966 "\n"
28967 msgstr ""
28968
28969 #. type: verbatim
28970 #: ../src/guestfs-actions.pod:1563
28971 #, no-wrap
28972 msgid ""
28973 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28974 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28975 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28976 "\n"
28977 msgstr ""
28978
28979 #. type: textblock
28980 #: ../src/guestfs-actions.pod:1570
28981 msgid ""
28982 "This is B<not> the function you want for copying files.  This is for copying "
28983 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
28984 "C<guestfs_mv> for general file copying and moving functions."
28985 msgstr ""
28986
28987 #. type: =head2
28988 #: ../src/guestfs-actions.pod:1584
28989 msgid "guestfs_copy_file_to_file_va"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../src/guestfs-actions.pod:1586
28994 #, no-wrap
28995 msgid ""
28996 " int\n"
28997 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28998 "                               const char *src,\n"
28999 "                               const char *dest,\n"
29000 "                               va_list args);\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: textblock
29005 #: ../src/guestfs-actions.pod:1592
29006 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
29007 msgstr ""
29008
29009 #. type: =head2
29010 #: ../src/guestfs-actions.pod:1596
29011 msgid "guestfs_copy_file_to_file_argv"
29012 msgstr ""
29013
29014 #. type: verbatim
29015 #: ../src/guestfs-actions.pod:1598
29016 #, no-wrap
29017 msgid ""
29018 " int\n"
29019 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
29020 "                                 const char *src,\n"
29021 "                                 const char *dest,\n"
29022 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
29023 "\n"
29024 msgstr ""
29025
29026 #. type: textblock
29027 #: ../src/guestfs-actions.pod:1604
29028 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
29029 msgstr ""
29030
29031 #. type: =head2
29032 #: ../src/guestfs-actions.pod:1608
29033 msgid "guestfs_copy_size"
29034 msgstr ""
29035
29036 #. type: verbatim
29037 #: ../src/guestfs-actions.pod:1610
29038 #, no-wrap
29039 msgid ""
29040 " int\n"
29041 " guestfs_copy_size (guestfs_h *g,\n"
29042 "                    const char *src,\n"
29043 "                    const char *dest,\n"
29044 "                    int64_t size);\n"
29045 "\n"
29046 msgstr ""
29047
29048 #. type: textblock
29049 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1673
29050 msgid ""
29051 "I<This function is deprecated.> In new code, use the L</"
29052 "guestfs_copy_device_to_device> call instead."
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../src/guestfs-actions.pod:1636 ../src/guestfs-actions.pod:4876
29057 #: ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:8269
29058 #: ../src/guestfs-actions.pod:8289 ../src/guestfs-actions.pod:8375
29059 msgid "(Added in 1.0.87)"
29060 msgstr "(Додано у 1.0.87)"
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:1638
29064 msgid "guestfs_cp"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:1640
29069 #, no-wrap
29070 msgid ""
29071 " int\n"
29072 " guestfs_cp (guestfs_h *g,\n"
29073 "             const char *src,\n"
29074 "             const char *dest);\n"
29075 "\n"
29076 msgstr ""
29077
29078 #. type: textblock
29079 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1664
29080 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1818
29081 #: ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:5769
29082 #: ../src/guestfs-actions.pod:6261
29083 msgid "(Added in 1.0.18)"
29084 msgstr "(Додано у 1.0.18)"
29085
29086 #. type: =head2
29087 #: ../src/guestfs-actions.pod:1652
29088 msgid "guestfs_cp_a"
29089 msgstr ""
29090
29091 #. type: verbatim
29092 #: ../src/guestfs-actions.pod:1654
29093 #, no-wrap
29094 msgid ""
29095 " int\n"
29096 " guestfs_cp_a (guestfs_h *g,\n"
29097 "               const char *src,\n"
29098 "               const char *dest);\n"
29099 "\n"
29100 msgstr ""
29101
29102 #. type: =head2
29103 #: ../src/guestfs-actions.pod:1666
29104 msgid "guestfs_dd"
29105 msgstr ""
29106
29107 #. type: verbatim
29108 #: ../src/guestfs-actions.pod:1668
29109 #, no-wrap
29110 msgid ""
29111 " int\n"
29112 " guestfs_dd (guestfs_h *g,\n"
29113 "             const char *src,\n"
29114 "             const char *dest);\n"
29115 "\n"
29116 msgstr ""
29117
29118 #. type: textblock
29119 #: ../src/guestfs-actions.pod:1685
29120 msgid ""
29121 "If the destination is a device, it must be as large or larger than the "
29122 "source file or device, otherwise the copy will fail.  This command cannot do "
29123 "partial copies (see C<guestfs_copy_device_to_device>)."
29124 msgstr ""
29125
29126 #. type: =head2
29127 #: ../src/guestfs-actions.pod:1694
29128 msgid "guestfs_df"
29129 msgstr ""
29130
29131 #. type: verbatim
29132 #: ../src/guestfs-actions.pod:1696
29133 #, no-wrap
29134 msgid ""
29135 " char *\n"
29136 " guestfs_df (guestfs_h *g);\n"
29137 "\n"
29138 msgstr ""
29139
29140 #. type: textblock
29141 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1718
29142 msgid ""
29143 "This command is mostly useful for interactive sessions.  It is I<not> "
29144 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
29145 "from programs."
29146 msgstr ""
29147
29148 #. type: textblock
29149 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1725
29150 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2850
29151 #: ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2942
29152 #: ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5669
29153 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7674
29154 #: ../src/guestfs-actions.pod:8415 ../src/guestfs-actions.pod:8428
29155 #: ../src/guestfs-actions.pod:8441
29156 msgid "(Added in 1.0.54)"
29157 msgstr "(Додано у 1.0.54)"
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:1710
29161 msgid "guestfs_df_h"
29162 msgstr ""
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:1712
29166 #, no-wrap
29167 msgid ""
29168 " char *\n"
29169 " guestfs_df_h (guestfs_h *g);\n"
29170 "\n"
29171 msgstr ""
29172
29173 #. type: =head2
29174 #: ../src/guestfs-actions.pod:1727
29175 msgid "guestfs_dmesg"
29176 msgstr ""
29177
29178 #. type: verbatim
29179 #: ../src/guestfs-actions.pod:1729
29180 #, no-wrap
29181 msgid ""
29182 " char *\n"
29183 " guestfs_dmesg (guestfs_h *g);\n"
29184 "\n"
29185 msgstr ""
29186
29187 #. type: textblock
29188 #: ../src/guestfs-actions.pod:1736
29189 msgid ""
29190 "Another way to get the same information is to enable verbose messages with "
29191 "C<guestfs_set_verbose> or by setting the environment variable "
29192 "C<LIBGUESTFS_DEBUG=1> before running the program."
29193 msgstr ""
29194
29195 #. type: =head2
29196 #: ../src/guestfs-actions.pod:1746
29197 msgid "guestfs_download"
29198 msgstr ""
29199
29200 #. type: verbatim
29201 #: ../src/guestfs-actions.pod:1748
29202 #, no-wrap
29203 msgid ""
29204 " int\n"
29205 " guestfs_download (guestfs_h *g,\n"
29206 "                   const char *remotefilename,\n"
29207 "                   const char *filename);\n"
29208 "\n"
29209 msgstr ""
29210
29211 #. type: textblock
29212 #: ../src/guestfs-actions.pod:1758
29213 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
29214 msgstr ""
29215
29216 #. type: =head2
29217 #: ../src/guestfs-actions.pod:1769
29218 msgid "guestfs_download_offset"
29219 msgstr ""
29220
29221 #. type: verbatim
29222 #: ../src/guestfs-actions.pod:1771
29223 #, no-wrap
29224 msgid ""
29225 " int\n"
29226 " guestfs_download_offset (guestfs_h *g,\n"
29227 "                          const char *remotefilename,\n"
29228 "                          const char *filename,\n"
29229 "                          int64_t offset,\n"
29230 "                          int64_t size);\n"
29231 "\n"
29232 msgstr ""
29233
29234 #. type: textblock
29235 #: ../src/guestfs-actions.pod:1784
29236 msgid ""
29237 "Note that there is no limit on the amount of data that can be downloaded "
29238 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
29239 "full amount unless an error occurs."
29240 msgstr ""
29241
29242 #. type: textblock
29243 #: ../src/guestfs-actions.pod:1789
29244 msgid "See also C<guestfs_download>, C<guestfs_pread>."
29245 msgstr ""
29246
29247 #. type: textblock
29248 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:8073
29249 msgid "(Added in 1.5.17)"
29250 msgstr "(Додано у 1.5.17)"
29251
29252 #. type: =head2
29253 #: ../src/guestfs-actions.pod:1800
29254 msgid "guestfs_drop_caches"
29255 msgstr ""
29256
29257 #. type: verbatim
29258 #: ../src/guestfs-actions.pod:1802
29259 #, no-wrap
29260 msgid ""
29261 " int\n"
29262 " guestfs_drop_caches (guestfs_h *g,\n"
29263 "                      int whattodrop);\n"
29264 "\n"
29265 msgstr ""
29266
29267 #. type: =head2
29268 #: ../src/guestfs-actions.pod:1820
29269 msgid "guestfs_du"
29270 msgstr ""
29271
29272 #. type: verbatim
29273 #: ../src/guestfs-actions.pod:1822
29274 #, no-wrap
29275 msgid ""
29276 " int64_t\n"
29277 " guestfs_du (guestfs_h *g,\n"
29278 "             const char *path);\n"
29279 "\n"
29280 msgstr ""
29281
29282 #. type: =head2
29283 #: ../src/guestfs-actions.pod:1845
29284 msgid "guestfs_e2fsck_f"
29285 msgstr ""
29286
29287 #. type: verbatim
29288 #: ../src/guestfs-actions.pod:1847
29289 #, no-wrap
29290 msgid ""
29291 " int\n"
29292 " guestfs_e2fsck_f (guestfs_h *g,\n"
29293 "                   const char *device);\n"
29294 "\n"
29295 msgstr ""
29296
29297 #. type: textblock
29298 #: ../src/guestfs-actions.pod:1855
29299 msgid ""
29300 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
29301 "Normally you should use C<guestfs_fsck>."
29302 msgstr ""
29303
29304 #. type: textblock
29305 #: ../src/guestfs-actions.pod:1860
29306 msgid "(Added in 1.0.29)"
29307 msgstr "(Додано у 1.0.29)"
29308
29309 #. type: =head2
29310 #: ../src/guestfs-actions.pod:1862
29311 msgid "guestfs_echo_daemon"
29312 msgstr "guestfs_echo_daemon"
29313
29314 #. type: verbatim
29315 #: ../src/guestfs-actions.pod:1864
29316 #, no-wrap
29317 msgid ""
29318 " char *\n"
29319 " guestfs_echo_daemon (guestfs_h *g,\n"
29320 "                      char *const *words);\n"
29321 "\n"
29322 msgstr ""
29323 " char *\n"
29324 " guestfs_echo_daemon (guestfs_h *g,\n"
29325 "                      char *const *words);\n"
29326 "\n"
29327
29328 #. type: textblock
29329 #: ../src/guestfs-actions.pod:1873
29330 msgid "See also C<guestfs_ping_daemon>."
29331 msgstr ""
29332
29333 #. type: textblock
29334 #: ../src/guestfs-actions.pod:1878 ../src/guestfs-actions.pod:2636
29335 #: ../src/guestfs-actions.pod:7131
29336 msgid "(Added in 1.0.69)"
29337 msgstr "(Додано у 1.0.69)"
29338
29339 #. type: =head2
29340 #: ../src/guestfs-actions.pod:1880
29341 msgid "guestfs_egrep"
29342 msgstr "guestfs_egrep"
29343
29344 #. type: verbatim
29345 #: ../src/guestfs-actions.pod:1882
29346 #, no-wrap
29347 msgid ""
29348 " char **\n"
29349 " guestfs_egrep (guestfs_h *g,\n"
29350 "                const char *regex,\n"
29351 "                const char *path);\n"
29352 "\n"
29353 msgstr ""
29354 " char **\n"
29355 " guestfs_egrep (guestfs_h *g,\n"
29356 "                const char *regex,\n"
29357 "                const char *path);\n"
29358 "\n"
29359
29360 #. type: textblock
29361 #: ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:1916
29362 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:2019
29363 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2766
29364 #: ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2963
29365 #: ../src/guestfs-actions.pod:2976 ../src/guestfs-actions.pod:2991
29366 #: ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3059
29367 #: ../src/guestfs-actions.pod:3072 ../src/guestfs-actions.pod:4375
29368 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4402
29369 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:5557
29370 #: ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6644
29371 #: ../src/guestfs-actions.pod:7518 ../src/guestfs-actions.pod:7530
29372 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7556
29373 #: ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:7591
29374 #: ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7617
29375 #: ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8552
29376 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
29377 #: ../src/guestfs-actions.pod:8708 ../src/guestfs-actions.pod:8727
29378 msgid "(Added in 1.0.66)"
29379 msgstr "(Додано у 1.0.66)"
29380
29381 #. type: =head2
29382 #: ../src/guestfs-actions.pod:1899
29383 msgid "guestfs_egrepi"
29384 msgstr "guestfs_egrepi"
29385
29386 #. type: verbatim
29387 #: ../src/guestfs-actions.pod:1901
29388 #, no-wrap
29389 msgid ""
29390 " char **\n"
29391 " guestfs_egrepi (guestfs_h *g,\n"
29392 "                 const char *regex,\n"
29393 "                 const char *path);\n"
29394 "\n"
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:1918
29399 msgid "guestfs_equal"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:1920
29404 #, no-wrap
29405 msgid ""
29406 " int\n"
29407 " guestfs_equal (guestfs_h *g,\n"
29408 "                const char *file1,\n"
29409 "                const char *file2);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: =head2
29414 #: ../src/guestfs-actions.pod:1934
29415 msgid "guestfs_exists"
29416 msgstr ""
29417
29418 #. type: verbatim
29419 #: ../src/guestfs-actions.pod:1936
29420 #, no-wrap
29421 msgid ""
29422 " int\n"
29423 " guestfs_exists (guestfs_h *g,\n"
29424 "                 const char *path);\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: textblock
29429 #: ../src/guestfs-actions.pod:1943
29430 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
29431 msgstr ""
29432
29433 #. type: =head2
29434 #: ../src/guestfs-actions.pod:1949
29435 msgid "guestfs_fallocate"
29436 msgstr ""
29437
29438 #. type: verbatim
29439 #: ../src/guestfs-actions.pod:1951
29440 #, no-wrap
29441 msgid ""
29442 " int\n"
29443 " guestfs_fallocate (guestfs_h *g,\n"
29444 "                    const char *path,\n"
29445 "                    int len);\n"
29446 "\n"
29447 msgstr ""
29448
29449 #. type: textblock
29450 #: ../src/guestfs-actions.pod:1956
29451 msgid ""
29452 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
29453 "call instead."
29454 msgstr ""
29455
29456 #. type: =head2
29457 #: ../src/guestfs-actions.pod:1975
29458 msgid "guestfs_fallocate64"
29459 msgstr ""
29460
29461 #. type: verbatim
29462 #: ../src/guestfs-actions.pod:1977
29463 #, no-wrap
29464 msgid ""
29465 " int\n"
29466 " guestfs_fallocate64 (guestfs_h *g,\n"
29467 "                      const char *path,\n"
29468 "                      int64_t len);\n"
29469 "\n"
29470 msgstr ""
29471
29472 #. type: textblock
29473 #: ../src/guestfs-actions.pod:1986
29474 msgid ""
29475 "Note that this call allocates disk blocks for the file.  To create a sparse "
29476 "file use C<guestfs_truncate_size> instead."
29477 msgstr ""
29478
29479 #. type: textblock
29480 #: ../src/guestfs-actions.pod:1989
29481 msgid ""
29482 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
29483 "oversight it only allowed 30 bit lengths to be specified, effectively "
29484 "limiting the maximum size of files created through that call to 1GB."
29485 msgstr ""
29486
29487 #. type: textblock
29488 #: ../src/guestfs-actions.pod:2000
29489 msgid "(Added in 1.3.17)"
29490 msgstr "(Додано у 1.3.17)"
29491
29492 #. type: =head2
29493 #: ../src/guestfs-actions.pod:2002
29494 msgid "guestfs_fgrep"
29495 msgstr ""
29496
29497 #. type: verbatim
29498 #: ../src/guestfs-actions.pod:2004
29499 #, no-wrap
29500 msgid ""
29501 " char **\n"
29502 " guestfs_fgrep (guestfs_h *g,\n"
29503 "                const char *pattern,\n"
29504 "                const char *path);\n"
29505 "\n"
29506 msgstr ""
29507
29508 #. type: =head2
29509 #: ../src/guestfs-actions.pod:2021
29510 msgid "guestfs_fgrepi"
29511 msgstr ""
29512
29513 #. type: verbatim
29514 #: ../src/guestfs-actions.pod:2023
29515 #, no-wrap
29516 msgid ""
29517 " char **\n"
29518 " guestfs_fgrepi (guestfs_h *g,\n"
29519 "                 const char *pattern,\n"
29520 "                 const char *path);\n"
29521 "\n"
29522 msgstr ""
29523
29524 #. type: =head2
29525 #: ../src/guestfs-actions.pod:2040
29526 msgid "guestfs_file"
29527 msgstr ""
29528
29529 #. type: verbatim
29530 #: ../src/guestfs-actions.pod:2042
29531 #, no-wrap
29532 msgid ""
29533 " char *\n"
29534 " guestfs_file (guestfs_h *g,\n"
29535 "               const char *path);\n"
29536 "\n"
29537 msgstr ""
29538
29539 #. type: textblock
29540 #: ../src/guestfs-actions.pod:2060
29541 msgid ""
29542 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
29543 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
29544 msgstr ""
29545
29546 #. type: =head2
29547 #: ../src/guestfs-actions.pod:2068
29548 msgid "guestfs_file_architecture"
29549 msgstr ""
29550
29551 #. type: verbatim
29552 #: ../src/guestfs-actions.pod:2070
29553 #, no-wrap
29554 msgid ""
29555 " char *\n"
29556 " guestfs_file_architecture (guestfs_h *g,\n"
29557 "                            const char *filename);\n"
29558 "\n"
29559 msgstr ""
29560
29561 #. type: textblock
29562 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:2341
29563 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3092
29564 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3260
29565 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3465
29566 #: ../src/guestfs-actions.pod:3505 ../src/guestfs-actions.pod:3581
29567 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3919
29568 #: ../src/guestfs-actions.pod:4051
29569 msgid "(Added in 1.5.3)"
29570 msgstr "(Додано у 1.5.3)"
29571
29572 #. type: =head2
29573 #: ../src/guestfs-actions.pod:2180
29574 msgid "guestfs_filesize"
29575 msgstr ""
29576
29577 #. type: verbatim
29578 #: ../src/guestfs-actions.pod:2182
29579 #, no-wrap
29580 msgid ""
29581 " int64_t\n"
29582 " guestfs_filesize (guestfs_h *g,\n"
29583 "                   const char *file);\n"
29584 "\n"
29585 msgstr ""
29586
29587 #. type: textblock
29588 #: ../src/guestfs-actions.pod:2188
29589 msgid ""
29590 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
29591 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
29592 "devices, use C<guestfs_blockdev_getsize64>."
29593 msgstr ""
29594
29595 #. type: textblock
29596 #: ../src/guestfs-actions.pod:2194
29597 msgid "(Added in 1.0.82)"
29598 msgstr "(Додано у 1.0.82)"
29599
29600 #. type: =head2
29601 #: ../src/guestfs-actions.pod:2196
29602 msgid "guestfs_fill"
29603 msgstr ""
29604
29605 #. type: verbatim
29606 #: ../src/guestfs-actions.pod:2198
29607 #, no-wrap
29608 msgid ""
29609 " int\n"
29610 " guestfs_fill (guestfs_h *g,\n"
29611 "               int c,\n"
29612 "               int len,\n"
29613 "               const char *path);\n"
29614 "\n"
29615 msgstr ""
29616
29617 #. type: textblock
29618 #: ../src/guestfs-actions.pod:2208
29619 msgid ""
29620 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
29621 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
29622 "bytes use C<guestfs_fill_pattern>."
29623 msgstr ""
29624
29625 #. type: textblock
29626 #: ../src/guestfs-actions.pod:2220
29627 msgid "(Added in 1.0.79)"
29628 msgstr "(Додано у 1.0.79)"
29629
29630 #. type: =head2
29631 #: ../src/guestfs-actions.pod:2222
29632 msgid "guestfs_fill_pattern"
29633 msgstr ""
29634
29635 #. type: verbatim
29636 #: ../src/guestfs-actions.pod:2224
29637 #, no-wrap
29638 msgid ""
29639 " int\n"
29640 " guestfs_fill_pattern (guestfs_h *g,\n"
29641 "                       const char *pattern,\n"
29642 "                       int len,\n"
29643 "                       const char *path);\n"
29644 "\n"
29645 msgstr ""
29646
29647 #. type: textblock
29648 #: ../src/guestfs-actions.pod:2230
29649 msgid ""
29650 "This function is like C<guestfs_fill> except that it creates a new file of "
29651 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
29652 "pattern is truncated if necessary to ensure the length of the file is "
29653 "exactly C<len> bytes."
29654 msgstr ""
29655
29656 #. type: textblock
29657 #: ../src/guestfs-actions.pod:2242
29658 msgid "(Added in 1.3.12)"
29659 msgstr "(Додано у 1.3.12)"
29660
29661 #. type: =head2
29662 #: ../src/guestfs-actions.pod:2244
29663 msgid "guestfs_find"
29664 msgstr ""
29665
29666 #. type: verbatim
29667 #: ../src/guestfs-actions.pod:2246
29668 #, no-wrap
29669 msgid ""
29670 " char **\n"
29671 " guestfs_find (guestfs_h *g,\n"
29672 "               const char *directory);\n"
29673 "\n"
29674 msgstr ""
29675
29676 #. type: textblock
29677 #: ../src/guestfs-actions.pod:2262
29678 msgid ""
29679 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
29680 msgstr ""
29681
29682 #. type: textblock
29683 #: ../src/guestfs-actions.pod:2275
29684 msgid "See also C<guestfs_find0>."
29685 msgstr ""
29686
29687 #. type: textblock
29688 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:4813
29689 #: ../src/guestfs-actions.pod:6679
29690 msgid "(Added in 1.0.27)"
29691 msgstr "(Додано у 1.0.27)"
29692
29693 #. type: =head2
29694 #: ../src/guestfs-actions.pod:2286
29695 msgid "guestfs_find0"
29696 msgstr ""
29697
29698 #. type: verbatim
29699 #: ../src/guestfs-actions.pod:2288
29700 #, no-wrap
29701 msgid ""
29702 " int\n"
29703 " guestfs_find0 (guestfs_h *g,\n"
29704 "                const char *directory,\n"
29705 "                const char *files);\n"
29706 "\n"
29707 msgstr ""
29708
29709 #. type: textblock
29710 #: ../src/guestfs-actions.pod:2297
29711 msgid ""
29712 "This command works the same way as C<guestfs_find> with the following "
29713 "exceptions:"
29714 msgstr ""
29715
29716 #. type: textblock
29717 #: ../src/guestfs-actions.pod:2324
29718 msgid "(Added in 1.0.74)"
29719 msgstr "(Додано у 1.0.74)"
29720
29721 #. type: =head2
29722 #: ../src/guestfs-actions.pod:2326
29723 msgid "guestfs_findfs_label"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-actions.pod:2328
29728 #, no-wrap
29729 msgid ""
29730 " char *\n"
29731 " guestfs_findfs_label (guestfs_h *g,\n"
29732 "                       const char *label);\n"
29733 "\n"
29734 msgstr ""
29735
29736 #. type: textblock
29737 #: ../src/guestfs-actions.pod:2336
29738 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
29739 msgstr ""
29740
29741 #. type: =head2
29742 #: ../src/guestfs-actions.pod:2343
29743 msgid "guestfs_findfs_uuid"
29744 msgstr ""
29745
29746 #. type: verbatim
29747 #: ../src/guestfs-actions.pod:2345
29748 #, no-wrap
29749 msgid ""
29750 " char *\n"
29751 " guestfs_findfs_uuid (guestfs_h *g,\n"
29752 "                      const char *uuid);\n"
29753 "\n"
29754 msgstr ""
29755
29756 #. type: textblock
29757 #: ../src/guestfs-actions.pod:2353
29758 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
29759 msgstr ""
29760
29761 #. type: =head2
29762 #: ../src/guestfs-actions.pod:2360
29763 msgid "guestfs_fsck"
29764 msgstr ""
29765
29766 #. type: verbatim
29767 #: ../src/guestfs-actions.pod:2362
29768 #, no-wrap
29769 msgid ""
29770 " int\n"
29771 " guestfs_fsck (guestfs_h *g,\n"
29772 "               const char *fstype,\n"
29773 "               const char *device);\n"
29774 "\n"
29775 msgstr ""
29776
29777 #. type: textblock
29778 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:8580
29779 msgid "(Added in 1.0.16)"
29780 msgstr "(Додано у 1.0.16)"
29781
29782 #. type: =head2
29783 #: ../src/guestfs-actions.pod:2399
29784 msgid "guestfs_get_append"
29785 msgstr ""
29786
29787 #. type: verbatim
29788 #: ../src/guestfs-actions.pod:2401
29789 #, no-wrap
29790 msgid ""
29791 " const char *\n"
29792 " guestfs_get_append (guestfs_h *g);\n"
29793 "\n"
29794 msgstr ""
29795
29796 #. type: textblock
29797 #: ../src/guestfs-actions.pod:2409
29798 msgid ""
29799 "This function returns a string which may be NULL.  There is no way to return "
29800 "an error from this function.  The string is owned by the guest handle and "
29801 "must I<not> be freed."
29802 msgstr ""
29803
29804 #. type: textblock
29805 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6357
29806 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7285
29807 #: ../src/guestfs-actions.pod:7304 ../src/guestfs-actions.pod:7320
29808 #: ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:8220
29809 #: ../src/guestfs-actions.pod:8235 ../src/guestfs-actions.pod:8624
29810 msgid "(Added in 1.0.26)"
29811 msgstr "(Додано у 1.0.26)"
29812
29813 #. type: =head2
29814 #: ../src/guestfs-actions.pod:2415
29815 msgid "guestfs_get_attach_method"
29816 msgstr ""
29817
29818 #. type: verbatim
29819 #: ../src/guestfs-actions.pod:2417
29820 #, no-wrap
29821 msgid ""
29822 " char *\n"
29823 " guestfs_get_attach_method (guestfs_h *g);\n"
29824 "\n"
29825 msgstr ""
29826
29827 #. type: textblock
29828 #: ../src/guestfs-actions.pod:2420
29829 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
29830 msgstr ""
29831
29832 #. type: textblock
29833 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6866
29834 msgid "(Added in 1.9.8)"
29835 msgstr "(Додано у 1.9.8)"
29836
29837 #. type: =head2
29838 #: ../src/guestfs-actions.pod:2427
29839 msgid "guestfs_get_autosync"
29840 msgstr ""
29841
29842 #. type: verbatim
29843 #: ../src/guestfs-actions.pod:2429
29844 #, no-wrap
29845 msgid ""
29846 " int\n"
29847 " guestfs_get_autosync (guestfs_h *g);\n"
29848 "\n"
29849 msgstr ""
29850
29851 #. type: =head2
29852 #: ../src/guestfs-actions.pod:2438
29853 msgid "guestfs_get_direct"
29854 msgstr ""
29855
29856 #. type: verbatim
29857 #: ../src/guestfs-actions.pod:2440
29858 #, no-wrap
29859 msgid ""
29860 " int\n"
29861 " guestfs_get_direct (guestfs_h *g);\n"
29862 "\n"
29863 msgstr ""
29864
29865 #. type: textblock
29866 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:6907
29867 msgid "(Added in 1.0.72)"
29868 msgstr "(Додано у 1.0.72)"
29869
29870 #. type: =head2
29871 #: ../src/guestfs-actions.pod:2449
29872 msgid "guestfs_get_e2label"
29873 msgstr ""
29874
29875 #. type: verbatim
29876 #: ../src/guestfs-actions.pod:2451
29877 #, no-wrap
29878 msgid ""
29879 " char *\n"
29880 " guestfs_get_e2label (guestfs_h *g,\n"
29881 "                      const char *device);\n"
29882 "\n"
29883 msgstr ""
29884
29885 #. type: textblock
29886 #: ../src/guestfs-actions.pod:2455
29887 msgid ""
29888 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29889 "call instead."
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2489
29894 #: ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944
29895 msgid "(Added in 1.0.15)"
29896 msgstr "(Додано у 1.0.15)"
29897
29898 #. type: =head2
29899 #: ../src/guestfs-actions.pod:2470
29900 msgid "guestfs_get_e2uuid"
29901 msgstr ""
29902
29903 #. type: verbatim
29904 #: ../src/guestfs-actions.pod:2472
29905 #, no-wrap
29906 msgid ""
29907 " char *\n"
29908 " guestfs_get_e2uuid (guestfs_h *g,\n"
29909 "                     const char *device);\n"
29910 "\n"
29911 msgstr ""
29912
29913 #. type: textblock
29914 #: ../src/guestfs-actions.pod:2476
29915 msgid ""
29916 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29917 "call instead."
29918 msgstr ""
29919
29920 #. type: =head2
29921 #: ../src/guestfs-actions.pod:2491
29922 msgid "guestfs_get_memsize"
29923 msgstr ""
29924
29925 #. type: verbatim
29926 #: ../src/guestfs-actions.pod:2493
29927 #, no-wrap
29928 msgid ""
29929 " int\n"
29930 " guestfs_get_memsize (guestfs_h *g);\n"
29931 "\n"
29932 msgstr ""
29933
29934 #. type: textblock
29935 #: ../src/guestfs-actions.pod:2499
29936 msgid ""
29937 "If C<guestfs_set_memsize> was not called on this handle, and if "
29938 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29939 "value for memsize."
29940 msgstr ""
29941
29942 #. type: textblock
29943 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:5253
29944 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5481
29945 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5512
29946 #: ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5542
29947 #: ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:6965
29948 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7989
29949 msgid "(Added in 1.0.55)"
29950 msgstr "(Додано у 1.0.55)"
29951
29952 #. type: =head2
29953 #: ../src/guestfs-actions.pod:2510
29954 msgid "guestfs_get_network"
29955 msgstr ""
29956
29957 #. type: verbatim
29958 #: ../src/guestfs-actions.pod:2512
29959 #, no-wrap
29960 msgid ""
29961 " int\n"
29962 " guestfs_get_network (guestfs_h *g);\n"
29963 "\n"
29964 msgstr ""
29965
29966 #. type: textblock
29967 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:6984
29968 msgid "(Added in 1.5.4)"
29969 msgstr "(Додано у 1.5.4)"
29970
29971 #. type: =head2
29972 #: ../src/guestfs-actions.pod:2521
29973 msgid "guestfs_get_path"
29974 msgstr ""
29975
29976 #. type: verbatim
29977 #: ../src/guestfs-actions.pod:2523
29978 #, no-wrap
29979 msgid ""
29980 " const char *\n"
29981 " guestfs_get_path (guestfs_h *g);\n"
29982 "\n"
29983 msgstr ""
29984
29985 #. type: textblock
29986 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2571
29987 msgid ""
29988 "This function returns a string, or NULL on error.  The string is owned by "
29989 "the guest handle and must I<not> be freed."
29990 msgstr ""
29991
29992 #. type: =head2
29993 #: ../src/guestfs-actions.pod:2536
29994 msgid "guestfs_get_pgroup"
29995 msgstr ""
29996
29997 #. type: verbatim
29998 #: ../src/guestfs-actions.pod:2538
29999 #, no-wrap
30000 msgid ""
30001 " int\n"
30002 " guestfs_get_pgroup (guestfs_h *g);\n"
30003 "\n"
30004 msgstr ""
30005
30006 #. type: textblock
30007 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:7020
30008 #: ../src/guestfs-actions.pod:8481
30009 msgid "(Added in 1.11.18)"
30010 msgstr "(Додано у 1.11.18)"
30011
30012 #. type: =head2
30013 #: ../src/guestfs-actions.pod:2547
30014 msgid "guestfs_get_pid"
30015 msgstr ""
30016
30017 #. type: verbatim
30018 #: ../src/guestfs-actions.pod:2549
30019 #, no-wrap
30020 msgid ""
30021 " int\n"
30022 " guestfs_get_pid (guestfs_h *g);\n"
30023 "\n"
30024 msgstr ""
30025
30026 #. type: textblock
30027 #: ../src/guestfs-actions.pod:2559
30028 msgid "(Added in 1.0.56)"
30029 msgstr "(Додано у 1.0.56)"
30030
30031 #. type: =head2
30032 #: ../src/guestfs-actions.pod:2561
30033 msgid "guestfs_get_qemu"
30034 msgstr ""
30035
30036 #. type: verbatim
30037 #: ../src/guestfs-actions.pod:2563
30038 #, no-wrap
30039 msgid ""
30040 " const char *\n"
30041 " guestfs_get_qemu (guestfs_h *g);\n"
30042 "\n"
30043 msgstr ""
30044
30045 #. type: textblock
30046 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:7048
30047 msgid "(Added in 1.0.6)"
30048 msgstr "(Додано у 1.0.6)"
30049
30050 #. type: =head2
30051 #: ../src/guestfs-actions.pod:2576
30052 msgid "guestfs_get_recovery_proc"
30053 msgstr ""
30054
30055 #. type: verbatim
30056 #: ../src/guestfs-actions.pod:2578
30057 #, no-wrap
30058 msgid ""
30059 " int\n"
30060 " guestfs_get_recovery_proc (guestfs_h *g);\n"
30061 "\n"
30062 msgstr ""
30063
30064 #. type: textblock
30065 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:4173
30066 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4911
30067 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:6287
30068 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:7072
30069 #: ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7790
30070 #: ../src/guestfs-actions.pod:8104
30071 msgid "(Added in 1.0.77)"
30072 msgstr "(Додано у 1.0.77)"
30073
30074 #. type: =head2
30075 #: ../src/guestfs-actions.pod:2587
30076 msgid "guestfs_get_selinux"
30077 msgstr ""
30078
30079 #. type: verbatim
30080 #: ../src/guestfs-actions.pod:2589
30081 #, no-wrap
30082 msgid ""
30083 " int\n"
30084 " guestfs_get_selinux (guestfs_h *g);\n"
30085 "\n"
30086 msgstr ""
30087
30088 #. type: textblock
30089 #: ../src/guestfs-actions.pod:2592
30090 msgid ""
30091 "This returns the current setting of the selinux flag which is passed to the "
30092 "appliance at boot time.  See C<guestfs_set_selinux>."
30093 msgstr ""
30094
30095 #. type: textblock
30096 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2674
30097 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7165
30098 msgid "(Added in 1.0.67)"
30099 msgstr "(Додано у 1.0.67)"
30100
30101 #. type: =head2
30102 #: ../src/guestfs-actions.pod:2602
30103 msgid "guestfs_get_smp"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:2604
30108 #, no-wrap
30109 msgid ""
30110 " int\n"
30111 " guestfs_get_smp (guestfs_h *g);\n"
30112 "\n"
30113 msgstr ""
30114
30115 #. type: =head2
30116 #: ../src/guestfs-actions.pod:2613
30117 msgid "guestfs_get_state"
30118 msgstr ""
30119
30120 #. type: verbatim
30121 #: ../src/guestfs-actions.pod:2615
30122 #, no-wrap
30123 msgid ""
30124 " int\n"
30125 " guestfs_get_state (guestfs_h *g);\n"
30126 "\n"
30127 msgstr ""
30128
30129 #. type: =head2
30130 #: ../src/guestfs-actions.pod:2627
30131 msgid "guestfs_get_trace"
30132 msgstr ""
30133
30134 #. type: verbatim
30135 #: ../src/guestfs-actions.pod:2629
30136 #, no-wrap
30137 msgid ""
30138 " int\n"
30139 " guestfs_get_trace (guestfs_h *g);\n"
30140 "\n"
30141 msgstr ""
30142
30143 #. type: =head2
30144 #: ../src/guestfs-actions.pod:2638
30145 msgid "guestfs_get_umask"
30146 msgstr ""
30147
30148 #. type: verbatim
30149 #: ../src/guestfs-actions.pod:2640
30150 #, no-wrap
30151 msgid ""
30152 " int\n"
30153 " guestfs_get_umask (guestfs_h *g);\n"
30154 "\n"
30155 msgstr ""
30156
30157 #. type: textblock
30158 #: ../src/guestfs-actions.pod:2643
30159 msgid ""
30160 "Return the current umask.  By default the umask is C<022> unless it has been "
30161 "set by calling C<guestfs_umask>."
30162 msgstr ""
30163
30164 #. type: =head2
30165 #: ../src/guestfs-actions.pod:2650
30166 msgid "guestfs_get_verbose"
30167 msgstr ""
30168
30169 #. type: verbatim
30170 #: ../src/guestfs-actions.pod:2652
30171 #, no-wrap
30172 msgid ""
30173 " int\n"
30174 " guestfs_get_verbose (guestfs_h *g);\n"
30175 "\n"
30176 msgstr ""
30177
30178 #. type: =head2
30179 #: ../src/guestfs-actions.pod:2661
30180 msgid "guestfs_getcon"
30181 msgstr ""
30182
30183 #. type: verbatim
30184 #: ../src/guestfs-actions.pod:2663
30185 #, no-wrap
30186 msgid ""
30187 " char *\n"
30188 " guestfs_getcon (guestfs_h *g);\n"
30189 "\n"
30190 msgstr ""
30191
30192 #. type: textblock
30193 #: ../src/guestfs-actions.pod:2668
30194 msgid ""
30195 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
30196 msgstr ""
30197
30198 #. type: =head2
30199 #: ../src/guestfs-actions.pod:2676
30200 msgid "guestfs_getxattr"
30201 msgstr ""
30202
30203 #. type: verbatim
30204 #: ../src/guestfs-actions.pod:2678
30205 #, no-wrap
30206 msgid ""
30207 " char *\n"
30208 " guestfs_getxattr (guestfs_h *g,\n"
30209 "                   const char *path,\n"
30210 "                   const char *name,\n"
30211 "                   size_t *size_r);\n"
30212 "\n"
30213 msgstr ""
30214
30215 #. type: textblock
30216 #: ../src/guestfs-actions.pod:2684
30217 msgid ""
30218 "Get a single extended attribute from file C<path> named C<name>.  This call "
30219 "follows symlinks.  If you want to lookup an extended attribute for the "
30220 "symlink itself, use C<guestfs_lgetxattr>."
30221 msgstr ""
30222
30223 #. type: textblock
30224 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:4187
30225 msgid ""
30226 "Normally it is better to get all extended attributes from a file in one go "
30227 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
30228 "implementations are buggy and do not provide a way to list out attributes.  "
30229 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
30230 "extended attributes you want in advance and call this function."
30231 msgstr ""
30232
30233 #. type: textblock
30234 #: ../src/guestfs-actions.pod:2698
30235 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
30236 msgstr ""
30237
30238 #. type: textblock
30239 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:2913
30240 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:4199
30241 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6306
30242 #: ../src/guestfs-actions.pod:6487
30243 msgid ""
30244 "This function returns a buffer, or NULL on error.  The size of the returned "
30245 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
30246 "after use>."
30247 msgstr ""
30248
30249 #. type: textblock
30250 #: ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:4203
30251 msgid "(Added in 1.7.24)"
30252 msgstr "(Додано у 1.7.24)"
30253
30254 #. type: =head2
30255 #: ../src/guestfs-actions.pod:2706
30256 msgid "guestfs_getxattrs"
30257 msgstr ""
30258
30259 #. type: verbatim
30260 #: ../src/guestfs-actions.pod:2708
30261 #, no-wrap
30262 msgid ""
30263 " struct guestfs_xattr_list *\n"
30264 " guestfs_getxattrs (guestfs_h *g,\n"
30265 "                    const char *path);\n"
30266 "\n"
30267 msgstr ""
30268
30269 #. type: textblock
30270 #: ../src/guestfs-actions.pod:2718
30271 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
30272 msgstr ""
30273
30274 #. type: textblock
30275 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:4215
30276 #: ../src/guestfs-actions.pod:4907
30277 msgid ""
30278 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
30279 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
30280 msgstr ""
30281
30282 #. type: textblock
30283 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:4219
30284 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:4467
30285 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7184
30286 #: ../src/guestfs-actions.pod:8689
30287 msgid "(Added in 1.0.59)"
30288 msgstr "(Додано у 1.0.59)"
30289
30290 #. type: =head2
30291 #: ../src/guestfs-actions.pod:2726
30292 msgid "guestfs_glob_expand"
30293 msgstr ""
30294
30295 #. type: verbatim
30296 #: ../src/guestfs-actions.pod:2728
30297 #, no-wrap
30298 msgid ""
30299 " char **\n"
30300 " guestfs_glob_expand (guestfs_h *g,\n"
30301 "                      const char *pattern);\n"
30302 "\n"
30303 msgstr ""
30304
30305 #. type: textblock
30306 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:7368
30307 #: ../src/guestfs-actions.pod:7385
30308 msgid "(Added in 1.0.50)"
30309 msgstr "(Додано у 1.0.50)"
30310
30311 #. type: =head2
30312 #: ../src/guestfs-actions.pod:2749
30313 msgid "guestfs_grep"
30314 msgstr ""
30315
30316 #. type: verbatim
30317 #: ../src/guestfs-actions.pod:2751
30318 #, no-wrap
30319 msgid ""
30320 " char **\n"
30321 " guestfs_grep (guestfs_h *g,\n"
30322 "               const char *regex,\n"
30323 "               const char *path);\n"
30324 "\n"
30325 msgstr ""
30326
30327 #. type: =head2
30328 #: ../src/guestfs-actions.pod:2768
30329 msgid "guestfs_grepi"
30330 msgstr ""
30331
30332 #. type: verbatim
30333 #: ../src/guestfs-actions.pod:2770
30334 #, no-wrap
30335 msgid ""
30336 " char **\n"
30337 " guestfs_grepi (guestfs_h *g,\n"
30338 "                const char *regex,\n"
30339 "                const char *path);\n"
30340 "\n"
30341 msgstr ""
30342
30343 #. type: =head2
30344 #: ../src/guestfs-actions.pod:2787
30345 msgid "guestfs_grub_install"
30346 msgstr ""
30347
30348 #. type: verbatim
30349 #: ../src/guestfs-actions.pod:2789
30350 #, no-wrap
30351 msgid ""
30352 " int\n"
30353 " guestfs_grub_install (guestfs_h *g,\n"
30354 "                       const char *root,\n"
30355 "                       const char *device);\n"
30356 "\n"
30357 msgstr ""
30358
30359 #. type: textblock
30360 #: ../src/guestfs-actions.pod:2832
30361 msgid "(Added in 1.0.17)"
30362 msgstr "(Додано у 1.0.17)"
30363
30364 #. type: =head2
30365 #: ../src/guestfs-actions.pod:2834
30366 msgid "guestfs_head"
30367 msgstr ""
30368
30369 #. type: verbatim
30370 #: ../src/guestfs-actions.pod:2836
30371 #, no-wrap
30372 msgid ""
30373 " char **\n"
30374 " guestfs_head (guestfs_h *g,\n"
30375 "               const char *path);\n"
30376 "\n"
30377 msgstr ""
30378
30379 #. type: =head2
30380 #: ../src/guestfs-actions.pod:2852
30381 msgid "guestfs_head_n"
30382 msgstr ""
30383
30384 #. type: verbatim
30385 #: ../src/guestfs-actions.pod:2854
30386 #, no-wrap
30387 msgid ""
30388 " char **\n"
30389 " guestfs_head_n (guestfs_h *g,\n"
30390 "                 int nrlines,\n"
30391 "                 const char *path);\n"
30392 "\n"
30393 msgstr ""
30394
30395 #. type: =head2
30396 #: ../src/guestfs-actions.pod:2876
30397 msgid "guestfs_hexdump"
30398 msgstr ""
30399
30400 #. type: verbatim
30401 #: ../src/guestfs-actions.pod:2878
30402 #, no-wrap
30403 msgid ""
30404 " char *\n"
30405 " guestfs_hexdump (guestfs_h *g,\n"
30406 "                  const char *path);\n"
30407 "\n"
30408 msgstr ""
30409
30410 #. type: textblock
30411 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:7449
30412 #: ../src/guestfs-actions.pod:7504
30413 msgid "(Added in 1.0.22)"
30414 msgstr "(Додано у 1.0.22)"
30415
30416 #. type: =head2
30417 #: ../src/guestfs-actions.pod:2893
30418 msgid "guestfs_initrd_cat"
30419 msgstr ""
30420
30421 #. type: verbatim
30422 #: ../src/guestfs-actions.pod:2895
30423 #, no-wrap
30424 msgid ""
30425 " char *\n"
30426 " guestfs_initrd_cat (guestfs_h *g,\n"
30427 "                     const char *initrdpath,\n"
30428 "                     const char *filename,\n"
30429 "                     size_t *size_r);\n"
30430 "\n"
30431 msgstr ""
30432
30433 #. type: textblock
30434 #: ../src/guestfs-actions.pod:2911
30435 msgid "See also C<guestfs_initrd_list>."
30436 msgstr ""
30437
30438 #. type: =head2
30439 #: ../src/guestfs-actions.pod:2922
30440 msgid "guestfs_initrd_list"
30441 msgstr ""
30442
30443 #. type: verbatim
30444 #: ../src/guestfs-actions.pod:2924
30445 #, no-wrap
30446 msgid ""
30447 " char **\n"
30448 " guestfs_initrd_list (guestfs_h *g,\n"
30449 "                      const char *path);\n"
30450 "\n"
30451 msgstr ""
30452
30453 #. type: =head2
30454 #: ../src/guestfs-actions.pod:2944
30455 msgid "guestfs_inotify_add_watch"
30456 msgstr ""
30457
30458 #. type: verbatim
30459 #: ../src/guestfs-actions.pod:2946
30460 #, no-wrap
30461 msgid ""
30462 " int64_t\n"
30463 " guestfs_inotify_add_watch (guestfs_h *g,\n"
30464 "                            const char *path,\n"
30465 "                            int mask);\n"
30466 "\n"
30467 msgstr ""
30468
30469 #. type: =head2
30470 #: ../src/guestfs-actions.pod:2965
30471 msgid "guestfs_inotify_close"
30472 msgstr ""
30473
30474 #. type: verbatim
30475 #: ../src/guestfs-actions.pod:2967
30476 #, no-wrap
30477 msgid ""
30478 " int\n"
30479 " guestfs_inotify_close (guestfs_h *g);\n"
30480 "\n"
30481 msgstr ""
30482
30483 #. type: =head2
30484 #: ../src/guestfs-actions.pod:2978
30485 msgid "guestfs_inotify_files"
30486 msgstr ""
30487
30488 #. type: verbatim
30489 #: ../src/guestfs-actions.pod:2980
30490 #, no-wrap
30491 msgid ""
30492 " char **\n"
30493 " guestfs_inotify_files (guestfs_h *g);\n"
30494 "\n"
30495 msgstr ""
30496
30497 #. type: textblock
30498 #: ../src/guestfs-actions.pod:2983
30499 msgid ""
30500 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
30501 "returns a list of pathnames of objects that were touched.  The returned "
30502 "pathnames are sorted and deduplicated."
30503 msgstr ""
30504
30505 #. type: =head2
30506 #: ../src/guestfs-actions.pod:2993
30507 msgid "guestfs_inotify_init"
30508 msgstr ""
30509
30510 #. type: verbatim
30511 #: ../src/guestfs-actions.pod:2995
30512 #, no-wrap
30513 msgid ""
30514 " int\n"
30515 " guestfs_inotify_init (guestfs_h *g,\n"
30516 "                       int maxevents);\n"
30517 "\n"
30518 msgstr ""
30519
30520 #. type: textblock
30521 #: ../src/guestfs-actions.pod:3003
30522 msgid ""
30523 "C<maxevents> is the maximum number of events which will be queued up between "
30524 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
30525 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
30526 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
30527 "throws away events, but records the fact that it threw them away by setting "
30528 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
30529 "C<guestfs_inotify_read>)."
30530 msgstr ""
30531
30532 #. type: textblock
30533 #: ../src/guestfs-actions.pod:3013
30534 msgid ""
30535 "Before any events are generated, you have to add some watches to the "
30536 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
30537 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
30538 msgstr ""
30539
30540 #. type: textblock
30541 #: ../src/guestfs-actions.pod:3019
30542 msgid ""
30543 "Queued up events should be read periodically by calling "
30544 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
30545 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
30546 "often enough then you risk the internal queue overflowing."
30547 msgstr ""
30548
30549 #. type: textblock
30550 #: ../src/guestfs-actions.pod:3026
30551 msgid ""
30552 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
30553 "This also removes any watches automatically."
30554 msgstr ""
30555
30556 #. type: =head2
30557 #: ../src/guestfs-actions.pod:3039
30558 msgid "guestfs_inotify_read"
30559 msgstr ""
30560
30561 #. type: verbatim
30562 #: ../src/guestfs-actions.pod:3041
30563 #, no-wrap
30564 msgid ""
30565 " struct guestfs_inotify_event_list *\n"
30566 " guestfs_inotify_read (guestfs_h *g);\n"
30567 "\n"
30568 msgstr ""
30569
30570 #. type: textblock
30571 #: ../src/guestfs-actions.pod:3055
30572 msgid ""
30573 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
30574 "there was an error.  I<The caller must call "
30575 "C<guestfs_free_inotify_event_list> after use>."
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:3061
30580 msgid "guestfs_inotify_rm_watch"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:3063
30585 #, no-wrap
30586 msgid ""
30587 " int\n"
30588 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
30589 "                           int wd);\n"
30590 "\n"
30591 msgstr ""
30592
30593 #. type: textblock
30594 #: ../src/guestfs-actions.pod:3067
30595 msgid ""
30596 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
30597 msgstr ""
30598
30599 #. type: =head2
30600 #: ../src/guestfs-actions.pod:3074
30601 msgid "guestfs_inspect_get_arch"
30602 msgstr ""
30603
30604 #. type: verbatim
30605 #: ../src/guestfs-actions.pod:3076
30606 #, no-wrap
30607 msgid ""
30608 " char *\n"
30609 " guestfs_inspect_get_arch (guestfs_h *g,\n"
30610 "                           const char *root);\n"
30611 "\n"
30612 msgstr ""
30613
30614 #. type: textblock
30615 #: ../src/guestfs-actions.pod:3080
30616 msgid ""
30617 "This returns the architecture of the inspected operating system.  The "
30618 "possible return values are listed under C<guestfs_file_architecture>."
30619 msgstr ""
30620
30621 #. type: =head2
30622 #: ../src/guestfs-actions.pod:3094
30623 msgid "guestfs_inspect_get_distro"
30624 msgstr ""
30625
30626 #. type: verbatim
30627 #: ../src/guestfs-actions.pod:3096
30628 #, no-wrap
30629 msgid ""
30630 " char *\n"
30631 " guestfs_inspect_get_distro (guestfs_h *g,\n"
30632 "                             const char *root);\n"
30633 "\n"
30634 msgstr ""
30635
30636 #. type: =head2
30637 #: ../src/guestfs-actions.pod:3196
30638 msgid "guestfs_inspect_get_drive_mappings"
30639 msgstr ""
30640
30641 #. type: verbatim
30642 #: ../src/guestfs-actions.pod:3198
30643 #, no-wrap
30644 msgid ""
30645 " char **\n"
30646 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
30647 "                                     const char *root);\n"
30648 "\n"
30649 msgstr ""
30650
30651 #. type: textblock
30652 #: ../src/guestfs-actions.pod:3227
30653 msgid ""
30654 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30655 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
30656 msgstr ""
30657
30658 #. type: textblock
30659 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3702
30660 msgid "(Added in 1.9.17)"
30661 msgstr "(Додано у 1.9.17)"
30662
30663 #. type: =head2
30664 #: ../src/guestfs-actions.pod:3239
30665 msgid "guestfs_inspect_get_filesystems"
30666 msgstr ""
30667
30668 #. type: verbatim
30669 #: ../src/guestfs-actions.pod:3241
30670 #, no-wrap
30671 msgid ""
30672 " char **\n"
30673 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
30674 "                                  const char *root);\n"
30675 "\n"
30676 msgstr ""
30677
30678 #. type: textblock
30679 #: ../src/guestfs-actions.pod:3253
30680 msgid ""
30681 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30682 "C<guestfs_inspect_get_mountpoints>."
30683 msgstr ""
30684
30685 #. type: =head2
30686 #: ../src/guestfs-actions.pod:3262
30687 msgid "guestfs_inspect_get_format"
30688 msgstr ""
30689
30690 #. type: verbatim
30691 #: ../src/guestfs-actions.pod:3264
30692 #, no-wrap
30693 msgid ""
30694 " char *\n"
30695 " guestfs_inspect_get_format (guestfs_h *g,\n"
30696 "                             const char *root);\n"
30697 "\n"
30698 msgstr ""
30699
30700 #. type: textblock
30701 #: ../src/guestfs-actions.pod:3298 ../src/guestfs-actions.pod:3738
30702 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3772
30703 #: ../src/guestfs-actions.pod:6698
30704 msgid "(Added in 1.9.4)"
30705 msgstr "(Додано у 1.9.4)"
30706
30707 #. type: =head2
30708 #: ../src/guestfs-actions.pod:3300
30709 msgid "guestfs_inspect_get_hostname"
30710 msgstr ""
30711
30712 #. type: verbatim
30713 #: ../src/guestfs-actions.pod:3302
30714 #, no-wrap
30715 msgid ""
30716 " char *\n"
30717 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
30718 "                               const char *root);\n"
30719 "\n"
30720 msgstr ""
30721
30722 #. type: textblock
30723 #: ../src/guestfs-actions.pod:3317
30724 msgid "(Added in 1.7.9)"
30725 msgstr "(Додано у 1.7.9)"
30726
30727 #. type: =head2
30728 #: ../src/guestfs-actions.pod:3319
30729 msgid "guestfs_inspect_get_icon"
30730 msgstr ""
30731
30732 #. type: verbatim
30733 #: ../src/guestfs-actions.pod:3321
30734 #, no-wrap
30735 msgid ""
30736 " char *\n"
30737 " guestfs_inspect_get_icon (guestfs_h *g,\n"
30738 "                           const char *root,\n"
30739 "                           size_t *size_r,\n"
30740 "                           ...);\n"
30741 "\n"
30742 msgstr ""
30743
30744 #. type: verbatim
30745 #: ../src/guestfs-actions.pod:3332
30746 #, no-wrap
30747 msgid ""
30748 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
30749 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
30750 "\n"
30751 msgstr ""
30752
30753 #. type: textblock
30754 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:4233
30755 #: ../src/guestfs-actions.pod:5630
30756 msgid "(Added in 1.11.12)"
30757 msgstr "(Додано у 1.11.12)"
30758
30759 #. type: =head2
30760 #: ../src/guestfs-actions.pod:3401
30761 msgid "guestfs_inspect_get_icon_va"
30762 msgstr ""
30763
30764 #. type: verbatim
30765 #: ../src/guestfs-actions.pod:3403
30766 #, no-wrap
30767 msgid ""
30768 " char *\n"
30769 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
30770 "                              const char *root,\n"
30771 "                              size_t *size_r,\n"
30772 "                              va_list args);\n"
30773 "\n"
30774 msgstr ""
30775
30776 #. type: textblock
30777 #: ../src/guestfs-actions.pod:3409
30778 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
30779 msgstr ""
30780
30781 #. type: =head2
30782 #: ../src/guestfs-actions.pod:3413
30783 msgid "guestfs_inspect_get_icon_argv"
30784 msgstr ""
30785
30786 #. type: verbatim
30787 #: ../src/guestfs-actions.pod:3415
30788 #, no-wrap
30789 msgid ""
30790 " char *\n"
30791 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
30792 "                                const char *root,\n"
30793 "                                size_t *size_r,\n"
30794 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
30795 "\n"
30796 msgstr ""
30797
30798 #. type: textblock
30799 #: ../src/guestfs-actions.pod:3421
30800 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
30801 msgstr ""
30802
30803 #. type: =head2
30804 #: ../src/guestfs-actions.pod:3425
30805 msgid "guestfs_inspect_get_major_version"
30806 msgstr ""
30807
30808 #. type: verbatim
30809 #: ../src/guestfs-actions.pod:3427
30810 #, no-wrap
30811 msgid ""
30812 " int\n"
30813 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
30814 "                                    const char *root);\n"
30815 "\n"
30816 msgstr ""
30817
30818 #. type: =head2
30819 #: ../src/guestfs-actions.pod:3449
30820 msgid "guestfs_inspect_get_minor_version"
30821 msgstr ""
30822
30823 #. type: verbatim
30824 #: ../src/guestfs-actions.pod:3451
30825 #, no-wrap
30826 msgid ""
30827 " int\n"
30828 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
30829 "                                    const char *root);\n"
30830 "\n"
30831 msgstr ""
30832
30833 #. type: textblock
30834 #: ../src/guestfs-actions.pod:3460
30835 msgid ""
30836 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30837 "C<guestfs_inspect_get_major_version>."
30838 msgstr ""
30839
30840 #. type: =head2
30841 #: ../src/guestfs-actions.pod:3467
30842 msgid "guestfs_inspect_get_mountpoints"
30843 msgstr ""
30844
30845 #. type: verbatim
30846 #: ../src/guestfs-actions.pod:3469
30847 #, no-wrap
30848 msgid ""
30849 " char **\n"
30850 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30851 "                                  const char *root);\n"
30852 "\n"
30853 msgstr ""
30854
30855 #. type: textblock
30856 #: ../src/guestfs-actions.pod:3490
30857 msgid ""
30858 "For operating systems like Windows which still use drive letters, this call "
30859 "will only return an entry for the first drive \"mounted on\" C</>.  For "
30860 "information about the mapping of drive letters to partitions, see "
30861 "C<guestfs_inspect_get_drive_mappings>."
30862 msgstr ""
30863
30864 #. type: textblock
30865 #: ../src/guestfs-actions.pod:3496
30866 msgid ""
30867 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30868 "C<guestfs_inspect_get_filesystems>."
30869 msgstr ""
30870
30871 #. type: =head2
30872 #: ../src/guestfs-actions.pod:3507
30873 msgid "guestfs_inspect_get_package_format"
30874 msgstr ""
30875
30876 #. type: verbatim
30877 #: ../src/guestfs-actions.pod:3509
30878 #, no-wrap
30879 msgid ""
30880 " char *\n"
30881 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30882 "                                     const char *root);\n"
30883 "\n"
30884 msgstr ""
30885
30886 #. type: textblock
30887 #: ../src/guestfs-actions.pod:3513
30888 msgid ""
30889 "This function and C<guestfs_inspect_get_package_management> return the "
30890 "package format and package management tool used by the inspected operating "
30891 "system.  For example for Fedora these functions would return C<rpm> (package "
30892 "format) and C<yum> (package management)."
30893 msgstr ""
30894
30895 #. type: textblock
30896 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3560
30897 msgid "(Added in 1.7.5)"
30898 msgstr "(Додано у 1.7.5)"
30899
30900 #. type: =head2
30901 #: ../src/guestfs-actions.pod:3534
30902 msgid "guestfs_inspect_get_package_management"
30903 msgstr ""
30904
30905 #. type: verbatim
30906 #: ../src/guestfs-actions.pod:3536
30907 #, no-wrap
30908 msgid ""
30909 " char *\n"
30910 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30911 "                                         const char *root);\n"
30912 "\n"
30913 msgstr ""
30914
30915 #. type: textblock
30916 #: ../src/guestfs-actions.pod:3540
30917 msgid ""
30918 "C<guestfs_inspect_get_package_format> and this function return the package "
30919 "format and package management tool used by the inspected operating system.  "
30920 "For example for Fedora these functions would return C<rpm> (package format) "
30921 "and C<yum> (package management)."
30922 msgstr ""
30923
30924 #. type: =head2
30925 #: ../src/guestfs-actions.pod:3562
30926 msgid "guestfs_inspect_get_product_name"
30927 msgstr ""
30928
30929 #. type: verbatim
30930 #: ../src/guestfs-actions.pod:3564
30931 #, no-wrap
30932 msgid ""
30933 " char *\n"
30934 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30935 "                                   const char *root);\n"
30936 "\n"
30937 msgstr ""
30938
30939 #. type: =head2
30940 #: ../src/guestfs-actions.pod:3583
30941 msgid "guestfs_inspect_get_product_variant"
30942 msgstr ""
30943
30944 #. type: verbatim
30945 #: ../src/guestfs-actions.pod:3585
30946 #, no-wrap
30947 msgid ""
30948 " char *\n"
30949 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30950 "                                      const char *root);\n"
30951 "\n"
30952 msgstr ""
30953
30954 #. type: textblock
30955 #: ../src/guestfs-actions.pod:3608
30956 msgid ""
30957 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30958 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30959 msgstr ""
30960
30961 #. type: textblock
30962 #: ../src/guestfs-actions.pod:3615
30963 msgid "(Added in 1.9.13)"
30964 msgstr "(Додано у 1.9.13)"
30965
30966 #. type: =head2
30967 #: ../src/guestfs-actions.pod:3617
30968 msgid "guestfs_inspect_get_roots"
30969 msgstr ""
30970
30971 #. type: verbatim
30972 #: ../src/guestfs-actions.pod:3619
30973 #, no-wrap
30974 msgid ""
30975 " char **\n"
30976 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30977 "\n"
30978 msgstr ""
30979
30980 #. type: textblock
30981 #: ../src/guestfs-actions.pod:3622
30982 msgid ""
30983 "This function is a convenient way to get the list of root devices, as "
30984 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30985 "the whole inspection process."
30986 msgstr ""
30987
30988 #. type: textblock
30989 #: ../src/guestfs-actions.pod:3626
30990 msgid ""
30991 "This returns an empty list if either no root devices were found or the "
30992 "caller has not called C<guestfs_inspect_os>."
30993 msgstr ""
30994
30995 #. type: textblock
30996 #: ../src/guestfs-actions.pod:3635
30997 msgid "(Added in 1.7.3)"
30998 msgstr "(Додано у 1.7.3)"
30999
31000 #. type: =head2
31001 #: ../src/guestfs-actions.pod:3637
31002 msgid "guestfs_inspect_get_type"
31003 msgstr ""
31004
31005 #. type: verbatim
31006 #: ../src/guestfs-actions.pod:3639
31007 #, no-wrap
31008 msgid ""
31009 " char *\n"
31010 " guestfs_inspect_get_type (guestfs_h *g,\n"
31011 "                           const char *root);\n"
31012 "\n"
31013 msgstr ""
31014
31015 #. type: =head2
31016 #: ../src/guestfs-actions.pod:3684
31017 msgid "guestfs_inspect_get_windows_current_control_set"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../src/guestfs-actions.pod:3686
31022 #, no-wrap
31023 msgid ""
31024 " char *\n"
31025 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
31026 "                                                  const char *root);\n"
31027 "\n"
31028 msgstr ""
31029
31030 #. type: =head2
31031 #: ../src/guestfs-actions.pod:3704
31032 msgid "guestfs_inspect_get_windows_systemroot"
31033 msgstr ""
31034
31035 #. type: verbatim
31036 #: ../src/guestfs-actions.pod:3706
31037 #, no-wrap
31038 msgid ""
31039 " char *\n"
31040 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
31041 "                                         const char *root);\n"
31042 "\n"
31043 msgstr ""
31044
31045 #. type: textblock
31046 #: ../src/guestfs-actions.pod:3722
31047 msgid "(Added in 1.5.25)"
31048 msgstr "(Додано у 1.5.25)"
31049
31050 #. type: =head2
31051 #: ../src/guestfs-actions.pod:3724
31052 msgid "guestfs_inspect_is_live"
31053 msgstr ""
31054
31055 #. type: verbatim
31056 #: ../src/guestfs-actions.pod:3726
31057 #, no-wrap
31058 msgid ""
31059 " int\n"
31060 " guestfs_inspect_is_live (guestfs_h *g,\n"
31061 "                          const char *root);\n"
31062 "\n"
31063 msgstr ""
31064
31065 #. type: textblock
31066 #: ../src/guestfs-actions.pod:3730
31067 msgid ""
31068 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
31069 "disk), then this returns true if a live image was detected on the disk."
31070 msgstr ""
31071
31072 #. type: =head2
31073 #: ../src/guestfs-actions.pod:3740
31074 msgid "guestfs_inspect_is_multipart"
31075 msgstr ""
31076
31077 #. type: verbatim
31078 #: ../src/guestfs-actions.pod:3742
31079 #, no-wrap
31080 msgid ""
31081 " int\n"
31082 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
31083 "                               const char *root);\n"
31084 "\n"
31085 msgstr ""
31086
31087 #. type: textblock
31088 #: ../src/guestfs-actions.pod:3746
31089 msgid ""
31090 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
31091 "disk), then this returns true if the disk is part of a set."
31092 msgstr ""
31093
31094 #. type: =head2
31095 #: ../src/guestfs-actions.pod:3756
31096 msgid "guestfs_inspect_is_netinst"
31097 msgstr ""
31098
31099 #. type: verbatim
31100 #: ../src/guestfs-actions.pod:3758
31101 #, no-wrap
31102 msgid ""
31103 " int\n"
31104 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
31105 "                             const char *root);\n"
31106 "\n"
31107 msgstr ""
31108
31109 #. type: textblock
31110 #: ../src/guestfs-actions.pod:3762
31111 msgid ""
31112 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
31113 "disk), then this returns true if the disk is a network installer, ie. not a "
31114 "self-contained install CD but one which is likely to require network access "
31115 "to complete the install."
31116 msgstr ""
31117
31118 #. type: =head2
31119 #: ../src/guestfs-actions.pod:3774
31120 msgid "guestfs_inspect_list_applications"
31121 msgstr ""
31122
31123 #. type: verbatim
31124 #: ../src/guestfs-actions.pod:3776
31125 #, no-wrap
31126 msgid ""
31127 " struct guestfs_application_list *\n"
31128 " guestfs_inspect_list_applications (guestfs_h *g,\n"
31129 "                                    const char *root);\n"
31130 "\n"
31131 msgstr ""
31132
31133 #. type: textblock
31134 #: ../src/guestfs-actions.pod:3782
31135 msgid ""
31136 "I<Note:> This call works differently from other parts of the inspection "
31137 "API.  You have to call C<guestfs_inspect_os>, then "
31138 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
31139 "this.  Listing applications is a significantly more difficult operation "
31140 "which requires access to the full filesystem.  Also note that unlike the "
31141 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
31142 "the libguestfs handle, this call actually reads parts of the mounted "
31143 "filesystems during the call."
31144 msgstr ""
31145
31146 #. type: textblock
31147 #: ../src/guestfs-actions.pod:3872
31148 msgid ""
31149 "This function returns a C<struct guestfs_application_list *>, or NULL if "
31150 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
31151 "after use>."
31152 msgstr ""
31153
31154 #. type: textblock
31155 #: ../src/guestfs-actions.pod:3876
31156 msgid "(Added in 1.7.8)"
31157 msgstr "(Додано у 1.7.8)"
31158
31159 #. type: =head2
31160 #: ../src/guestfs-actions.pod:3878
31161 msgid "guestfs_inspect_os"
31162 msgstr ""
31163
31164 #. type: verbatim
31165 #: ../src/guestfs-actions.pod:3880
31166 #, no-wrap
31167 msgid ""
31168 " char **\n"
31169 " guestfs_inspect_os (guestfs_h *g);\n"
31170 "\n"
31171 msgstr ""
31172
31173 #. type: textblock
31174 #: ../src/guestfs-actions.pod:3896
31175 msgid ""
31176 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
31177 "functions in order to query further information about each operating system, "
31178 "such as the name and version."
31179 msgstr ""
31180
31181 #. type: textblock
31182 #: ../src/guestfs-actions.pod:3901
31183 msgid ""
31184 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
31185 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
31186 "the contents.  This should be called with no disks currently mounted.  The "
31187 "function may also use Augeas, so any existing Augeas handle will be closed."
31188 msgstr ""
31189
31190 #. type: textblock
31191 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:4244
31192 #: ../src/guestfs-actions.pod:4339
31193 msgid "See also C<guestfs_list_filesystems>."
31194 msgstr ""
31195
31196 #. type: =head2
31197 #: ../src/guestfs-actions.pod:3921
31198 msgid "guestfs_is_blockdev"
31199 msgstr ""
31200
31201 #. type: verbatim
31202 #: ../src/guestfs-actions.pod:3923
31203 #, no-wrap
31204 msgid ""
31205 " int\n"
31206 " guestfs_is_blockdev (guestfs_h *g,\n"
31207 "                      const char *path);\n"
31208 "\n"
31209 msgstr ""
31210
31211 #. type: textblock
31212 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3959
31213 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4004
31214 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4076
31215 #: ../src/guestfs-actions.pod:4091
31216 msgid "See also C<guestfs_stat>."
31217 msgstr ""
31218
31219 #. type: textblock
31220 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3963
31221 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4080
31222 #: ../src/guestfs-actions.pod:4095
31223 msgid "(Added in 1.5.10)"
31224 msgstr "(Додано у 1.5.10)"
31225
31226 #. type: =head2
31227 #: ../src/guestfs-actions.pod:3936
31228 msgid "guestfs_is_busy"
31229 msgstr ""
31230
31231 #. type: verbatim
31232 #: ../src/guestfs-actions.pod:3938
31233 #, no-wrap
31234 msgid ""
31235 " int\n"
31236 " guestfs_is_busy (guestfs_h *g);\n"
31237 "\n"
31238 msgstr ""
31239
31240 #. type: =head2
31241 #: ../src/guestfs-actions.pod:3950
31242 msgid "guestfs_is_chardev"
31243 msgstr ""
31244
31245 #. type: verbatim
31246 #: ../src/guestfs-actions.pod:3952
31247 #, no-wrap
31248 msgid ""
31249 " int\n"
31250 " guestfs_is_chardev (guestfs_h *g,\n"
31251 "                     const char *path);\n"
31252 "\n"
31253 msgstr ""
31254
31255 #. type: =head2
31256 #: ../src/guestfs-actions.pod:3965
31257 msgid "guestfs_is_config"
31258 msgstr ""
31259
31260 #. type: verbatim
31261 #: ../src/guestfs-actions.pod:3967
31262 #, no-wrap
31263 msgid ""
31264 " int\n"
31265 " guestfs_is_config (guestfs_h *g);\n"
31266 "\n"
31267 msgstr ""
31268
31269 #. type: =head2
31270 #: ../src/guestfs-actions.pod:3979
31271 msgid "guestfs_is_dir"
31272 msgstr ""
31273
31274 #. type: verbatim
31275 #: ../src/guestfs-actions.pod:3981
31276 #, no-wrap
31277 msgid ""
31278 " int\n"
31279 " guestfs_is_dir (guestfs_h *g,\n"
31280 "                 const char *path);\n"
31281 "\n"
31282 msgstr ""
31283
31284 #. type: =head2
31285 #: ../src/guestfs-actions.pod:3995
31286 msgid "guestfs_is_fifo"
31287 msgstr ""
31288
31289 #. type: verbatim
31290 #: ../src/guestfs-actions.pod:3997
31291 #, no-wrap
31292 msgid ""
31293 " int\n"
31294 " guestfs_is_fifo (guestfs_h *g,\n"
31295 "                  const char *path);\n"
31296 "\n"
31297 msgstr ""
31298
31299 #. type: =head2
31300 #: ../src/guestfs-actions.pod:4010
31301 msgid "guestfs_is_file"
31302 msgstr ""
31303
31304 #. type: verbatim
31305 #: ../src/guestfs-actions.pod:4012
31306 #, no-wrap
31307 msgid ""
31308 " int\n"
31309 " guestfs_is_file (guestfs_h *g,\n"
31310 "                  const char *path);\n"
31311 "\n"
31312 msgstr ""
31313
31314 #. type: =head2
31315 #: ../src/guestfs-actions.pod:4026
31316 msgid "guestfs_is_launching"
31317 msgstr ""
31318
31319 #. type: verbatim
31320 #: ../src/guestfs-actions.pod:4028
31321 #, no-wrap
31322 msgid ""
31323 " int\n"
31324 " guestfs_is_launching (guestfs_h *g);\n"
31325 "\n"
31326 msgstr ""
31327
31328 #. type: =head2
31329 #: ../src/guestfs-actions.pod:4040
31330 msgid "guestfs_is_lv"
31331 msgstr ""
31332
31333 #. type: verbatim
31334 #: ../src/guestfs-actions.pod:4042
31335 #, no-wrap
31336 msgid ""
31337 " int\n"
31338 " guestfs_is_lv (guestfs_h *g,\n"
31339 "                const char *device);\n"
31340 "\n"
31341 msgstr ""
31342
31343 #. type: =head2
31344 #: ../src/guestfs-actions.pod:4053
31345 msgid "guestfs_is_ready"
31346 msgstr ""
31347
31348 #. type: verbatim
31349 #: ../src/guestfs-actions.pod:4055
31350 #, no-wrap
31351 msgid ""
31352 " int\n"
31353 " guestfs_is_ready (guestfs_h *g);\n"
31354 "\n"
31355 msgstr ""
31356
31357 #. type: =head2
31358 #: ../src/guestfs-actions.pod:4067
31359 msgid "guestfs_is_socket"
31360 msgstr ""
31361
31362 #. type: verbatim
31363 #: ../src/guestfs-actions.pod:4069
31364 #, no-wrap
31365 msgid ""
31366 " int\n"
31367 " guestfs_is_socket (guestfs_h *g,\n"
31368 "                    const char *path);\n"
31369 "\n"
31370 msgstr ""
31371
31372 #. type: =head2
31373 #: ../src/guestfs-actions.pod:4082
31374 msgid "guestfs_is_symlink"
31375 msgstr ""
31376
31377 #. type: verbatim
31378 #: ../src/guestfs-actions.pod:4084
31379 #, no-wrap
31380 msgid ""
31381 " int\n"
31382 " guestfs_is_symlink (guestfs_h *g,\n"
31383 "                     const char *path);\n"
31384 "\n"
31385 msgstr ""
31386
31387 #. type: =head2
31388 #: ../src/guestfs-actions.pod:4097
31389 msgid "guestfs_is_zero"
31390 msgstr ""
31391
31392 #. type: verbatim
31393 #: ../src/guestfs-actions.pod:4099
31394 #, no-wrap
31395 msgid ""
31396 " int\n"
31397 " guestfs_is_zero (guestfs_h *g,\n"
31398 "                  const char *path);\n"
31399 "\n"
31400 msgstr ""
31401
31402 #. type: textblock
31403 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4122
31404 msgid "(Added in 1.11.8)"
31405 msgstr "(Додано у 1.11.8)"
31406
31407 #. type: =head2
31408 #: ../src/guestfs-actions.pod:4110
31409 msgid "guestfs_is_zero_device"
31410 msgstr ""
31411
31412 #. type: verbatim
31413 #: ../src/guestfs-actions.pod:4112
31414 #, no-wrap
31415 msgid ""
31416 " int\n"
31417 " guestfs_is_zero_device (guestfs_h *g,\n"
31418 "                         const char *device);\n"
31419 "\n"
31420 msgstr ""
31421
31422 #. type: =head2
31423 #: ../src/guestfs-actions.pod:4124
31424 msgid "guestfs_kill_subprocess"
31425 msgstr ""
31426
31427 #. type: verbatim
31428 #: ../src/guestfs-actions.pod:4126
31429 #, no-wrap
31430 msgid ""
31431 " int\n"
31432 " guestfs_kill_subprocess (guestfs_h *g);\n"
31433 "\n"
31434 msgstr ""
31435
31436 #. type: =head2
31437 #: ../src/guestfs-actions.pod:4135
31438 msgid "guestfs_launch"
31439 msgstr ""
31440
31441 #. type: verbatim
31442 #: ../src/guestfs-actions.pod:4137
31443 #, no-wrap
31444 msgid ""
31445 " int\n"
31446 " guestfs_launch (guestfs_h *g);\n"
31447 "\n"
31448 msgstr ""
31449
31450 #. type: =head2
31451 #: ../src/guestfs-actions.pod:4155
31452 msgid "guestfs_lchown"
31453 msgstr ""
31454
31455 #. type: verbatim
31456 #: ../src/guestfs-actions.pod:4157
31457 #, no-wrap
31458 msgid ""
31459 " int\n"
31460 " guestfs_lchown (guestfs_h *g,\n"
31461 "                 int owner,\n"
31462 "                 int group,\n"
31463 "                 const char *path);\n"
31464 "\n"
31465 msgstr ""
31466
31467 #. type: textblock
31468 #: ../src/guestfs-actions.pod:4163
31469 msgid ""
31470 "Change the file owner to C<owner> and group to C<group>.  This is like "
31471 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
31472 "changed, not the target."
31473 msgstr ""
31474
31475 #. type: =head2
31476 #: ../src/guestfs-actions.pod:4175
31477 msgid "guestfs_lgetxattr"
31478 msgstr ""
31479
31480 #. type: verbatim
31481 #: ../src/guestfs-actions.pod:4177
31482 #, no-wrap
31483 msgid ""
31484 " char *\n"
31485 " guestfs_lgetxattr (guestfs_h *g,\n"
31486 "                    const char *path,\n"
31487 "                    const char *name,\n"
31488 "                    size_t *size_r);\n"
31489 "\n"
31490 msgstr ""
31491
31492 #. type: textblock
31493 #: ../src/guestfs-actions.pod:4197
31494 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
31495 msgstr ""
31496
31497 #. type: =head2
31498 #: ../src/guestfs-actions.pod:4205
31499 msgid "guestfs_lgetxattrs"
31500 msgstr ""
31501
31502 #. type: verbatim
31503 #: ../src/guestfs-actions.pod:4207
31504 #, no-wrap
31505 msgid ""
31506 " struct guestfs_xattr_list *\n"
31507 " guestfs_lgetxattrs (guestfs_h *g,\n"
31508 "                     const char *path);\n"
31509 "\n"
31510 msgstr ""
31511
31512 #. type: textblock
31513 #: ../src/guestfs-actions.pod:4211
31514 msgid ""
31515 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
31516 "then it returns the extended attributes of the link itself."
31517 msgstr ""
31518
31519 #. type: =head2
31520 #: ../src/guestfs-actions.pod:4221
31521 msgid "guestfs_list_9p"
31522 msgstr ""
31523
31524 #. type: verbatim
31525 #: ../src/guestfs-actions.pod:4223
31526 #, no-wrap
31527 msgid ""
31528 " char **\n"
31529 " guestfs_list_9p (guestfs_h *g);\n"
31530 "\n"
31531 msgstr ""
31532
31533 #. type: =head2
31534 #: ../src/guestfs-actions.pod:4235
31535 msgid "guestfs_list_devices"
31536 msgstr ""
31537
31538 #. type: verbatim
31539 #: ../src/guestfs-actions.pod:4237
31540 #, no-wrap
31541 msgid ""
31542 " char **\n"
31543 " guestfs_list_devices (guestfs_h *g);\n"
31544 "\n"
31545 msgstr ""
31546
31547 #. type: =head2
31548 #: ../src/guestfs-actions.pod:4252
31549 msgid "guestfs_list_dm_devices"
31550 msgstr ""
31551
31552 #. type: verbatim
31553 #: ../src/guestfs-actions.pod:4254
31554 #, no-wrap
31555 msgid ""
31556 " char **\n"
31557 " guestfs_list_dm_devices (guestfs_h *g);\n"
31558 "\n"
31559 msgstr ""
31560
31561 #. type: textblock
31562 #: ../src/guestfs-actions.pod:4259
31563 msgid ""
31564 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
31565 "previous call to C<guestfs_luks_open>."
31566 msgstr ""
31567
31568 #. type: textblock
31569 #: ../src/guestfs-actions.pod:4262
31570 msgid ""
31571 "Device mapper devices which correspond to logical volumes are I<not> "
31572 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
31573 "volumes."
31574 msgstr ""
31575
31576 #. type: textblock
31577 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:5869
31578 msgid "(Added in 1.11.15)"
31579 msgstr "(Додано у 1.11.15)"
31580
31581 #. type: =head2
31582 #: ../src/guestfs-actions.pod:4272
31583 msgid "guestfs_list_filesystems"
31584 msgstr ""
31585
31586 #. type: verbatim
31587 #: ../src/guestfs-actions.pod:4274
31588 #, no-wrap
31589 msgid ""
31590 " char **\n"
31591 " guestfs_list_filesystems (guestfs_h *g);\n"
31592 "\n"
31593 msgstr ""
31594
31595 #. type: textblock
31596 #: ../src/guestfs-actions.pod:4294
31597 msgid ""
31598 "This command runs other libguestfs commands, which might include "
31599 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
31600 "soon after launch and only when nothing is mounted."
31601 msgstr ""
31602
31603 #. type: textblock
31604 #: ../src/guestfs-actions.pod:4298
31605 msgid ""
31606 "Not all of the filesystems returned will be mountable.  In particular, swap "
31607 "partitions are returned in the list.  Also this command does not check that "
31608 "each filesystem found is valid and mountable, and some filesystems might be "
31609 "mountable but require special options.  Filesystems may not all belong to a "
31610 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
31611 msgstr ""
31612
31613 #. type: textblock
31614 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:6229
31615 msgid "(Added in 1.5.15)"
31616 msgstr "(Додано у 1.5.15)"
31617
31618 #. type: =head2
31619 #: ../src/guestfs-actions.pod:4314
31620 #, fuzzy
31621 #| msgid "guestfs_zero_device"
31622 msgid "guestfs_list_md_devices"
31623 msgstr "guestfs_zero_device"
31624
31625 #. type: verbatim
31626 #: ../src/guestfs-actions.pod:4316
31627 #, fuzzy, no-wrap
31628 #| msgid ""
31629 #| " char **\n"
31630 #| " guestfs_lvs (guestfs_h *g);\n"
31631 #| "\n"
31632 msgid ""
31633 " char **\n"
31634 " guestfs_list_md_devices (guestfs_h *g);\n"
31635 "\n"
31636 msgstr ""
31637 " char **\n"
31638 " guestfs_lvs (guestfs_h *g);\n"
31639 "\n"
31640
31641 #. type: textblock
31642 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:7890
31643 #, fuzzy
31644 #| msgid "(Added in 1.5.4)"
31645 msgid "(Added in 1.15.4)"
31646 msgstr "(Додано у 1.5.4)"
31647
31648 #. type: =head2
31649 #: ../src/guestfs-actions.pod:4327
31650 msgid "guestfs_list_partitions"
31651 msgstr "guestfs_list_partitions"
31652
31653 #. type: verbatim
31654 #: ../src/guestfs-actions.pod:4329
31655 #, no-wrap
31656 msgid ""
31657 " char **\n"
31658 " guestfs_list_partitions (guestfs_h *g);\n"
31659 "\n"
31660 msgstr ""
31661 " char **\n"
31662 " guestfs_list_partitions (guestfs_h *g);\n"
31663 "\n"
31664
31665 #. type: textblock
31666 #: ../src/guestfs-actions.pod:4336
31667 msgid ""
31668 "This does not return logical volumes.  For that you will need to call "
31669 "C<guestfs_lvs>."
31670 msgstr ""
31671
31672 #. type: =head2
31673 #: ../src/guestfs-actions.pod:4347
31674 msgid "guestfs_ll"
31675 msgstr "guestfs_ll"
31676
31677 #. type: verbatim
31678 #: ../src/guestfs-actions.pod:4349
31679 #, no-wrap
31680 msgid ""
31681 " char *\n"
31682 " guestfs_ll (guestfs_h *g,\n"
31683 "             const char *directory);\n"
31684 "\n"
31685 msgstr ""
31686 " char *\n"
31687 " guestfs_ll (guestfs_h *g,\n"
31688 "             const char *directory);\n"
31689 "\n"
31690
31691 #. type: =head2
31692 #: ../src/guestfs-actions.pod:4364
31693 msgid "guestfs_ln"
31694 msgstr "guestfs_ln"
31695
31696 #. type: verbatim
31697 #: ../src/guestfs-actions.pod:4366
31698 #, no-wrap
31699 msgid ""
31700 " int\n"
31701 " guestfs_ln (guestfs_h *g,\n"
31702 "             const char *target,\n"
31703 "             const char *linkname);\n"
31704 "\n"
31705 msgstr ""
31706 " int\n"
31707 " guestfs_ln (guestfs_h *g,\n"
31708 "             const char *target,\n"
31709 "             const char *linkname);\n"
31710 "\n"
31711
31712 #. type: =head2
31713 #: ../src/guestfs-actions.pod:4377
31714 msgid "guestfs_ln_f"
31715 msgstr "guestfs_ln_f"
31716
31717 #. type: verbatim
31718 #: ../src/guestfs-actions.pod:4379
31719 #, no-wrap
31720 msgid ""
31721 " int\n"
31722 " guestfs_ln_f (guestfs_h *g,\n"
31723 "               const char *target,\n"
31724 "               const char *linkname);\n"
31725 "\n"
31726 msgstr ""
31727 " int\n"
31728 " guestfs_ln_f (guestfs_h *g,\n"
31729 "               const char *target,\n"
31730 "               const char *linkname);\n"
31731 "\n"
31732
31733 #. type: =head2
31734 #: ../src/guestfs-actions.pod:4391
31735 msgid "guestfs_ln_s"
31736 msgstr "guestfs_ln_s"
31737
31738 #. type: verbatim
31739 #: ../src/guestfs-actions.pod:4393
31740 #, no-wrap
31741 msgid ""
31742 " int\n"
31743 " guestfs_ln_s (guestfs_h *g,\n"
31744 "               const char *target,\n"
31745 "               const char *linkname);\n"
31746 "\n"
31747 msgstr ""
31748 " int\n"
31749 " guestfs_ln_s (guestfs_h *g,\n"
31750 "               const char *target,\n"
31751 "               const char *linkname);\n"
31752 "\n"
31753
31754 #. type: =head2
31755 #: ../src/guestfs-actions.pod:4404
31756 msgid "guestfs_ln_sf"
31757 msgstr "guestfs_ln_sf"
31758
31759 #. type: verbatim
31760 #: ../src/guestfs-actions.pod:4406
31761 #, no-wrap
31762 msgid ""
31763 " int\n"
31764 " guestfs_ln_sf (guestfs_h *g,\n"
31765 "                const char *target,\n"
31766 "                const char *linkname);\n"
31767 "\n"
31768 msgstr ""
31769 " int\n"
31770 " guestfs_ln_sf (guestfs_h *g,\n"
31771 "                const char *target,\n"
31772 "                const char *linkname);\n"
31773 "\n"
31774
31775 #. type: =head2
31776 #: ../src/guestfs-actions.pod:4418
31777 msgid "guestfs_lremovexattr"
31778 msgstr "guestfs_lremovexattr"
31779
31780 #. type: verbatim
31781 #: ../src/guestfs-actions.pod:4420
31782 #, no-wrap
31783 msgid ""
31784 " int\n"
31785 " guestfs_lremovexattr (guestfs_h *g,\n"
31786 "                       const char *xattr,\n"
31787 "                       const char *path);\n"
31788 "\n"
31789 msgstr ""
31790 " int\n"
31791 " guestfs_lremovexattr (guestfs_h *g,\n"
31792 "                       const char *xattr,\n"
31793 "                       const char *path);\n"
31794 "\n"
31795
31796 #. type: textblock
31797 #: ../src/guestfs-actions.pod:4425
31798 msgid ""
31799 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
31800 "link, then it removes an extended attribute of the link itself."
31801 msgstr ""
31802
31803 #. type: =head2
31804 #: ../src/guestfs-actions.pod:4433
31805 msgid "guestfs_ls"
31806 msgstr "guestfs_ls"
31807
31808 #. type: verbatim
31809 #: ../src/guestfs-actions.pod:4435
31810 #, no-wrap
31811 msgid ""
31812 " char **\n"
31813 " guestfs_ls (guestfs_h *g,\n"
31814 "             const char *directory);\n"
31815 "\n"
31816 msgstr ""
31817 " char **\n"
31818 " guestfs_ls (guestfs_h *g,\n"
31819 "             const char *directory);\n"
31820 "\n"
31821
31822 #. type: textblock
31823 #: ../src/guestfs-actions.pod:4443
31824 msgid ""
31825 "This command is mostly useful for interactive sessions.  Programs should "
31826 "probably use C<guestfs_readdir> instead."
31827 msgstr ""
31828
31829 #. type: =head2
31830 #: ../src/guestfs-actions.pod:4452
31831 msgid "guestfs_lsetxattr"
31832 msgstr "guestfs_lsetxattr"
31833
31834 #. type: verbatim
31835 #: ../src/guestfs-actions.pod:4454
31836 #, no-wrap
31837 msgid ""
31838 " int\n"
31839 " guestfs_lsetxattr (guestfs_h *g,\n"
31840 "                    const char *xattr,\n"
31841 "                    const char *val,\n"
31842 "                    int vallen,\n"
31843 "                    const char *path);\n"
31844 "\n"
31845 msgstr ""
31846 " int\n"
31847 " guestfs_lsetxattr (guestfs_h *g,\n"
31848 "                    const char *xattr,\n"
31849 "                    const char *val,\n"
31850 "                    int vallen,\n"
31851 "                    const char *path);\n"
31852 "\n"
31853
31854 #. type: textblock
31855 #: ../src/guestfs-actions.pod:4461
31856 msgid ""
31857 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
31858 "then it sets an extended attribute of the link itself."
31859 msgstr ""
31860
31861 #. type: =head2
31862 #: ../src/guestfs-actions.pod:4469
31863 msgid "guestfs_lstat"
31864 msgstr "guestfs_lstat"
31865
31866 #. type: verbatim
31867 #: ../src/guestfs-actions.pod:4471
31868 #, no-wrap
31869 msgid ""
31870 " struct guestfs_stat *\n"
31871 " guestfs_lstat (guestfs_h *g,\n"
31872 "                const char *path);\n"
31873 "\n"
31874 msgstr ""
31875 " struct guestfs_stat *\n"
31876 " guestfs_lstat (guestfs_h *g,\n"
31877 "                const char *path);\n"
31878 "\n"
31879
31880 #. type: textblock
31881 #: ../src/guestfs-actions.pod:4477
31882 msgid ""
31883 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31884 "link, then the link is stat-ed, not the file it refers to."
31885 msgstr ""
31886
31887 #. type: textblock
31888 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:7409
31889 msgid ""
31890 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31891 "error.  I<The caller must call C<guestfs_free_stat> after use>."
31892 msgstr ""
31893
31894 #. type: textblock
31895 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:7413
31896 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7934
31897 msgid "(Added in 0.9.2)"
31898 msgstr "(Додано у 0.9.2)"
31899
31900 #. type: =head2
31901 #: ../src/guestfs-actions.pod:4489
31902 msgid "guestfs_lstatlist"
31903 msgstr "guestfs_lstatlist"
31904
31905 #. type: verbatim
31906 #: ../src/guestfs-actions.pod:4491
31907 #, no-wrap
31908 msgid ""
31909 " struct guestfs_stat_list *\n"
31910 " guestfs_lstatlist (guestfs_h *g,\n"
31911 "                    const char *path,\n"
31912 "                    char *const *names);\n"
31913 "\n"
31914 msgstr ""
31915 " struct guestfs_stat_list *\n"
31916 " guestfs_lstatlist (guestfs_h *g,\n"
31917 "                    const char *path,\n"
31918 "                    char *const *names);\n"
31919 "\n"
31920
31921 #. type: textblock
31922 #: ../src/guestfs-actions.pod:4496
31923 msgid ""
31924 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31925 "files, where all files are in the directory C<path>.  C<names> is the list "
31926 "of files from this directory."
31927 msgstr ""
31928
31929 #. type: textblock
31930 #: ../src/guestfs-actions.pod:4505
31931 msgid ""
31932 "This call is intended for programs that want to efficiently list a directory "
31933 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
31934 "for a similarly efficient call for getting extended attributes.  Very long "
31935 "directory listings might cause the protocol message size to be exceeded, "
31936 "causing this call to fail.  The caller must split up such requests into "
31937 "smaller groups of names."
31938 msgstr ""
31939
31940 #. type: textblock
31941 #: ../src/guestfs-actions.pod:4513
31942 msgid ""
31943 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31944 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
31945 msgstr ""
31946
31947 #. type: =head2
31948 #: ../src/guestfs-actions.pod:4519
31949 msgid "guestfs_luks_add_key"
31950 msgstr "guestfs_luks_add_key"
31951
31952 #. type: verbatim
31953 #: ../src/guestfs-actions.pod:4521
31954 #, no-wrap
31955 msgid ""
31956 " int\n"
31957 " guestfs_luks_add_key (guestfs_h *g,\n"
31958 "                       const char *device,\n"
31959 "                       const char *key,\n"
31960 "                       const char *newkey,\n"
31961 "                       int keyslot);\n"
31962 "\n"
31963 msgstr ""
31964 " int\n"
31965 " guestfs_luks_add_key (guestfs_h *g,\n"
31966 "                       const char *device,\n"
31967 "                       const char *key,\n"
31968 "                       const char *newkey,\n"
31969 "                       int keyslot);\n"
31970 "\n"
31971
31972 #. type: textblock
31973 #: ../src/guestfs-actions.pod:4533
31974 msgid ""
31975 "Note that if C<keyslot> already contains a key, then this command will "
31976 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
31977 msgstr ""
31978
31979 #. type: textblock
31980 #: ../src/guestfs-actions.pod:4539 ../src/guestfs-actions.pod:4576
31981 #: ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4616
31982 #: ../src/guestfs-actions.pod:4651 ../src/guestfs-actions.pod:4670
31983 msgid ""
31984 "This function takes a key or passphrase parameter which could contain "
31985 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
31986 "information."
31987 msgstr ""
31988
31989 #. type: textblock
31990 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4580
31991 #: ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4620
31992 msgid "(Added in 1.5.2)"
31993 msgstr "(Додано у 1.5.2)"
31994
31995 #. type: =head2
31996 #: ../src/guestfs-actions.pod:4545
31997 msgid "guestfs_luks_close"
31998 msgstr "guestfs_luks_close"
31999
32000 #. type: verbatim
32001 #: ../src/guestfs-actions.pod:4547
32002 #, no-wrap
32003 msgid ""
32004 " int\n"
32005 " guestfs_luks_close (guestfs_h *g,\n"
32006 "                     const char *device);\n"
32007 "\n"
32008 msgstr ""
32009 " int\n"
32010 " guestfs_luks_close (guestfs_h *g,\n"
32011 "                     const char *device);\n"
32012 "\n"
32013
32014 #. type: textblock
32015 #: ../src/guestfs-actions.pod:4551
32016 msgid ""
32017 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
32018 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
32019 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
32020 "underlying block device."
32021 msgstr ""
32022
32023 #. type: textblock
32024 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4655
32025 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4724
32026 #: ../src/guestfs-actions.pod:4769
32027 msgid "(Added in 1.5.1)"
32028 msgstr "(Додано у 1.5.1)"
32029
32030 #. type: =head2
32031 #: ../src/guestfs-actions.pod:4561
32032 msgid "guestfs_luks_format"
32033 msgstr "guestfs_luks_format"
32034
32035 #. type: verbatim
32036 #: ../src/guestfs-actions.pod:4563
32037 #, no-wrap
32038 msgid ""
32039 " int\n"
32040 " guestfs_luks_format (guestfs_h *g,\n"
32041 "                      const char *device,\n"
32042 "                      const char *key,\n"
32043 "                      int keyslot);\n"
32044 "\n"
32045 msgstr ""
32046 " int\n"
32047 " guestfs_luks_format (guestfs_h *g,\n"
32048 "                      const char *device,\n"
32049 "                      const char *key,\n"
32050 "                      int keyslot);\n"
32051 "\n"
32052
32053 #. type: =head2
32054 #: ../src/guestfs-actions.pod:4582
32055 msgid "guestfs_luks_format_cipher"
32056 msgstr "guestfs_luks_format_cipher"
32057
32058 #. type: verbatim
32059 #: ../src/guestfs-actions.pod:4584
32060 #, no-wrap
32061 msgid ""
32062 " int\n"
32063 " guestfs_luks_format_cipher (guestfs_h *g,\n"
32064 "                             const char *device,\n"
32065 "                             const char *key,\n"
32066 "                             int keyslot,\n"
32067 "                             const char *cipher);\n"
32068 "\n"
32069 msgstr ""
32070 " int\n"
32071 " guestfs_luks_format_cipher (guestfs_h *g,\n"
32072 "                             const char *device,\n"
32073 "                             const char *key,\n"
32074 "                             int keyslot,\n"
32075 "                             const char *cipher);\n"
32076 "\n"
32077
32078 #. type: textblock
32079 #: ../src/guestfs-actions.pod:4591
32080 msgid ""
32081 "This command is the same as C<guestfs_luks_format> but it also allows you to "
32082 "set the C<cipher> used."
32083 msgstr ""
32084
32085 #. type: =head2
32086 #: ../src/guestfs-actions.pod:4602
32087 msgid "guestfs_luks_kill_slot"
32088 msgstr "guestfs_luks_kill_slot"
32089
32090 #. type: verbatim
32091 #: ../src/guestfs-actions.pod:4604
32092 #, no-wrap
32093 msgid ""
32094 " int\n"
32095 " guestfs_luks_kill_slot (guestfs_h *g,\n"
32096 "                         const char *device,\n"
32097 "                         const char *key,\n"
32098 "                         int keyslot);\n"
32099 "\n"
32100 msgstr ""
32101 " int\n"
32102 " guestfs_luks_kill_slot (guestfs_h *g,\n"
32103 "                         const char *device,\n"
32104 "                         const char *key,\n"
32105 "                         int keyslot);\n"
32106 "\n"
32107
32108 #. type: =head2
32109 #: ../src/guestfs-actions.pod:4622
32110 msgid "guestfs_luks_open"
32111 msgstr "guestfs_luks_open"
32112
32113 #. type: verbatim
32114 #: ../src/guestfs-actions.pod:4624
32115 #, no-wrap
32116 msgid ""
32117 " int\n"
32118 " guestfs_luks_open (guestfs_h *g,\n"
32119 "                    const char *device,\n"
32120 "                    const char *key,\n"
32121 "                    const char *mapname);\n"
32122 "\n"
32123 msgstr ""
32124 " int\n"
32125 " guestfs_luks_open (guestfs_h *g,\n"
32126 "                    const char *device,\n"
32127 "                    const char *key,\n"
32128 "                    const char *mapname);\n"
32129 "\n"
32130
32131 #. type: textblock
32132 #: ../src/guestfs-actions.pod:4642
32133 msgid ""
32134 "If this block device contains LVM volume groups, then calling "
32135 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
32136 "visible."
32137 msgstr ""
32138
32139 #. type: textblock
32140 #: ../src/guestfs-actions.pod:4646
32141 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
32142 msgstr ""
32143
32144 #. type: =head2
32145 #: ../src/guestfs-actions.pod:4657
32146 msgid "guestfs_luks_open_ro"
32147 msgstr "guestfs_luks_open_ro"
32148
32149 #. type: verbatim
32150 #: ../src/guestfs-actions.pod:4659
32151 #, no-wrap
32152 msgid ""
32153 " int\n"
32154 " guestfs_luks_open_ro (guestfs_h *g,\n"
32155 "                       const char *device,\n"
32156 "                       const char *key,\n"
32157 "                       const char *mapname);\n"
32158 "\n"
32159 msgstr ""
32160 " int\n"
32161 " guestfs_luks_open_ro (guestfs_h *g,\n"
32162 "                       const char *device,\n"
32163 "                       const char *key,\n"
32164 "                       const char *mapname);\n"
32165 "\n"
32166
32167 #. type: textblock
32168 #: ../src/guestfs-actions.pod:4665
32169 msgid ""
32170 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
32171 "created."
32172 msgstr ""
32173
32174 #. type: =head2
32175 #: ../src/guestfs-actions.pod:4676
32176 msgid "guestfs_lvcreate"
32177 msgstr "guestfs_lvcreate"
32178
32179 #. type: verbatim
32180 #: ../src/guestfs-actions.pod:4678
32181 #, no-wrap
32182 msgid ""
32183 " int\n"
32184 " guestfs_lvcreate (guestfs_h *g,\n"
32185 "                   const char *logvol,\n"
32186 "                   const char *volgroup,\n"
32187 "                   int mbytes);\n"
32188 "\n"
32189 msgstr ""
32190 " int\n"
32191 " guestfs_lvcreate (guestfs_h *g,\n"
32192 "                   const char *logvol,\n"
32193 "                   const char *volgroup,\n"
32194 "                   int mbytes);\n"
32195 "\n"
32196
32197 #. type: =head2
32198 #: ../src/guestfs-actions.pod:4691
32199 msgid "guestfs_lvm_canonical_lv_name"
32200 msgstr "guestfs_lvm_canonical_lv_name"
32201
32202 #. type: verbatim
32203 #: ../src/guestfs-actions.pod:4693
32204 #, no-wrap
32205 msgid ""
32206 " char *\n"
32207 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
32208 "                                const char *lvname);\n"
32209 "\n"
32210 msgstr ""
32211 " char *\n"
32212 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
32213 "                                const char *lvname);\n"
32214 "\n"
32215
32216 #. type: textblock
32217 #: ../src/guestfs-actions.pod:4704
32218 msgid "See also C<guestfs_is_lv>."
32219 msgstr ""
32220
32221 #. type: textblock
32222 #: ../src/guestfs-actions.pod:4709
32223 msgid "(Added in 1.5.24)"
32224 msgstr "(Додано у 1.5.24)"
32225
32226 #. type: =head2
32227 #: ../src/guestfs-actions.pod:4711
32228 msgid "guestfs_lvm_clear_filter"
32229 msgstr "guestfs_lvm_clear_filter"
32230
32231 #. type: verbatim
32232 #: ../src/guestfs-actions.pod:4713
32233 #, no-wrap
32234 msgid ""
32235 " int\n"
32236 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32237 "\n"
32238 msgstr ""
32239 " int\n"
32240 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32241 "\n"
32242
32243 #. type: textblock
32244 #: ../src/guestfs-actions.pod:4716
32245 msgid ""
32246 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
32247 "see every block device."
32248 msgstr ""
32249
32250 #. type: =head2
32251 #: ../src/guestfs-actions.pod:4726
32252 msgid "guestfs_lvm_remove_all"
32253 msgstr "guestfs_lvm_remove_all"
32254
32255 #. type: verbatim
32256 #: ../src/guestfs-actions.pod:4728
32257 #, no-wrap
32258 msgid ""
32259 " int\n"
32260 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32261 "\n"
32262 msgstr ""
32263 " int\n"
32264 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32265 "\n"
32266
32267 #. type: =head2
32268 #: ../src/guestfs-actions.pod:4738
32269 msgid "guestfs_lvm_set_filter"
32270 msgstr "guestfs_lvm_set_filter"
32271
32272 #. type: verbatim
32273 #: ../src/guestfs-actions.pod:4740
32274 #, no-wrap
32275 msgid ""
32276 " int\n"
32277 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32278 "                         char *const *devices);\n"
32279 "\n"
32280 msgstr ""
32281 " int\n"
32282 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32283 "                         char *const *devices);\n"
32284 "\n"
32285
32286 #. type: =head2
32287 #: ../src/guestfs-actions.pod:4771
32288 msgid "guestfs_lvremove"
32289 msgstr "guestfs_lvremove"
32290
32291 #. type: verbatim
32292 #: ../src/guestfs-actions.pod:4773
32293 #, no-wrap
32294 msgid ""
32295 " int\n"
32296 " guestfs_lvremove (guestfs_h *g,\n"
32297 "                   const char *device);\n"
32298 "\n"
32299 msgstr ""
32300 " int\n"
32301 " guestfs_lvremove (guestfs_h *g,\n"
32302 "                   const char *device);\n"
32303 "\n"
32304
32305 #. type: textblock
32306 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:6344
32307 #: ../src/guestfs-actions.pod:8304
32308 msgid "(Added in 1.0.13)"
32309 msgstr "(Додано у 1.0.13)"
32310
32311 #. type: =head2
32312 #: ../src/guestfs-actions.pod:4787
32313 msgid "guestfs_lvrename"
32314 msgstr "guestfs_lvrename"
32315
32316 #. type: verbatim
32317 #: ../src/guestfs-actions.pod:4789
32318 #, no-wrap
32319 msgid ""
32320 " int\n"
32321 " guestfs_lvrename (guestfs_h *g,\n"
32322 "                   const char *logvol,\n"
32323 "                   const char *newlogvol);\n"
32324 "\n"
32325 msgstr ""
32326 " int\n"
32327 " guestfs_lvrename (guestfs_h *g,\n"
32328 "                   const char *logvol,\n"
32329 "                   const char *newlogvol);\n"
32330 "\n"
32331
32332 #. type: textblock
32333 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:8317
32334 msgid "(Added in 1.0.83)"
32335 msgstr "(Додано у 1.0.83)"
32336
32337 #. type: =head2
32338 #: ../src/guestfs-actions.pod:4800
32339 msgid "guestfs_lvresize"
32340 msgstr "guestfs_lvresize"
32341
32342 #. type: verbatim
32343 #: ../src/guestfs-actions.pod:4802
32344 #, no-wrap
32345 msgid ""
32346 " int\n"
32347 " guestfs_lvresize (guestfs_h *g,\n"
32348 "                   const char *device,\n"
32349 "                   int mbytes);\n"
32350 "\n"
32351 msgstr ""
32352 " int\n"
32353 " guestfs_lvresize (guestfs_h *g,\n"
32354 "                   const char *device,\n"
32355 "                   int mbytes);\n"
32356 "\n"
32357
32358 #. type: =head2
32359 #: ../src/guestfs-actions.pod:4815
32360 msgid "guestfs_lvresize_free"
32361 msgstr "guestfs_lvresize_free"
32362
32363 #. type: verbatim
32364 #: ../src/guestfs-actions.pod:4817
32365 #, no-wrap
32366 msgid ""
32367 " int\n"
32368 " guestfs_lvresize_free (guestfs_h *g,\n"
32369 "                        const char *lv,\n"
32370 "                        int percent);\n"
32371 "\n"
32372 msgstr ""
32373 " int\n"
32374 " guestfs_lvresize_free (guestfs_h *g,\n"
32375 "                        const char *lv,\n"
32376 "                        int percent);\n"
32377 "\n"
32378
32379 #. type: textblock
32380 #: ../src/guestfs-actions.pod:4830
32381 msgid "(Added in 1.3.3)"
32382 msgstr "(Додано у 1.3.3)"
32383
32384 #. type: =head2
32385 #: ../src/guestfs-actions.pod:4832
32386 msgid "guestfs_lvs"
32387 msgstr "guestfs_lvs"
32388
32389 #. type: verbatim
32390 #: ../src/guestfs-actions.pod:4834
32391 #, no-wrap
32392 msgid ""
32393 " char **\n"
32394 " guestfs_lvs (guestfs_h *g);\n"
32395 "\n"
32396 msgstr ""
32397 " char **\n"
32398 " guestfs_lvs (guestfs_h *g);\n"
32399 "\n"
32400
32401 #. type: textblock
32402 #: ../src/guestfs-actions.pod:4843
32403 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
32404 msgstr ""
32405
32406 #. type: =head2
32407 #: ../src/guestfs-actions.pod:4851
32408 msgid "guestfs_lvs_full"
32409 msgstr "guestfs_lvs_full"
32410
32411 #. type: verbatim
32412 #: ../src/guestfs-actions.pod:4853
32413 #, no-wrap
32414 msgid ""
32415 " struct guestfs_lvm_lv_list *\n"
32416 " guestfs_lvs_full (guestfs_h *g);\n"
32417 "\n"
32418 msgstr ""
32419 " struct guestfs_lvm_lv_list *\n"
32420 " guestfs_lvs_full (guestfs_h *g);\n"
32421 "\n"
32422
32423 #. type: textblock
32424 #: ../src/guestfs-actions.pod:4859
32425 msgid ""
32426 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
32427 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
32428 msgstr ""
32429
32430 #. type: =head2
32431 #: ../src/guestfs-actions.pod:4865
32432 msgid "guestfs_lvuuid"
32433 msgstr "guestfs_lvuuid"
32434
32435 #. type: verbatim
32436 #: ../src/guestfs-actions.pod:4867
32437 #, no-wrap
32438 msgid ""
32439 " char *\n"
32440 " guestfs_lvuuid (guestfs_h *g,\n"
32441 "                 const char *device);\n"
32442 "\n"
32443 msgstr ""
32444 " char *\n"
32445 " guestfs_lvuuid (guestfs_h *g,\n"
32446 "                 const char *device);\n"
32447 "\n"
32448
32449 #. type: =head2
32450 #: ../src/guestfs-actions.pod:4878
32451 msgid "guestfs_lxattrlist"
32452 msgstr "guestfs_lxattrlist"
32453
32454 #. type: verbatim
32455 #: ../src/guestfs-actions.pod:4880
32456 #, no-wrap
32457 msgid ""
32458 " struct guestfs_xattr_list *\n"
32459 " guestfs_lxattrlist (guestfs_h *g,\n"
32460 "                     const char *path,\n"
32461 "                     char *const *names);\n"
32462 "\n"
32463 msgstr ""
32464 " struct guestfs_xattr_list *\n"
32465 " guestfs_lxattrlist (guestfs_h *g,\n"
32466 "                     const char *path,\n"
32467 "                     char *const *names);\n"
32468 "\n"
32469
32470 #. type: textblock
32471 #: ../src/guestfs-actions.pod:4899
32472 msgid ""
32473 "This call is intended for programs that want to efficiently list a directory "
32474 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
32475 "a similarly efficient call for getting standard stats.  Very long directory "
32476 "listings might cause the protocol message size to be exceeded, causing this "
32477 "call to fail.  The caller must split up such requests into smaller groups of "
32478 "names."
32479 msgstr ""
32480
32481 #. type: =head2
32482 #: ../src/guestfs-actions.pod:4913
32483 #, fuzzy
32484 #| msgid "guestfs_create"
32485 msgid "guestfs_md_create"
32486 msgstr "guestfs_create"
32487
32488 #. type: verbatim
32489 #: ../src/guestfs-actions.pod:4915
32490 #, fuzzy, no-wrap
32491 #| msgid ""
32492 #| " int\n"
32493 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
32494 #| "                    const char *fstype,\n"
32495 #| "                    const char *device,\n"
32496 #| "                    ...);\n"
32497 #| "\n"
32498 msgid ""
32499 " int\n"
32500 " guestfs_md_create (guestfs_h *g,\n"
32501 "                    const char *name,\n"
32502 "                    char *const *devices,\n"
32503 "                    ...);\n"
32504 "\n"
32505 msgstr ""
32506 " int\n"
32507 " guestfs_mkfs_opts (guestfs_h *g,\n"
32508 "                    const char *fstype,\n"
32509 "                    const char *device,\n"
32510 "                    ...);\n"
32511 "\n"
32512
32513 #. type: verbatim
32514 #: ../src/guestfs-actions.pod:4926
32515 #, no-wrap
32516 msgid ""
32517 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
32518 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
32519 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
32520 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
32521 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
32522 "\n"
32523 msgstr ""
32524
32525 #. type: =head2
32526 #: ../src/guestfs-actions.pod:4988
32527 #, fuzzy
32528 #| msgid "guestfs_create"
32529 msgid "guestfs_md_create_va"
32530 msgstr "guestfs_create"
32531
32532 #. type: verbatim
32533 #: ../src/guestfs-actions.pod:4990
32534 #, fuzzy, no-wrap
32535 #| msgid ""
32536 #| " int\n"
32537 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32538 #| "                       const char *fstype,\n"
32539 #| "                       const char *device,\n"
32540 #| "                       va_list args);\n"
32541 #| "\n"
32542 msgid ""
32543 " int\n"
32544 " guestfs_md_create_va (guestfs_h *g,\n"
32545 "                       const char *name,\n"
32546 "                       char *const *devices,\n"
32547 "                       va_list args);\n"
32548 "\n"
32549 msgstr ""
32550 " int\n"
32551 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32552 "                       const char *fstype,\n"
32553 "                       const char *device,\n"
32554 "                       va_list args);\n"
32555 "\n"
32556
32557 #. type: textblock
32558 #: ../src/guestfs-actions.pod:4996
32559 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
32560 msgstr ""
32561
32562 #. type: =head2
32563 #: ../src/guestfs-actions.pod:5000
32564 #, fuzzy
32565 #| msgid "guestfs_create"
32566 msgid "guestfs_md_create_argv"
32567 msgstr "guestfs_create"
32568
32569 #. type: verbatim
32570 #: ../src/guestfs-actions.pod:5002
32571 #, fuzzy, no-wrap
32572 #| msgid ""
32573 #| " int\n"
32574 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32575 #| "                         const char *fstype,\n"
32576 #| "                         const char *device,\n"
32577 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32578 #| "\n"
32579 msgid ""
32580 " int\n"
32581 " guestfs_md_create_argv (guestfs_h *g,\n"
32582 "                         const char *name,\n"
32583 "                         char *const *devices,\n"
32584 "                         const struct guestfs_md_create_argv *optargs);\n"
32585 "\n"
32586 msgstr ""
32587 " int\n"
32588 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32589 "                         const char *fstype,\n"
32590 "                         const char *device,\n"
32591 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32592 "\n"
32593
32594 #. type: textblock
32595 #: ../src/guestfs-actions.pod:5008
32596 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
32597 msgstr ""
32598
32599 #. type: =head2
32600 #: ../src/guestfs-actions.pod:5012
32601 #, fuzzy
32602 #| msgid "guestfs_aug_get"
32603 msgid "guestfs_md_detail"
32604 msgstr "guestfs_aug_get"
32605
32606 #. type: verbatim
32607 #: ../src/guestfs-actions.pod:5014
32608 #, fuzzy, no-wrap
32609 #| msgid ""
32610 #| " char *\n"
32611 #| " guestfs_aug_get (guestfs_h *g,\n"
32612 #| "                  const char *augpath);\n"
32613 #| "\n"
32614 msgid ""
32615 " char **\n"
32616 " guestfs_md_detail (guestfs_h *g,\n"
32617 "                    const char *md);\n"
32618 "\n"
32619 msgstr ""
32620 " char *\n"
32621 " guestfs_aug_get (guestfs_h *g,\n"
32622 "                  const char *augpath);\n"
32623 "\n"
32624
32625 #. type: =head2
32626 #: ../src/guestfs-actions.pod:5051
32627 #, fuzzy
32628 #| msgid "guestfs_mkdir_p"
32629 msgid "guestfs_md_stop"
32630 msgstr "guestfs_mkdir_p"
32631
32632 #. type: verbatim
32633 #: ../src/guestfs-actions.pod:5053
32634 #, fuzzy, no-wrap
32635 #| msgid ""
32636 #| " int\n"
32637 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32638 #| "                  const char *path);\n"
32639 #| "\n"
32640 msgid ""
32641 " int\n"
32642 " guestfs_md_stop (guestfs_h *g,\n"
32643 "                  const char *md);\n"
32644 "\n"
32645 msgstr ""
32646 " int\n"
32647 " guestfs_mkdir_p (guestfs_h *g,\n"
32648 "                  const char *path);\n"
32649 "\n"
32650
32651 #. type: =head2
32652 #: ../src/guestfs-actions.pod:5062
32653 msgid "guestfs_mkdir"
32654 msgstr "guestfs_mkdir"
32655
32656 #. type: verbatim
32657 #: ../src/guestfs-actions.pod:5064
32658 #, no-wrap
32659 msgid ""
32660 " int\n"
32661 " guestfs_mkdir (guestfs_h *g,\n"
32662 "                const char *path);\n"
32663 "\n"
32664 msgstr ""
32665 " int\n"
32666 " guestfs_mkdir (guestfs_h *g,\n"
32667 "                const char *path);\n"
32668 "\n"
32669
32670 #. type: =head2
32671 #: ../src/guestfs-actions.pod:5074
32672 msgid "guestfs_mkdir_mode"
32673 msgstr "guestfs_mkdir_mode"
32674
32675 #. type: verbatim
32676 #: ../src/guestfs-actions.pod:5076
32677 #, no-wrap
32678 msgid ""
32679 " int\n"
32680 " guestfs_mkdir_mode (guestfs_h *g,\n"
32681 "                     const char *path,\n"
32682 "                     int mode);\n"
32683 "\n"
32684 msgstr ""
32685 " int\n"
32686 " guestfs_mkdir_mode (guestfs_h *g,\n"
32687 "                     const char *path,\n"
32688 "                     int mode);\n"
32689 "\n"
32690
32691 #. type: textblock
32692 #: ../src/guestfs-actions.pod:5088
32693 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
32694 msgstr ""
32695
32696 #. type: =head2
32697 #: ../src/guestfs-actions.pod:5094
32698 msgid "guestfs_mkdir_p"
32699 msgstr "guestfs_mkdir_p"
32700
32701 #. type: verbatim
32702 #: ../src/guestfs-actions.pod:5096
32703 #, no-wrap
32704 msgid ""
32705 " int\n"
32706 " guestfs_mkdir_p (guestfs_h *g,\n"
32707 "                  const char *path);\n"
32708 "\n"
32709 msgstr ""
32710 " int\n"
32711 " guestfs_mkdir_p (guestfs_h *g,\n"
32712 "                  const char *path);\n"
32713 "\n"
32714
32715 #. type: =head2
32716 #: ../src/guestfs-actions.pod:5107
32717 msgid "guestfs_mkdtemp"
32718 msgstr "guestfs_mkdtemp"
32719
32720 #. type: verbatim
32721 #: ../src/guestfs-actions.pod:5109
32722 #, no-wrap
32723 msgid ""
32724 " char *\n"
32725 " guestfs_mkdtemp (guestfs_h *g,\n"
32726 "                  const char *template);\n"
32727 "\n"
32728 msgstr ""
32729 " char *\n"
32730 " guestfs_mkdtemp (guestfs_h *g,\n"
32731 "                  const char *template);\n"
32732 "\n"
32733
32734 #. type: =head2
32735 #: ../src/guestfs-actions.pod:5137
32736 msgid "guestfs_mke2fs_J"
32737 msgstr "guestfs_mke2fs_J"
32738
32739 #. type: verbatim
32740 #: ../src/guestfs-actions.pod:5139
32741 #, no-wrap
32742 msgid ""
32743 " int\n"
32744 " guestfs_mke2fs_J (guestfs_h *g,\n"
32745 "                   const char *fstype,\n"
32746 "                   int blocksize,\n"
32747 "                   const char *device,\n"
32748 "                   const char *journal);\n"
32749 "\n"
32750 msgstr ""
32751 " int\n"
32752 " guestfs_mke2fs_J (guestfs_h *g,\n"
32753 "                   const char *fstype,\n"
32754 "                   int blocksize,\n"
32755 "                   const char *device,\n"
32756 "                   const char *journal);\n"
32757 "\n"
32758
32759 #. type: textblock
32760 #: ../src/guestfs-actions.pod:5152
32761 msgid "See also C<guestfs_mke2journal>."
32762 msgstr ""
32763
32764 #. type: textblock
32765 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5174
32766 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5208
32767 #: ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5236
32768 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5572
32769 msgid "(Added in 1.0.68)"
32770 msgstr "(Додано у 1.0.68)"
32771
32772 #. type: =head2
32773 #: ../src/guestfs-actions.pod:5158
32774 msgid "guestfs_mke2fs_JL"
32775 msgstr "guestfs_mke2fs_JL"
32776
32777 #. type: verbatim
32778 #: ../src/guestfs-actions.pod:5160
32779 #, no-wrap
32780 msgid ""
32781 " int\n"
32782 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32783 "                    const char *fstype,\n"
32784 "                    int blocksize,\n"
32785 "                    const char *device,\n"
32786 "                    const char *label);\n"
32787 "\n"
32788 msgstr ""
32789 " int\n"
32790 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32791 "                    const char *fstype,\n"
32792 "                    int blocksize,\n"
32793 "                    const char *device,\n"
32794 "                    const char *label);\n"
32795 "\n"
32796
32797 #. type: textblock
32798 #: ../src/guestfs-actions.pod:5170
32799 msgid "See also C<guestfs_mke2journal_L>."
32800 msgstr ""
32801
32802 #. type: =head2
32803 #: ../src/guestfs-actions.pod:5176
32804 msgid "guestfs_mke2fs_JU"
32805 msgstr "guestfs_mke2fs_JU"
32806
32807 #. type: verbatim
32808 #: ../src/guestfs-actions.pod:5178
32809 #, no-wrap
32810 msgid ""
32811 " int\n"
32812 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32813 "                    const char *fstype,\n"
32814 "                    int blocksize,\n"
32815 "                    const char *device,\n"
32816 "                    const char *uuid);\n"
32817 "\n"
32818 msgstr ""
32819 " int\n"
32820 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32821 "                    const char *fstype,\n"
32822 "                    int blocksize,\n"
32823 "                    const char *device,\n"
32824 "                    const char *uuid);\n"
32825 "\n"
32826
32827 #. type: textblock
32828 #: ../src/guestfs-actions.pod:5188
32829 msgid "See also C<guestfs_mke2journal_U>."
32830 msgstr ""
32831
32832 #. type: =head2
32833 #: ../src/guestfs-actions.pod:5194
32834 msgid "guestfs_mke2journal"
32835 msgstr "guestfs_mke2journal"
32836
32837 #. type: verbatim
32838 #: ../src/guestfs-actions.pod:5196
32839 #, no-wrap
32840 msgid ""
32841 " int\n"
32842 " guestfs_mke2journal (guestfs_h *g,\n"
32843 "                      int blocksize,\n"
32844 "                      const char *device);\n"
32845 "\n"
32846 msgstr ""
32847 " int\n"
32848 " guestfs_mke2journal (guestfs_h *g,\n"
32849 "                      int blocksize,\n"
32850 "                      const char *device);\n"
32851 "\n"
32852
32853 #. type: =head2
32854 #: ../src/guestfs-actions.pod:5210
32855 msgid "guestfs_mke2journal_L"
32856 msgstr "guestfs_mke2journal_L"
32857
32858 #. type: verbatim
32859 #: ../src/guestfs-actions.pod:5212
32860 #, no-wrap
32861 msgid ""
32862 " int\n"
32863 " guestfs_mke2journal_L (guestfs_h *g,\n"
32864 "                        int blocksize,\n"
32865 "                        const char *label,\n"
32866 "                        const char *device);\n"
32867 "\n"
32868 msgstr ""
32869 " int\n"
32870 " guestfs_mke2journal_L (guestfs_h *g,\n"
32871 "                        int blocksize,\n"
32872 "                        const char *label,\n"
32873 "                        const char *device);\n"
32874 "\n"
32875
32876 #. type: =head2
32877 #: ../src/guestfs-actions.pod:5224
32878 msgid "guestfs_mke2journal_U"
32879 msgstr "guestfs_mke2journal_U"
32880
32881 #. type: verbatim
32882 #: ../src/guestfs-actions.pod:5226
32883 #, no-wrap
32884 msgid ""
32885 " int\n"
32886 " guestfs_mke2journal_U (guestfs_h *g,\n"
32887 "                        int blocksize,\n"
32888 "                        const char *uuid,\n"
32889 "                        const char *device);\n"
32890 "\n"
32891 msgstr ""
32892 " int\n"
32893 " guestfs_mke2journal_U (guestfs_h *g,\n"
32894 "                        int blocksize,\n"
32895 "                        const char *uuid,\n"
32896 "                        const char *device);\n"
32897 "\n"
32898
32899 #. type: =head2
32900 #: ../src/guestfs-actions.pod:5238
32901 msgid "guestfs_mkfifo"
32902 msgstr "guestfs_mkfifo"
32903
32904 #. type: verbatim
32905 #: ../src/guestfs-actions.pod:5240
32906 #, no-wrap
32907 msgid ""
32908 " int\n"
32909 " guestfs_mkfifo (guestfs_h *g,\n"
32910 "                 int mode,\n"
32911 "                 const char *path);\n"
32912 "\n"
32913 msgstr ""
32914 " int\n"
32915 " guestfs_mkfifo (guestfs_h *g,\n"
32916 "                 int mode,\n"
32917 "                 const char *path);\n"
32918 "\n"
32919
32920 #. type: textblock
32921 #: ../src/guestfs-actions.pod:5245
32922 msgid ""
32923 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
32924 "is just a convenient wrapper around C<guestfs_mknod>."
32925 msgstr ""
32926
32927 #. type: =head2
32928 #: ../src/guestfs-actions.pod:5255
32929 msgid "guestfs_mkfs"
32930 msgstr "guestfs_mkfs"
32931
32932 #. type: verbatim
32933 #: ../src/guestfs-actions.pod:5257
32934 #, no-wrap
32935 msgid ""
32936 " int\n"
32937 " guestfs_mkfs (guestfs_h *g,\n"
32938 "               const char *fstype,\n"
32939 "               const char *device);\n"
32940 "\n"
32941 msgstr ""
32942 " int\n"
32943 " guestfs_mkfs (guestfs_h *g,\n"
32944 "               const char *fstype,\n"
32945 "               const char *device);\n"
32946 "\n"
32947
32948 #. type: =head2
32949 #: ../src/guestfs-actions.pod:5270
32950 msgid "guestfs_mkfs_b"
32951 msgstr "guestfs_mkfs_b"
32952
32953 #. type: verbatim
32954 #: ../src/guestfs-actions.pod:5272
32955 #, no-wrap
32956 msgid ""
32957 " int\n"
32958 " guestfs_mkfs_b (guestfs_h *g,\n"
32959 "                 const char *fstype,\n"
32960 "                 int blocksize,\n"
32961 "                 const char *device);\n"
32962 "\n"
32963 msgstr ""
32964 " int\n"
32965 " guestfs_mkfs_b (guestfs_h *g,\n"
32966 "                 const char *fstype,\n"
32967 "                 int blocksize,\n"
32968 "                 const char *device);\n"
32969 "\n"
32970
32971 #. type: textblock
32972 #: ../src/guestfs-actions.pod:5278
32973 msgid ""
32974 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
32975 "call instead."
32976 msgstr ""
32977
32978 #. type: textblock
32979 #: ../src/guestfs-actions.pod:5285
32980 msgid ""
32981 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
32982 "block size of the resulting filesystem.  Supported block sizes depend on the "
32983 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
32984 msgstr ""
32985
32986 #. type: =head2
32987 #: ../src/guestfs-actions.pod:5297
32988 msgid "guestfs_mkfs_opts"
32989 msgstr "guestfs_mkfs_opts"
32990
32991 #. type: verbatim
32992 #: ../src/guestfs-actions.pod:5299
32993 #, no-wrap
32994 msgid ""
32995 " int\n"
32996 " guestfs_mkfs_opts (guestfs_h *g,\n"
32997 "                    const char *fstype,\n"
32998 "                    const char *device,\n"
32999 "                    ...);\n"
33000 "\n"
33001 msgstr ""
33002 " int\n"
33003 " guestfs_mkfs_opts (guestfs_h *g,\n"
33004 "                    const char *fstype,\n"
33005 "                    const char *device,\n"
33006 "                    ...);\n"
33007 "\n"
33008
33009 #. type: verbatim
33010 #: ../src/guestfs-actions.pod:5310
33011 #, no-wrap
33012 msgid ""
33013 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
33014 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
33015 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
33016 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
33017 "\n"
33018 msgstr ""
33019
33020 #. type: textblock
33021 #: ../src/guestfs-actions.pod:5358
33022 msgid "(Added in 1.7.19)"
33023 msgstr "(Додано у 1.7.19)"
33024
33025 #. type: =head2
33026 #: ../src/guestfs-actions.pod:5360
33027 msgid "guestfs_mkfs_opts_va"
33028 msgstr "guestfs_mkfs_opts_va"
33029
33030 #. type: verbatim
33031 #: ../src/guestfs-actions.pod:5362
33032 #, no-wrap
33033 msgid ""
33034 " int\n"
33035 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
33036 "                       const char *fstype,\n"
33037 "                       const char *device,\n"
33038 "                       va_list args);\n"
33039 "\n"
33040 msgstr ""
33041 " int\n"
33042 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
33043 "                       const char *fstype,\n"
33044 "                       const char *device,\n"
33045 "                       va_list args);\n"
33046 "\n"
33047
33048 #. type: textblock
33049 #: ../src/guestfs-actions.pod:5368
33050 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
33051 msgstr ""
33052
33053 #. type: =head2
33054 #: ../src/guestfs-actions.pod:5372
33055 msgid "guestfs_mkfs_opts_argv"
33056 msgstr "guestfs_mkfs_opts_argv"
33057
33058 #. type: verbatim
33059 #: ../src/guestfs-actions.pod:5374
33060 #, no-wrap
33061 msgid ""
33062 " int\n"
33063 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
33064 "                         const char *fstype,\n"
33065 "                         const char *device,\n"
33066 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
33067 "\n"
33068 msgstr ""
33069 " int\n"
33070 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
33071 "                         const char *fstype,\n"
33072 "                         const char *device,\n"
33073 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
33074 "\n"
33075
33076 #. type: textblock
33077 #: ../src/guestfs-actions.pod:5380
33078 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
33079 msgstr ""
33080
33081 #. type: =head2
33082 #: ../src/guestfs-actions.pod:5384
33083 msgid "guestfs_mkmountpoint"
33084 msgstr "guestfs_mkmountpoint"
33085
33086 #. type: verbatim
33087 #: ../src/guestfs-actions.pod:5386
33088 #, no-wrap
33089 msgid ""
33090 " int\n"
33091 " guestfs_mkmountpoint (guestfs_h *g,\n"
33092 "                       const char *exemptpath);\n"
33093 "\n"
33094 msgstr ""
33095 " int\n"
33096 " guestfs_mkmountpoint (guestfs_h *g,\n"
33097 "                       const char *exemptpath);\n"
33098 "\n"
33099
33100 #. type: textblock
33101 #: ../src/guestfs-actions.pod:5390
33102 msgid ""
33103 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
33104 "that can be used to create extra mountpoints before mounting the first "
33105 "filesystem."
33106 msgstr ""
33107
33108 #. type: textblock
33109 #: ../src/guestfs-actions.pod:5414
33110 msgid ""
33111 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
33112 "may get unexpected errors if you try to mix these calls.  It is safest to "
33113 "manually unmount filesystems and remove mountpoints after use."
33114 msgstr ""
33115
33116 #. type: textblock
33117 #: ../src/guestfs-actions.pod:5418
33118 msgid ""
33119 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
33120 "first, so for this to work for manual mountpoints, you must ensure that the "
33121 "innermost mountpoints have the longest pathnames, as in the example code "
33122 "above."
33123 msgstr ""
33124
33125 #. type: textblock
33126 #: ../src/guestfs-actions.pod:5425
33127 msgid ""
33128 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
33129 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
33130 "can also trigger these issues."
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5737
33135 #: ../src/guestfs-actions.pod:6764
33136 msgid "(Added in 1.0.62)"
33137 msgstr "(Додано у 1.0.62)"
33138
33139 #. type: =head2
33140 #: ../src/guestfs-actions.pod:5433
33141 msgid "guestfs_mknod"
33142 msgstr ""
33143
33144 #. type: verbatim
33145 #: ../src/guestfs-actions.pod:5435
33146 #, no-wrap
33147 msgid ""
33148 " int\n"
33149 " guestfs_mknod (guestfs_h *g,\n"
33150 "                int mode,\n"
33151 "                int devmajor,\n"
33152 "                int devminor,\n"
33153 "                const char *path);\n"
33154 "\n"
33155 msgstr ""
33156
33157 #. type: textblock
33158 #: ../src/guestfs-actions.pod:5450
33159 msgid ""
33160 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
33161 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
33162 "regular file).  These constants are available in the standard Linux header "
33163 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
33164 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
33165 "the appropriate constant for you."
33166 msgstr ""
33167
33168 #. type: =head2
33169 #: ../src/guestfs-actions.pod:5464
33170 msgid "guestfs_mknod_b"
33171 msgstr ""
33172
33173 #. type: verbatim
33174 #: ../src/guestfs-actions.pod:5466
33175 #, no-wrap
33176 msgid ""
33177 " int\n"
33178 " guestfs_mknod_b (guestfs_h *g,\n"
33179 "                  int mode,\n"
33180 "                  int devmajor,\n"
33181 "                  int devminor,\n"
33182 "                  const char *path);\n"
33183 "\n"
33184 msgstr ""
33185
33186 #. type: textblock
33187 #: ../src/guestfs-actions.pod:5473
33188 msgid ""
33189 "This call creates a block device node called C<path> with mode C<mode> and "
33190 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
33191 "wrapper around C<guestfs_mknod>."
33192 msgstr ""
33193
33194 #. type: =head2
33195 #: ../src/guestfs-actions.pod:5483
33196 msgid "guestfs_mknod_c"
33197 msgstr ""
33198
33199 #. type: verbatim
33200 #: ../src/guestfs-actions.pod:5485
33201 #, no-wrap
33202 msgid ""
33203 " int\n"
33204 " guestfs_mknod_c (guestfs_h *g,\n"
33205 "                  int mode,\n"
33206 "                  int devmajor,\n"
33207 "                  int devminor,\n"
33208 "                  const char *path);\n"
33209 "\n"
33210 msgstr ""
33211
33212 #. type: textblock
33213 #: ../src/guestfs-actions.pod:5492
33214 msgid ""
33215 "This call creates a char device node called C<path> with mode C<mode> and "
33216 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
33217 "wrapper around C<guestfs_mknod>."
33218 msgstr ""
33219
33220 #. type: =head2
33221 #: ../src/guestfs-actions.pod:5502
33222 msgid "guestfs_mkswap"
33223 msgstr ""
33224
33225 #. type: verbatim
33226 #: ../src/guestfs-actions.pod:5504
33227 #, no-wrap
33228 msgid ""
33229 " int\n"
33230 " guestfs_mkswap (guestfs_h *g,\n"
33231 "                 const char *device);\n"
33232 "\n"
33233 msgstr ""
33234
33235 #. type: =head2
33236 #: ../src/guestfs-actions.pod:5514
33237 msgid "guestfs_mkswap_L"
33238 msgstr ""
33239
33240 #. type: verbatim
33241 #: ../src/guestfs-actions.pod:5516
33242 #, no-wrap
33243 msgid ""
33244 " int\n"
33245 " guestfs_mkswap_L (guestfs_h *g,\n"
33246 "                   const char *label,\n"
33247 "                   const char *device);\n"
33248 "\n"
33249 msgstr ""
33250
33251 #. type: =head2
33252 #: ../src/guestfs-actions.pod:5531
33253 msgid "guestfs_mkswap_U"
33254 msgstr ""
33255
33256 #. type: verbatim
33257 #: ../src/guestfs-actions.pod:5533
33258 #, no-wrap
33259 msgid ""
33260 " int\n"
33261 " guestfs_mkswap_U (guestfs_h *g,\n"
33262 "                   const char *uuid,\n"
33263 "                   const char *device);\n"
33264 "\n"
33265 msgstr ""
33266
33267 #. type: =head2
33268 #: ../src/guestfs-actions.pod:5544
33269 msgid "guestfs_mkswap_file"
33270 msgstr ""
33271
33272 #. type: verbatim
33273 #: ../src/guestfs-actions.pod:5546
33274 #, no-wrap
33275 msgid ""
33276 " int\n"
33277 " guestfs_mkswap_file (guestfs_h *g,\n"
33278 "                      const char *path);\n"
33279 "\n"
33280 msgstr ""
33281
33282 #. type: textblock
33283 #: ../src/guestfs-actions.pod:5552
33284 msgid ""
33285 "This command just writes a swap file signature to an existing file.  To "
33286 "create the file itself, use something like C<guestfs_fallocate>."
33287 msgstr ""
33288
33289 #. type: =head2
33290 #: ../src/guestfs-actions.pod:5559
33291 msgid "guestfs_modprobe"
33292 msgstr ""
33293
33294 #. type: verbatim
33295 #: ../src/guestfs-actions.pod:5561
33296 #, no-wrap
33297 msgid ""
33298 " int\n"
33299 " guestfs_modprobe (guestfs_h *g,\n"
33300 "                   const char *modulename);\n"
33301 "\n"
33302 msgstr ""
33303
33304 #. type: =head2
33305 #: ../src/guestfs-actions.pod:5574
33306 msgid "guestfs_mount"
33307 msgstr ""
33308
33309 #. type: verbatim
33310 #: ../src/guestfs-actions.pod:5576
33311 #, no-wrap
33312 msgid ""
33313 " int\n"
33314 " guestfs_mount (guestfs_h *g,\n"
33315 "                const char *device,\n"
33316 "                const char *mountpoint);\n"
33317 "\n"
33318 msgstr ""
33319
33320 #. type: textblock
33321 #: ../src/guestfs-actions.pod:5595
33322 msgid ""
33323 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
33324 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
33325 "problems for users.  If your program might need to work with older versions "
33326 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
33327 "for the first parameter if you don't want any options)."
33328 msgstr ""
33329
33330 #. type: =head2
33331 #: ../src/guestfs-actions.pod:5606
33332 msgid "guestfs_mount_9p"
33333 msgstr ""
33334
33335 #. type: verbatim
33336 #: ../src/guestfs-actions.pod:5608
33337 #, no-wrap
33338 msgid ""
33339 " int\n"
33340 " guestfs_mount_9p (guestfs_h *g,\n"
33341 "                   const char *mounttag,\n"
33342 "                   const char *mountpoint,\n"
33343 "                   ...);\n"
33344 "\n"
33345 msgstr ""
33346
33347 #. type: verbatim
33348 #: ../src/guestfs-actions.pod:5619
33349 #, no-wrap
33350 msgid ""
33351 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
33352 "\n"
33353 msgstr ""
33354
33355 #. type: =head2
33356 #: ../src/guestfs-actions.pod:5632
33357 msgid "guestfs_mount_9p_va"
33358 msgstr ""
33359
33360 #. type: verbatim
33361 #: ../src/guestfs-actions.pod:5634
33362 #, no-wrap
33363 msgid ""
33364 " int\n"
33365 " guestfs_mount_9p_va (guestfs_h *g,\n"
33366 "                      const char *mounttag,\n"
33367 "                      const char *mountpoint,\n"
33368 "                      va_list args);\n"
33369 "\n"
33370 msgstr ""
33371
33372 #. type: textblock
33373 #: ../src/guestfs-actions.pod:5640
33374 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
33375 msgstr ""
33376
33377 #. type: =head2
33378 #: ../src/guestfs-actions.pod:5644
33379 msgid "guestfs_mount_9p_argv"
33380 msgstr ""
33381
33382 #. type: verbatim
33383 #: ../src/guestfs-actions.pod:5646
33384 #, no-wrap
33385 msgid ""
33386 " int\n"
33387 " guestfs_mount_9p_argv (guestfs_h *g,\n"
33388 "                        const char *mounttag,\n"
33389 "                        const char *mountpoint,\n"
33390 "                        const struct guestfs_mount_9p_argv *optargs);\n"
33391 "\n"
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs-actions.pod:5652
33396 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
33397 msgstr ""
33398
33399 #. type: =head2
33400 #: ../src/guestfs-actions.pod:5656
33401 msgid "guestfs_mount_loop"
33402 msgstr ""
33403
33404 #. type: verbatim
33405 #: ../src/guestfs-actions.pod:5658
33406 #, no-wrap
33407 msgid ""
33408 " int\n"
33409 " guestfs_mount_loop (guestfs_h *g,\n"
33410 "                     const char *file,\n"
33411 "                     const char *mountpoint);\n"
33412 "\n"
33413 msgstr ""
33414
33415 #. type: =head2
33416 #: ../src/guestfs-actions.pod:5671
33417 msgid "guestfs_mount_options"
33418 msgstr ""
33419
33420 #. type: verbatim
33421 #: ../src/guestfs-actions.pod:5673
33422 #, no-wrap
33423 msgid ""
33424 " int\n"
33425 " guestfs_mount_options (guestfs_h *g,\n"
33426 "                        const char *options,\n"
33427 "                        const char *device,\n"
33428 "                        const char *mountpoint);\n"
33429 "\n"
33430 msgstr ""
33431
33432 #. type: textblock
33433 #: ../src/guestfs-actions.pod:5679
33434 msgid ""
33435 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33436 "the mount options as for the L<mount(8)> I<-o> flag."
33437 msgstr ""
33438
33439 #. type: textblock
33440 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5703
33441 #: ../src/guestfs-actions.pod:5720
33442 msgid "(Added in 1.0.10)"
33443 msgstr "(Додано у 1.0.10)"
33444
33445 #. type: =head2
33446 #: ../src/guestfs-actions.pod:5691
33447 msgid "guestfs_mount_ro"
33448 msgstr ""
33449
33450 #. type: verbatim
33451 #: ../src/guestfs-actions.pod:5693
33452 #, no-wrap
33453 msgid ""
33454 " int\n"
33455 " guestfs_mount_ro (guestfs_h *g,\n"
33456 "                   const char *device,\n"
33457 "                   const char *mountpoint);\n"
33458 "\n"
33459 msgstr ""
33460
33461 #. type: textblock
33462 #: ../src/guestfs-actions.pod:5698
33463 msgid ""
33464 "This is the same as the C<guestfs_mount> command, but it mounts the "
33465 "filesystem with the read-only (I<-o ro>) flag."
33466 msgstr ""
33467
33468 #. type: =head2
33469 #: ../src/guestfs-actions.pod:5705
33470 msgid "guestfs_mount_vfs"
33471 msgstr ""
33472
33473 #. type: verbatim
33474 #: ../src/guestfs-actions.pod:5707
33475 #, no-wrap
33476 msgid ""
33477 " int\n"
33478 " guestfs_mount_vfs (guestfs_h *g,\n"
33479 "                    const char *options,\n"
33480 "                    const char *vfstype,\n"
33481 "                    const char *device,\n"
33482 "                    const char *mountpoint);\n"
33483 "\n"
33484 msgstr ""
33485
33486 #. type: textblock
33487 #: ../src/guestfs-actions.pod:5714
33488 msgid ""
33489 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33490 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
33491 "t> flags."
33492 msgstr ""
33493
33494 #. type: =head2
33495 #: ../src/guestfs-actions.pod:5722
33496 msgid "guestfs_mountpoints"
33497 msgstr ""
33498
33499 #. type: verbatim
33500 #: ../src/guestfs-actions.pod:5724
33501 #, no-wrap
33502 msgid ""
33503 " char **\n"
33504 " guestfs_mountpoints (guestfs_h *g);\n"
33505 "\n"
33506 msgstr ""
33507
33508 #. type: textblock
33509 #: ../src/guestfs-actions.pod:5727
33510 msgid ""
33511 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
33512 "devices.  This one returns a hash table (map) of device name to directory "
33513 "where the device is mounted."
33514 msgstr ""
33515
33516 #. type: =head2
33517 #: ../src/guestfs-actions.pod:5739
33518 msgid "guestfs_mounts"
33519 msgstr ""
33520
33521 #. type: verbatim
33522 #: ../src/guestfs-actions.pod:5741
33523 #, no-wrap
33524 msgid ""
33525 " char **\n"
33526 " guestfs_mounts (guestfs_h *g);\n"
33527 "\n"
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs-actions.pod:5749
33532 msgid "See also: C<guestfs_mountpoints>"
33533 msgstr ""
33534
33535 #. type: =head2
33536 #: ../src/guestfs-actions.pod:5757
33537 msgid "guestfs_mv"
33538 msgstr ""
33539
33540 #. type: verbatim
33541 #: ../src/guestfs-actions.pod:5759
33542 #, no-wrap
33543 msgid ""
33544 " int\n"
33545 " guestfs_mv (guestfs_h *g,\n"
33546 "             const char *src,\n"
33547 "             const char *dest);\n"
33548 "\n"
33549 msgstr ""
33550
33551 #. type: =head2
33552 #: ../src/guestfs-actions.pod:5771
33553 msgid "guestfs_ntfs_3g_probe"
33554 msgstr ""
33555
33556 #. type: verbatim
33557 #: ../src/guestfs-actions.pod:5773
33558 #, no-wrap
33559 msgid ""
33560 " int\n"
33561 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
33562 "                        int rw,\n"
33563 "                        const char *device);\n"
33564 "\n"
33565 msgstr ""
33566
33567 #. type: textblock
33568 #: ../src/guestfs-actions.pod:5792
33569 msgid "(Added in 1.0.43)"
33570 msgstr "(Додано у 1.0.43)"
33571
33572 #. type: =head2
33573 #: ../src/guestfs-actions.pod:5794
33574 msgid "guestfs_ntfsresize"
33575 msgstr ""
33576
33577 #. type: verbatim
33578 #: ../src/guestfs-actions.pod:5796
33579 #, no-wrap
33580 msgid ""
33581 " int\n"
33582 " guestfs_ntfsresize (guestfs_h *g,\n"
33583 "                     const char *device);\n"
33584 "\n"
33585 msgstr ""
33586
33587 #. type: textblock
33588 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:5900
33589 msgid ""
33590 "I<This function is deprecated.> In new code, use the L</"
33591 "guestfs_ntfsresize_opts> call instead."
33592 msgstr ""
33593
33594 #. type: =head2
33595 #: ../src/guestfs-actions.pod:5824
33596 msgid "guestfs_ntfsresize_opts"
33597 msgstr ""
33598
33599 #. type: verbatim
33600 #: ../src/guestfs-actions.pod:5826
33601 #, no-wrap
33602 msgid ""
33603 " int\n"
33604 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
33605 "                          const char *device,\n"
33606 "                          ...);\n"
33607 "\n"
33608 msgstr ""
33609
33610 #. type: verbatim
33611 #: ../src/guestfs-actions.pod:5836
33612 #, no-wrap
33613 msgid ""
33614 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
33615 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
33616 "\n"
33617 msgstr ""
33618
33619 #. type: textblock
33620 #: ../src/guestfs-actions.pod:5856
33621 msgid ""
33622 "After the resize operation, the filesystem is always marked as requiring a "
33623 "consistency check (for safety).  You have to boot into Windows to perform "
33624 "this check and clear this condition.  If you I<don't> set the C<force> "
33625 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
33626 "times on a single filesystem without booting into Windows between each "
33627 "resize."
33628 msgstr ""
33629
33630 #. type: =head2
33631 #: ../src/guestfs-actions.pod:5871
33632 msgid "guestfs_ntfsresize_opts_va"
33633 msgstr ""
33634
33635 #. type: verbatim
33636 #: ../src/guestfs-actions.pod:5873
33637 #, no-wrap
33638 msgid ""
33639 " int\n"
33640 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
33641 "                             const char *device,\n"
33642 "                             va_list args);\n"
33643 "\n"
33644 msgstr ""
33645
33646 #. type: textblock
33647 #: ../src/guestfs-actions.pod:5878
33648 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
33649 msgstr ""
33650
33651 #. type: =head2
33652 #: ../src/guestfs-actions.pod:5882
33653 msgid "guestfs_ntfsresize_opts_argv"
33654 msgstr ""
33655
33656 #. type: verbatim
33657 #: ../src/guestfs-actions.pod:5884
33658 #, no-wrap
33659 msgid ""
33660 " int\n"
33661 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
33662 "                               const char *device,\n"
33663 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
33664 "\n"
33665 msgstr ""
33666
33667 #. type: textblock
33668 #: ../src/guestfs-actions.pod:5889
33669 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
33670 msgstr ""
33671
33672 #. type: =head2
33673 #: ../src/guestfs-actions.pod:5893
33674 msgid "guestfs_ntfsresize_size"
33675 msgstr ""
33676
33677 #. type: verbatim
33678 #: ../src/guestfs-actions.pod:5895
33679 #, no-wrap
33680 msgid ""
33681 " int\n"
33682 " guestfs_ntfsresize_size (guestfs_h *g,\n"
33683 "                          const char *device,\n"
33684 "                          int64_t size);\n"
33685 "\n"
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs-actions.pod:5907
33690 msgid ""
33691 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
33692 "to specify the new size (in bytes) explicitly."
33693 msgstr ""
33694
33695 #. type: textblock
33696 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6371
33697 #: ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6712
33698 #: ../src/guestfs-actions.pod:8461
33699 msgid "(Added in 1.3.14)"
33700 msgstr "(Додано у 1.3.14)"
33701
33702 #. type: =head2
33703 #: ../src/guestfs-actions.pod:5914
33704 msgid "guestfs_part_add"
33705 msgstr ""
33706
33707 #. type: verbatim
33708 #: ../src/guestfs-actions.pod:5916
33709 #, no-wrap
33710 msgid ""
33711 " int\n"
33712 " guestfs_part_add (guestfs_h *g,\n"
33713 "                   const char *device,\n"
33714 "                   const char *prlogex,\n"
33715 "                   int64_t startsect,\n"
33716 "                   int64_t endsect);\n"
33717 "\n"
33718 msgstr ""
33719
33720 #. type: textblock
33721 #: ../src/guestfs-actions.pod:5923
33722 msgid ""
33723 "This command adds a partition to C<device>.  If there is no partition table "
33724 "on the device, call C<guestfs_part_init> first."
33725 msgstr ""
33726
33727 #. type: textblock
33728 #: ../src/guestfs-actions.pod:5935
33729 msgid ""
33730 "Creating a partition which covers the whole disk is not so easy.  Use "
33731 "C<guestfs_part_disk> to do that."
33732 msgstr ""
33733
33734 #. type: textblock
33735 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5975
33736 #: ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6112
33737 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
33738 #: ../src/guestfs-actions.pod:6209
33739 msgid "(Added in 1.0.78)"
33740 msgstr "(Додано у 1.0.78)"
33741
33742 #. type: =head2
33743 #: ../src/guestfs-actions.pod:5942
33744 msgid "guestfs_part_del"
33745 msgstr ""
33746
33747 #. type: verbatim
33748 #: ../src/guestfs-actions.pod:5944
33749 #, no-wrap
33750 msgid ""
33751 " int\n"
33752 " guestfs_part_del (guestfs_h *g,\n"
33753 "                   const char *device,\n"
33754 "                   int partnum);\n"
33755 "\n"
33756 msgstr ""
33757
33758 #. type: =head2
33759 #: ../src/guestfs-actions.pod:5959
33760 msgid "guestfs_part_disk"
33761 msgstr ""
33762
33763 #. type: verbatim
33764 #: ../src/guestfs-actions.pod:5961
33765 #, no-wrap
33766 msgid ""
33767 " int\n"
33768 " guestfs_part_disk (guestfs_h *g,\n"
33769 "                    const char *device,\n"
33770 "                    const char *parttype);\n"
33771 "\n"
33772 msgstr ""
33773
33774 #. type: textblock
33775 #: ../src/guestfs-actions.pod:5966
33776 msgid ""
33777 "This command is simply a combination of C<guestfs_part_init> followed by "
33778 "C<guestfs_part_add> to create a single primary partition covering the whole "
33779 "disk."
33780 msgstr ""
33781
33782 #. type: textblock
33783 #: ../src/guestfs-actions.pod:5970
33784 msgid ""
33785 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
33786 "possible values are described in C<guestfs_part_init>."
33787 msgstr ""
33788
33789 #. type: =head2
33790 #: ../src/guestfs-actions.pod:5977
33791 msgid "guestfs_part_get_bootable"
33792 msgstr ""
33793
33794 #. type: verbatim
33795 #: ../src/guestfs-actions.pod:5979
33796 #, no-wrap
33797 msgid ""
33798 " int\n"
33799 " guestfs_part_get_bootable (guestfs_h *g,\n"
33800 "                            const char *device,\n"
33801 "                            int partnum);\n"
33802 "\n"
33803 msgstr ""
33804
33805 #. type: textblock
33806 #: ../src/guestfs-actions.pod:5987
33807 msgid "See also C<guestfs_part_set_bootable>."
33808 msgstr ""
33809
33810 #. type: =head2
33811 #: ../src/guestfs-actions.pod:5993
33812 msgid "guestfs_part_get_mbr_id"
33813 msgstr ""
33814
33815 #. type: verbatim
33816 #: ../src/guestfs-actions.pod:5995
33817 #, no-wrap
33818 msgid ""
33819 " int\n"
33820 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
33821 "                          const char *device,\n"
33822 "                          int partnum);\n"
33823 "\n"
33824 msgstr ""
33825
33826 #. type: textblock
33827 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6185
33828 msgid ""
33829 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
33830 "undefined results for other partition table types (see "
33831 "C<guestfs_part_get_parttype>)."
33832 msgstr ""
33833
33834 #. type: =head2
33835 #: ../src/guestfs-actions.pod:6011
33836 msgid "guestfs_part_get_parttype"
33837 msgstr ""
33838
33839 #. type: verbatim
33840 #: ../src/guestfs-actions.pod:6013
33841 #, no-wrap
33842 msgid ""
33843 " char *\n"
33844 " guestfs_part_get_parttype (guestfs_h *g,\n"
33845 "                            const char *device);\n"
33846 "\n"
33847 msgstr ""
33848
33849 #. type: textblock
33850 #: ../src/guestfs-actions.pod:6020
33851 msgid ""
33852 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
33853 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
33854 "possible, although unusual.  See C<guestfs_part_init> for a full list."
33855 msgstr ""
33856
33857 #. type: =head2
33858 #: ../src/guestfs-actions.pod:6030
33859 msgid "guestfs_part_init"
33860 msgstr ""
33861
33862 #. type: verbatim
33863 #: ../src/guestfs-actions.pod:6032
33864 #, no-wrap
33865 msgid ""
33866 " int\n"
33867 " guestfs_part_init (guestfs_h *g,\n"
33868 "                    const char *device,\n"
33869 "                    const char *parttype);\n"
33870 "\n"
33871 msgstr ""
33872
33873 #. type: textblock
33874 #: ../src/guestfs-actions.pod:6041
33875 msgid ""
33876 "Initially there are no partitions.  Following this, you should call "
33877 "C<guestfs_part_add> for each partition required."
33878 msgstr ""
33879
33880 #. type: =head2
33881 #: ../src/guestfs-actions.pod:6114
33882 msgid "guestfs_part_list"
33883 msgstr "guestfs_part_list"
33884
33885 #. type: verbatim
33886 #: ../src/guestfs-actions.pod:6116
33887 #, no-wrap
33888 msgid ""
33889 " struct guestfs_partition_list *\n"
33890 " guestfs_part_list (guestfs_h *g,\n"
33891 "                    const char *device);\n"
33892 "\n"
33893 msgstr ""
33894 " struct guestfs_partition_list *\n"
33895 " guestfs_part_list (guestfs_h *g,\n"
33896 "                    const char *device);\n"
33897 "\n"
33898
33899 #. type: textblock
33900 #: ../src/guestfs-actions.pod:6133
33901 msgid ""
33902 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
33903 "the device's sector size, see C<guestfs_blockdev_getss>."
33904 msgstr ""
33905
33906 #. type: textblock
33907 #: ../src/guestfs-actions.pod:6146
33908 msgid ""
33909 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
33910 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
33911 "use>."
33912 msgstr ""
33913
33914 #. type: =head2
33915 #: ../src/guestfs-actions.pod:6152
33916 msgid "guestfs_part_set_bootable"
33917 msgstr ""
33918
33919 #. type: verbatim
33920 #: ../src/guestfs-actions.pod:6154
33921 #, no-wrap
33922 msgid ""
33923 " int\n"
33924 " guestfs_part_set_bootable (guestfs_h *g,\n"
33925 "                            const char *device,\n"
33926 "                            int partnum,\n"
33927 "                            int bootable);\n"
33928 "\n"
33929 msgstr ""
33930
33931 #. type: =head2
33932 #: ../src/guestfs-actions.pod:6171
33933 msgid "guestfs_part_set_mbr_id"
33934 msgstr ""
33935
33936 #. type: verbatim
33937 #: ../src/guestfs-actions.pod:6173
33938 #, no-wrap
33939 msgid ""
33940 " int\n"
33941 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
33942 "                          const char *device,\n"
33943 "                          int partnum,\n"
33944 "                          int idbyte);\n"
33945 "\n"
33946 msgstr ""
33947
33948 #. type: =head2
33949 #: ../src/guestfs-actions.pod:6193
33950 msgid "guestfs_part_set_name"
33951 msgstr ""
33952
33953 #. type: verbatim
33954 #: ../src/guestfs-actions.pod:6195
33955 #, no-wrap
33956 msgid ""
33957 " int\n"
33958 " guestfs_part_set_name (guestfs_h *g,\n"
33959 "                        const char *device,\n"
33960 "                        int partnum,\n"
33961 "                        const char *name);\n"
33962 "\n"
33963 msgstr ""
33964
33965 #. type: =head2
33966 #: ../src/guestfs-actions.pod:6211
33967 msgid "guestfs_part_to_dev"
33968 msgstr ""
33969
33970 #. type: verbatim
33971 #: ../src/guestfs-actions.pod:6213
33972 #, no-wrap
33973 msgid ""
33974 " char *\n"
33975 " guestfs_part_to_dev (guestfs_h *g,\n"
33976 "                      const char *partition);\n"
33977 "\n"
33978 msgstr ""
33979
33980 #. type: textblock
33981 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6240
33982 msgid ""
33983 "The named partition must exist, for example as a string returned from "
33984 "C<guestfs_list_partitions>."
33985 msgstr ""
33986
33987 #. type: textblock
33988 #: ../src/guestfs-actions.pod:6224
33989 msgid "See also C<guestfs_part_to_partnum>."
33990 msgstr ""
33991
33992 #. type: =head2
33993 #: ../src/guestfs-actions.pod:6231
33994 msgid "guestfs_part_to_partnum"
33995 msgstr ""
33996
33997 #. type: verbatim
33998 #: ../src/guestfs-actions.pod:6233
33999 #, no-wrap
34000 msgid ""
34001 " int\n"
34002 " guestfs_part_to_partnum (guestfs_h *g,\n"
34003 "                          const char *partition);\n"
34004 "\n"
34005 msgstr ""
34006
34007 #. type: textblock
34008 #: ../src/guestfs-actions.pod:6243
34009 msgid "See also C<guestfs_part_to_dev>."
34010 msgstr ""
34011
34012 #. type: =head2
34013 #: ../src/guestfs-actions.pod:6249
34014 msgid "guestfs_ping_daemon"
34015 msgstr ""
34016
34017 #. type: verbatim
34018 #: ../src/guestfs-actions.pod:6251
34019 #, no-wrap
34020 msgid ""
34021 " int\n"
34022 " guestfs_ping_daemon (guestfs_h *g);\n"
34023 "\n"
34024 msgstr ""
34025
34026 #. type: =head2
34027 #: ../src/guestfs-actions.pod:6263
34028 msgid "guestfs_pread"
34029 msgstr ""
34030
34031 #. type: verbatim
34032 #: ../src/guestfs-actions.pod:6265
34033 #, no-wrap
34034 msgid ""
34035 " char *\n"
34036 " guestfs_pread (guestfs_h *g,\n"
34037 "                const char *path,\n"
34038 "                int count,\n"
34039 "                int64_t offset,\n"
34040 "                size_t *size_r);\n"
34041 "\n"
34042 msgstr ""
34043
34044 #. type: textblock
34045 #: ../src/guestfs-actions.pod:6278
34046 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
34047 msgstr ""
34048
34049 #. type: =head2
34050 #: ../src/guestfs-actions.pod:6289
34051 msgid "guestfs_pread_device"
34052 msgstr ""
34053
34054 #. type: verbatim
34055 #: ../src/guestfs-actions.pod:6291
34056 #, no-wrap
34057 msgid ""
34058 " char *\n"
34059 " guestfs_pread_device (guestfs_h *g,\n"
34060 "                       const char *device,\n"
34061 "                       int count,\n"
34062 "                       int64_t offset,\n"
34063 "                       size_t *size_r);\n"
34064 "\n"
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs-actions.pod:6304
34069 msgid "See also C<guestfs_pread>."
34070 msgstr ""
34071
34072 #. type: textblock
34073 #: ../src/guestfs-actions.pod:6313
34074 msgid "(Added in 1.5.21)"
34075 msgstr "(Додано у 1.5.21)"
34076
34077 #. type: =head2
34078 #: ../src/guestfs-actions.pod:6315
34079 msgid "guestfs_pvcreate"
34080 msgstr ""
34081
34082 #. type: verbatim
34083 #: ../src/guestfs-actions.pod:6317
34084 #, no-wrap
34085 msgid ""
34086 " int\n"
34087 " guestfs_pvcreate (guestfs_h *g,\n"
34088 "                   const char *device);\n"
34089 "\n"
34090 msgstr ""
34091
34092 #. type: =head2
34093 #: ../src/guestfs-actions.pod:6329
34094 msgid "guestfs_pvremove"
34095 msgstr ""
34096
34097 #. type: verbatim
34098 #: ../src/guestfs-actions.pod:6331
34099 #, no-wrap
34100 msgid ""
34101 " int\n"
34102 " guestfs_pvremove (guestfs_h *g,\n"
34103 "                   const char *device);\n"
34104 "\n"
34105 msgstr ""
34106
34107 #. type: =head2
34108 #: ../src/guestfs-actions.pod:6346
34109 msgid "guestfs_pvresize"
34110 msgstr ""
34111
34112 #. type: verbatim
34113 #: ../src/guestfs-actions.pod:6348
34114 #, no-wrap
34115 msgid ""
34116 " int\n"
34117 " guestfs_pvresize (guestfs_h *g,\n"
34118 "                   const char *device);\n"
34119 "\n"
34120 msgstr ""
34121
34122 #. type: =head2
34123 #: ../src/guestfs-actions.pod:6359
34124 msgid "guestfs_pvresize_size"
34125 msgstr ""
34126
34127 #. type: verbatim
34128 #: ../src/guestfs-actions.pod:6361
34129 #, no-wrap
34130 msgid ""
34131 " int\n"
34132 " guestfs_pvresize_size (guestfs_h *g,\n"
34133 "                        const char *device,\n"
34134 "                        int64_t size);\n"
34135 "\n"
34136 msgstr ""
34137
34138 #. type: textblock
34139 #: ../src/guestfs-actions.pod:6366
34140 msgid ""
34141 "This command is the same as C<guestfs_pvresize> except that it allows you to "
34142 "specify the new size (in bytes) explicitly."
34143 msgstr ""
34144
34145 #. type: =head2
34146 #: ../src/guestfs-actions.pod:6373
34147 msgid "guestfs_pvs"
34148 msgstr ""
34149
34150 #. type: verbatim
34151 #: ../src/guestfs-actions.pod:6375
34152 #, no-wrap
34153 msgid ""
34154 " char **\n"
34155 " guestfs_pvs (guestfs_h *g);\n"
34156 "\n"
34157 msgstr ""
34158
34159 #. type: textblock
34160 #: ../src/guestfs-actions.pod:6384
34161 msgid "See also C<guestfs_pvs_full>."
34162 msgstr ""
34163
34164 #. type: =head2
34165 #: ../src/guestfs-actions.pod:6392
34166 msgid "guestfs_pvs_full"
34167 msgstr ""
34168
34169 #. type: verbatim
34170 #: ../src/guestfs-actions.pod:6394
34171 #, no-wrap
34172 msgid ""
34173 " struct guestfs_lvm_pv_list *\n"
34174 " guestfs_pvs_full (guestfs_h *g);\n"
34175 "\n"
34176 msgstr ""
34177
34178 #. type: textblock
34179 #: ../src/guestfs-actions.pod:6400
34180 msgid ""
34181 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
34182 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
34183 msgstr ""
34184
34185 #. type: =head2
34186 #: ../src/guestfs-actions.pod:6406
34187 msgid "guestfs_pvuuid"
34188 msgstr ""
34189
34190 #. type: verbatim
34191 #: ../src/guestfs-actions.pod:6408
34192 #, no-wrap
34193 msgid ""
34194 " char *\n"
34195 " guestfs_pvuuid (guestfs_h *g,\n"
34196 "                 const char *device);\n"
34197 "\n"
34198 msgstr ""
34199
34200 #. type: =head2
34201 #: ../src/guestfs-actions.pod:6419
34202 msgid "guestfs_pwrite"
34203 msgstr ""
34204
34205 #. type: verbatim
34206 #: ../src/guestfs-actions.pod:6421
34207 #, no-wrap
34208 msgid ""
34209 " int\n"
34210 " guestfs_pwrite (guestfs_h *g,\n"
34211 "                 const char *path,\n"
34212 "                 const char *content,\n"
34213 "                 size_t content_size,\n"
34214 "                 int64_t offset);\n"
34215 "\n"
34216 msgstr ""
34217
34218 #. type: textblock
34219 #: ../src/guestfs-actions.pod:6437
34220 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
34221 msgstr ""
34222
34223 #. type: =head2
34224 #: ../src/guestfs-actions.pod:6446
34225 msgid "guestfs_pwrite_device"
34226 msgstr ""
34227
34228 #. type: verbatim
34229 #: ../src/guestfs-actions.pod:6448
34230 #, no-wrap
34231 msgid ""
34232 " int\n"
34233 " guestfs_pwrite_device (guestfs_h *g,\n"
34234 "                        const char *device,\n"
34235 "                        const char *content,\n"
34236 "                        size_t content_size,\n"
34237 "                        int64_t offset);\n"
34238 "\n"
34239 msgstr ""
34240
34241 #. type: textblock
34242 #: ../src/guestfs-actions.pod:6463
34243 msgid "See also C<guestfs_pwrite>."
34244 msgstr ""
34245
34246 #. type: textblock
34247 #: ../src/guestfs-actions.pod:6470
34248 msgid "(Added in 1.5.20)"
34249 msgstr "(Додано у 1.5.20)"
34250
34251 #. type: =head2
34252 #: ../src/guestfs-actions.pod:6472
34253 msgid "guestfs_read_file"
34254 msgstr ""
34255
34256 #. type: verbatim
34257 #: ../src/guestfs-actions.pod:6474
34258 #, no-wrap
34259 msgid ""
34260 " char *\n"
34261 " guestfs_read_file (guestfs_h *g,\n"
34262 "                    const char *path,\n"
34263 "                    size_t *size_r);\n"
34264 "\n"
34265 msgstr ""
34266
34267 #. type: textblock
34268 #: ../src/guestfs-actions.pod:6482
34269 msgid ""
34270 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
34271 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
34272 "function is limited in the total size of file that can be handled."
34273 msgstr ""
34274
34275 #. type: textblock
34276 #: ../src/guestfs-actions.pod:6494
34277 msgid "(Added in 1.0.63)"
34278 msgstr "(Додано у 1.0.63)"
34279
34280 #. type: =head2
34281 #: ../src/guestfs-actions.pod:6496
34282 msgid "guestfs_read_lines"
34283 msgstr ""
34284
34285 #. type: verbatim
34286 #: ../src/guestfs-actions.pod:6498
34287 #, no-wrap
34288 msgid ""
34289 " char **\n"
34290 " guestfs_read_lines (guestfs_h *g,\n"
34291 "                     const char *path);\n"
34292 "\n"
34293 msgstr ""
34294
34295 #. type: textblock
34296 #: ../src/guestfs-actions.pod:6507
34297 msgid ""
34298 "Note that this function cannot correctly handle binary files (specifically, "
34299 "files containing C<\\0> character which is treated as end of line).  For "
34300 "those you need to use the C<guestfs_read_file> function which has a more "
34301 "complex interface."
34302 msgstr ""
34303
34304 #. type: =head2
34305 #: ../src/guestfs-actions.pod:6518
34306 msgid "guestfs_readdir"
34307 msgstr ""
34308
34309 #. type: verbatim
34310 #: ../src/guestfs-actions.pod:6520
34311 #, no-wrap
34312 msgid ""
34313 " struct guestfs_dirent_list *\n"
34314 " guestfs_readdir (guestfs_h *g,\n"
34315 "                  const char *dir);\n"
34316 "\n"
34317 msgstr ""
34318
34319 #. type: textblock
34320 #: ../src/guestfs-actions.pod:6574
34321 msgid ""
34322 "This function is primarily intended for use by programs.  To get a simple "
34323 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
34324 "consumption, use C<guestfs_ll>."
34325 msgstr ""
34326
34327 #. type: textblock
34328 #: ../src/guestfs-actions.pod:6578
34329 msgid ""
34330 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
34331 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
34332 msgstr ""
34333
34334 #. type: =head2
34335 #: ../src/guestfs-actions.pod:6584
34336 msgid "guestfs_readlink"
34337 msgstr ""
34338
34339 #. type: verbatim
34340 #: ../src/guestfs-actions.pod:6586
34341 #, no-wrap
34342 msgid ""
34343 " char *\n"
34344 " guestfs_readlink (guestfs_h *g,\n"
34345 "                   const char *path);\n"
34346 "\n"
34347 msgstr ""
34348
34349 #. type: =head2
34350 #: ../src/guestfs-actions.pod:6597
34351 msgid "guestfs_readlinklist"
34352 msgstr ""
34353
34354 #. type: verbatim
34355 #: ../src/guestfs-actions.pod:6599
34356 #, no-wrap
34357 msgid ""
34358 " char **\n"
34359 " guestfs_readlinklist (guestfs_h *g,\n"
34360 "                       const char *path,\n"
34361 "                       char *const *names);\n"
34362 "\n"
34363 msgstr ""
34364
34365 #. type: =head2
34366 #: ../src/guestfs-actions.pod:6632
34367 msgid "guestfs_realpath"
34368 msgstr ""
34369
34370 #. type: verbatim
34371 #: ../src/guestfs-actions.pod:6634
34372 #, no-wrap
34373 msgid ""
34374 " char *\n"
34375 " guestfs_realpath (guestfs_h *g,\n"
34376 "                   const char *path);\n"
34377 "\n"
34378 msgstr ""
34379
34380 #. type: =head2
34381 #: ../src/guestfs-actions.pod:6646
34382 msgid "guestfs_removexattr"
34383 msgstr ""
34384
34385 #. type: verbatim
34386 #: ../src/guestfs-actions.pod:6648
34387 #, no-wrap
34388 msgid ""
34389 " int\n"
34390 " guestfs_removexattr (guestfs_h *g,\n"
34391 "                      const char *xattr,\n"
34392 "                      const char *path);\n"
34393 "\n"
34394 msgstr ""
34395
34396 #. type: textblock
34397 #: ../src/guestfs-actions.pod:6656
34398 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
34399 msgstr ""
34400
34401 #. type: =head2
34402 #: ../src/guestfs-actions.pod:6662
34403 msgid "guestfs_resize2fs"
34404 msgstr ""
34405
34406 #. type: verbatim
34407 #: ../src/guestfs-actions.pod:6664
34408 #, no-wrap
34409 msgid ""
34410 " int\n"
34411 " guestfs_resize2fs (guestfs_h *g,\n"
34412 "                    const char *device);\n"
34413 "\n"
34414 msgstr ""
34415
34416 #. type: textblock
34417 #: ../src/guestfs-actions.pod:6671
34418 msgid ""
34419 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
34420 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
34421 "sometimes gives an error about this and sometimes not.  In any case, it is "
34422 "always safe to call C<guestfs_e2fsck_f> before calling this function."
34423 msgstr ""
34424
34425 #. type: =head2
34426 #: ../src/guestfs-actions.pod:6681
34427 msgid "guestfs_resize2fs_M"
34428 msgstr ""
34429
34430 #. type: verbatim
34431 #: ../src/guestfs-actions.pod:6683
34432 #, no-wrap
34433 msgid ""
34434 " int\n"
34435 " guestfs_resize2fs_M (guestfs_h *g,\n"
34436 "                      const char *device);\n"
34437 "\n"
34438 msgstr ""
34439
34440 #. type: textblock
34441 #: ../src/guestfs-actions.pod:6687
34442 msgid ""
34443 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
34444 "resized to its minimum size.  This works like the I<-M> option to the "
34445 "C<resize2fs> command."
34446 msgstr ""
34447
34448 #. type: textblock
34449 #: ../src/guestfs-actions.pod:6691
34450 msgid ""
34451 "To get the resulting size of the filesystem you should call "
34452 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
34453 "These two numbers, multiplied together, give the resulting size of the "
34454 "minimal filesystem in bytes."
34455 msgstr ""
34456
34457 #. type: =head2
34458 #: ../src/guestfs-actions.pod:6700
34459 msgid "guestfs_resize2fs_size"
34460 msgstr ""
34461
34462 #. type: verbatim
34463 #: ../src/guestfs-actions.pod:6702
34464 #, no-wrap
34465 msgid ""
34466 " int\n"
34467 " guestfs_resize2fs_size (guestfs_h *g,\n"
34468 "                         const char *device,\n"
34469 "                         int64_t size);\n"
34470 "\n"
34471 msgstr ""
34472
34473 #. type: textblock
34474 #: ../src/guestfs-actions.pod:6707
34475 msgid ""
34476 "This command is the same as C<guestfs_resize2fs> except that it allows you "
34477 "to specify the new size (in bytes) explicitly."
34478 msgstr ""
34479
34480 #. type: =head2
34481 #: ../src/guestfs-actions.pod:6714
34482 msgid "guestfs_rm"
34483 msgstr ""
34484
34485 #. type: verbatim
34486 #: ../src/guestfs-actions.pod:6716
34487 #, no-wrap
34488 msgid ""
34489 " int\n"
34490 " guestfs_rm (guestfs_h *g,\n"
34491 "             const char *path);\n"
34492 "\n"
34493 msgstr ""
34494
34495 #. type: =head2
34496 #: ../src/guestfs-actions.pod:6726
34497 msgid "guestfs_rm_rf"
34498 msgstr ""
34499
34500 #. type: verbatim
34501 #: ../src/guestfs-actions.pod:6728
34502 #, no-wrap
34503 msgid ""
34504 " int\n"
34505 " guestfs_rm_rf (guestfs_h *g,\n"
34506 "                const char *path);\n"
34507 "\n"
34508 msgstr ""
34509
34510 #. type: =head2
34511 #: ../src/guestfs-actions.pod:6740
34512 msgid "guestfs_rmdir"
34513 msgstr ""
34514
34515 #. type: verbatim
34516 #: ../src/guestfs-actions.pod:6742
34517 #, no-wrap
34518 msgid ""
34519 " int\n"
34520 " guestfs_rmdir (guestfs_h *g,\n"
34521 "                const char *path);\n"
34522 "\n"
34523 msgstr ""
34524
34525 #. type: =head2
34526 #: ../src/guestfs-actions.pod:6752
34527 msgid "guestfs_rmmountpoint"
34528 msgstr ""
34529
34530 #. type: verbatim
34531 #: ../src/guestfs-actions.pod:6754
34532 #, no-wrap
34533 msgid ""
34534 " int\n"
34535 " guestfs_rmmountpoint (guestfs_h *g,\n"
34536 "                       const char *exemptpath);\n"
34537 "\n"
34538 msgstr ""
34539
34540 #. type: textblock
34541 #: ../src/guestfs-actions.pod:6758
34542 msgid ""
34543 "This calls removes a mountpoint that was previously created with "
34544 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
34545 msgstr ""
34546
34547 #. type: =head2
34548 #: ../src/guestfs-actions.pod:6766
34549 msgid "guestfs_scrub_device"
34550 msgstr ""
34551
34552 #. type: verbatim
34553 #: ../src/guestfs-actions.pod:6768
34554 #, no-wrap
34555 msgid ""
34556 " int\n"
34557 " guestfs_scrub_device (guestfs_h *g,\n"
34558 "                       const char *device);\n"
34559 "\n"
34560 msgstr ""
34561
34562 #. type: textblock
34563 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6798
34564 #: ../src/guestfs-actions.pod:6817
34565 msgid "(Added in 1.0.52)"
34566 msgstr "(Додано у 1.0.52)"
34567
34568 #. type: =head2
34569 #: ../src/guestfs-actions.pod:6782
34570 msgid "guestfs_scrub_file"
34571 msgstr ""
34572
34573 #. type: verbatim
34574 #: ../src/guestfs-actions.pod:6784
34575 #, no-wrap
34576 msgid ""
34577 " int\n"
34578 " guestfs_scrub_file (guestfs_h *g,\n"
34579 "                     const char *file);\n"
34580 "\n"
34581 msgstr ""
34582
34583 #. type: =head2
34584 #: ../src/guestfs-actions.pod:6800
34585 msgid "guestfs_scrub_freespace"
34586 msgstr ""
34587
34588 #. type: verbatim
34589 #: ../src/guestfs-actions.pod:6802
34590 #, no-wrap
34591 msgid ""
34592 " int\n"
34593 " guestfs_scrub_freespace (guestfs_h *g,\n"
34594 "                          const char *dir);\n"
34595 "\n"
34596 msgstr ""
34597
34598 #. type: textblock
34599 #: ../src/guestfs-actions.pod:6806
34600 msgid ""
34601 "This command creates the directory C<dir> and then fills it with files until "
34602 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
34603 "and deletes them.  The intention is to scrub any free space on the partition "
34604 "containing C<dir>."
34605 msgstr ""
34606
34607 #. type: =head2
34608 #: ../src/guestfs-actions.pod:6819
34609 msgid "guestfs_set_append"
34610 msgstr ""
34611
34612 #. type: verbatim
34613 #: ../src/guestfs-actions.pod:6821
34614 #, no-wrap
34615 msgid ""
34616 " int\n"
34617 " guestfs_set_append (guestfs_h *g,\n"
34618 "                     const char *append);\n"
34619 "\n"
34620 msgstr ""
34621
34622 #. type: =head2
34623 #: ../src/guestfs-actions.pod:6838
34624 msgid "guestfs_set_attach_method"
34625 msgstr ""
34626
34627 #. type: verbatim
34628 #: ../src/guestfs-actions.pod:6840
34629 #, no-wrap
34630 msgid ""
34631 " int\n"
34632 " guestfs_set_attach_method (guestfs_h *g,\n"
34633 "                            const char *attachmethod);\n"
34634 "\n"
34635 msgstr ""
34636
34637 #. type: =head2
34638 #: ../src/guestfs-actions.pod:6868
34639 msgid "guestfs_set_autosync"
34640 msgstr ""
34641
34642 #. type: verbatim
34643 #: ../src/guestfs-actions.pod:6870
34644 #, no-wrap
34645 msgid ""
34646 " int\n"
34647 " guestfs_set_autosync (guestfs_h *g,\n"
34648 "                       int autosync);\n"
34649 "\n"
34650 msgstr ""
34651
34652 #. type: =head2
34653 #: ../src/guestfs-actions.pod:6886
34654 msgid "guestfs_set_direct"
34655 msgstr ""
34656
34657 #. type: verbatim
34658 #: ../src/guestfs-actions.pod:6888
34659 #, no-wrap
34660 msgid ""
34661 " int\n"
34662 " guestfs_set_direct (guestfs_h *g,\n"
34663 "                     int direct);\n"
34664 "\n"
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs-actions.pod:6896
34669 msgid ""
34670 "One consequence of this is that log messages aren't caught by the library "
34671 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
34672 "stdout."
34673 msgstr ""
34674
34675 #. type: =head2
34676 #: ../src/guestfs-actions.pod:6909
34677 msgid "guestfs_set_e2label"
34678 msgstr ""
34679
34680 #. type: verbatim
34681 #: ../src/guestfs-actions.pod:6911
34682 #, no-wrap
34683 msgid ""
34684 " int\n"
34685 " guestfs_set_e2label (guestfs_h *g,\n"
34686 "                      const char *device,\n"
34687 "                      const char *label);\n"
34688 "\n"
34689 msgstr ""
34690
34691 #. type: textblock
34692 #: ../src/guestfs-actions.pod:6920
34693 msgid ""
34694 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
34695 "the existing label on a filesystem."
34696 msgstr ""
34697
34698 #. type: =head2
34699 #: ../src/guestfs-actions.pod:6927
34700 msgid "guestfs_set_e2uuid"
34701 msgstr ""
34702
34703 #. type: verbatim
34704 #: ../src/guestfs-actions.pod:6929
34705 #, no-wrap
34706 msgid ""
34707 " int\n"
34708 " guestfs_set_e2uuid (guestfs_h *g,\n"
34709 "                     const char *device,\n"
34710 "                     const char *uuid);\n"
34711 "\n"
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs-actions.pod:6939
34716 msgid ""
34717 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
34718 "the existing UUID of a filesystem."
34719 msgstr ""
34720
34721 #. type: =head2
34722 #: ../src/guestfs-actions.pod:6946
34723 msgid "guestfs_set_memsize"
34724 msgstr ""
34725
34726 #. type: verbatim
34727 #: ../src/guestfs-actions.pod:6948
34728 #, no-wrap
34729 msgid ""
34730 " int\n"
34731 " guestfs_set_memsize (guestfs_h *g,\n"
34732 "                      int memsize);\n"
34733 "\n"
34734 msgstr ""
34735
34736 #. type: textblock
34737 #: ../src/guestfs-actions.pod:6952
34738 msgid ""
34739 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
34740 "This only has any effect if called before C<guestfs_launch>."
34741 msgstr ""
34742
34743 #. type: =head2
34744 #: ../src/guestfs-actions.pod:6967
34745 msgid "guestfs_set_network"
34746 msgstr ""
34747
34748 #. type: verbatim
34749 #: ../src/guestfs-actions.pod:6969
34750 #, no-wrap
34751 msgid ""
34752 " int\n"
34753 " guestfs_set_network (guestfs_h *g,\n"
34754 "                      int network);\n"
34755 "\n"
34756 msgstr ""
34757
34758 #. type: textblock
34759 #: ../src/guestfs-actions.pod:6979
34760 msgid ""
34761 "You must call this before calling C<guestfs_launch>, otherwise it has no "
34762 "effect."
34763 msgstr ""
34764
34765 #. type: =head2
34766 #: ../src/guestfs-actions.pod:6986
34767 msgid "guestfs_set_path"
34768 msgstr ""
34769
34770 #. type: verbatim
34771 #: ../src/guestfs-actions.pod:6988
34772 #, no-wrap
34773 msgid ""
34774 " int\n"
34775 " guestfs_set_path (guestfs_h *g,\n"
34776 "                   const char *searchpath);\n"
34777 "\n"
34778 msgstr ""
34779
34780 #. type: =head2
34781 #: ../src/guestfs-actions.pod:7003
34782 msgid "guestfs_set_pgroup"
34783 msgstr ""
34784
34785 #. type: verbatim
34786 #: ../src/guestfs-actions.pod:7005
34787 #, no-wrap
34788 msgid ""
34789 " int\n"
34790 " guestfs_set_pgroup (guestfs_h *g,\n"
34791 "                     int pgroup);\n"
34792 "\n"
34793 msgstr ""
34794
34795 #. type: =head2
34796 #: ../src/guestfs-actions.pod:7022
34797 msgid "guestfs_set_qemu"
34798 msgstr ""
34799
34800 #. type: verbatim
34801 #: ../src/guestfs-actions.pod:7024
34802 #, no-wrap
34803 msgid ""
34804 " int\n"
34805 " guestfs_set_qemu (guestfs_h *g,\n"
34806 "                   const char *qemu);\n"
34807 "\n"
34808 msgstr ""
34809
34810 #. type: =head2
34811 #: ../src/guestfs-actions.pod:7050
34812 msgid "guestfs_set_recovery_proc"
34813 msgstr ""
34814
34815 #. type: verbatim
34816 #: ../src/guestfs-actions.pod:7052
34817 #, no-wrap
34818 msgid ""
34819 " int\n"
34820 " guestfs_set_recovery_proc (guestfs_h *g,\n"
34821 "                            int recoveryproc);\n"
34822 "\n"
34823 msgstr ""
34824
34825 #. type: textblock
34826 #: ../src/guestfs-actions.pod:7056
34827 msgid ""
34828 "If this is called with the parameter C<false> then C<guestfs_launch> does "
34829 "not create a recovery process.  The purpose of the recovery process is to "
34830 "stop runaway qemu processes in the case where the main program aborts "
34831 "abruptly."
34832 msgstr ""
34833
34834 #. type: textblock
34835 #: ../src/guestfs-actions.pod:7061
34836 msgid ""
34837 "This only has any effect if called before C<guestfs_launch>, and the default "
34838 "is true."
34839 msgstr ""
34840
34841 #. type: =head2
34842 #: ../src/guestfs-actions.pod:7074
34843 msgid "guestfs_set_selinux"
34844 msgstr ""
34845
34846 #. type: verbatim
34847 #: ../src/guestfs-actions.pod:7076
34848 #, no-wrap
34849 msgid ""
34850 " int\n"
34851 " guestfs_set_selinux (guestfs_h *g,\n"
34852 "                      int selinux);\n"
34853 "\n"
34854 msgstr ""
34855
34856 #. type: =head2
34857 #: ../src/guestfs-actions.pod:7093
34858 msgid "guestfs_set_smp"
34859 msgstr ""
34860
34861 #. type: verbatim
34862 #: ../src/guestfs-actions.pod:7095
34863 #, no-wrap
34864 msgid ""
34865 " int\n"
34866 " guestfs_set_smp (guestfs_h *g,\n"
34867 "                  int smp);\n"
34868 "\n"
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs-actions.pod:7103
34873 msgid "This function must be called before C<guestfs_launch>."
34874 msgstr ""
34875
34876 #. type: =head2
34877 #: ../src/guestfs-actions.pod:7109
34878 msgid "guestfs_set_trace"
34879 msgstr ""
34880
34881 #. type: verbatim
34882 #: ../src/guestfs-actions.pod:7111
34883 #, no-wrap
34884 msgid ""
34885 " int\n"
34886 " guestfs_set_trace (guestfs_h *g,\n"
34887 "                    int trace);\n"
34888 "\n"
34889 msgstr ""
34890
34891 #. type: textblock
34892 #: ../src/guestfs-actions.pod:7125
34893 msgid ""
34894 "Trace messages are normally sent to C<stderr>, unless you register a "
34895 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34896 msgstr ""
34897
34898 #. type: =head2
34899 #: ../src/guestfs-actions.pod:7133
34900 msgid "guestfs_set_verbose"
34901 msgstr ""
34902
34903 #. type: verbatim
34904 #: ../src/guestfs-actions.pod:7135
34905 #, no-wrap
34906 msgid ""
34907 " int\n"
34908 " guestfs_set_verbose (guestfs_h *g,\n"
34909 "                      int verbose);\n"
34910 "\n"
34911 msgstr ""
34912
34913 #. type: textblock
34914 #: ../src/guestfs-actions.pod:7144
34915 msgid ""
34916 "Verbose messages are normally sent to C<stderr>, unless you register a "
34917 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34918 msgstr ""
34919
34920 #. type: =head2
34921 #: ../src/guestfs-actions.pod:7152
34922 msgid "guestfs_setcon"
34923 msgstr ""
34924
34925 #. type: verbatim
34926 #: ../src/guestfs-actions.pod:7154
34927 #, no-wrap
34928 msgid ""
34929 " int\n"
34930 " guestfs_setcon (guestfs_h *g,\n"
34931 "                 const char *context);\n"
34932 "\n"
34933 msgstr ""
34934
34935 #. type: =head2
34936 #: ../src/guestfs-actions.pod:7167
34937 msgid "guestfs_setxattr"
34938 msgstr ""
34939
34940 #. type: verbatim
34941 #: ../src/guestfs-actions.pod:7169
34942 #, no-wrap
34943 msgid ""
34944 " int\n"
34945 " guestfs_setxattr (guestfs_h *g,\n"
34946 "                   const char *xattr,\n"
34947 "                   const char *val,\n"
34948 "                   int vallen,\n"
34949 "                   const char *path);\n"
34950 "\n"
34951 msgstr ""
34952
34953 #. type: textblock
34954 #: ../src/guestfs-actions.pod:7180
34955 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
34956 msgstr ""
34957
34958 #. type: =head2
34959 #: ../src/guestfs-actions.pod:7186
34960 msgid "guestfs_sfdisk"
34961 msgstr ""
34962
34963 #. type: verbatim
34964 #: ../src/guestfs-actions.pod:7188
34965 #, no-wrap
34966 msgid ""
34967 " int\n"
34968 " guestfs_sfdisk (guestfs_h *g,\n"
34969 "                 const char *device,\n"
34970 "                 int cyls,\n"
34971 "                 int heads,\n"
34972 "                 int sectors,\n"
34973 "                 char *const *lines);\n"
34974 "\n"
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7237
34979 #: ../src/guestfs-actions.pod:7268
34980 msgid ""
34981 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
34982 "call instead."
34983 msgstr ""
34984
34985 #. type: textblock
34986 #: ../src/guestfs-actions.pod:7223
34987 msgid ""
34988 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
34989 msgstr ""
34990
34991 #. type: =head2
34992 #: ../src/guestfs-actions.pod:7230
34993 msgid "guestfs_sfdiskM"
34994 msgstr ""
34995
34996 #. type: verbatim
34997 #: ../src/guestfs-actions.pod:7232
34998 #, no-wrap
34999 msgid ""
35000 " int\n"
35001 " guestfs_sfdiskM (guestfs_h *g,\n"
35002 "                  const char *device,\n"
35003 "                  char *const *lines);\n"
35004 "\n"
35005 msgstr ""
35006
35007 #. type: textblock
35008 #: ../src/guestfs-actions.pod:7244
35009 msgid ""
35010 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
35011 "partition sizes are specified in megabytes only (rounded to the nearest "
35012 "cylinder) and you don't need to specify the cyls, heads and sectors "
35013 "parameters which were rarely if ever used anyway."
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs-actions.pod:7250
35018 msgid ""
35019 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
35020 "C<guestfs_part_disk>"
35021 msgstr ""
35022
35023 #. type: =head2
35024 #: ../src/guestfs-actions.pod:7257
35025 msgid "guestfs_sfdisk_N"
35026 msgstr ""
35027
35028 #. type: verbatim
35029 #: ../src/guestfs-actions.pod:7259
35030 #, no-wrap
35031 msgid ""
35032 " int\n"
35033 " guestfs_sfdisk_N (guestfs_h *g,\n"
35034 "                   const char *device,\n"
35035 "                   int partnum,\n"
35036 "                   int cyls,\n"
35037 "                   int heads,\n"
35038 "                   int sectors,\n"
35039 "                   const char *line);\n"
35040 "\n"
35041 msgstr ""
35042
35043 #. type: textblock
35044 #: ../src/guestfs-actions.pod:7278
35045 msgid ""
35046 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
35047 "for the cyls/heads/sectors parameters."
35048 msgstr ""
35049
35050 #. type: textblock
35051 #: ../src/guestfs-actions.pod:7281
35052 msgid "See also: C<guestfs_part_add>"
35053 msgstr ""
35054
35055 #. type: =head2
35056 #: ../src/guestfs-actions.pod:7287
35057 msgid "guestfs_sfdisk_disk_geometry"
35058 msgstr ""
35059
35060 #. type: verbatim
35061 #: ../src/guestfs-actions.pod:7289
35062 #, no-wrap
35063 msgid ""
35064 " char *\n"
35065 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
35066 "                               const char *device);\n"
35067 "\n"
35068 msgstr ""
35069
35070 #. type: textblock
35071 #: ../src/guestfs-actions.pod:7293
35072 msgid ""
35073 "This displays the disk geometry of C<device> read from the partition table.  "
35074 "Especially in the case where the underlying block device has been resized, "
35075 "this can be different from the kernel's idea of the geometry (see "
35076 "C<guestfs_sfdisk_kernel_geometry>)."
35077 msgstr ""
35078
35079 #. type: =head2
35080 #: ../src/guestfs-actions.pod:7306
35081 msgid "guestfs_sfdisk_kernel_geometry"
35082 msgstr ""
35083
35084 #. type: verbatim
35085 #: ../src/guestfs-actions.pod:7308
35086 #, no-wrap
35087 msgid ""
35088 " char *\n"
35089 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
35090 "                                 const char *device);\n"
35091 "\n"
35092 msgstr ""
35093
35094 #. type: =head2
35095 #: ../src/guestfs-actions.pod:7322
35096 msgid "guestfs_sfdisk_l"
35097 msgstr ""
35098
35099 #. type: verbatim
35100 #: ../src/guestfs-actions.pod:7324
35101 #, no-wrap
35102 msgid ""
35103 " char *\n"
35104 " guestfs_sfdisk_l (guestfs_h *g,\n"
35105 "                   const char *device);\n"
35106 "\n"
35107 msgstr ""
35108
35109 #. type: textblock
35110 #: ../src/guestfs-actions.pod:7328
35111 msgid ""
35112 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
35113 "call instead."
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs-actions.pod:7339
35118 msgid "See also: C<guestfs_part_list>"
35119 msgstr ""
35120
35121 #. type: =head2
35122 #: ../src/guestfs-actions.pod:7346
35123 msgid "guestfs_sh"
35124 msgstr ""
35125
35126 #. type: verbatim
35127 #: ../src/guestfs-actions.pod:7348
35128 #, no-wrap
35129 msgid ""
35130 " char *\n"
35131 " guestfs_sh (guestfs_h *g,\n"
35132 "             const char *command);\n"
35133 "\n"
35134 msgstr ""
35135
35136 #. type: textblock
35137 #: ../src/guestfs-actions.pod:7355
35138 msgid "This is like C<guestfs_command>, but passes the command to:"
35139 msgstr ""
35140
35141 #. type: textblock
35142 #: ../src/guestfs-actions.pod:7363
35143 msgid "All the provisos about C<guestfs_command> apply to this call."
35144 msgstr ""
35145
35146 #. type: =head2
35147 #: ../src/guestfs-actions.pod:7370
35148 msgid "guestfs_sh_lines"
35149 msgstr ""
35150
35151 #. type: verbatim
35152 #: ../src/guestfs-actions.pod:7372
35153 #, no-wrap
35154 msgid ""
35155 " char **\n"
35156 " guestfs_sh_lines (guestfs_h *g,\n"
35157 "                   const char *command);\n"
35158 "\n"
35159 msgstr ""
35160
35161 #. type: textblock
35162 #: ../src/guestfs-actions.pod:7376
35163 msgid ""
35164 "This is the same as C<guestfs_sh>, but splits the result into a list of "
35165 "lines."
35166 msgstr ""
35167
35168 #. type: textblock
35169 #: ../src/guestfs-actions.pod:7379
35170 msgid "See also: C<guestfs_command_lines>"
35171 msgstr ""
35172
35173 #. type: =head2
35174 #: ../src/guestfs-actions.pod:7387
35175 msgid "guestfs_sleep"
35176 msgstr ""
35177
35178 #. type: verbatim
35179 #: ../src/guestfs-actions.pod:7389
35180 #, no-wrap
35181 msgid ""
35182 " int\n"
35183 " guestfs_sleep (guestfs_h *g,\n"
35184 "                int secs);\n"
35185 "\n"
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs-actions.pod:7397
35190 msgid "(Added in 1.0.41)"
35191 msgstr "(Додано у 1.0.41)"
35192
35193 #. type: =head2
35194 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-structs.pod:109
35195 msgid "guestfs_stat"
35196 msgstr ""
35197
35198 #. type: verbatim
35199 #: ../src/guestfs-actions.pod:7401
35200 #, no-wrap
35201 msgid ""
35202 " struct guestfs_stat *\n"
35203 " guestfs_stat (guestfs_h *g,\n"
35204 "               const char *path);\n"
35205 "\n"
35206 msgstr ""
35207
35208 #. type: =head2
35209 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-structs.pod:135
35210 msgid "guestfs_statvfs"
35211 msgstr ""
35212
35213 #. type: verbatim
35214 #: ../src/guestfs-actions.pod:7417
35215 #, no-wrap
35216 msgid ""
35217 " struct guestfs_statvfs *\n"
35218 " guestfs_statvfs (guestfs_h *g,\n"
35219 "                  const char *path);\n"
35220 "\n"
35221 msgstr ""
35222
35223 #. type: textblock
35224 #: ../src/guestfs-actions.pod:7427
35225 msgid ""
35226 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
35227 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
35228 msgstr ""
35229
35230 #. type: =head2
35231 #: ../src/guestfs-actions.pod:7433
35232 msgid "guestfs_strings"
35233 msgstr ""
35234
35235 #. type: verbatim
35236 #: ../src/guestfs-actions.pod:7435
35237 #, no-wrap
35238 msgid ""
35239 " char **\n"
35240 " guestfs_strings (guestfs_h *g,\n"
35241 "                  const char *path);\n"
35242 "\n"
35243 msgstr ""
35244
35245 #. type: =head2
35246 #: ../src/guestfs-actions.pod:7451
35247 msgid "guestfs_strings_e"
35248 msgstr ""
35249
35250 #. type: verbatim
35251 #: ../src/guestfs-actions.pod:7453
35252 #, no-wrap
35253 msgid ""
35254 " char **\n"
35255 " guestfs_strings_e (guestfs_h *g,\n"
35256 "                    const char *encoding,\n"
35257 "                    const char *path);\n"
35258 "\n"
35259 msgstr ""
35260
35261 #. type: textblock
35262 #: ../src/guestfs-actions.pod:7458
35263 msgid ""
35264 "This is like the C<guestfs_strings> command, but allows you to specify the "
35265 "encoding of strings that are looked for in the source file C<path>."
35266 msgstr ""
35267
35268 #. type: textblock
35269 #: ../src/guestfs-actions.pod:7468
35270 msgid ""
35271 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
35272 "ISO-8859-X (this is what C<guestfs_strings> uses)."
35273 msgstr ""
35274
35275 #. type: =head2
35276 #: ../src/guestfs-actions.pod:7506
35277 msgid "guestfs_swapoff_device"
35278 msgstr ""
35279
35280 #. type: verbatim
35281 #: ../src/guestfs-actions.pod:7508
35282 #, no-wrap
35283 msgid ""
35284 " int\n"
35285 " guestfs_swapoff_device (guestfs_h *g,\n"
35286 "                         const char *device);\n"
35287 "\n"
35288 msgstr ""
35289
35290 #. type: textblock
35291 #: ../src/guestfs-actions.pod:7512
35292 msgid ""
35293 "This command disables the libguestfs appliance swap device or partition "
35294 "named C<device>.  See C<guestfs_swapon_device>."
35295 msgstr ""
35296
35297 #. type: =head2
35298 #: ../src/guestfs-actions.pod:7520
35299 msgid "guestfs_swapoff_file"
35300 msgstr ""
35301
35302 #. type: verbatim
35303 #: ../src/guestfs-actions.pod:7522
35304 #, no-wrap
35305 msgid ""
35306 " int\n"
35307 " guestfs_swapoff_file (guestfs_h *g,\n"
35308 "                       const char *file);\n"
35309 "\n"
35310 msgstr ""
35311
35312 #. type: =head2
35313 #: ../src/guestfs-actions.pod:7532
35314 msgid "guestfs_swapoff_label"
35315 msgstr ""
35316
35317 #. type: verbatim
35318 #: ../src/guestfs-actions.pod:7534
35319 #, no-wrap
35320 msgid ""
35321 " int\n"
35322 " guestfs_swapoff_label (guestfs_h *g,\n"
35323 "                        const char *label);\n"
35324 "\n"
35325 msgstr ""
35326
35327 #. type: =head2
35328 #: ../src/guestfs-actions.pod:7545
35329 msgid "guestfs_swapoff_uuid"
35330 msgstr ""
35331
35332 #. type: verbatim
35333 #: ../src/guestfs-actions.pod:7547
35334 #, no-wrap
35335 msgid ""
35336 " int\n"
35337 " guestfs_swapoff_uuid (guestfs_h *g,\n"
35338 "                       const char *uuid);\n"
35339 "\n"
35340 msgstr ""
35341
35342 #. type: =head2
35343 #: ../src/guestfs-actions.pod:7558
35344 msgid "guestfs_swapon_device"
35345 msgstr ""
35346
35347 #. type: verbatim
35348 #: ../src/guestfs-actions.pod:7560
35349 #, no-wrap
35350 msgid ""
35351 " int\n"
35352 " guestfs_swapon_device (guestfs_h *g,\n"
35353 "                        const char *device);\n"
35354 "\n"
35355 msgstr ""
35356
35357 #. type: textblock
35358 #: ../src/guestfs-actions.pod:7564
35359 msgid ""
35360 "This command enables the libguestfs appliance to use the swap device or "
35361 "partition named C<device>.  The increased memory is made available for all "
35362 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
35363 msgstr ""
35364
35365 #. type: =head2
35366 #: ../src/guestfs-actions.pod:7580
35367 msgid "guestfs_swapon_file"
35368 msgstr ""
35369
35370 #. type: verbatim
35371 #: ../src/guestfs-actions.pod:7582
35372 #, no-wrap
35373 msgid ""
35374 " int\n"
35375 " guestfs_swapon_file (guestfs_h *g,\n"
35376 "                      const char *file);\n"
35377 "\n"
35378 msgstr ""
35379
35380 #. type: textblock
35381 #: ../src/guestfs-actions.pod:7586
35382 msgid ""
35383 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
35384 "notes."
35385 msgstr ""
35386
35387 #. type: =head2
35388 #: ../src/guestfs-actions.pod:7593
35389 msgid "guestfs_swapon_label"
35390 msgstr ""
35391
35392 #. type: verbatim
35393 #: ../src/guestfs-actions.pod:7595
35394 #, no-wrap
35395 msgid ""
35396 " int\n"
35397 " guestfs_swapon_label (guestfs_h *g,\n"
35398 "                       const char *label);\n"
35399 "\n"
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs-actions.pod:7599
35404 msgid ""
35405 "This command enables swap to a labeled swap partition.  See "
35406 "C<guestfs_swapon_device> for other notes."
35407 msgstr ""
35408
35409 #. type: =head2
35410 #: ../src/guestfs-actions.pod:7606
35411 msgid "guestfs_swapon_uuid"
35412 msgstr ""
35413
35414 #. type: verbatim
35415 #: ../src/guestfs-actions.pod:7608
35416 #, no-wrap
35417 msgid ""
35418 " int\n"
35419 " guestfs_swapon_uuid (guestfs_h *g,\n"
35420 "                      const char *uuid);\n"
35421 "\n"
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs-actions.pod:7612
35426 msgid ""
35427 "This command enables swap to a swap partition with the given UUID.  See "
35428 "C<guestfs_swapon_device> for other notes."
35429 msgstr ""
35430
35431 #. type: =head2
35432 #: ../src/guestfs-actions.pod:7619
35433 msgid "guestfs_sync"
35434 msgstr ""
35435
35436 #. type: verbatim
35437 #: ../src/guestfs-actions.pod:7621
35438 #, no-wrap
35439 msgid ""
35440 " int\n"
35441 " guestfs_sync (guestfs_h *g);\n"
35442 "\n"
35443 msgstr ""
35444
35445 #. type: =head2
35446 #: ../src/guestfs-actions.pod:7634
35447 msgid "guestfs_tail"
35448 msgstr ""
35449
35450 #. type: verbatim
35451 #: ../src/guestfs-actions.pod:7636
35452 #, no-wrap
35453 msgid ""
35454 " char **\n"
35455 " guestfs_tail (guestfs_h *g,\n"
35456 "               const char *path);\n"
35457 "\n"
35458 msgstr ""
35459
35460 #. type: =head2
35461 #: ../src/guestfs-actions.pod:7652
35462 msgid "guestfs_tail_n"
35463 msgstr ""
35464
35465 #. type: verbatim
35466 #: ../src/guestfs-actions.pod:7654
35467 #, no-wrap
35468 msgid ""
35469 " char **\n"
35470 " guestfs_tail_n (guestfs_h *g,\n"
35471 "                 int nrlines,\n"
35472 "                 const char *path);\n"
35473 "\n"
35474 msgstr ""
35475
35476 #. type: =head2
35477 #: ../src/guestfs-actions.pod:7676
35478 msgid "guestfs_tar_in"
35479 msgstr ""
35480
35481 #. type: verbatim
35482 #: ../src/guestfs-actions.pod:7678
35483 #, no-wrap
35484 msgid ""
35485 " int\n"
35486 " guestfs_tar_in (guestfs_h *g,\n"
35487 "                 const char *tarfile,\n"
35488 "                 const char *directory);\n"
35489 "\n"
35490 msgstr ""
35491
35492 #. type: textblock
35493 #: ../src/guestfs-actions.pod:7686
35494 msgid ""
35495 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
35496 msgstr ""
35497
35498 #. type: textblock
35499 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7708
35500 #: ../src/guestfs-actions.pod:7724 ../src/guestfs-actions.pod:7740
35501 msgid "(Added in 1.0.3)"
35502 msgstr "(Додано у 1.0.3)"
35503
35504 #. type: =head2
35505 #: ../src/guestfs-actions.pod:7693
35506 msgid "guestfs_tar_out"
35507 msgstr ""
35508
35509 #. type: verbatim
35510 #: ../src/guestfs-actions.pod:7695
35511 #, no-wrap
35512 msgid ""
35513 " int\n"
35514 " guestfs_tar_out (guestfs_h *g,\n"
35515 "                  const char *directory,\n"
35516 "                  const char *tarfile);\n"
35517 "\n"
35518 msgstr ""
35519
35520 #. type: textblock
35521 #: ../src/guestfs-actions.pod:7703
35522 msgid ""
35523 "To download a compressed tarball, use C<guestfs_tgz_out> or "
35524 "C<guestfs_txz_out>."
35525 msgstr ""
35526
35527 #. type: =head2
35528 #: ../src/guestfs-actions.pod:7710
35529 msgid "guestfs_tgz_in"
35530 msgstr ""
35531
35532 #. type: verbatim
35533 #: ../src/guestfs-actions.pod:7712
35534 #, no-wrap
35535 msgid ""
35536 " int\n"
35537 " guestfs_tgz_in (guestfs_h *g,\n"
35538 "                 const char *tarball,\n"
35539 "                 const char *directory);\n"
35540 "\n"
35541 msgstr ""
35542
35543 #. type: textblock
35544 #: ../src/guestfs-actions.pod:7720
35545 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
35546 msgstr ""
35547
35548 #. type: =head2
35549 #: ../src/guestfs-actions.pod:7726
35550 msgid "guestfs_tgz_out"
35551 msgstr ""
35552
35553 #. type: verbatim
35554 #: ../src/guestfs-actions.pod:7728
35555 #, no-wrap
35556 msgid ""
35557 " int\n"
35558 " guestfs_tgz_out (guestfs_h *g,\n"
35559 "                  const char *directory,\n"
35560 "                  const char *tarball);\n"
35561 "\n"
35562 msgstr ""
35563
35564 #. type: textblock
35565 #: ../src/guestfs-actions.pod:7736
35566 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
35567 msgstr ""
35568
35569 #. type: =head2
35570 #: ../src/guestfs-actions.pod:7742
35571 msgid "guestfs_touch"
35572 msgstr ""
35573
35574 #. type: verbatim
35575 #: ../src/guestfs-actions.pod:7744
35576 #, no-wrap
35577 msgid ""
35578 " int\n"
35579 " guestfs_touch (guestfs_h *g,\n"
35580 "                const char *path);\n"
35581 "\n"
35582 msgstr ""
35583
35584 #. type: =head2
35585 #: ../src/guestfs-actions.pod:7759
35586 msgid "guestfs_truncate"
35587 msgstr ""
35588
35589 #. type: verbatim
35590 #: ../src/guestfs-actions.pod:7761
35591 #, no-wrap
35592 msgid ""
35593 " int\n"
35594 " guestfs_truncate (guestfs_h *g,\n"
35595 "                   const char *path);\n"
35596 "\n"
35597 msgstr ""
35598
35599 #. type: =head2
35600 #: ../src/guestfs-actions.pod:7772
35601 msgid "guestfs_truncate_size"
35602 msgstr ""
35603
35604 #. type: verbatim
35605 #: ../src/guestfs-actions.pod:7774
35606 #, no-wrap
35607 msgid ""
35608 " int\n"
35609 " guestfs_truncate_size (guestfs_h *g,\n"
35610 "                        const char *path,\n"
35611 "                        int64_t size);\n"
35612 "\n"
35613 msgstr ""
35614
35615 #. type: textblock
35616 #: ../src/guestfs-actions.pod:7782
35617 msgid ""
35618 "If the current file size is less than C<size> then the file is extended to "
35619 "the required size with zero bytes.  This creates a sparse file (ie. disk "
35620 "blocks are not allocated for the file until you write to it).  To create a "
35621 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
35622 msgstr ""
35623
35624 #. type: =head2
35625 #: ../src/guestfs-actions.pod:7792
35626 #, fuzzy
35627 #| msgid "guestfs_mke2fs_J"
35628 msgid "guestfs_tune2fs"
35629 msgstr "guestfs_mke2fs_J"
35630
35631 #. type: verbatim
35632 #: ../src/guestfs-actions.pod:7794
35633 #, fuzzy, no-wrap
35634 #| msgid ""
35635 #| " int\n"
35636 #| " guestfs_lvresize (guestfs_h *g,\n"
35637 #| "                   const char *device,\n"
35638 #| "                   int mbytes);\n"
35639 #| "\n"
35640 msgid ""
35641 " int\n"
35642 " guestfs_tune2fs (guestfs_h *g,\n"
35643 "                  const char *device,\n"
35644 "                  ...);\n"
35645 "\n"
35646 msgstr ""
35647 " int\n"
35648 " guestfs_lvresize (guestfs_h *g,\n"
35649 "                   const char *device,\n"
35650 "                   int mbytes);\n"
35651 "\n"
35652
35653 #. type: verbatim
35654 #: ../src/guestfs-actions.pod:7804
35655 #, no-wrap
35656 msgid ""
35657 " GUESTFS_TUNE2FS_FORCE, int force,\n"
35658 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
35659 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
35660 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
35661 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
35662 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
35663 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
35664 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
35665 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
35666 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
35667 "\n"
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs-actions.pod:7884
35672 msgid ""
35673 "To get the current values of filesystem parameters, see "
35674 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
35675 "L<tune2fs(8)> man page."
35676 msgstr ""
35677
35678 #. type: =head2
35679 #: ../src/guestfs-actions.pod:7892
35680 #, fuzzy
35681 #| msgid "guestfs_mke2fs_J"
35682 msgid "guestfs_tune2fs_va"
35683 msgstr "guestfs_mke2fs_J"
35684
35685 #. type: verbatim
35686 #: ../src/guestfs-actions.pod:7894
35687 #, fuzzy, no-wrap
35688 #| msgid ""
35689 #| " int\n"
35690 #| " guestfs_lvresize (guestfs_h *g,\n"
35691 #| "                   const char *device,\n"
35692 #| "                   int mbytes);\n"
35693 #| "\n"
35694 msgid ""
35695 " int\n"
35696 " guestfs_tune2fs_va (guestfs_h *g,\n"
35697 "                     const char *device,\n"
35698 "                     va_list args);\n"
35699 "\n"
35700 msgstr ""
35701 " int\n"
35702 " guestfs_lvresize (guestfs_h *g,\n"
35703 "                   const char *device,\n"
35704 "                   int mbytes);\n"
35705 "\n"
35706
35707 #. type: textblock
35708 #: ../src/guestfs-actions.pod:7899
35709 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
35710 msgstr ""
35711
35712 #. type: =head2
35713 #: ../src/guestfs-actions.pod:7903
35714 #, fuzzy
35715 #| msgid "guestfs_mke2fs_J"
35716 msgid "guestfs_tune2fs_argv"
35717 msgstr "guestfs_mke2fs_J"
35718
35719 #. type: verbatim
35720 #: ../src/guestfs-actions.pod:7905
35721 #, fuzzy, no-wrap
35722 #| msgid ""
35723 #| " int\n"
35724 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35725 #| "                         const char *fstype,\n"
35726 #| "                         const char *device,\n"
35727 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
35728 #| "\n"
35729 msgid ""
35730 " int\n"
35731 " guestfs_tune2fs_argv (guestfs_h *g,\n"
35732 "                       const char *device,\n"
35733 "                       const struct guestfs_tune2fs_argv *optargs);\n"
35734 "\n"
35735 msgstr ""
35736 " int\n"
35737 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35738 "                         const char *fstype,\n"
35739 "                         const char *device,\n"
35740 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
35741 "\n"
35742
35743 #. type: textblock
35744 #: ../src/guestfs-actions.pod:7910
35745 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
35746 msgstr ""
35747
35748 #. type: =head2
35749 #: ../src/guestfs-actions.pod:7914
35750 msgid "guestfs_tune2fs_l"
35751 msgstr ""
35752
35753 #. type: verbatim
35754 #: ../src/guestfs-actions.pod:7916
35755 #, no-wrap
35756 msgid ""
35757 " char **\n"
35758 " guestfs_tune2fs_l (guestfs_h *g,\n"
35759 "                    const char *device);\n"
35760 "\n"
35761 msgstr ""
35762
35763 #. type: =head2
35764 #: ../src/guestfs-actions.pod:7936
35765 msgid "guestfs_txz_in"
35766 msgstr ""
35767
35768 #. type: verbatim
35769 #: ../src/guestfs-actions.pod:7938
35770 #, no-wrap
35771 msgid ""
35772 " int\n"
35773 " guestfs_txz_in (guestfs_h *g,\n"
35774 "                 const char *tarball,\n"
35775 "                 const char *directory);\n"
35776 "\n"
35777 msgstr ""
35778
35779 #. type: =head2
35780 #: ../src/guestfs-actions.pod:7950
35781 msgid "guestfs_txz_out"
35782 msgstr ""
35783
35784 #. type: verbatim
35785 #: ../src/guestfs-actions.pod:7952
35786 #, no-wrap
35787 msgid ""
35788 " int\n"
35789 " guestfs_txz_out (guestfs_h *g,\n"
35790 "                  const char *directory,\n"
35791 "                  const char *tarball);\n"
35792 "\n"
35793 msgstr ""
35794
35795 #. type: =head2
35796 #: ../src/guestfs-actions.pod:7964
35797 msgid "guestfs_umask"
35798 msgstr ""
35799
35800 #. type: verbatim
35801 #: ../src/guestfs-actions.pod:7966
35802 #, no-wrap
35803 msgid ""
35804 " int\n"
35805 " guestfs_umask (guestfs_h *g,\n"
35806 "                int mask);\n"
35807 "\n"
35808 msgstr ""
35809
35810 #. type: textblock
35811 #: ../src/guestfs-actions.pod:7982
35812 msgid ""
35813 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
35814 "C<guestfs_mkdir>."
35815 msgstr ""
35816
35817 #. type: =head2
35818 #: ../src/guestfs-actions.pod:7991
35819 msgid "guestfs_umount"
35820 msgstr ""
35821
35822 #. type: verbatim
35823 #: ../src/guestfs-actions.pod:7993
35824 #, no-wrap
35825 msgid ""
35826 " int\n"
35827 " guestfs_umount (guestfs_h *g,\n"
35828 "                 const char *pathordevice);\n"
35829 "\n"
35830 msgstr ""
35831
35832 #. type: =head2
35833 #: ../src/guestfs-actions.pod:8005
35834 msgid "guestfs_umount_all"
35835 msgstr ""
35836
35837 #. type: verbatim
35838 #: ../src/guestfs-actions.pod:8007
35839 #, no-wrap
35840 msgid ""
35841 " int\n"
35842 " guestfs_umount_all (guestfs_h *g);\n"
35843 "\n"
35844 msgstr ""
35845
35846 #. type: =head2
35847 #: ../src/guestfs-actions.pod:8018
35848 msgid "guestfs_upload"
35849 msgstr ""
35850
35851 #. type: verbatim
35852 #: ../src/guestfs-actions.pod:8020
35853 #, no-wrap
35854 msgid ""
35855 " int\n"
35856 " guestfs_upload (guestfs_h *g,\n"
35857 "                 const char *filename,\n"
35858 "                 const char *remotefilename);\n"
35859 "\n"
35860 msgstr ""
35861
35862 #. type: textblock
35863 #: ../src/guestfs-actions.pod:8030
35864 msgid "See also C<guestfs_download>."
35865 msgstr ""
35866
35867 #. type: =head2
35868 #: ../src/guestfs-actions.pod:8041
35869 msgid "guestfs_upload_offset"
35870 msgstr ""
35871
35872 #. type: verbatim
35873 #: ../src/guestfs-actions.pod:8043
35874 #, no-wrap
35875 msgid ""
35876 " int\n"
35877 " guestfs_upload_offset (guestfs_h *g,\n"
35878 "                        const char *filename,\n"
35879 "                        const char *remotefilename,\n"
35880 "                        int64_t offset);\n"
35881 "\n"
35882 msgstr ""
35883
35884 #. type: textblock
35885 #: ../src/guestfs-actions.pod:8059
35886 msgid ""
35887 "Note that there is no limit on the amount of data that can be uploaded with "
35888 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
35889 "full amount unless an error occurs."
35890 msgstr ""
35891
35892 #. type: textblock
35893 #: ../src/guestfs-actions.pod:8064
35894 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
35895 msgstr ""
35896
35897 #. type: =head2
35898 #: ../src/guestfs-actions.pod:8075
35899 msgid "guestfs_utimens"
35900 msgstr ""
35901
35902 #. type: verbatim
35903 #: ../src/guestfs-actions.pod:8077
35904 #, no-wrap
35905 msgid ""
35906 " int\n"
35907 " guestfs_utimens (guestfs_h *g,\n"
35908 "                  const char *path,\n"
35909 "                  int64_t atsecs,\n"
35910 "                  int64_t atnsecs,\n"
35911 "                  int64_t mtsecs,\n"
35912 "                  int64_t mtnsecs);\n"
35913 "\n"
35914 msgstr ""
35915
35916 #. type: =head2
35917 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-structs.pod:175
35918 msgid "guestfs_version"
35919 msgstr ""
35920
35921 #. type: verbatim
35922 #: ../src/guestfs-actions.pod:8108
35923 #, no-wrap
35924 msgid ""
35925 " struct guestfs_version *\n"
35926 " guestfs_version (guestfs_h *g);\n"
35927 "\n"
35928 msgstr ""
35929
35930 #. type: textblock
35931 #: ../src/guestfs-actions.pod:8136
35932 msgid ""
35933 "I<Note:> Don't use this call to test for availability of features.  In "
35934 "enterprise distributions we backport features from later versions into "
35935 "earlier versions, making this an unreliable way to test for features.  Use "
35936 "C<guestfs_available> instead."
35937 msgstr ""
35938
35939 #. type: textblock
35940 #: ../src/guestfs-actions.pod:8142
35941 msgid ""
35942 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
35943 "error.  I<The caller must call C<guestfs_free_version> after use>."
35944 msgstr ""
35945
35946 #. type: textblock
35947 #: ../src/guestfs-actions.pod:8146
35948 msgid "(Added in 1.0.58)"
35949 msgstr "(Додано у 1.0.58)"
35950
35951 #. type: =head2
35952 #: ../src/guestfs-actions.pod:8148
35953 msgid "guestfs_vfs_label"
35954 msgstr ""
35955
35956 #. type: verbatim
35957 #: ../src/guestfs-actions.pod:8150
35958 #, no-wrap
35959 msgid ""
35960 " char *\n"
35961 " guestfs_vfs_label (guestfs_h *g,\n"
35962 "                    const char *device);\n"
35963 "\n"
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs-actions.pod:8159
35968 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
35969 msgstr ""
35970
35971 #. type: textblock
35972 #: ../src/guestfs-actions.pod:8164 ../src/guestfs-actions.pod:8201
35973 msgid "(Added in 1.3.18)"
35974 msgstr "(Додано у 1.3.18)"
35975
35976 #. type: =head2
35977 #: ../src/guestfs-actions.pod:8166
35978 msgid "guestfs_vfs_type"
35979 msgstr ""
35980
35981 #. type: verbatim
35982 #: ../src/guestfs-actions.pod:8168
35983 #, no-wrap
35984 msgid ""
35985 " char *\n"
35986 " guestfs_vfs_type (guestfs_h *g,\n"
35987 "                   const char *device);\n"
35988 "\n"
35989 msgstr ""
35990
35991 #. type: =head2
35992 #: ../src/guestfs-actions.pod:8185
35993 msgid "guestfs_vfs_uuid"
35994 msgstr ""
35995
35996 #. type: verbatim
35997 #: ../src/guestfs-actions.pod:8187
35998 #, no-wrap
35999 msgid ""
36000 " char *\n"
36001 " guestfs_vfs_uuid (guestfs_h *g,\n"
36002 "                   const char *device);\n"
36003 "\n"
36004 msgstr ""
36005
36006 #. type: textblock
36007 #: ../src/guestfs-actions.pod:8196
36008 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
36009 msgstr ""
36010
36011 #. type: =head2
36012 #: ../src/guestfs-actions.pod:8203
36013 msgid "guestfs_vg_activate"
36014 msgstr ""
36015
36016 #. type: verbatim
36017 #: ../src/guestfs-actions.pod:8205
36018 #, no-wrap
36019 msgid ""
36020 " int\n"
36021 " guestfs_vg_activate (guestfs_h *g,\n"
36022 "                      int activate,\n"
36023 "                      char *const *volgroups);\n"
36024 "\n"
36025 msgstr ""
36026
36027 #. type: =head2
36028 #: ../src/guestfs-actions.pod:8222
36029 msgid "guestfs_vg_activate_all"
36030 msgstr ""
36031
36032 #. type: verbatim
36033 #: ../src/guestfs-actions.pod:8224
36034 #, no-wrap
36035 msgid ""
36036 " int\n"
36037 " guestfs_vg_activate_all (guestfs_h *g,\n"
36038 "                          int activate);\n"
36039 "\n"
36040 msgstr ""
36041
36042 #. type: =head2
36043 #: ../src/guestfs-actions.pod:8237
36044 msgid "guestfs_vgcreate"
36045 msgstr ""
36046
36047 #. type: verbatim
36048 #: ../src/guestfs-actions.pod:8239
36049 #, no-wrap
36050 msgid ""
36051 " int\n"
36052 " guestfs_vgcreate (guestfs_h *g,\n"
36053 "                   const char *volgroup,\n"
36054 "                   char *const *physvols);\n"
36055 "\n"
36056 msgstr ""
36057
36058 #. type: =head2
36059 #: ../src/guestfs-actions.pod:8251
36060 msgid "guestfs_vglvuuids"
36061 msgstr ""
36062
36063 #. type: verbatim
36064 #: ../src/guestfs-actions.pod:8253
36065 #, no-wrap
36066 msgid ""
36067 " char **\n"
36068 " guestfs_vglvuuids (guestfs_h *g,\n"
36069 "                    const char *vgname);\n"
36070 "\n"
36071 msgstr ""
36072
36073 #. type: textblock
36074 #: ../src/guestfs-actions.pod:8260
36075 msgid ""
36076 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
36077 "associate logical volumes and volume groups."
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs-actions.pod:8263
36082 msgid "See also C<guestfs_vgpvuuids>."
36083 msgstr ""
36084
36085 #. type: =head2
36086 #: ../src/guestfs-actions.pod:8271
36087 msgid "guestfs_vgpvuuids"
36088 msgstr ""
36089
36090 #. type: verbatim
36091 #: ../src/guestfs-actions.pod:8273
36092 #, no-wrap
36093 msgid ""
36094 " char **\n"
36095 " guestfs_vgpvuuids (guestfs_h *g,\n"
36096 "                    const char *vgname);\n"
36097 "\n"
36098 msgstr ""
36099
36100 #. type: textblock
36101 #: ../src/guestfs-actions.pod:8280
36102 msgid ""
36103 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
36104 "associate physical volumes and volume groups."
36105 msgstr ""
36106
36107 #. type: textblock
36108 #: ../src/guestfs-actions.pod:8283
36109 msgid "See also C<guestfs_vglvuuids>."
36110 msgstr ""
36111
36112 #. type: =head2
36113 #: ../src/guestfs-actions.pod:8291
36114 msgid "guestfs_vgremove"
36115 msgstr ""
36116
36117 #. type: verbatim
36118 #: ../src/guestfs-actions.pod:8293
36119 #, no-wrap
36120 msgid ""
36121 " int\n"
36122 " guestfs_vgremove (guestfs_h *g,\n"
36123 "                   const char *vgname);\n"
36124 "\n"
36125 msgstr ""
36126
36127 #. type: =head2
36128 #: ../src/guestfs-actions.pod:8306
36129 msgid "guestfs_vgrename"
36130 msgstr ""
36131
36132 #. type: verbatim
36133 #: ../src/guestfs-actions.pod:8308
36134 #, no-wrap
36135 msgid ""
36136 " int\n"
36137 " guestfs_vgrename (guestfs_h *g,\n"
36138 "                   const char *volgroup,\n"
36139 "                   const char *newvolgroup);\n"
36140 "\n"
36141 msgstr ""
36142
36143 #. type: =head2
36144 #: ../src/guestfs-actions.pod:8319
36145 msgid "guestfs_vgs"
36146 msgstr ""
36147
36148 #. type: verbatim
36149 #: ../src/guestfs-actions.pod:8321
36150 #, no-wrap
36151 msgid ""
36152 " char **\n"
36153 " guestfs_vgs (guestfs_h *g);\n"
36154 "\n"
36155 msgstr ""
36156
36157 #. type: textblock
36158 #: ../src/guestfs-actions.pod:8330
36159 msgid "See also C<guestfs_vgs_full>."
36160 msgstr ""
36161
36162 #. type: =head2
36163 #: ../src/guestfs-actions.pod:8338
36164 msgid "guestfs_vgs_full"
36165 msgstr ""
36166
36167 #. type: verbatim
36168 #: ../src/guestfs-actions.pod:8340
36169 #, no-wrap
36170 msgid ""
36171 " struct guestfs_lvm_vg_list *\n"
36172 " guestfs_vgs_full (guestfs_h *g);\n"
36173 "\n"
36174 msgstr ""
36175
36176 #. type: textblock
36177 #: ../src/guestfs-actions.pod:8346
36178 msgid ""
36179 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
36180 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
36181 msgstr ""
36182
36183 #. type: =head2
36184 #: ../src/guestfs-actions.pod:8352
36185 msgid "guestfs_vgscan"
36186 msgstr ""
36187
36188 #. type: verbatim
36189 #: ../src/guestfs-actions.pod:8354
36190 #, no-wrap
36191 msgid ""
36192 " int\n"
36193 " guestfs_vgscan (guestfs_h *g);\n"
36194 "\n"
36195 msgstr ""
36196
36197 #. type: =head2
36198 #: ../src/guestfs-actions.pod:8364
36199 msgid "guestfs_vguuid"
36200 msgstr ""
36201
36202 #. type: verbatim
36203 #: ../src/guestfs-actions.pod:8366
36204 #, no-wrap
36205 msgid ""
36206 " char *\n"
36207 " guestfs_vguuid (guestfs_h *g,\n"
36208 "                 const char *vgname);\n"
36209 "\n"
36210 msgstr ""
36211
36212 #. type: =head2
36213 #: ../src/guestfs-actions.pod:8377
36214 msgid "guestfs_wait_ready"
36215 msgstr ""
36216
36217 #. type: verbatim
36218 #: ../src/guestfs-actions.pod:8379
36219 #, no-wrap
36220 msgid ""
36221 " int\n"
36222 " guestfs_wait_ready (guestfs_h *g);\n"
36223 "\n"
36224 msgstr ""
36225
36226 #. type: textblock
36227 #: ../src/guestfs-actions.pod:8382
36228 msgid ""
36229 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
36230 "instead."
36231 msgstr ""
36232
36233 #. type: textblock
36234 #: ../src/guestfs-actions.pod:8389
36235 msgid "This function is a no op."
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs-actions.pod:8391
36240 msgid ""
36241 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
36242 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
36243 "is no longer necessary because C<guestfs_launch> now does the waiting."
36244 msgstr ""
36245
36246 #. type: textblock
36247 #: ../src/guestfs-actions.pod:8396
36248 msgid ""
36249 "If you see any calls to this function in code then you can just remove them, "
36250 "unless you want to retain compatibility with older versions of the API."
36251 msgstr ""
36252
36253 #. type: =head2
36254 #: ../src/guestfs-actions.pod:8404
36255 msgid "guestfs_wc_c"
36256 msgstr ""
36257
36258 #. type: verbatim
36259 #: ../src/guestfs-actions.pod:8406
36260 #, no-wrap
36261 msgid ""
36262 " int\n"
36263 " guestfs_wc_c (guestfs_h *g,\n"
36264 "               const char *path);\n"
36265 "\n"
36266 msgstr ""
36267
36268 #. type: =head2
36269 #: ../src/guestfs-actions.pod:8417
36270 msgid "guestfs_wc_l"
36271 msgstr ""
36272
36273 #. type: verbatim
36274 #: ../src/guestfs-actions.pod:8419
36275 #, no-wrap
36276 msgid ""
36277 " int\n"
36278 " guestfs_wc_l (guestfs_h *g,\n"
36279 "               const char *path);\n"
36280 "\n"
36281 msgstr ""
36282
36283 #. type: =head2
36284 #: ../src/guestfs-actions.pod:8430
36285 msgid "guestfs_wc_w"
36286 msgstr ""
36287
36288 #. type: verbatim
36289 #: ../src/guestfs-actions.pod:8432
36290 #, no-wrap
36291 msgid ""
36292 " int\n"
36293 " guestfs_wc_w (guestfs_h *g,\n"
36294 "               const char *path);\n"
36295 "\n"
36296 msgstr ""
36297
36298 #. type: =head2
36299 #: ../src/guestfs-actions.pod:8443
36300 msgid "guestfs_write"
36301 msgstr ""
36302
36303 #. type: verbatim
36304 #: ../src/guestfs-actions.pod:8445
36305 #, no-wrap
36306 msgid ""
36307 " int\n"
36308 " guestfs_write (guestfs_h *g,\n"
36309 "                const char *path,\n"
36310 "                const char *content,\n"
36311 "                size_t content_size);\n"
36312 "\n"
36313 msgstr ""
36314
36315 #. type: textblock
36316 #: ../src/guestfs-actions.pod:8454
36317 msgid "See also C<guestfs_write_append>."
36318 msgstr ""
36319
36320 #. type: =head2
36321 #: ../src/guestfs-actions.pod:8463
36322 msgid "guestfs_write_append"
36323 msgstr ""
36324
36325 #. type: verbatim
36326 #: ../src/guestfs-actions.pod:8465
36327 #, no-wrap
36328 msgid ""
36329 " int\n"
36330 " guestfs_write_append (guestfs_h *g,\n"
36331 "                       const char *path,\n"
36332 "                       const char *content,\n"
36333 "                       size_t content_size);\n"
36334 "\n"
36335 msgstr ""
36336
36337 #. type: textblock
36338 #: ../src/guestfs-actions.pod:8474
36339 msgid "See also C<guestfs_write>."
36340 msgstr ""
36341
36342 #. type: =head2
36343 #: ../src/guestfs-actions.pod:8483
36344 msgid "guestfs_write_file"
36345 msgstr "guestfs_write_file"
36346
36347 #. type: verbatim
36348 #: ../src/guestfs-actions.pod:8485
36349 #, no-wrap
36350 msgid ""
36351 " int\n"
36352 " guestfs_write_file (guestfs_h *g,\n"
36353 "                     const char *path,\n"
36354 "                     const char *content,\n"
36355 "                     int size);\n"
36356 "\n"
36357 msgstr ""
36358 " int\n"
36359 " guestfs_write_file (guestfs_h *g,\n"
36360 "                     const char *path,\n"
36361 "                     const char *content,\n"
36362 "                     int size);\n"
36363 "\n"
36364
36365 #. type: textblock
36366 #: ../src/guestfs-actions.pod:8491
36367 msgid ""
36368 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
36369 "instead."
36370 msgstr ""
36371
36372 #. type: =head2
36373 #: ../src/guestfs-actions.pod:8516
36374 msgid "guestfs_zegrep"
36375 msgstr "guestfs_zegrep"
36376
36377 #. type: verbatim
36378 #: ../src/guestfs-actions.pod:8518
36379 #, no-wrap
36380 msgid ""
36381 " char **\n"
36382 " guestfs_zegrep (guestfs_h *g,\n"
36383 "                 const char *regex,\n"
36384 "                 const char *path);\n"
36385 "\n"
36386 msgstr ""
36387 " char **\n"
36388 " guestfs_zegrep (guestfs_h *g,\n"
36389 "                 const char *regex,\n"
36390 "                 const char *path);\n"
36391 "\n"
36392
36393 #. type: =head2
36394 #: ../src/guestfs-actions.pod:8535
36395 msgid "guestfs_zegrepi"
36396 msgstr "guestfs_zegrepi"
36397
36398 #. type: verbatim
36399 #: ../src/guestfs-actions.pod:8537
36400 #, no-wrap
36401 msgid ""
36402 " char **\n"
36403 " guestfs_zegrepi (guestfs_h *g,\n"
36404 "                  const char *regex,\n"
36405 "                  const char *path);\n"
36406 "\n"
36407 msgstr ""
36408 " char **\n"
36409 " guestfs_zegrepi (guestfs_h *g,\n"
36410 "                  const char *regex,\n"
36411 "                  const char *path);\n"
36412 "\n"
36413
36414 #. type: =head2
36415 #: ../src/guestfs-actions.pod:8554
36416 msgid "guestfs_zero"
36417 msgstr "guestfs_zero"
36418
36419 #. type: verbatim
36420 #: ../src/guestfs-actions.pod:8556
36421 #, no-wrap
36422 msgid ""
36423 " int\n"
36424 " guestfs_zero (guestfs_h *g,\n"
36425 "               const char *device);\n"
36426 "\n"
36427 msgstr ""
36428 " int\n"
36429 " guestfs_zero (guestfs_h *g,\n"
36430 "               const char *device);\n"
36431 "\n"
36432
36433 #. type: textblock
36434 #: ../src/guestfs-actions.pod:8570
36435 msgid ""
36436 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
36437 "C<guestfs_is_zero_device>"
36438 msgstr ""
36439
36440 #. type: =head2
36441 #: ../src/guestfs-actions.pod:8582
36442 msgid "guestfs_zero_device"
36443 msgstr "guestfs_zero_device"
36444
36445 #. type: verbatim
36446 #: ../src/guestfs-actions.pod:8584
36447 #, no-wrap
36448 msgid ""
36449 " int\n"
36450 " guestfs_zero_device (guestfs_h *g,\n"
36451 "                      const char *device);\n"
36452 "\n"
36453 msgstr ""
36454 " int\n"
36455 " guestfs_zero_device (guestfs_h *g,\n"
36456 "                      const char *device);\n"
36457 "\n"
36458
36459 #. type: textblock
36460 #: ../src/guestfs-actions.pod:8588
36461 msgid ""
36462 "This command writes zeroes over the entire C<device>.  Compare with "
36463 "C<guestfs_zero> which just zeroes the first few blocks of a device."
36464 msgstr ""
36465
36466 #. type: textblock
36467 #: ../src/guestfs-actions.pod:8603
36468 msgid "(Added in 1.3.1)"
36469 msgstr "(Додано у 1.3.1)"
36470
36471 #. type: =head2
36472 #: ../src/guestfs-actions.pod:8605
36473 msgid "guestfs_zerofree"
36474 msgstr "guestfs_zerofree"
36475
36476 #. type: verbatim
36477 #: ../src/guestfs-actions.pod:8607
36478 #, no-wrap
36479 msgid ""
36480 " int\n"
36481 " guestfs_zerofree (guestfs_h *g,\n"
36482 "                   const char *device);\n"
36483 "\n"
36484 msgstr ""
36485 " int\n"
36486 " guestfs_zerofree (guestfs_h *g,\n"
36487 "                   const char *device);\n"
36488 "\n"
36489
36490 #. type: =head2
36491 #: ../src/guestfs-actions.pod:8626
36492 msgid "guestfs_zfgrep"
36493 msgstr "guestfs_zfgrep"
36494
36495 #. type: verbatim
36496 #: ../src/guestfs-actions.pod:8628
36497 #, no-wrap
36498 msgid ""
36499 " char **\n"
36500 " guestfs_zfgrep (guestfs_h *g,\n"
36501 "                 const char *pattern,\n"
36502 "                 const char *path);\n"
36503 "\n"
36504 msgstr ""
36505 " char **\n"
36506 " guestfs_zfgrep (guestfs_h *g,\n"
36507 "                 const char *pattern,\n"
36508 "                 const char *path);\n"
36509 "\n"
36510
36511 #. type: =head2
36512 #: ../src/guestfs-actions.pod:8645
36513 msgid "guestfs_zfgrepi"
36514 msgstr "guestfs_zfgrepi"
36515
36516 #. type: verbatim
36517 #: ../src/guestfs-actions.pod:8647
36518 #, no-wrap
36519 msgid ""
36520 " char **\n"
36521 " guestfs_zfgrepi (guestfs_h *g,\n"
36522 "                  const char *pattern,\n"
36523 "                  const char *path);\n"
36524 "\n"
36525 msgstr ""
36526 " char **\n"
36527 " guestfs_zfgrepi (guestfs_h *g,\n"
36528 "                  const char *pattern,\n"
36529 "                  const char *path);\n"
36530 "\n"
36531
36532 #. type: =head2
36533 #: ../src/guestfs-actions.pod:8664
36534 msgid "guestfs_zfile"
36535 msgstr "guestfs_zfile"
36536
36537 #. type: verbatim
36538 #: ../src/guestfs-actions.pod:8666
36539 #, no-wrap
36540 msgid ""
36541 " char *\n"
36542 " guestfs_zfile (guestfs_h *g,\n"
36543 "                const char *meth,\n"
36544 "                const char *path);\n"
36545 "\n"
36546 msgstr ""
36547 " char *\n"
36548 " guestfs_zfile (guestfs_h *g,\n"
36549 "                const char *meth,\n"
36550 "                const char *path);\n"
36551 "\n"
36552
36553 #. type: textblock
36554 #: ../src/guestfs-actions.pod:8671
36555 msgid ""
36556 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
36557 "instead."
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs-actions.pod:8683
36562 msgid ""
36563 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
36564 "files."
36565 msgstr ""
36566
36567 #. type: =head2
36568 #: ../src/guestfs-actions.pod:8691
36569 msgid "guestfs_zgrep"
36570 msgstr "guestfs_zgrep"
36571
36572 #. type: verbatim
36573 #: ../src/guestfs-actions.pod:8693
36574 #, no-wrap
36575 msgid ""
36576 " char **\n"
36577 " guestfs_zgrep (guestfs_h *g,\n"
36578 "                const char *regex,\n"
36579 "                const char *path);\n"
36580 "\n"
36581 msgstr ""
36582 " char **\n"
36583 " guestfs_zgrep (guestfs_h *g,\n"
36584 "                const char *regex,\n"
36585 "                const char *path);\n"
36586 "\n"
36587
36588 #. type: =head2
36589 #: ../src/guestfs-actions.pod:8710
36590 msgid "guestfs_zgrepi"
36591 msgstr "guestfs_zgrepi"
36592
36593 #. type: verbatim
36594 #: ../src/guestfs-actions.pod:8712
36595 #, no-wrap
36596 msgid ""
36597 " char **\n"
36598 " guestfs_zgrepi (guestfs_h *g,\n"
36599 "                 const char *regex,\n"
36600 "                 const char *path);\n"
36601 "\n"
36602 msgstr ""
36603 " char **\n"
36604 " guestfs_zgrepi (guestfs_h *g,\n"
36605 "                 const char *regex,\n"
36606 "                 const char *path);\n"
36607 "\n"
36608
36609 #. type: =item
36610 #: ../src/guestfs-availability.pod:3
36611 msgid "B<augeas>"
36612 msgstr "B<augeas>"
36613
36614 #. type: textblock
36615 #: ../src/guestfs-availability.pod:5
36616 msgid ""
36617 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
36618 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
36619 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
36620 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
36621 "L</guestfs_aug_save> L</guestfs_aug_set>"
36622 msgstr ""
36623
36624 #. type: =item
36625 #: ../src/guestfs-availability.pod:21
36626 msgid "B<btrfs>"
36627 msgstr "B<btrfs>"
36628
36629 #. type: textblock
36630 #: ../src/guestfs-availability.pod:23
36631 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
36632 msgstr ""
36633
36634 #. type: =item
36635 #: ../src/guestfs-availability.pod:26
36636 msgid "B<grub>"
36637 msgstr ""
36638
36639 #. type: textblock
36640 #: ../src/guestfs-availability.pod:28
36641 msgid "The following functions: L</guestfs_grub_install>"
36642 msgstr ""
36643
36644 #. type: =item
36645 #: ../src/guestfs-availability.pod:31
36646 msgid "B<inotify>"
36647 msgstr "B<inotify>"
36648
36649 #. type: textblock
36650 #: ../src/guestfs-availability.pod:33
36651 msgid ""
36652 "The following functions: L</guestfs_inotify_add_watch> L</"
36653 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
36654 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
36655 msgstr ""
36656
36657 #. type: =item
36658 #: ../src/guestfs-availability.pod:41
36659 msgid "B<linuxfsuuid>"
36660 msgstr "B<linuxfsuuid>"
36661
36662 #. type: textblock
36663 #: ../src/guestfs-availability.pod:43
36664 msgid ""
36665 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
36666 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
36667 msgstr ""
36668
36669 #. type: =item
36670 #: ../src/guestfs-availability.pod:50
36671 msgid "B<linuxmodules>"
36672 msgstr "B<linuxmodules>"
36673
36674 #. type: textblock
36675 #: ../src/guestfs-availability.pod:52
36676 msgid "The following functions: L</guestfs_modprobe>"
36677 msgstr ""
36678
36679 #. type: =item
36680 #: ../src/guestfs-availability.pod:55
36681 msgid "B<linuxxattrs>"
36682 msgstr "B<linuxxattrs>"
36683
36684 #. type: textblock
36685 #: ../src/guestfs-availability.pod:57
36686 msgid ""
36687 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
36688 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
36689 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
36690 "guestfs_setxattr>"
36691 msgstr ""
36692
36693 #. type: =item
36694 #: ../src/guestfs-availability.pod:68
36695 msgid "B<luks>"
36696 msgstr "B<luks>"
36697
36698 #. type: textblock
36699 #: ../src/guestfs-availability.pod:70
36700 msgid ""
36701 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
36702 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
36703 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
36704 msgstr ""
36705
36706 #. type: =item
36707 #: ../src/guestfs-availability.pod:79
36708 msgid "B<lvm2>"
36709 msgstr "B<lvm2>"
36710
36711 #. type: textblock
36712 #: ../src/guestfs-availability.pod:81
36713 msgid ""
36714 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
36715 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
36716 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
36717 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
36718 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
36719 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
36720 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
36721 msgstr ""
36722
36723 #. type: =item
36724 #: ../src/guestfs-availability.pod:104
36725 msgid "B<mdadm>"
36726 msgstr ""
36727
36728 #. type: textblock
36729 #: ../src/guestfs-availability.pod:106
36730 msgid ""
36731 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
36732 "guestfs_md_stop>"
36733 msgstr ""
36734
36735 #. type: =item
36736 #: ../src/guestfs-availability.pod:111
36737 msgid "B<mknod>"
36738 msgstr "B<mknod>"
36739
36740 #. type: textblock
36741 #: ../src/guestfs-availability.pod:113
36742 msgid ""
36743 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
36744 "guestfs_mknod_b> L</guestfs_mknod_c>"
36745 msgstr ""
36746
36747 #. type: =item
36748 #: ../src/guestfs-availability.pod:119
36749 msgid "B<ntfs3g>"
36750 msgstr "B<ntfs3g>"
36751
36752 #. type: textblock
36753 #: ../src/guestfs-availability.pod:121
36754 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
36755 msgstr ""
36756
36757 #. type: =item
36758 #: ../src/guestfs-availability.pod:124
36759 msgid "B<ntfsprogs>"
36760 msgstr "B<ntfsprogs>"
36761
36762 #. type: textblock
36763 #: ../src/guestfs-availability.pod:126
36764 msgid ""
36765 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
36766 "L</guestfs_ntfsresize_size>"
36767 msgstr ""
36768
36769 #. type: =item
36770 #: ../src/guestfs-availability.pod:131
36771 msgid "B<realpath>"
36772 msgstr "B<realpath>"
36773
36774 #. type: textblock
36775 #: ../src/guestfs-availability.pod:133
36776 msgid "The following functions: L</guestfs_realpath>"
36777 msgstr ""
36778
36779 #. type: =item
36780 #: ../src/guestfs-availability.pod:136
36781 msgid "B<scrub>"
36782 msgstr "B<scrub>"
36783
36784 #. type: textblock
36785 #: ../src/guestfs-availability.pod:138
36786 msgid ""
36787 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
36788 "guestfs_scrub_freespace>"
36789 msgstr ""
36790
36791 #. type: =item
36792 #: ../src/guestfs-availability.pod:143
36793 msgid "B<selinux>"
36794 msgstr "B<selinux>"
36795
36796 #. type: textblock
36797 #: ../src/guestfs-availability.pod:145
36798 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
36799 msgstr ""
36800
36801 #. type: =item
36802 #: ../src/guestfs-availability.pod:149
36803 msgid "B<xz>"
36804 msgstr "B<xz>"
36805
36806 #. type: textblock
36807 #: ../src/guestfs-availability.pod:151
36808 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
36809 msgstr ""
36810
36811 #. type: =item
36812 #: ../src/guestfs-availability.pod:155
36813 msgid "B<zerofree>"
36814 msgstr "B<zerofree>"
36815
36816 #. type: textblock
36817 #: ../src/guestfs-availability.pod:157
36818 msgid "The following functions: L</guestfs_zerofree>"
36819 msgstr ""
36820
36821 #. type: =head2
36822 #: ../src/guestfs-structs.pod:1
36823 msgid "guestfs_int_bool"
36824 msgstr ""
36825
36826 #. type: verbatim
36827 #: ../src/guestfs-structs.pod:3
36828 #, no-wrap
36829 msgid ""
36830 " struct guestfs_int_bool {\n"
36831 "   int32_t i;\n"
36832 "   int32_t b;\n"
36833 " };\n"
36834 " \n"
36835 msgstr ""
36836
36837 #. type: verbatim
36838 #: ../src/guestfs-structs.pod:8
36839 #, no-wrap
36840 msgid ""
36841 " struct guestfs_int_bool_list {\n"
36842 "   uint32_t len; /* Number of elements in list. */\n"
36843 "   struct guestfs_int_bool *val; /* Elements. */\n"
36844 " };\n"
36845 " \n"
36846 msgstr ""
36847
36848 #. type: verbatim
36849 #: ../src/guestfs-structs.pod:13
36850 #, no-wrap
36851 msgid ""
36852 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
36853 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
36854 "\n"
36855 msgstr ""
36856
36857 #. type: =head2
36858 #: ../src/guestfs-structs.pod:16
36859 msgid "guestfs_lvm_pv"
36860 msgstr ""
36861
36862 #. type: verbatim
36863 #: ../src/guestfs-structs.pod:18
36864 #, no-wrap
36865 msgid ""
36866 " struct guestfs_lvm_pv {\n"
36867 "   char *pv_name;\n"
36868 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36869 "   char pv_uuid[32];\n"
36870 "   char *pv_fmt;\n"
36871 "   uint64_t pv_size;\n"
36872 "   uint64_t dev_size;\n"
36873 "   uint64_t pv_free;\n"
36874 "   uint64_t pv_used;\n"
36875 "   char *pv_attr;\n"
36876 "   int64_t pv_pe_count;\n"
36877 "   int64_t pv_pe_alloc_count;\n"
36878 "   char *pv_tags;\n"
36879 "   uint64_t pe_start;\n"
36880 "   int64_t pv_mda_count;\n"
36881 "   uint64_t pv_mda_free;\n"
36882 " };\n"
36883 " \n"
36884 msgstr ""
36885
36886 #. type: verbatim
36887 #: ../src/guestfs-structs.pod:36
36888 #, no-wrap
36889 msgid ""
36890 " struct guestfs_lvm_pv_list {\n"
36891 "   uint32_t len; /* Number of elements in list. */\n"
36892 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
36893 " };\n"
36894 " \n"
36895 msgstr ""
36896
36897 #. type: verbatim
36898 #: ../src/guestfs-structs.pod:41
36899 #, no-wrap
36900 msgid ""
36901 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
36902 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
36903 "\n"
36904 msgstr ""
36905
36906 #. type: =head2
36907 #: ../src/guestfs-structs.pod:44
36908 msgid "guestfs_lvm_vg"
36909 msgstr ""
36910
36911 #. type: verbatim
36912 #: ../src/guestfs-structs.pod:46
36913 #, no-wrap
36914 msgid ""
36915 " struct guestfs_lvm_vg {\n"
36916 "   char *vg_name;\n"
36917 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36918 "   char vg_uuid[32];\n"
36919 "   char *vg_fmt;\n"
36920 "   char *vg_attr;\n"
36921 "   uint64_t vg_size;\n"
36922 "   uint64_t vg_free;\n"
36923 "   char *vg_sysid;\n"
36924 "   uint64_t vg_extent_size;\n"
36925 "   int64_t vg_extent_count;\n"
36926 "   int64_t vg_free_count;\n"
36927 "   int64_t max_lv;\n"
36928 "   int64_t max_pv;\n"
36929 "   int64_t pv_count;\n"
36930 "   int64_t lv_count;\n"
36931 "   int64_t snap_count;\n"
36932 "   int64_t vg_seqno;\n"
36933 "   char *vg_tags;\n"
36934 "   int64_t vg_mda_count;\n"
36935 "   uint64_t vg_mda_free;\n"
36936 " };\n"
36937 " \n"
36938 msgstr ""
36939
36940 #. type: verbatim
36941 #: ../src/guestfs-structs.pod:69
36942 #, no-wrap
36943 msgid ""
36944 " struct guestfs_lvm_vg_list {\n"
36945 "   uint32_t len; /* Number of elements in list. */\n"
36946 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
36947 " };\n"
36948 " \n"
36949 msgstr ""
36950
36951 #. type: verbatim
36952 #: ../src/guestfs-structs.pod:74
36953 #, no-wrap
36954 msgid ""
36955 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
36956 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
36957 "\n"
36958 msgstr ""
36959
36960 #. type: =head2
36961 #: ../src/guestfs-structs.pod:77
36962 msgid "guestfs_lvm_lv"
36963 msgstr ""
36964
36965 #. type: verbatim
36966 #: ../src/guestfs-structs.pod:79
36967 #, no-wrap
36968 msgid ""
36969 " struct guestfs_lvm_lv {\n"
36970 "   char *lv_name;\n"
36971 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36972 "   char lv_uuid[32];\n"
36973 "   char *lv_attr;\n"
36974 "   int64_t lv_major;\n"
36975 "   int64_t lv_minor;\n"
36976 "   int64_t lv_kernel_major;\n"
36977 "   int64_t lv_kernel_minor;\n"
36978 "   uint64_t lv_size;\n"
36979 "   int64_t seg_count;\n"
36980 "   char *origin;\n"
36981 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
36982 "   float snap_percent;\n"
36983 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
36984 "   float copy_percent;\n"
36985 "   char *move_pv;\n"
36986 "   char *lv_tags;\n"
36987 "   char *mirror_log;\n"
36988 "   char *modules;\n"
36989 " };\n"
36990 " \n"
36991 msgstr ""
36992
36993 #. type: verbatim
36994 #: ../src/guestfs-structs.pod:101
36995 #, no-wrap
36996 msgid ""
36997 " struct guestfs_lvm_lv_list {\n"
36998 "   uint32_t len; /* Number of elements in list. */\n"
36999 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
37000 " };\n"
37001 " \n"
37002 msgstr ""
37003
37004 #. type: verbatim
37005 #: ../src/guestfs-structs.pod:106
37006 #, no-wrap
37007 msgid ""
37008 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
37009 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
37010 "\n"
37011 msgstr ""
37012
37013 #. type: verbatim
37014 #: ../src/guestfs-structs.pod:111
37015 #, no-wrap
37016 msgid ""
37017 " struct guestfs_stat {\n"
37018 "   int64_t dev;\n"
37019 "   int64_t ino;\n"
37020 "   int64_t mode;\n"
37021 "   int64_t nlink;\n"
37022 "   int64_t uid;\n"
37023 "   int64_t gid;\n"
37024 "   int64_t rdev;\n"
37025 "   int64_t size;\n"
37026 "   int64_t blksize;\n"
37027 "   int64_t blocks;\n"
37028 "   int64_t atime;\n"
37029 "   int64_t mtime;\n"
37030 "   int64_t ctime;\n"
37031 " };\n"
37032 " \n"
37033 msgstr ""
37034
37035 #. type: verbatim
37036 #: ../src/guestfs-structs.pod:127
37037 #, no-wrap
37038 msgid ""
37039 " struct guestfs_stat_list {\n"
37040 "   uint32_t len; /* Number of elements in list. */\n"
37041 "   struct guestfs_stat *val; /* Elements. */\n"
37042 " };\n"
37043 " \n"
37044 msgstr ""
37045
37046 #. type: verbatim
37047 #: ../src/guestfs-structs.pod:132
37048 #, no-wrap
37049 msgid ""
37050 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
37051 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
37052 "\n"
37053 msgstr ""
37054
37055 #. type: verbatim
37056 #: ../src/guestfs-structs.pod:137
37057 #, no-wrap
37058 msgid ""
37059 " struct guestfs_statvfs {\n"
37060 "   int64_t bsize;\n"
37061 "   int64_t frsize;\n"
37062 "   int64_t blocks;\n"
37063 "   int64_t bfree;\n"
37064 "   int64_t bavail;\n"
37065 "   int64_t files;\n"
37066 "   int64_t ffree;\n"
37067 "   int64_t favail;\n"
37068 "   int64_t fsid;\n"
37069 "   int64_t flag;\n"
37070 "   int64_t namemax;\n"
37071 " };\n"
37072 " \n"
37073 msgstr ""
37074
37075 #. type: verbatim
37076 #: ../src/guestfs-structs.pod:151
37077 #, no-wrap
37078 msgid ""
37079 " struct guestfs_statvfs_list {\n"
37080 "   uint32_t len; /* Number of elements in list. */\n"
37081 "   struct guestfs_statvfs *val; /* Elements. */\n"
37082 " };\n"
37083 " \n"
37084 msgstr ""
37085
37086 #. type: verbatim
37087 #: ../src/guestfs-structs.pod:156
37088 #, no-wrap
37089 msgid ""
37090 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
37091 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
37092 "\n"
37093 msgstr ""
37094
37095 #. type: =head2
37096 #: ../src/guestfs-structs.pod:159
37097 msgid "guestfs_dirent"
37098 msgstr ""
37099
37100 #. type: verbatim
37101 #: ../src/guestfs-structs.pod:161
37102 #, no-wrap
37103 msgid ""
37104 " struct guestfs_dirent {\n"
37105 "   int64_t ino;\n"
37106 "   char ftyp;\n"
37107 "   char *name;\n"
37108 " };\n"
37109 " \n"
37110 msgstr ""
37111
37112 #. type: verbatim
37113 #: ../src/guestfs-structs.pod:167
37114 #, no-wrap
37115 msgid ""
37116 " struct guestfs_dirent_list {\n"
37117 "   uint32_t len; /* Number of elements in list. */\n"
37118 "   struct guestfs_dirent *val; /* Elements. */\n"
37119 " };\n"
37120 " \n"
37121 msgstr ""
37122
37123 #. type: verbatim
37124 #: ../src/guestfs-structs.pod:172
37125 #, no-wrap
37126 msgid ""
37127 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
37128 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
37129 "\n"
37130 msgstr ""
37131
37132 #. type: verbatim
37133 #: ../src/guestfs-structs.pod:177
37134 #, no-wrap
37135 msgid ""
37136 " struct guestfs_version {\n"
37137 "   int64_t major;\n"
37138 "   int64_t minor;\n"
37139 "   int64_t release;\n"
37140 "   char *extra;\n"
37141 " };\n"
37142 " \n"
37143 msgstr ""
37144
37145 #. type: verbatim
37146 #: ../src/guestfs-structs.pod:184
37147 #, no-wrap
37148 msgid ""
37149 " struct guestfs_version_list {\n"
37150 "   uint32_t len; /* Number of elements in list. */\n"
37151 "   struct guestfs_version *val; /* Elements. */\n"
37152 " };\n"
37153 " \n"
37154 msgstr ""
37155
37156 #. type: verbatim
37157 #: ../src/guestfs-structs.pod:189
37158 #, no-wrap
37159 msgid ""
37160 " void guestfs_free_version (struct guestfs_free_version *);\n"
37161 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
37162 "\n"
37163 msgstr ""
37164
37165 #. type: =head2
37166 #: ../src/guestfs-structs.pod:192
37167 msgid "guestfs_xattr"
37168 msgstr ""
37169
37170 #. type: verbatim
37171 #: ../src/guestfs-structs.pod:194
37172 #, no-wrap
37173 msgid ""
37174 " struct guestfs_xattr {\n"
37175 "   char *attrname;\n"
37176 "   /* The next two fields describe a byte array. */\n"
37177 "   uint32_t attrval_len;\n"
37178 "   char *attrval;\n"
37179 " };\n"
37180 " \n"
37181 msgstr ""
37182
37183 #. type: verbatim
37184 #: ../src/guestfs-structs.pod:201
37185 #, no-wrap
37186 msgid ""
37187 " struct guestfs_xattr_list {\n"
37188 "   uint32_t len; /* Number of elements in list. */\n"
37189 "   struct guestfs_xattr *val; /* Elements. */\n"
37190 " };\n"
37191 " \n"
37192 msgstr ""
37193
37194 #. type: verbatim
37195 #: ../src/guestfs-structs.pod:206
37196 #, no-wrap
37197 msgid ""
37198 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
37199 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
37200 "\n"
37201 msgstr ""
37202
37203 #. type: =head2
37204 #: ../src/guestfs-structs.pod:209
37205 msgid "guestfs_inotify_event"
37206 msgstr ""
37207
37208 #. type: verbatim
37209 #: ../src/guestfs-structs.pod:211
37210 #, no-wrap
37211 msgid ""
37212 " struct guestfs_inotify_event {\n"
37213 "   int64_t in_wd;\n"
37214 "   uint32_t in_mask;\n"
37215 "   uint32_t in_cookie;\n"
37216 "   char *in_name;\n"
37217 " };\n"
37218 " \n"
37219 msgstr ""
37220
37221 #. type: verbatim
37222 #: ../src/guestfs-structs.pod:218
37223 #, no-wrap
37224 msgid ""
37225 " struct guestfs_inotify_event_list {\n"
37226 "   uint32_t len; /* Number of elements in list. */\n"
37227 "   struct guestfs_inotify_event *val; /* Elements. */\n"
37228 " };\n"
37229 " \n"
37230 msgstr ""
37231
37232 #. type: verbatim
37233 #: ../src/guestfs-structs.pod:223
37234 #, no-wrap
37235 msgid ""
37236 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
37237 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
37238 "\n"
37239 msgstr ""
37240
37241 #. type: =head2
37242 #: ../src/guestfs-structs.pod:226
37243 msgid "guestfs_partition"
37244 msgstr ""
37245
37246 #. type: verbatim
37247 #: ../src/guestfs-structs.pod:228
37248 #, no-wrap
37249 msgid ""
37250 " struct guestfs_partition {\n"
37251 "   int32_t part_num;\n"
37252 "   uint64_t part_start;\n"
37253 "   uint64_t part_end;\n"
37254 "   uint64_t part_size;\n"
37255 " };\n"
37256 " \n"
37257 msgstr ""
37258
37259 #. type: verbatim
37260 #: ../src/guestfs-structs.pod:235
37261 #, no-wrap
37262 msgid ""
37263 " struct guestfs_partition_list {\n"
37264 "   uint32_t len; /* Number of elements in list. */\n"
37265 "   struct guestfs_partition *val; /* Elements. */\n"
37266 " };\n"
37267 " \n"
37268 msgstr ""
37269
37270 #. type: verbatim
37271 #: ../src/guestfs-structs.pod:240
37272 #, no-wrap
37273 msgid ""
37274 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
37275 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
37276 "\n"
37277 msgstr ""
37278
37279 #. type: =head2
37280 #: ../src/guestfs-structs.pod:243
37281 msgid "guestfs_application"
37282 msgstr ""
37283
37284 #. type: verbatim
37285 #: ../src/guestfs-structs.pod:245
37286 #, no-wrap
37287 msgid ""
37288 " struct guestfs_application {\n"
37289 "   char *app_name;\n"
37290 "   char *app_display_name;\n"
37291 "   int32_t app_epoch;\n"
37292 "   char *app_version;\n"
37293 "   char *app_release;\n"
37294 "   char *app_install_path;\n"
37295 "   char *app_trans_path;\n"
37296 "   char *app_publisher;\n"
37297 "   char *app_url;\n"
37298 "   char *app_source_package;\n"
37299 "   char *app_summary;\n"
37300 "   char *app_description;\n"
37301 " };\n"
37302 " \n"
37303 msgstr ""
37304
37305 #. type: verbatim
37306 #: ../src/guestfs-structs.pod:260
37307 #, no-wrap
37308 msgid ""
37309 " struct guestfs_application_list {\n"
37310 "   uint32_t len; /* Number of elements in list. */\n"
37311 "   struct guestfs_application *val; /* Elements. */\n"
37312 " };\n"
37313 " \n"
37314 msgstr ""
37315
37316 #. type: verbatim
37317 #: ../src/guestfs-structs.pod:265
37318 #, no-wrap
37319 msgid ""
37320 " void guestfs_free_application (struct guestfs_free_application *);\n"
37321 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
37322 "\n"
37323 msgstr ""
37324
37325 #. type: textblock
37326 #: ../src/guestfs.pod:5
37327 msgid "guestfs - Library for accessing and modifying virtual machine images"
37328 msgstr ""
37329 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
37330 "машин"
37331
37332 #. type: verbatim
37333 #: ../src/guestfs.pod:11
37334 #, no-wrap
37335 msgid ""
37336 " guestfs_h *g = guestfs_create ();\n"
37337 " guestfs_add_drive (g, \"guest.img\");\n"
37338 " guestfs_launch (g);\n"
37339 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37340 " guestfs_touch (g, \"/hello\");\n"
37341 " guestfs_umount (g, \"/\");\n"
37342 " guestfs_close (g);\n"
37343 "\n"
37344 msgstr ""
37345 " guestfs_h *g = guestfs_create ();\n"
37346 " guestfs_add_drive (g, \"guest.img\");\n"
37347 " guestfs_launch (g);\n"
37348 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37349 " guestfs_touch (g, \"/hello\");\n"
37350 " guestfs_umount (g, \"/\");\n"
37351 " guestfs_close (g);\n"
37352 "\n"
37353
37354 #. type: textblock
37355 #: ../src/guestfs.pod:25
37356 msgid ""
37357 "Libguestfs is a library for accessing and modifying guest disk images.  "
37358 "Amongst the things this is good for: making batch configuration changes to "
37359 "guests, getting disk used/free statistics (see also: virt-df), migrating "
37360 "between virtualization systems (see also: virt-p2v), performing partial "
37361 "backups, performing partial guest clones, cloning guests and changing "
37362 "registry/UUID/hostname info, and much else besides."
37363 msgstr ""
37364
37365 #. type: textblock
37366 #: ../src/guestfs.pod:33
37367 msgid ""
37368 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
37369 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
37370 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
37371 "qcow2, vmdk."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:38
37376 msgid ""
37377 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
37378 "what filesystem is in each LV, etc.).  It can also run commands in the "
37379 "context of the guest.  Also you can access filesystems over FUSE."
37380 msgstr ""
37381
37382 #. type: textblock
37383 #: ../src/guestfs.pod:43
37384 msgid ""
37385 "Libguestfs is a library that can be linked with C and C++ management "
37386 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
37387 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
37388 "command line."
37389 msgstr ""
37390
37391 #. type: textblock
37392 #: ../src/guestfs.pod:48
37393 msgid ""
37394 "You don't need to be root to use libguestfs, although obviously you do need "
37395 "enough permissions to access the disk images."
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:51
37400 msgid ""
37401 "Libguestfs is a large API because it can do many things.  For a gentle "
37402 "introduction, please read the L</API OVERVIEW> section next."
37403 msgstr ""
37404
37405 #. type: textblock
37406 #: ../src/guestfs.pod:54
37407 msgid ""
37408 "There are also some example programs in the L<guestfs-examples(3)> manual "
37409 "page."
37410 msgstr ""
37411
37412 #. type: =head1
37413 #: ../src/guestfs.pod:57
37414 msgid "API OVERVIEW"
37415 msgstr "ОГЛЯД API"
37416
37417 #. type: textblock
37418 #: ../src/guestfs.pod:59
37419 msgid ""
37420 "This section provides a gentler overview of the libguestfs API.  We also try "
37421 "to group API calls together, where that may not be obvious from reading "
37422 "about the individual calls in the main section of this manual."
37423 msgstr ""
37424
37425 #. type: =head2
37426 #: ../src/guestfs.pod:64
37427 msgid "HANDLES"
37428 msgstr "ОБРОБНИКИ"
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:66
37432 msgid ""
37433 "Before you can use libguestfs calls, you have to create a handle.  Then you "
37434 "must add at least one disk image to the handle, followed by launching the "
37435 "handle, then performing whatever operations you want, and finally closing "
37436 "the handle.  By convention we use the single letter C<g> for the name of the "
37437 "handle variable, although of course you can use any name you want."
37438 msgstr ""
37439
37440 #. type: textblock
37441 #: ../src/guestfs.pod:73
37442 msgid "The general structure of all libguestfs-using programs looks like this:"
37443 msgstr ""
37444
37445 #. type: verbatim
37446 #: ../src/guestfs.pod:76
37447 #, no-wrap
37448 msgid ""
37449 " guestfs_h *g = guestfs_create ();\n"
37450 " \n"
37451 msgstr ""
37452 " guestfs_h *g = guestfs_create ();\n"
37453 " \n"
37454
37455 #. type: verbatim
37456 #: ../src/guestfs.pod:78
37457 #, no-wrap
37458 msgid ""
37459 " /* Call guestfs_add_drive additional times if there are\n"
37460 "  * multiple disk images.\n"
37461 "  */\n"
37462 " guestfs_add_drive (g, \"guest.img\");\n"
37463 " \n"
37464 msgstr ""
37465
37466 #. type: verbatim
37467 #: ../src/guestfs.pod:83
37468 #, no-wrap
37469 msgid ""
37470 " /* Most manipulation calls won't work until you've launched\n"
37471 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
37472 "  * and _before_ other commands.\n"
37473 "  */\n"
37474 " guestfs_launch (g);\n"
37475 " \n"
37476 msgstr ""
37477
37478 #. type: verbatim
37479 #: ../src/guestfs.pod:89
37480 #, no-wrap
37481 msgid ""
37482 " /* Now you can examine what partitions, LVs etc are available.\n"
37483 "  */\n"
37484 " char **partitions = guestfs_list_partitions (g);\n"
37485 " char **logvols = guestfs_lvs (g);\n"
37486 " \n"
37487 msgstr ""
37488 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
37489 "  */\n"
37490 " char **partitions = guestfs_list_partitions (g);\n"
37491 " char **logvols = guestfs_lvs (g);\n"
37492 " \n"
37493
37494 #. type: verbatim
37495 #: ../src/guestfs.pod:94
37496 #, no-wrap
37497 msgid ""
37498 " /* To access a filesystem in the image, you must mount it.\n"
37499 "  */\n"
37500 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37501 " \n"
37502 msgstr ""
37503 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
37504 "  */\n"
37505 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37506 " \n"
37507
37508 #. type: verbatim
37509 #: ../src/guestfs.pod:98
37510 #, no-wrap
37511 msgid ""
37512 " /* Now you can perform filesystem actions on the guest\n"
37513 "  * disk image.\n"
37514 "  */\n"
37515 " guestfs_touch (g, \"/hello\");\n"
37516 " \n"
37517 msgstr ""
37518 " /* Тепер ви можете виконувати дії з файловою системою на\n"
37519 "  * образі диска операційної системи.\n"
37520 "  */\n"
37521 " guestfs_touch (g, \"/hello\");\n"
37522 " \n"
37523
37524 #. type: verbatim
37525 #: ../src/guestfs.pod:103
37526 #, no-wrap
37527 msgid ""
37528 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
37529 "  * it is done automatically when you close the handle.  See\n"
37530 "  * discussion of autosync in this page.\n"
37531 "  */\n"
37532 " guestfs_sync (g);\n"
37533 " \n"
37534 msgstr ""
37535
37536 #. type: verbatim
37537 #: ../src/guestfs.pod:109
37538 #, no-wrap
37539 msgid ""
37540 " /* Close the handle 'g'. */\n"
37541 " guestfs_close (g);\n"
37542 "\n"
37543 msgstr ""
37544 " /* Закрити дескриптор 'g'. */\n"
37545 " guestfs_close (g);\n"
37546 "\n"
37547
37548 #. type: textblock
37549 #: ../src/guestfs.pod:112
37550 msgid ""
37551 "The code above doesn't include any error checking.  In real code you should "
37552 "check return values carefully for errors.  In general all functions that "
37553 "return integers return C<-1> on error, and all functions that return "
37554 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
37555 "how to handle errors, and consult the documentation for each function call "
37556 "below to see precisely how they return error indications.  See L<guestfs-"
37557 "examples(3)> for fully worked examples."
37558 msgstr ""
37559
37560 #. type: =head2
37561 #: ../src/guestfs.pod:121
37562 msgid "DISK IMAGES"
37563 msgstr "ОБРАЗИ ДИСКІВ"
37564
37565 #. type: textblock
37566 #: ../src/guestfs.pod:123
37567 msgid ""
37568 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
37569 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
37570 "actual block device, or simply an empty file of zeroes that you have created "
37571 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
37572 "of these."
37573 msgstr ""
37574
37575 #. type: textblock
37576 #: ../src/guestfs.pod:129
37577 msgid ""
37578 "The call you should use in modern code for adding drives is L</"
37579 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
37580 "specifying that the format is raw, do:"
37581 msgstr ""
37582
37583 #. type: verbatim
37584 #: ../src/guestfs.pod:133
37585 #, no-wrap
37586 msgid ""
37587 " guestfs_add_drive_opts (g, filename,\n"
37588 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37589 "                         -1);\n"
37590 "\n"
37591 msgstr ""
37592 " guestfs_add_drive_opts (g, filename,\n"
37593 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37594 "                         -1);\n"
37595 "\n"
37596
37597 #. type: textblock
37598 #: ../src/guestfs.pod:137
37599 msgid "You can add a disk read-only using:"
37600 msgstr "Ви можете додати диск у режимі лише читання:"
37601
37602 #. type: verbatim
37603 #: ../src/guestfs.pod:139
37604 #, no-wrap
37605 msgid ""
37606 " guestfs_add_drive_opts (g, filename,\n"
37607 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37608 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37609 "                         -1);\n"
37610 "\n"
37611 msgstr ""
37612 " guestfs_add_drive_opts (g, filename,\n"
37613 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37614 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37615 "                         -1);\n"
37616 "\n"
37617
37618 #. type: textblock
37619 #: ../src/guestfs.pod:144
37620 msgid ""
37621 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
37622 "libguestfs won't modify the file."
37623 msgstr ""
37624
37625 #. type: textblock
37626 #: ../src/guestfs.pod:147
37627 msgid ""
37628 "Be extremely cautious if the disk image is in use, eg. if it is being used "
37629 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
37630 "corruption, but adding it read-only is safe."
37631 msgstr ""
37632
37633 #. type: textblock
37634 #: ../src/guestfs.pod:151
37635 msgid ""
37636 "You must add at least one disk image, and you may add multiple disk images.  "
37637 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
37638 "first one you added), C</dev/sdb> (for the second one you added), etc."
37639 msgstr ""
37640
37641 #. type: textblock
37642 #: ../src/guestfs.pod:156
37643 msgid ""
37644 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
37645 "can call L</guestfs_list_devices> to get a list of the device names, in the "
37646 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
37647 msgstr ""
37648
37649 #. type: =head2
37650 #: ../src/guestfs.pod:161
37651 msgid "MOUNTING"
37652 msgstr "МОНТУВАННЯ"
37653
37654 #. type: textblock
37655 #: ../src/guestfs.pod:163
37656 msgid ""
37657 "Before you can read or write files, create directories and so on in a disk "
37658 "image that contains filesystems, you have to mount those filesystems using "
37659 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
37660 "a disk image contains (for example) one partition with a filesystem on that "
37661 "partition, then you can mount it directly:"
37662 msgstr ""
37663
37664 #. type: verbatim
37665 #: ../src/guestfs.pod:170
37666 #, no-wrap
37667 msgid ""
37668 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37669 "\n"
37670 msgstr ""
37671 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37672 "\n"
37673
37674 #. type: textblock
37675 #: ../src/guestfs.pod:172
37676 msgid ""
37677 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
37678 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
37679 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
37680 "that these are libguestfs virtual devices, and are nothing to do with host "
37681 "devices."
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:178
37686 msgid ""
37687 "If you are given a disk image and you don't know what it contains then you "
37688 "have to find out.  Libguestfs can do that too: use L</"
37689 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
37690 "LVs, and either try mounting each to see what is mountable, or else examine "
37691 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
37692 "filesystems, use L</guestfs_list_filesystems>."
37693 msgstr ""
37694
37695 #. type: textblock
37696 #: ../src/guestfs.pod:186
37697 msgid ""
37698 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
37699 "L</INSPECTION> below).  But you might find it easier to look at higher level "
37700 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../src/guestfs.pod:191
37705 msgid ""
37706 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
37707 "several other variations of the C<guestfs_mount_*> call."
37708 msgstr ""
37709
37710 #. type: =head2
37711 #: ../src/guestfs.pod:194
37712 msgid "FILESYSTEM ACCESS AND MODIFICATION"
37713 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:196
37717 msgid ""
37718 "The majority of the libguestfs API consists of fairly low-level calls for "
37719 "accessing and modifying the files, directories, symlinks etc on mounted "
37720 "filesystems.  There are over a hundred such calls which you can find listed "
37721 "in detail below in this man page, and we don't even pretend to cover them "
37722 "all in this overview."
37723 msgstr ""
37724
37725 #. type: textblock
37726 #: ../src/guestfs.pod:202
37727 msgid ""
37728 "Specify filenames as full paths, starting with C<\"/\"> and including the "
37729 "mount point."
37730 msgstr ""
37731 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
37732 "точкою монтування."
37733
37734 #. type: textblock
37735 #: ../src/guestfs.pod:205
37736 msgid ""
37737 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
37738 "the file called C<\"etc/passwd\"> then you could do:"
37739 msgstr ""
37740 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
37741 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
37742 "таким кодом:"
37743
37744 #. type: verbatim
37745 #: ../src/guestfs.pod:208
37746 #, no-wrap
37747 msgid ""
37748 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37749 "\n"
37750 msgstr ""
37751 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37752 "\n"
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:210
37756 msgid ""
37757 "This would return C<data> as a newly allocated buffer containing the full "
37758 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
37759 "or C<NULL> if there was an error."
37760 msgstr ""
37761
37762 #. type: textblock
37763 #: ../src/guestfs.pod:214
37764 msgid ""
37765 "As another example, to create a top-level directory on that filesystem "
37766 "called C<\"var\"> you would do:"
37767 msgstr ""
37768
37769 #. type: verbatim
37770 #: ../src/guestfs.pod:217
37771 #, no-wrap
37772 msgid ""
37773 " guestfs_mkdir (g, \"/var\");\n"
37774 "\n"
37775 msgstr ""
37776 " guestfs_mkdir (g, \"/var\");\n"
37777 "\n"
37778
37779 #. type: textblock
37780 #: ../src/guestfs.pod:219
37781 msgid "To create a symlink you could do:"
37782 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
37783
37784 #. type: verbatim
37785 #: ../src/guestfs.pod:221
37786 #, no-wrap
37787 msgid ""
37788 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37789 "               \"/etc/rc3.d/S30portmap\");\n"
37790 "\n"
37791 msgstr ""
37792 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37793 "               \"/etc/rc3.d/S30portmap\");\n"
37794 "\n"
37795
37796 #. type: textblock
37797 #: ../src/guestfs.pod:224
37798 msgid ""
37799 "Libguestfs will reject attempts to use relative paths and there is no "
37800 "concept of a current working directory."
37801 msgstr ""
37802
37803 #. type: textblock
37804 #: ../src/guestfs.pod:227
37805 msgid ""
37806 "Libguestfs can return errors in many situations: for example if the "
37807 "filesystem isn't writable, or if a file or directory that you requested "
37808 "doesn't exist.  If you are using the C API (documented here)  you have to "
37809 "check for those error conditions after each call.  (Other language bindings "
37810 "turn these errors into exceptions)."
37811 msgstr ""
37812
37813 #. type: textblock
37814 #: ../src/guestfs.pod:233
37815 msgid ""
37816 "File writes are affected by the per-handle umask, set by calling L</"
37817 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
37818 msgstr ""
37819
37820 #. type: =head2
37821 #: ../src/guestfs.pod:236
37822 msgid "PARTITIONING"
37823 msgstr "ПОДІЛ НА РОЗДІЛИ"
37824
37825 #. type: textblock
37826 #: ../src/guestfs.pod:238
37827 msgid ""
37828 "Libguestfs contains API calls to read, create and modify partition tables on "
37829 "disk images."
37830 msgstr ""
37831
37832 #. type: textblock
37833 #: ../src/guestfs.pod:241
37834 msgid ""
37835 "In the common case where you want to create a single partition covering the "
37836 "whole disk, you should use the L</guestfs_part_disk> call:"
37837 msgstr ""
37838
37839 #. type: verbatim
37840 #: ../src/guestfs.pod:245
37841 #, no-wrap
37842 msgid ""
37843 " const char *parttype = \"mbr\";\n"
37844 " if (disk_is_larger_than_2TB)\n"
37845 "   parttype = \"gpt\";\n"
37846 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37847 "\n"
37848 msgstr ""
37849 " const char *parttype = \"mbr\";\n"
37850 " if (disk_is_larger_than_2TB)\n"
37851 "   parttype = \"gpt\";\n"
37852 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37853 "\n"
37854
37855 #. type: textblock
37856 #: ../src/guestfs.pod:250
37857 msgid ""
37858 "Obviously this effectively wipes anything that was on that disk image before."
37859 msgstr ""
37860
37861 #. type: =head2
37862 #: ../src/guestfs.pod:253
37863 msgid "LVM2"
37864 msgstr "LVM2"
37865
37866 #. type: textblock
37867 #: ../src/guestfs.pod:255
37868 msgid ""
37869 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
37870 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
37871 "you familiarize yourself with the concepts of physical volumes, volume "
37872 "groups and logical volumes."
37873 msgstr ""
37874
37875 #. type: textblock
37876 #: ../src/guestfs.pod:260
37877 msgid ""
37878 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
37879 "tldp.org/HOWTO/LVM-HOWTO/>."
37880 msgstr ""
37881
37882 #. type: =head2
37883 #: ../src/guestfs.pod:263
37884 msgid "DOWNLOADING"
37885 msgstr "ОТРИМАННЯ ДАНИХ"
37886
37887 #. type: textblock
37888 #: ../src/guestfs.pod:265
37889 msgid ""
37890 "Use L</guestfs_cat> to download small, text only files.  This call is "
37891 "limited to files which are less than 2 MB and which cannot contain any ASCII "
37892 "NUL (C<\\0>) characters.  However the API is very simple to use."
37893 msgstr ""
37894
37895 #. type: textblock
37896 #: ../src/guestfs.pod:269
37897 msgid ""
37898 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
37899 "bit data, since it returns a (pointer, size) pair.  However it is still "
37900 "limited to \"small\" files, less than 2 MB."
37901 msgstr ""
37902
37903 #. type: textblock
37904 #: ../src/guestfs.pod:273
37905 msgid ""
37906 "L</guestfs_download> can be used to download any file, with no limits on "
37907 "content or size (even files larger than 4 GB)."
37908 msgstr ""
37909
37910 #. type: textblock
37911 #: ../src/guestfs.pod:276
37912 msgid ""
37913 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
37914 msgstr ""
37915
37916 #. type: =head2
37917 #: ../src/guestfs.pod:279
37918 msgid "UPLOADING"
37919 msgstr "ВИВАНТАЖЕННЯ"
37920
37921 #. type: textblock
37922 #: ../src/guestfs.pod:281
37923 msgid ""
37924 "It's often the case that you want to write a file or files to the disk image."
37925 msgstr ""
37926
37927 #. type: textblock
37928 #: ../src/guestfs.pod:284
37929 msgid ""
37930 "To write a small file with fixed content, use L</guestfs_write>.  To create "
37931 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
37932 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
37933 "of other functions for creating test files, for example L</guestfs_fill> and "
37934 "L</guestfs_fill_pattern>."
37935 msgstr ""
37936
37937 #. type: textblock
37938 #: ../src/guestfs.pod:290
37939 msgid ""
37940 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
37941 "file content or size (even files larger than 4 GB)."
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../src/guestfs.pod:293
37946 msgid ""
37947 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
37948 msgstr ""
37949
37950 #. type: textblock
37951 #: ../src/guestfs.pod:295
37952 msgid ""
37953 "However the fastest way to upload I<large numbers of arbitrary files> is to "
37954 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
37955 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
37956 "in a predictable way (eg. adding it last after all other drives) then you "
37957 "can get the device name from L</guestfs_list_devices> and mount it directly "
37958 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
37959 "portable between kernel versions, and they don't support labels or UUIDs.  "
37960 "If you want to pre-build an image or you need to mount it using a label or "
37961 "UUID, use an ISO image instead."
37962 msgstr ""
37963
37964 #. type: =head2
37965 #: ../src/guestfs.pod:306
37966 msgid "COPYING"
37967 msgstr "КОПІЮВАННЯ"
37968
37969 #. type: textblock
37970 #: ../src/guestfs.pod:308
37971 msgid ""
37972 "There are various different commands for copying between files and devices "
37973 "and in and out of the guest filesystem.  These are summarised in the table "
37974 "below."
37975 msgstr ""
37976
37977 #. type: =item
37978 #: ../src/guestfs.pod:314
37979 msgid "B<file> to B<file>"
37980 msgstr "B<файл> у B<файл>"
37981
37982 #. type: textblock
37983 #: ../src/guestfs.pod:316
37984 msgid ""
37985 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
37986 "directories recursively."
37987 msgstr ""
37988
37989 #. type: textblock
37990 #: ../src/guestfs.pod:319
37991 msgid ""
37992 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
37993 msgstr ""
37994
37995 #. type: =item
37996 #: ../src/guestfs.pod:322
37997 msgid "B<file> to B<device>"
37998 msgstr ""
37999
38000 #. type: =item
38001 #: ../src/guestfs.pod:324
38002 msgid "B<device> to B<file>"
38003 msgstr ""
38004
38005 #. type: =item
38006 #: ../src/guestfs.pod:326
38007 msgid "B<device> to B<device>"
38008 msgstr ""
38009
38010 #. type: textblock
38011 #: ../src/guestfs.pod:328
38012 msgid ""
38013 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
38014 "guestfs_copy_device_to_device>."
38015 msgstr ""
38016
38017 #. type: textblock
38018 #: ../src/guestfs.pod:331
38019 msgid "Example: duplicate the contents of an LV:"
38020 msgstr ""
38021
38022 #. type: verbatim
38023 #: ../src/guestfs.pod:333
38024 #, no-wrap
38025 msgid ""
38026 " guestfs_copy_device_to_device (g,\n"
38027 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
38028 "         /* -1 marks the end of the list of optional parameters */\n"
38029 "         -1);\n"
38030 "\n"
38031 msgstr ""
38032
38033 #. type: textblock
38034 #: ../src/guestfs.pod:338
38035 msgid ""
38036 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
38037 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
38038 "optional C<size> parameter:"
38039 msgstr ""
38040
38041 #. type: verbatim
38042 #: ../src/guestfs.pod:342
38043 #, no-wrap
38044 msgid ""
38045 " guestfs_copy_device_to_device (g,\n"
38046 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
38047 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
38048 "         -1);\n"
38049 "\n"
38050 msgstr ""
38051
38052 #. type: =item
38053 #: ../src/guestfs.pod:347
38054 msgid "B<file on the host> to B<file or device>"
38055 msgstr ""
38056
38057 #. type: textblock
38058 #: ../src/guestfs.pod:349
38059 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
38060 msgstr ""
38061
38062 #. type: =item
38063 #: ../src/guestfs.pod:351
38064 msgid "B<file or device> to B<file on the host>"
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../src/guestfs.pod:353
38069 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
38070 msgstr ""
38071
38072 #. type: =head2
38073 #: ../src/guestfs.pod:357
38074 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
38075 msgstr ""
38076
38077 #. type: textblock
38078 #: ../src/guestfs.pod:359
38079 msgid ""
38080 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
38081 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
38082 "appears you can only upload and download to files.  However many Un*x-like "
38083 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
38084 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
38085 "and arbitrary file descriptor N."
38086 msgstr ""
38087
38088 #. type: textblock
38089 #: ../src/guestfs.pod:367
38090 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
38091 msgstr ""
38092
38093 #. type: verbatim
38094 #: ../src/guestfs.pod:370
38095 #, no-wrap
38096 msgid ""
38097 " guestfs_download (g, filename, \"/dev/stdout\");\n"
38098 "\n"
38099 msgstr ""
38100 " guestfs_download (g, filename, \"/dev/stdout\");\n"
38101 "\n"
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:372
38105 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
38106 msgstr ""
38107
38108 #. type: verbatim
38109 #: ../src/guestfs.pod:374
38110 #, no-wrap
38111 msgid ""
38112 " char devfd[64];\n"
38113 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
38114 " guestfs_tar_out (g, \"/\", devfd);\n"
38115 "\n"
38116 msgstr ""
38117 " char devfd[64];\n"
38118 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
38119 " guestfs_tar_out (g, \"/\", devfd);\n"
38120 "\n"
38121
38122 #. type: =head2
38123 #: ../src/guestfs.pod:378
38124 msgid "LISTING FILES"
38125 msgstr "СПИСКИ ФАЙЛІВ"
38126
38127 #. type: textblock
38128 #: ../src/guestfs.pod:380
38129 msgid ""
38130 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
38131 "L<guestfish(1)>-equivalent command C<ll>)."
38132 msgstr ""
38133
38134 #. type: textblock
38135 #: ../src/guestfs.pod:383
38136 msgid ""
38137 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
38138 "programs, as a flat list of strings."
38139 msgstr ""
38140
38141 #. type: textblock
38142 #: ../src/guestfs.pod:386
38143 msgid ""
38144 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
38145 "directory, plus additional information about each one.  It is more "
38146 "equivalent to using the L<readdir(3)> call on a local filesystem."
38147 msgstr ""
38148
38149 #. type: textblock
38150 #: ../src/guestfs.pod:390
38151 msgid ""
38152 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
38153 msgstr ""
38154
38155 #. type: =head2
38156 #: ../src/guestfs.pod:393
38157 msgid "RUNNING COMMANDS"
38158 msgstr "ВИКОНАННЯ КОМАНД"
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:395
38162 msgid ""
38163 "Although libguestfs is primarily an API for manipulating files inside guest "
38164 "images, we also provide some limited facilities for running commands inside "
38165 "guests."
38166 msgstr ""
38167
38168 #. type: textblock
38169 #: ../src/guestfs.pod:399
38170 msgid "There are many limitations to this:"
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:405
38175 msgid ""
38176 "The kernel version that the command runs under will be different from what "
38177 "it expects."
38178 msgstr ""
38179
38180 #. type: textblock
38181 #: ../src/guestfs.pod:410
38182 msgid ""
38183 "If the command needs to communicate with daemons, then most likely they "
38184 "won't be running."
38185 msgstr ""
38186
38187 #. type: textblock
38188 #: ../src/guestfs.pod:415
38189 msgid "The command will be running in limited memory."
38190 msgstr ""
38191
38192 #. type: textblock
38193 #: ../src/guestfs.pod:419
38194 msgid ""
38195 "The network may not be available unless you enable it (see L</"
38196 "guestfs_set_network>)."
38197 msgstr ""
38198
38199 #. type: textblock
38200 #: ../src/guestfs.pod:424
38201 msgid "Only supports Linux guests (not Windows, BSD, etc)."
38202 msgstr ""
38203
38204 #. type: textblock
38205 #: ../src/guestfs.pod:428
38206 msgid ""
38207 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
38208 msgstr ""
38209
38210 #. type: textblock
38211 #: ../src/guestfs.pod:433
38212 msgid ""
38213 "For SELinux guests, you may need to enable SELinux and load policy first.  "
38214 "See L</SELINUX> in this manpage."
38215 msgstr ""
38216
38217 #. type: textblock
38218 #: ../src/guestfs.pod:438
38219 msgid ""
38220 "I<Security:> It is not safe to run commands from untrusted, possibly "
38221 "malicious guests.  These commands may attempt to exploit your program by "
38222 "sending unexpected output.  They could also try to exploit the Linux kernel "
38223 "or qemu provided by the libguestfs appliance.  They could use the network "
38224 "provided by the libguestfs appliance to bypass ordinary network partitions "
38225 "and firewalls.  They could use the elevated privileges or different SELinux "
38226 "context of your program to their advantage."
38227 msgstr ""
38228
38229 #. type: textblock
38230 #: ../src/guestfs.pod:447
38231 msgid ""
38232 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
38233 "(a script which runs when the guest next boots normally), and to have this "
38234 "script run the commands you want in the normal context of the running guest, "
38235 "network security and so on.  For information about other security issues, "
38236 "see L</SECURITY>."
38237 msgstr ""
38238
38239 #. type: textblock
38240 #: ../src/guestfs.pod:455
38241 msgid ""
38242 "The two main API calls to run commands are L</guestfs_command> and L</"
38243 "guestfs_sh> (there are also variations)."
38244 msgstr ""
38245
38246 #. type: textblock
38247 #: ../src/guestfs.pod:458
38248 msgid ""
38249 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
38250 "shell globs, redirections, etc will work."
38251 msgstr ""
38252
38253 #. type: =head2
38254 #: ../src/guestfs.pod:461
38255 msgid "CONFIGURATION FILES"
38256 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
38257
38258 #. type: textblock
38259 #: ../src/guestfs.pod:463
38260 msgid ""
38261 "To read and write configuration files in Linux guest filesystems, we "
38262 "strongly recommend using Augeas.  For example, Augeas understands how to "
38263 "read and write, say, a Linux shadow password file or X.org configuration "
38264 "file, and so avoids you having to write that code."
38265 msgstr ""
38266
38267 #. type: textblock
38268 #: ../src/guestfs.pod:468
38269 msgid ""
38270 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
38271 "document Augeas itself here because there is excellent documentation on the "
38272 "L<http://augeas.net/> website."
38273 msgstr ""
38274
38275 #. type: textblock
38276 #: ../src/guestfs.pod:472
38277 msgid ""
38278 "If you don't want to use Augeas (you fool!) then try calling L</"
38279 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
38280 "over."
38281 msgstr ""
38282
38283 #. type: =head2
38284 #: ../src/guestfs.pod:476
38285 msgid "SELINUX"
38286 msgstr "SELINUX"
38287
38288 #. type: textblock
38289 #: ../src/guestfs.pod:478
38290 msgid ""
38291 "We support SELinux guests.  To ensure that labeling happens correctly in "
38292 "SELinux guests, you need to enable SELinux and load the guest's policy:"
38293 msgstr ""
38294
38295 #. type: textblock
38296 #: ../src/guestfs.pod:486
38297 msgid "Before launching, do:"
38298 msgstr ""
38299
38300 #. type: verbatim
38301 #: ../src/guestfs.pod:488
38302 #, no-wrap
38303 msgid ""
38304 " guestfs_set_selinux (g, 1);\n"
38305 "\n"
38306 msgstr ""
38307 " guestfs_set_selinux (g, 1);\n"
38308 "\n"
38309
38310 #. type: textblock
38311 #: ../src/guestfs.pod:492
38312 msgid ""
38313 "After mounting the guest's filesystem(s), load the policy.  This is best "
38314 "done by running the L<load_policy(8)> command in the guest itself:"
38315 msgstr ""
38316
38317 #. type: verbatim
38318 #: ../src/guestfs.pod:496
38319 #, no-wrap
38320 msgid ""
38321 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38322 "\n"
38323 msgstr ""
38324 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38325 "\n"
38326
38327 #. type: textblock
38328 #: ../src/guestfs.pod:498
38329 msgid ""
38330 "(Older versions of C<load_policy> require you to specify the name of the "
38331 "policy file)."
38332 msgstr ""
38333
38334 #. type: textblock
38335 #: ../src/guestfs.pod:503
38336 msgid ""
38337 "Optionally, set the security context for the API.  The correct security "
38338 "context to use can only be known by inspecting the guest.  As an example:"
38339 msgstr ""
38340
38341 #. type: verbatim
38342 #: ../src/guestfs.pod:507
38343 #, no-wrap
38344 msgid ""
38345 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38346 "\n"
38347 msgstr ""
38348 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38349 "\n"
38350
38351 #. type: textblock
38352 #: ../src/guestfs.pod:511
38353 msgid "This will work for running commands and editing existing files."
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../src/guestfs.pod:513
38358 msgid ""
38359 "When new files are created, you may need to label them explicitly, for "
38360 "example by running the external command C<restorecon pathname>."
38361 msgstr ""
38362
38363 #. type: =head2
38364 #: ../src/guestfs.pod:517
38365 msgid "UMASK"
38366 msgstr "UMASK"
38367
38368 #. type: textblock
38369 #: ../src/guestfs.pod:519
38370 msgid ""
38371 "Certain calls are affected by the current file mode creation mask (the "
38372 "\"umask\").  In particular ones which create files or directories, such as "
38373 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
38374 "either the default mode that the file is created with or modifies the mode "
38375 "that you supply."
38376 msgstr ""
38377
38378 #. type: textblock
38379 #: ../src/guestfs.pod:525
38380 msgid ""
38381 "The default umask is C<022>, so files are created with modes such as C<0644> "
38382 "and directories with C<0755>."
38383 msgstr ""
38384
38385 #. type: textblock
38386 #: ../src/guestfs.pod:528
38387 msgid ""
38388 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
38389 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
38390 "guestfs_chmod> after creating each file or directory."
38391 msgstr ""
38392
38393 #. type: textblock
38394 #: ../src/guestfs.pod:532
38395 msgid "For more information about umask, see L<umask(2)>."
38396 msgstr ""
38397
38398 #. type: textblock
38399 #: ../src/guestfs.pod:536
38400 msgid ""
38401 "Libguestfs allows you to access Linux guests which have been encrypted using "
38402 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
38403 "standard.  This includes nearly all whole disk encryption systems used by "
38404 "modern Linux guests."
38405 msgstr ""
38406
38407 #. type: textblock
38408 #: ../src/guestfs.pod:542
38409 msgid ""
38410 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
38411 "returns the string C<crypto_LUKS>)."
38412 msgstr ""
38413
38414 #. type: textblock
38415 #: ../src/guestfs.pod:545
38416 msgid ""
38417 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
38418 "will require the passphrase!"
38419 msgstr ""
38420
38421 #. type: textblock
38422 #: ../src/guestfs.pod:548
38423 msgid ""
38424 "Opening a LUKS device creates a new device mapper device called C</dev/"
38425 "mapper/mapname> (where C<mapname> is the string you supply to L</"
38426 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
38427 "from and encrypted to the underlying block device respectively."
38428 msgstr ""
38429
38430 #. type: textblock
38431 #: ../src/guestfs.pod:554
38432 msgid ""
38433 "LVM volume groups on the device can be made visible by calling L</"
38434 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
38435 "(s) can now be mounted in the usual way."
38436 msgstr ""
38437
38438 #. type: textblock
38439 #: ../src/guestfs.pod:558
38440 msgid ""
38441 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
38442 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
38443 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
38444 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
38445 "underlying encrypted block device)."
38446 msgstr ""
38447
38448 #. type: =head2
38449 #: ../src/guestfs.pod:565
38450 msgid "INSPECTION"
38451 msgstr "ПЕРЕВІРКА"
38452
38453 #. type: textblock
38454 #: ../src/guestfs.pod:567
38455 msgid ""
38456 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
38457 "contains operating systems, an install CD or a live CD.  (These APIs used to "
38458 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
38459 "version 1.5.3 the most frequently used part of this library has been "
38460 "rewritten in C and moved into the core code)."
38461 msgstr ""
38462
38463 #. type: textblock
38464 #: ../src/guestfs.pod:574
38465 msgid ""
38466 "Add all disks belonging to the unknown virtual machine and call L</"
38467 "guestfs_launch> in the usual way."
38468 msgstr ""
38469
38470 #. type: textblock
38471 #: ../src/guestfs.pod:577
38472 msgid ""
38473 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
38474 "and certain heuristics, and returns a list of operating systems that were "
38475 "found.  An empty list means none were found.  A single element is the root "
38476 "filesystem of the operating system.  For dual- or multi-boot guests, "
38477 "multiple roots can be returned, each one corresponding to a separate "
38478 "operating system.  (Multi-boot virtual machines are extremely rare in the "
38479 "world of virtualization, but since this scenario can happen, we have built "
38480 "libguestfs to deal with it.)"
38481 msgstr ""
38482
38483 #. type: textblock
38484 #: ../src/guestfs.pod:586
38485 msgid ""
38486 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
38487 "to get additional details about that operating system.  For example, call L</"
38488 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
38489 "Windows and Linux-based operating systems respectively."
38490 msgstr ""
38491
38492 #. type: textblock
38493 #: ../src/guestfs.pod:592
38494 msgid ""
38495 "Un*x-like and Linux-based operating systems usually consist of several "
38496 "filesystems which are mounted at boot time (for example, a separate boot "
38497 "partition mounted on C</boot>).  The inspection rules are able to detect how "
38498 "filesystems correspond to mount points.  Call "
38499 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
38500 "hash table like this example:"
38501 msgstr ""
38502
38503 #. type: verbatim
38504 #: ../src/guestfs.pod:599
38505 #, no-wrap
38506 msgid ""
38507 " /boot => /dev/sda1\n"
38508 " /     => /dev/vg_guest/lv_root\n"
38509 " /usr  => /dev/vg_guest/lv_usr\n"
38510 "\n"
38511 msgstr ""
38512 " /boot => /dev/sda1\n"
38513 " /     => /dev/vg_guest/lv_root\n"
38514 " /usr  => /dev/vg_guest/lv_usr\n"
38515 "\n"
38516
38517 #. type: textblock
38518 #: ../src/guestfs.pod:603
38519 msgid ""
38520 "The caller can then make calls to L</guestfs_mount_options> to mount the "
38521 "filesystems as suggested."
38522 msgstr ""
38523
38524 #. type: textblock
38525 #: ../src/guestfs.pod:606
38526 msgid ""
38527 "Be careful to mount filesystems in the right order (eg. C</> before C</"
38528 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
38529 msgstr ""
38530
38531 #. type: textblock
38532 #: ../src/guestfs.pod:610
38533 msgid ""
38534 "Inspection currently only works for some common operating systems.  "
38535 "Contributors are welcome to send patches for other operating systems that we "
38536 "currently cannot detect."
38537 msgstr ""
38538
38539 #. type: textblock
38540 #: ../src/guestfs.pod:614
38541 msgid ""
38542 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
38543 "for more details.  The L</guestfs_inspect_os> function just ignores any "
38544 "encrypted devices."
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../src/guestfs.pod:618
38549 msgid ""
38550 "A note on the implementation: The call L</guestfs_inspect_os> performs "
38551 "inspection and caches the results in the guest handle.  Subsequent calls to "
38552 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
38553 "read the disks.  If you change the content of the guest disks, you can redo "
38554 "inspection by calling L</guestfs_inspect_os> again.  (L</"
38555 "guestfs_inspect_list_applications> works a little differently from the other "
38556 "calls and does read the disks.  See documentation for that function for "
38557 "details)."
38558 msgstr ""
38559
38560 #. type: =head3
38561 #: ../src/guestfs.pod:627
38562 msgid "INSPECTING INSTALL DISKS"
38563 msgstr ""
38564
38565 #. type: textblock
38566 #: ../src/guestfs.pod:629
38567 msgid ""
38568 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
38569 "CDs and more."
38570 msgstr ""
38571
38572 #. type: textblock
38573 #: ../src/guestfs.pod:632
38574 msgid ""
38575 "Call L</guestfs_inspect_get_format> to return the format of the operating "
38576 "system, which currently can be C<installed> (a regular operating system) or "
38577 "C<installer> (some sort of install disk)."
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../src/guestfs.pod:636
38582 msgid ""
38583 "Further information is available about the operating system that can be "
38584 "installed using the regular inspection APIs like L</"
38585 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
38586 msgstr ""
38587
38588 #. type: textblock
38589 #: ../src/guestfs.pod:641
38590 msgid ""
38591 "Some additional information specific to installer disks is also available "
38592 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
38593 "guestfs_inspect_is_multipart> calls."
38594 msgstr ""
38595
38596 #. type: =head2
38597 #: ../src/guestfs.pod:646
38598 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
38599 msgstr ""
38600
38601 #. type: textblock
38602 #: ../src/guestfs.pod:648
38603 msgid ""
38604 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
38605 "ntfs-3g.org/> driver."
38606 msgstr ""
38607
38608 #. type: =head3
38609 #: ../src/guestfs.pod:651
38610 msgid "DRIVE LETTERS AND PATHS"
38611 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
38612
38613 #. type: textblock
38614 #: ../src/guestfs.pod:653
38615 msgid ""
38616 "DOS and Windows still use drive letters, and the filesystems are always "
38617 "treated as case insensitive by Windows itself, and therefore you might find "
38618 "a Windows configuration file referring to a path like C<c:\\windows"
38619 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
38620 "might be referred to as C</WINDOWS/System32>."
38621 msgstr ""
38622
38623 #. type: textblock
38624 #: ../src/guestfs.pod:659
38625 msgid ""
38626 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
38627 "L</guestfs_inspect_get_drive_mappings>)"
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../src/guestfs.pod:662
38632 msgid ""
38633 "Dealing with separator characters (backslash vs forward slash) is outside "
38634 "the scope of libguestfs, but usually a simple character replacement will "
38635 "work."
38636 msgstr ""
38637
38638 #. type: textblock
38639 #: ../src/guestfs.pod:666
38640 msgid ""
38641 "To resolve the case insensitivity of paths, call L</"
38642 "guestfs_case_sensitive_path>."
38643 msgstr ""
38644
38645 #. type: =head3
38646 #: ../src/guestfs.pod:669
38647 msgid "ACCESSING THE WINDOWS REGISTRY"
38648 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
38649
38650 #. type: textblock
38651 #: ../src/guestfs.pod:671
38652 msgid ""
38653 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
38654 "files, through the library C<hivex> which is part of the libguestfs project "
38655 "although ships as a separate tarball.  You have to locate and download the "
38656 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
38657 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
38658 "reg(1)> for more help on this issue."
38659 msgstr ""
38660
38661 #. type: =head3
38662 #: ../src/guestfs.pod:679
38663 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
38664 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
38665
38666 #. type: textblock
38667 #: ../src/guestfs.pod:681
38668 msgid ""
38669 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
38670 "provide something which looks like a Linux symlink.  The way it tries to do "
38671 "the rewriting is described here:"
38672 msgstr ""
38673
38674 #. type: textblock
38675 #: ../src/guestfs.pod:685
38676 msgid ""
38677 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38678 "symbolic-links/>"
38679 msgstr ""
38680 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38681 "symbolic-links/>"
38682
38683 #. type: textblock
38684 #: ../src/guestfs.pod:687
38685 msgid ""
38686 "The essential problem is that ntfs-3g simply does not have enough "
38687 "information to do a correct job.  NTFS links can contain drive letters and "
38688 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
38689 "It is almost certainly the case that libguestfs callers should ignore what "
38690 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
38691 msgstr ""
38692
38693 #. type: textblock
38694 #: ../src/guestfs.pod:694
38695 msgid ""
38696 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
38697 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
38698 "attribute, and read the raw reparse data from that (you can find the format "
38699 "documented in various places around the web)."
38700 msgstr ""
38701
38702 #. type: =head3
38703 #: ../src/guestfs.pod:699
38704 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
38705 msgstr ""
38706
38707 #. type: textblock
38708 #: ../src/guestfs.pod:701
38709 msgid ""
38710 "There are other useful extended attributes that can be read from ntfs-3g "
38711 "filesystems (using L</guestfs_getxattr>).  See:"
38712 msgstr ""
38713
38714 #. type: textblock
38715 #: ../src/guestfs.pod:704
38716 msgid ""
38717 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38718 msgstr ""
38719 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38720
38721 #. type: =head2
38722 #: ../src/guestfs.pod:706
38723 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
38724 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
38725
38726 #. type: textblock
38727 #: ../src/guestfs.pod:708
38728 msgid ""
38729 "Although we don't want to discourage you from using the C API, we will "
38730 "mention here that the same API is also available in other languages."
38731 msgstr ""
38732
38733 #. type: textblock
38734 #: ../src/guestfs.pod:711
38735 msgid ""
38736 "The API is broadly identical in all supported languages.  This means that "
38737 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
38738 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
38739 "OCaml.  In other words, a straightforward, predictable isomorphism between "
38740 "each language."
38741 msgstr ""
38742
38743 #. type: textblock
38744 #: ../src/guestfs.pod:717
38745 msgid ""
38746 "Error messages are automatically transformed into exceptions if the language "
38747 "supports it."
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:720
38752 msgid ""
38753 "We don't try to \"object orientify\" parts of the API in OO languages, "
38754 "although contributors are welcome to write higher level APIs above what we "
38755 "provide in their favourite languages if they wish."
38756 msgstr ""
38757
38758 #. type: =item
38759 #: ../src/guestfs.pod:726
38760 msgid "B<C++>"
38761 msgstr "B<C++>"
38762
38763 #. type: textblock
38764 #: ../src/guestfs.pod:728
38765 msgid ""
38766 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
38767 "identical to the C API.  C++ classes and exceptions are not used."
38768 msgstr ""
38769
38770 #. type: =item
38771 #: ../src/guestfs.pod:732
38772 msgid "B<C#>"
38773 msgstr "B<C#>"
38774
38775 #. type: textblock
38776 #: ../src/guestfs.pod:734
38777 msgid ""
38778 "The C# bindings are highly experimental.  Please read the warnings at the "
38779 "top of C<csharp/Libguestfs.cs>."
38780 msgstr ""
38781
38782 #. type: =item
38783 #: ../src/guestfs.pod:737
38784 msgid "B<Erlang>"
38785 msgstr ""
38786
38787 #. type: textblock
38788 #: ../src/guestfs.pod:739
38789 msgid "See L<guestfs-erlang(3)>."
38790 msgstr ""
38791
38792 #. type: =item
38793 #: ../src/guestfs.pod:741
38794 msgid "B<Haskell>"
38795 msgstr "B<Haskell>"
38796
38797 #. type: textblock
38798 #: ../src/guestfs.pod:743
38799 msgid ""
38800 "This is the only language binding that is working but incomplete.  Only "
38801 "calls which return simple integers have been bound in Haskell, and we are "
38802 "looking for help to complete this binding."
38803 msgstr ""
38804
38805 #. type: =item
38806 #: ../src/guestfs.pod:747
38807 msgid "B<Java>"
38808 msgstr "B<Java>"
38809
38810 #. type: textblock
38811 #: ../src/guestfs.pod:749
38812 msgid ""
38813 "Full documentation is contained in the Javadoc which is distributed with "
38814 "libguestfs.  For examples, see L<guestfs-java(3)>."
38815 msgstr ""
38816
38817 #. type: =item
38818 #: ../src/guestfs.pod:752
38819 msgid "B<OCaml>"
38820 msgstr "B<OCaml>"
38821
38822 #. type: textblock
38823 #: ../src/guestfs.pod:754
38824 msgid "See L<guestfs-ocaml(3)>."
38825 msgstr "Див. L<guestfs-ocaml(3)>."
38826
38827 #. type: =item
38828 #: ../src/guestfs.pod:756
38829 msgid "B<Perl>"
38830 msgstr "B<Perl>"
38831
38832 #. type: textblock
38833 #: ../src/guestfs.pod:758
38834 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
38835 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
38836
38837 #. type: =item
38838 #: ../src/guestfs.pod:760
38839 msgid "B<PHP>"
38840 msgstr "B<PHP>"
38841
38842 #. type: textblock
38843 #: ../src/guestfs.pod:762
38844 msgid ""
38845 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
38846 "the php-libguestfs package for your distribution."
38847 msgstr ""
38848
38849 #. type: textblock
38850 #: ../src/guestfs.pod:765
38851 msgid "The PHP binding only works correctly on 64 bit machines."
38852 msgstr ""
38853
38854 #. type: =item
38855 #: ../src/guestfs.pod:767
38856 msgid "B<Python>"
38857 msgstr "B<Python>"
38858
38859 #. type: textblock
38860 #: ../src/guestfs.pod:769
38861 msgid "See L<guestfs-python(3)>."
38862 msgstr "Див. L<guestfs-python(3)>."
38863
38864 #. type: =item
38865 #: ../src/guestfs.pod:771
38866 msgid "B<Ruby>"
38867 msgstr "B<Ruby>"
38868
38869 #. type: textblock
38870 #: ../src/guestfs.pod:773
38871 msgid "See L<guestfs-ruby(3)>."
38872 msgstr "Див. L<guestfs-ruby(3)>."
38873
38874 #. type: =item
38875 #: ../src/guestfs.pod:775
38876 msgid "B<shell scripts>"
38877 msgstr "B<скрипти оболонки>"
38878
38879 #. type: textblock
38880 #: ../src/guestfs.pod:777
38881 msgid "See L<guestfish(1)>."
38882 msgstr "Див. L<guestfish(1)>."
38883
38884 #. type: =head2
38885 #: ../src/guestfs.pod:781
38886 msgid "LIBGUESTFS GOTCHAS"
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:783
38891 msgid ""
38892 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
38893 "system [...] that works in the way it is documented but is counterintuitive "
38894 "and almost invites mistakes.\""
38895 msgstr ""
38896
38897 #. type: textblock
38898 #: ../src/guestfs.pod:787
38899 msgid ""
38900 "Since we developed libguestfs and the associated tools, there are several "
38901 "things we would have designed differently, but are now stuck with for "
38902 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
38903 "release, you can expect these to change.  Beware of them."
38904 msgstr ""
38905
38906 #. type: =item
38907 #: ../src/guestfs.pod:795
38908 msgid "Autosync / forgetting to sync."
38909 msgstr ""
38910
38911 #. type: textblock
38912 #: ../src/guestfs.pod:797
38913 msgid ""
38914 "I<Update:> Autosync is enabled by default for all API users starting from "
38915 "libguestfs 1.5.24.  This section only applies to older versions."
38916 msgstr ""
38917
38918 #. type: textblock
38919 #: ../src/guestfs.pod:800
38920 msgid ""
38921 "When modifying a filesystem from C or another language, you B<must> unmount "
38922 "all filesystems and call L</guestfs_sync> explicitly before you close the "
38923 "libguestfs handle.  You can also call:"
38924 msgstr ""
38925
38926 #. type: verbatim
38927 #: ../src/guestfs.pod:804
38928 #, no-wrap
38929 msgid ""
38930 " guestfs_set_autosync (g, 1);\n"
38931 "\n"
38932 msgstr ""
38933 " guestfs_set_autosync (g, 1);\n"
38934 "\n"
38935
38936 #. type: textblock
38937 #: ../src/guestfs.pod:806
38938 msgid ""
38939 "to have the unmount/sync done automatically for you when the handle 'g' is "
38940 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
38941 msgstr ""
38942
38943 #. type: textblock
38944 #: ../src/guestfs.pod:810
38945 msgid ""
38946 "If you forget to do this, then it is entirely possible that your changes "
38947 "won't be written out, or will be partially written, or (very rarely) that "
38948 "you'll get disk corruption."
38949 msgstr ""
38950
38951 #. type: textblock
38952 #: ../src/guestfs.pod:814
38953 msgid ""
38954 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
38955 "guestfish scripts that forget to sync will work just fine, which can make "
38956 "this very puzzling if you are trying to debug a problem."
38957 msgstr ""
38958
38959 #. type: =item
38960 #: ../src/guestfs.pod:818
38961 msgid "Mount option C<-o sync> should not be the default."
38962 msgstr ""
38963
38964 #. type: textblock
38965 #: ../src/guestfs.pod:820
38966 msgid ""
38967 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
38968 "libguestfs 1.13.16.  This section only applies to older versions."
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../src/guestfs.pod:823
38973 msgid ""
38974 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
38975 "However C<-o sync> does not add any reliability benefit, but does have a "
38976 "very large performance impact."
38977 msgstr ""
38978
38979 #. type: textblock
38980 #: ../src/guestfs.pod:827
38981 msgid ""
38982 "The work around is to use L</guestfs_mount_options> and set the mount "
38983 "options that you actually want to use."
38984 msgstr ""
38985
38986 #. type: =item
38987 #: ../src/guestfs.pod:830
38988 msgid "Read-only should be the default."
38989 msgstr ""
38990
38991 #. type: textblock
38992 #: ../src/guestfs.pod:832
38993 msgid ""
38994 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
38995 "specify I<--rw> if you want to make changes to the image."
38996 msgstr ""
38997
38998 #. type: textblock
38999 #: ../src/guestfs.pod:835
39000 msgid "This would reduce the potential to corrupt live VM images."
39001 msgstr ""
39002
39003 #. type: textblock
39004 #: ../src/guestfs.pod:837
39005 msgid ""
39006 "Note that many filesystems change the disk when you just mount and unmount, "
39007 "even if you didn't perform any writes.  You need to use L</"
39008 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
39009 msgstr ""
39010
39011 #. type: =item
39012 #: ../src/guestfs.pod:841
39013 msgid "guestfish command line is hard to use."
39014 msgstr ""
39015
39016 #. type: textblock
39017 #: ../src/guestfs.pod:843
39018 msgid ""
39019 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
39020 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
39021 "exist, so it fails.  In earlier versions of guestfish the error message was "
39022 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
39023 "we should have used C<guestfish -c command> to run commands."
39024 msgstr ""
39025
39026 #. type: =item
39027 #: ../src/guestfs.pod:850
39028 msgid "guestfish megabyte modifiers don't work right on all commands"
39029 msgstr ""
39030
39031 #. type: textblock
39032 #: ../src/guestfs.pod:852
39033 msgid ""
39034 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
39035 "other modifiers).  What guestfish actually does is to multiply the number "
39036 "part by the modifier part and pass the result to the C API.  However this "
39037 "doesn't work for a few APIs which aren't expecting bytes, but are already "
39038 "expecting some other unit (eg. megabytes)."
39039 msgstr ""
39040
39041 #. type: textblock
39042 #: ../src/guestfs.pod:859
39043 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
39044 msgstr ""
39045
39046 #. type: verbatim
39047 #: ../src/guestfs.pod:861
39048 #, no-wrap
39049 msgid ""
39050 " lvcreate LV VG 100M\n"
39051 "\n"
39052 msgstr ""
39053 " lvcreate LV VG 100M\n"
39054 "\n"
39055
39056 #. type: textblock
39057 #: ../src/guestfs.pod:863
39058 msgid ""
39059 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
39060 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
39061 "megabytes * megabytes) logical volume.  The error message you get from this "
39062 "is also a little obscure."
39063 msgstr ""
39064
39065 #. type: textblock
39066 #: ../src/guestfs.pod:868
39067 msgid ""
39068 "This could be fixed in the generator by specially marking parameters and "
39069 "return values which take bytes or other units."
39070 msgstr ""
39071
39072 #. type: =item
39073 #: ../src/guestfs.pod:871
39074 msgid "Ambiguity between devices and paths"
39075 msgstr ""
39076
39077 #. type: textblock
39078 #: ../src/guestfs.pod:873
39079 msgid ""
39080 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
39081 "sdb2>) and a similar pathname.  A file might just happen to be called "
39082 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
39083 msgstr ""
39084
39085 #. type: textblock
39086 #: ../src/guestfs.pod:878
39087 msgid ""
39088 "In the current API we usually resolve this ambiguity by having two separate "
39089 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
39090 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
39091 "detecting if the path supplied begins with C</dev/>."
39092 msgstr ""
39093
39094 #. type: textblock
39095 #: ../src/guestfs.pod:884
39096 msgid ""
39097 "To avoid both the ambiguity and the need to duplicate some calls, we could "
39098 "make paths/devices into structured names.  One way to do this would be to "
39099 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
39100 "aspect of grub.  Another way would be to use a structured type, equivalent "
39101 "to this OCaml type:"
39102 msgstr ""
39103
39104 #. type: verbatim
39105 #: ../src/guestfs.pod:890
39106 #, no-wrap
39107 msgid ""
39108 " type path = Path of string | Device of int | Partition of int * int\n"
39109 "\n"
39110 msgstr ""
39111
39112 #. type: textblock
39113 #: ../src/guestfs.pod:892
39114 msgid "which would allow you to pass arguments like:"
39115 msgstr ""
39116
39117 #. type: verbatim
39118 #: ../src/guestfs.pod:894
39119 #, no-wrap
39120 msgid ""
39121 " Path \"/foo/bar\"\n"
39122 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
39123 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
39124 " Path \"/dev/sdb2\"    (* not a device *)\n"
39125 "\n"
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:899
39130 msgid ""
39131 "As you can see there are still problems to resolve even with this "
39132 "representation.  Also consider how it might work in guestfish."
39133 msgstr ""
39134
39135 #. type: =head2
39136 #: ../src/guestfs.pod:904
39137 msgid "KEYS AND PASSPHRASES"
39138 msgstr "КЛЮЧІ І ПАРОЛІ"
39139
39140 #. type: textblock
39141 #: ../src/guestfs.pod:906
39142 msgid ""
39143 "Certain libguestfs calls take a parameter that contains sensitive key "
39144 "material, passed in as a C string."
39145 msgstr ""
39146
39147 #. type: textblock
39148 #: ../src/guestfs.pod:909
39149 msgid ""
39150 "In the future we would hope to change the libguestfs implementation so that "
39151 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
39152 "swap.  However this is I<not> done at the moment, because of the complexity "
39153 "of such an implementation."
39154 msgstr ""
39155
39156 #. type: textblock
39157 #: ../src/guestfs.pod:914
39158 msgid ""
39159 "Therefore you should be aware that any key parameter you pass to libguestfs "
39160 "might end up being written out to the swap partition.  If this is a concern, "
39161 "scrub the swap partition or don't use libguestfs on encrypted devices."
39162 msgstr ""
39163
39164 #. type: =head2
39165 #: ../src/guestfs.pod:919
39166 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:921
39171 msgid ""
39172 "All high-level libguestfs actions are synchronous.  If you want to use "
39173 "libguestfs asynchronously then you must create a thread."
39174 msgstr ""
39175
39176 #. type: textblock
39177 #: ../src/guestfs.pod:924
39178 msgid ""
39179 "Only use the handle from a single thread.  Either use the handle exclusively "
39180 "from one thread, or provide your own mutex so that two threads cannot issue "
39181 "calls on the same handle at the same time."
39182 msgstr ""
39183
39184 #. type: textblock
39185 #: ../src/guestfs.pod:928
39186 msgid ""
39187 "See the graphical program guestfs-browser for one possible architecture for "
39188 "multithreaded programs using libvirt and libguestfs."
39189 msgstr ""
39190
39191 #. type: =head2
39192 #: ../src/guestfs.pod:931
39193 msgid "PATH"
39194 msgstr "ШЛЯХ"
39195
39196 #. type: textblock
39197 #: ../src/guestfs.pod:933
39198 msgid ""
39199 "Libguestfs needs a supermin appliance, which it finds by looking along an "
39200 "internal path."
39201 msgstr ""
39202
39203 #. type: textblock
39204 #: ../src/guestfs.pod:936
39205 msgid ""
39206 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
39207 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
39208 msgstr ""
39209
39210 #. type: textblock
39211 #: ../src/guestfs.pod:939
39212 msgid ""
39213 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
39214 "to change the directories that libguestfs will search in.  The value is a "
39215 "colon-separated list of paths.  The current directory is I<not> searched "
39216 "unless the path contains an empty element or C<.>.  For example "
39217 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
39218 "then C</usr/lib/guestfs>."
39219 msgstr ""
39220
39221 #. type: =head2
39222 #: ../src/guestfs.pod:946
39223 msgid "QEMU WRAPPERS"
39224 msgstr ""
39225
39226 #. type: textblock
39227 #: ../src/guestfs.pod:948
39228 msgid ""
39229 "If you want to compile your own qemu, run qemu from a non-standard location, "
39230 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
39231 "around qemu."
39232 msgstr ""
39233
39234 #. type: textblock
39235 #: ../src/guestfs.pod:952
39236 msgid ""
39237 "There is one important rule to remember: you I<must C<exec qemu>> as the "
39238 "last command in the shell script (so that qemu replaces the shell and "
39239 "becomes the direct child of the libguestfs-using program).  If you don't do "
39240 "this, then the qemu process won't be cleaned up correctly."
39241 msgstr ""
39242
39243 #. type: textblock
39244 #: ../src/guestfs.pod:957
39245 msgid ""
39246 "Here is an example of a wrapper, where I have built my own copy of qemu from "
39247 "source:"
39248 msgstr ""
39249
39250 #. type: verbatim
39251 #: ../src/guestfs.pod:960
39252 #, no-wrap
39253 msgid ""
39254 " #!/bin/sh -\n"
39255 " qemudir=/home/rjones/d/qemu\n"
39256 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39257 "\n"
39258 msgstr ""
39259 " #!/bin/sh -\n"
39260 " qemudir=/home/rjones/d/qemu\n"
39261 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39262 "\n"
39263
39264 #. type: textblock
39265 #: ../src/guestfs.pod:964
39266 msgid ""
39267 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
39268 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
39269 "example:"
39270 msgstr ""
39271
39272 #. type: verbatim
39273 #: ../src/guestfs.pod:968
39274 #, no-wrap
39275 msgid ""
39276 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39277 "\n"
39278 msgstr ""
39279 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39280 "\n"
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:970
39284 msgid ""
39285 "Note that libguestfs also calls qemu with the -help and -version options in "
39286 "order to determine features."
39287 msgstr ""
39288
39289 #. type: textblock
39290 #: ../src/guestfs.pod:973
39291 msgid ""
39292 "Wrappers can also be used to edit the options passed to qemu.  In the "
39293 "following example, the C<-machine ...> option (C<-machine> and the following "
39294 "argument) are removed from the command line and replaced with C<-machine pc,"
39295 "accel=tcg>.  The while loop iterates over the options until it finds the "
39296 "right one to remove, putting the remaining options into the C<args> array."
39297 msgstr ""
39298
39299 #. type: verbatim
39300 #: ../src/guestfs.pod:982
39301 #, no-wrap
39302 msgid ""
39303 " i=0\n"
39304 " while [ $# -gt 0 ]; do\n"
39305 "     case \"$1\" in\n"
39306 "     -machine)\n"
39307 "         shift 2;;\n"
39308 "     *)\n"
39309 "         args[i]=\"$1\"\n"
39310 "         (( i++ ))\n"
39311 "         shift ;;\n"
39312 "     esac\n"
39313 " done\n"
39314 " \n"
39315 msgstr ""
39316
39317 #. type: verbatim
39318 #: ../src/guestfs.pod:994
39319 #, no-wrap
39320 msgid ""
39321 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
39322 "\n"
39323 msgstr ""
39324
39325 #. type: =head2
39326 #: ../src/guestfs.pod:996
39327 msgid "ATTACHING TO RUNNING DAEMONS"
39328 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
39329
39330 #. type: textblock
39331 #: ../src/guestfs.pod:998
39332 msgid ""
39333 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
39334 "babies.  Use with caution."
39335 msgstr ""
39336
39337 #. type: textblock
39338 #: ../src/guestfs.pod:1001
39339 msgid ""
39340 "I<Note (2):> This section explains how to attach to a running daemon from a "
39341 "low level perspective.  For most users, simply using virt tools such as "
39342 "L<guestfish(1)> with the I<--live> option will \"just work\"."
39343 msgstr ""
39344
39345 #. type: =head3
39346 #: ../src/guestfs.pod:1005
39347 msgid "Using guestfs_set_attach_method"
39348 msgstr "За допомогою guestfs_set_attach_method"
39349
39350 #. type: textblock
39351 #: ../src/guestfs.pod:1007
39352 msgid ""
39353 "By calling L</guestfs_set_attach_method> you can change how the library "
39354 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
39355 "ARCHITECTURE> for some background)."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:1011
39360 msgid ""
39361 "The normal attach method is C<appliance>, where a small appliance is created "
39362 "containing the daemon, and then the library connects to this."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../src/guestfs.pod:1014
39367 msgid ""
39368 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
39369 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
39370 "daemon over the Unix domain socket."
39371 msgstr ""
39372
39373 #. type: textblock
39374 #: ../src/guestfs.pod:1018
39375 msgid ""
39376 "The normal use for this is to connect to a running virtual machine that "
39377 "contains a C<guestfsd> daemon, and send commands so you can read and write "
39378 "files inside the live virtual machine."
39379 msgstr ""
39380
39381 #. type: =head3
39382 #: ../src/guestfs.pod:1022
39383 msgid "Using guestfs_add_domain with live flag"
39384 msgstr "За допомогою guestfs_add_domain з прапорцем live"
39385
39386 #. type: textblock
39387 #: ../src/guestfs.pod:1024
39388 msgid ""
39389 "L</guestfs_add_domain> provides some help for getting the correct attach "
39390 "method.  If you pass the C<live> option to this function, then (if the "
39391 "virtual machine is running) it will examine the libvirt XML looking for a "
39392 "virtio-serial channel to connect to:"
39393 msgstr ""
39394
39395 #. type: verbatim
39396 #: ../src/guestfs.pod:1030
39397 #, no-wrap
39398 msgid ""
39399 " <domain>\n"
39400 "   ...\n"
39401 "   <devices>\n"
39402 "     ...\n"
39403 "     <channel type='unix'>\n"
39404 "       <source mode='bind' path='/path/to/socket'/>\n"
39405 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39406 "     </channel>\n"
39407 "     ...\n"
39408 "   </devices>\n"
39409 " </domain>\n"
39410 "\n"
39411 msgstr ""
39412 " <domain>\n"
39413 "   ...\n"
39414 "   <devices>\n"
39415 "     ...\n"
39416 "     <channel type='unix'>\n"
39417 "       <source mode='bind' path='/path/to/socket'/>\n"
39418 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39419 "     </channel>\n"
39420 "     ...\n"
39421 "   </devices>\n"
39422 " </domain>\n"
39423 "\n"
39424
39425 #. type: textblock
39426 #: ../src/guestfs.pod:1042
39427 msgid ""
39428 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
39429 "method to C<unix:/path/to/socket>."
39430 msgstr ""
39431
39432 #. type: textblock
39433 #: ../src/guestfs.pod:1045
39434 msgid ""
39435 "Some of the libguestfs tools (including guestfish) support a I<--live> "
39436 "option which is passed through to L</guestfs_add_domain> thus allowing you "
39437 "to attach to and modify live virtual machines."
39438 msgstr ""
39439
39440 #. type: textblock
39441 #: ../src/guestfs.pod:1049
39442 msgid ""
39443 "The virtual machine needs to have been set up beforehand so that it has the "
39444 "virtio-serial channel and so that guestfsd is running inside it."
39445 msgstr ""
39446
39447 #. type: =head2
39448 #: ../src/guestfs.pod:1053
39449 msgid "ABI GUARANTEE"
39450 msgstr "ГАРАНТІЯ ЩОДО ABI"
39451
39452 #. type: textblock
39453 #: ../src/guestfs.pod:1055
39454 msgid ""
39455 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
39456 "actions as outlined in this section.  Although we will deprecate some "
39457 "actions, for example if they get replaced by newer calls, we will keep the "
39458 "old actions forever.  This allows you the developer to program in confidence "
39459 "against the libguestfs API."
39460 msgstr ""
39461
39462 #. type: =head2
39463 #: ../src/guestfs.pod:1061
39464 msgid "BLOCK DEVICE NAMING"
39465 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
39466
39467 #. type: textblock
39468 #: ../src/guestfs.pod:1063
39469 msgid ""
39470 "In the kernel there is now quite a profusion of schemata for naming block "
39471 "devices (in this context, by I<block device> I mean a physical or virtual "
39472 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
39473 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
39474 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
39475 "for the old IDE driver (particularly for SATA devices) those devices also "
39476 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
39477 "paravirtualized drivers.  This has created several different naming systems, "
39478 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../src/guestfs.pod:1075
39483 msgid ""
39484 "As discussed above, libguestfs uses a qemu appliance running an embedded "
39485 "Linux kernel to access block devices.  We can run a variety of appliances "
39486 "based on a variety of Linux kernels."
39487 msgstr ""
39488
39489 #. type: textblock
39490 #: ../src/guestfs.pod:1079
39491 msgid ""
39492 "This causes a problem for libguestfs because many API calls use device or "
39493 "partition names.  Working scripts and the recipe (example) scripts that we "
39494 "make available over the internet could fail if the naming scheme changes."
39495 msgstr ""
39496
39497 #. type: textblock
39498 #: ../src/guestfs.pod:1084
39499 msgid ""
39500 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
39501 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
39502 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
39503 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
39504 msgstr ""
39505
39506 #. type: textblock
39507 #: ../src/guestfs.pod:1090
39508 msgid ""
39509 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
39510 "L</guestfs_list_partitions> and similar calls return the true names of the "
39511 "devices and partitions as known to the appliance."
39512 msgstr ""
39513
39514 #. type: =head3
39515 #: ../src/guestfs.pod:1095
39516 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
39517 msgstr ""
39518
39519 #. type: textblock
39520 #: ../src/guestfs.pod:1097
39521 msgid ""
39522 "Usually this translation is transparent.  However in some (very rare)  cases "
39523 "you may need to know the exact algorithm.  Such cases include where you use "
39524 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
39525 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
39526 msgstr ""
39527
39528 #. type: textblock
39529 #: ../src/guestfs.pod:1103
39530 msgid ""
39531 "The algorithm is applied only to I<parameters> which are known to be either "
39532 "device or partition names.  Return values from functions such as L</"
39533 "guestfs_list_devices> are never changed."
39534 msgstr ""
39535
39536 #. type: textblock
39537 #: ../src/guestfs.pod:1111
39538 msgid "Is the string a parameter which is a device or partition name?"
39539 msgstr ""
39540
39541 #. type: textblock
39542 #: ../src/guestfs.pod:1115
39543 msgid "Does the string begin with C</dev/sd>?"
39544 msgstr "Чи починається рядок з C</dev/sd>?"
39545
39546 #. type: textblock
39547 #: ../src/guestfs.pod:1119
39548 msgid ""
39549 "Does the named device exist? If so, we use that device.  However if I<not> "
39550 "then we continue with this algorithm."
39551 msgstr ""
39552
39553 #. type: textblock
39554 #: ../src/guestfs.pod:1124
39555 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
39556 msgstr ""
39557
39558 #. type: textblock
39559 #: ../src/guestfs.pod:1126
39560 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../src/guestfs.pod:1128
39565 msgid "If that named device exists, use it.  If not, continue."
39566 msgstr ""
39567
39568 #. type: textblock
39569 #: ../src/guestfs.pod:1132
39570 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
39571 msgstr ""
39572
39573 #. type: textblock
39574 #: ../src/guestfs.pod:1134
39575 msgid "If that named device exists, use it.  If not, return an error."
39576 msgstr ""
39577
39578 #. type: =head3
39579 #: ../src/guestfs.pod:1138
39580 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
39581 msgstr ""
39582
39583 #. type: textblock
39584 #: ../src/guestfs.pod:1140
39585 msgid ""
39586 "Although the standard naming scheme and automatic translation is useful for "
39587 "simple programs and guestfish scripts, for larger programs it is best not to "
39588 "rely on this mechanism."
39589 msgstr ""
39590
39591 #. type: textblock
39592 #: ../src/guestfs.pod:1144
39593 msgid ""
39594 "Where possible for maximum future portability programs using libguestfs "
39595 "should use these future-proof techniques:"
39596 msgstr ""
39597
39598 #. type: textblock
39599 #: ../src/guestfs.pod:1151
39600 msgid ""
39601 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
39602 "device names, and then use those names directly."
39603 msgstr ""
39604
39605 #. type: textblock
39606 #: ../src/guestfs.pod:1154
39607 msgid ""
39608 "Since those device names exist by definition, they will never be translated."
39609 msgstr ""
39610
39611 #. type: textblock
39612 #: ../src/guestfs.pod:1159
39613 msgid ""
39614 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
39615 "filesystem labels."
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../src/guestfs.pod:1166
39620 msgid ""
39621 "This section discusses security implications of using libguestfs, "
39622 "particularly with untrusted or malicious guests or disk images."
39623 msgstr ""
39624
39625 #. type: =head2
39626 #: ../src/guestfs.pod:1169
39627 msgid "GENERAL SECURITY CONSIDERATIONS"
39628 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
39629
39630 #. type: textblock
39631 #: ../src/guestfs.pod:1171
39632 msgid ""
39633 "Be careful with any files or data that you download from a guest (by "
39634 "\"download\" we mean not just the L</guestfs_download> command but any "
39635 "command that reads files, filenames, directories or anything else from a "
39636 "disk image).  An attacker could manipulate the data to fool your program "
39637 "into doing the wrong thing.  Consider cases such as:"
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../src/guestfs.pod:1181
39642 msgid "the data (file etc) not being present"
39643 msgstr ""
39644
39645 #. type: textblock
39646 #: ../src/guestfs.pod:1185
39647 msgid "being present but empty"
39648 msgstr ""
39649
39650 #. type: textblock
39651 #: ../src/guestfs.pod:1189
39652 msgid "being much larger than normal"
39653 msgstr ""
39654
39655 #. type: textblock
39656 #: ../src/guestfs.pod:1193
39657 msgid "containing arbitrary 8 bit data"
39658 msgstr ""
39659
39660 #. type: textblock
39661 #: ../src/guestfs.pod:1197
39662 msgid "being in an unexpected character encoding"
39663 msgstr ""
39664
39665 #. type: textblock
39666 #: ../src/guestfs.pod:1201
39667 msgid "containing homoglyphs."
39668 msgstr ""
39669
39670 #. type: =head2
39671 #: ../src/guestfs.pod:1205
39672 msgid "SECURITY OF MOUNTING FILESYSTEMS"
39673 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
39674
39675 #. type: textblock
39676 #: ../src/guestfs.pod:1207
39677 msgid ""
39678 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
39679 "(VFS) module can sometimes be escalated into exploits by deliberately "
39680 "creating a malicious, malformed filesystem.  These exploits are very severe "
39681 "for two reasons.  Firstly there are very many filesystem drivers in the "
39682 "kernel, and many of them are infrequently used and not much developer "
39683 "attention has been paid to the code.  Linux userspace helps potential "
39684 "crackers by detecting the filesystem type and automatically choosing the "
39685 "right VFS driver, even if that filesystem type is obscure or unexpected for "
39686 "the administrator.  Secondly, a kernel-level exploit is like a local root "
39687 "exploit (worse in some ways), giving immediate and total access to the "
39688 "system right down to the hardware level."
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:1220
39693 msgid ""
39694 "That explains why you should never mount a filesystem from an untrusted "
39695 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
39696 "inside a qemu virtual machine, usually running as a non-root user.  The "
39697 "attacker would need to write a filesystem which first exploited the kernel, "
39698 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
39699 "the libguestfs protocol, and finally to be as serious as the host kernel "
39700 "exploit it would need to escalate its privileges to root.  This multi-step "
39701 "escalation, performed by a static piece of data, is thought to be extremely "
39702 "hard to do, although we never say 'never' about security issues."
39703 msgstr ""
39704
39705 #. type: textblock
39706 #: ../src/guestfs.pod:1231
39707 msgid ""
39708 "In any case callers can reduce the attack surface by forcing the filesystem "
39709 "type when mounting (use L</guestfs_mount_vfs>)."
39710 msgstr ""
39711
39712 #. type: =head2
39713 #: ../src/guestfs.pod:1234
39714 msgid "PROTOCOL SECURITY"
39715 msgstr "ЗАХИСТ ПРОТОКОЛУ"
39716
39717 #. type: textblock
39718 #: ../src/guestfs.pod:1236
39719 msgid ""
39720 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
39721 "defined upper message size.  However a program that uses libguestfs must "
39722 "also take care - for example you can write a program that downloads a binary "
39723 "from a disk image and executes it locally, and no amount of protocol "
39724 "security will save you from the consequences."
39725 msgstr ""
39726
39727 #. type: =head2
39728 #: ../src/guestfs.pod:1242
39729 msgid "INSPECTION SECURITY"
39730 msgstr ""
39731
39732 #. type: textblock
39733 #: ../src/guestfs.pod:1244
39734 msgid ""
39735 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
39736 "directly from the guest, and these could contain any 8 bit data.  Callers "
39737 "should be careful to escape these before printing them to a structured file "
39738 "(for example, use HTML escaping if creating a web page)."
39739 msgstr ""
39740
39741 #. type: textblock
39742 #: ../src/guestfs.pod:1250
39743 msgid ""
39744 "Guest configuration may be altered in unusual ways by the administrator of "
39745 "the virtual machine, and may not reflect reality (particularly for untrusted "
39746 "or actively malicious guests).  For example we parse the hostname from "
39747 "configuration files like C</etc/sysconfig/network> that we find in the "
39748 "guest, but the guest administrator can easily manipulate these files to "
39749 "provide the wrong hostname."
39750 msgstr ""
39751
39752 #. type: textblock
39753 #: ../src/guestfs.pod:1258
39754 msgid ""
39755 "The inspection API parses guest configuration using two external libraries: "
39756 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
39757 "designed to be robust in the face of malicious data, although denial of "
39758 "service attacks are still possible, for example with oversized configuration "
39759 "files."
39760 msgstr ""
39761
39762 #. type: =head2
39763 #: ../src/guestfs.pod:1264
39764 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
39765 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
39766
39767 #. type: textblock
39768 #: ../src/guestfs.pod:1266
39769 msgid ""
39770 "Be very cautious about running commands from the guest.  By running a "
39771 "command in the guest, you are giving CPU time to a binary that you do not "
39772 "control, under the same user account as the library, albeit wrapped in qemu "
39773 "virtualization.  More information and alternatives can be found in the "
39774 "section L</RUNNING COMMANDS>."
39775 msgstr ""
39776
39777 #. type: =head2
39778 #: ../src/guestfs.pod:1272
39779 msgid "CVE-2010-3851"
39780 msgstr "CVE-2010-3851"
39781
39782 #. type: textblock
39783 #: ../src/guestfs.pod:1274
39784 msgid "https://bugzilla.redhat.com/642934"
39785 msgstr "https://bugzilla.redhat.com/642934"
39786
39787 #. type: textblock
39788 #: ../src/guestfs.pod:1276
39789 msgid ""
39790 "This security bug concerns the automatic disk format detection that qemu "
39791 "does on disk images."
39792 msgstr ""
39793
39794 #. type: textblock
39795 #: ../src/guestfs.pod:1279
39796 msgid ""
39797 "A raw disk image is just the raw bytes, there is no header.  Other disk "
39798 "images like qcow2 contain a special header.  Qemu deals with this by looking "
39799 "for one of the known headers, and if none is found then assuming the disk "
39800 "image must be raw."
39801 msgstr ""
39802
39803 #. type: textblock
39804 #: ../src/guestfs.pod:1284
39805 msgid ""
39806 "This allows a guest which has been given a raw disk image to write some "
39807 "other header.  At next boot (or when the disk image is accessed by "
39808 "libguestfs) qemu would do autodetection and think the disk image format was, "
39809 "say, qcow2 based on the header written by the guest."
39810 msgstr ""
39811
39812 #. type: textblock
39813 #: ../src/guestfs.pod:1289
39814 msgid ""
39815 "This in itself would not be a problem, but qcow2 offers many features, one "
39816 "of which is to allow a disk image to refer to another image (called the "
39817 "\"backing disk\").  It does this by placing the path to the backing disk "
39818 "into the qcow2 header.  This path is not validated and could point to any "
39819 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
39820 "\"holes\" in the qcow2 disk image, which of course is completely under the "
39821 "control of the attacker."
39822 msgstr ""
39823
39824 #. type: textblock
39825 #: ../src/guestfs.pod:1297
39826 msgid ""
39827 "In libguestfs this is rather hard to exploit except under two circumstances:"
39828 msgstr ""
39829
39830 #. type: textblock
39831 #: ../src/guestfs.pod:1304
39832 msgid "You have enabled the network or have opened the disk in write mode."
39833 msgstr ""
39834
39835 #. type: textblock
39836 #: ../src/guestfs.pod:1308
39837 msgid ""
39838 "You are also running untrusted code from the guest (see L</RUNNING "
39839 "COMMANDS>)."
39840 msgstr ""
39841
39842 #. type: textblock
39843 #: ../src/guestfs.pod:1313
39844 msgid ""
39845 "The way to avoid this is to specify the expected disk format when adding "
39846 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
39847 "should always do this if the disk is raw format, and it's a good idea for "
39848 "other cases too."
39849 msgstr ""
39850
39851 #. type: textblock
39852 #: ../src/guestfs.pod:1318
39853 msgid ""
39854 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
39855 "format is fetched from libvirt and passed through."
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../src/guestfs.pod:1321
39860 msgid ""
39861 "For libguestfs tools, use the I<--format> command line parameter as "
39862 "appropriate."
39863 msgstr ""
39864
39865 #. type: =head1
39866 #: ../src/guestfs.pod:1324
39867 msgid "CONNECTION MANAGEMENT"
39868 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
39869
39870 #. type: =head2
39871 #: ../src/guestfs.pod:1326
39872 msgid "guestfs_h *"
39873 msgstr "guestfs_h *"
39874
39875 #. type: textblock
39876 #: ../src/guestfs.pod:1328
39877 msgid ""
39878 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
39879 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
39880 "handle and release all resources used."
39881 msgstr ""
39882
39883 #. type: textblock
39884 #: ../src/guestfs.pod:1332
39885 msgid ""
39886 "For information on using multiple handles and threads, see the section L</"
39887 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
39888 msgstr ""
39889
39890 #. type: =head2
39891 #: ../src/guestfs.pod:1335
39892 msgid "guestfs_create"
39893 msgstr "guestfs_create"
39894
39895 #. type: verbatim
39896 #: ../src/guestfs.pod:1337
39897 #, no-wrap
39898 msgid ""
39899 " guestfs_h *guestfs_create (void);\n"
39900 "\n"
39901 msgstr ""
39902 " guestfs_h *guestfs_create (void);\n"
39903 "\n"
39904
39905 #. type: textblock
39906 #: ../src/guestfs.pod:1339
39907 msgid "Create a connection handle."
39908 msgstr "Створити дескриптор з’єднання."
39909
39910 #. type: textblock
39911 #: ../src/guestfs.pod:1341
39912 msgid ""
39913 "On success this returns a non-NULL pointer to a handle.  On error it returns "
39914 "NULL."
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../src/guestfs.pod:1344
39919 msgid ""
39920 "You have to \"configure\" the handle after creating it.  This includes "
39921 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
39922 "handle at least once."
39923 msgstr ""
39924
39925 #. type: textblock
39926 #: ../src/guestfs.pod:1348
39927 msgid "After configuring the handle, you have to call L</guestfs_launch>."
39928 msgstr ""
39929
39930 #. type: textblock
39931 #: ../src/guestfs.pod:1350
39932 msgid ""
39933 "You may also want to configure error handling for the handle.  See the L</"
39934 "ERROR HANDLING> section below."
39935 msgstr ""
39936
39937 #. type: =head2
39938 #: ../src/guestfs.pod:1353
39939 msgid "guestfs_close"
39940 msgstr "guestfs_close"
39941
39942 #. type: verbatim
39943 #: ../src/guestfs.pod:1355
39944 #, no-wrap
39945 msgid ""
39946 " void guestfs_close (guestfs_h *g);\n"
39947 "\n"
39948 msgstr ""
39949 " void guestfs_close (guestfs_h *g);\n"
39950 "\n"
39951
39952 #. type: textblock
39953 #: ../src/guestfs.pod:1357
39954 msgid "This closes the connection handle and frees up all resources used."
39955 msgstr ""
39956
39957 #. type: textblock
39958 #: ../src/guestfs.pod:1359
39959 msgid ""
39960 "If autosync was set on the handle and the handle was launched, then this "
39961 "implicitly calls various functions to unmount filesystems and sync the "
39962 "disk.  See L</guestfs_set_autosync> for more details."
39963 msgstr ""
39964
39965 #. type: textblock
39966 #: ../src/guestfs.pod:1363
39967 msgid "If a close callback was set on the handle, then it is called."
39968 msgstr ""
39969
39970 #. type: =head1
39971 #: ../src/guestfs.pod:1365
39972 msgid "ERROR HANDLING"
39973 msgstr "ОБРОБКА ПОМИЛОК"
39974
39975 #. type: textblock
39976 #: ../src/guestfs.pod:1367
39977 msgid ""
39978 "API functions can return errors.  For example, almost all functions that "
39979 "return C<int> will return C<-1> to indicate an error."
39980 msgstr ""
39981
39982 #. type: textblock
39983 #: ../src/guestfs.pod:1370
39984 msgid ""
39985 "Additional information is available for errors: an error message string and "
39986 "optionally an error number (errno) if the thing that failed was a system "
39987 "call."
39988 msgstr ""
39989
39990 #. type: textblock
39991 #: ../src/guestfs.pod:1374
39992 msgid ""
39993 "You can get at the additional information about the last error on the handle "
39994 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
39995 "up an error handler with L</guestfs_set_error_handler>."
39996 msgstr ""
39997
39998 #. type: textblock
39999 #: ../src/guestfs.pod:1379
40000 msgid ""
40001 "When the handle is created, a default error handler is installed which "
40002 "prints the error message string to C<stderr>.  For small short-running "
40003 "command line programs it is sufficient to do:"
40004 msgstr ""
40005
40006 #. type: verbatim
40007 #: ../src/guestfs.pod:1383
40008 #, no-wrap
40009 msgid ""
40010 " if (guestfs_launch (g) == -1)\n"
40011 "   exit (EXIT_FAILURE);\n"
40012 "\n"
40013 msgstr ""
40014 " if (guestfs_launch (g) == -1)\n"
40015 "   exit (EXIT_FAILURE);\n"
40016 "\n"
40017
40018 #. type: textblock
40019 #: ../src/guestfs.pod:1386
40020 msgid ""
40021 "since the default error handler will ensure that an error message has been "
40022 "printed to C<stderr> before the program exits."
40023 msgstr ""
40024
40025 #. type: textblock
40026 #: ../src/guestfs.pod:1389
40027 msgid ""
40028 "For other programs the caller will almost certainly want to install an "
40029 "alternate error handler or do error handling in-line like this:"
40030 msgstr ""
40031
40032 #. type: verbatim
40033 #: ../src/guestfs.pod:1392
40034 #, no-wrap
40035 msgid ""
40036 " /* This disables the default behaviour of printing errors\n"
40037 "    on stderr. */\n"
40038 " guestfs_set_error_handler (g, NULL, NULL);\n"
40039 " \n"
40040 msgstr ""
40041
40042 #. type: verbatim
40043 #: ../src/guestfs.pod:1396
40044 #, no-wrap
40045 msgid ""
40046 " if (guestfs_launch (g) == -1) {\n"
40047 "   /* Examine the error message and print it etc. */\n"
40048 "   char *msg = guestfs_last_error (g);\n"
40049 "   int errnum = guestfs_last_errno (g);\n"
40050 "   fprintf (stderr, \"%s\", msg);\n"
40051 "   if (errnum != 0)\n"
40052 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
40053 "   fprintf (stderr, \"\\n\");\n"
40054 "   /* ... */\n"
40055 " }\n"
40056 "\n"
40057 msgstr ""
40058
40059 #. type: textblock
40060 #: ../src/guestfs.pod:1407
40061 msgid ""
40062 "Out of memory errors are handled differently.  The default action is to call "
40063 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
40064 "guestfs_set_out_of_memory_handler>."
40065 msgstr ""
40066
40067 #. type: textblock
40068 #: ../src/guestfs.pod:1411
40069 msgid ""
40070 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
40071 "because there is no handle if this happens there is no way to get additional "
40072 "error information.  However L</guestfs_create> is supposed to be a "
40073 "lightweight operation which can only fail because of insufficient memory (it "
40074 "returns NULL in this case)."
40075 msgstr ""
40076
40077 #. type: =head2
40078 #: ../src/guestfs.pod:1417
40079 msgid "guestfs_last_error"
40080 msgstr "guestfs_last_error"
40081
40082 #. type: verbatim
40083 #: ../src/guestfs.pod:1419
40084 #, no-wrap
40085 msgid ""
40086 " const char *guestfs_last_error (guestfs_h *g);\n"
40087 "\n"
40088 msgstr ""
40089 " const char *guestfs_last_error (guestfs_h *g);\n"
40090 "\n"
40091
40092 #. type: textblock
40093 #: ../src/guestfs.pod:1421
40094 msgid ""
40095 "This returns the last error message that happened on C<g>.  If there has not "
40096 "been an error since the handle was created, then this returns C<NULL>."
40097 msgstr ""
40098
40099 #. type: textblock
40100 #: ../src/guestfs.pod:1425
40101 msgid ""
40102 "The lifetime of the returned string is until the next error occurs, or L</"
40103 "guestfs_close> is called."
40104 msgstr ""
40105
40106 #. type: =head2
40107 #: ../src/guestfs.pod:1428
40108 msgid "guestfs_last_errno"
40109 msgstr "guestfs_last_errno"
40110
40111 #. type: verbatim
40112 #: ../src/guestfs.pod:1430
40113 #, no-wrap
40114 msgid ""
40115 " int guestfs_last_errno (guestfs_h *g);\n"
40116 "\n"
40117 msgstr ""
40118 " int guestfs_last_errno (guestfs_h *g);\n"
40119 "\n"
40120
40121 #. type: textblock
40122 #: ../src/guestfs.pod:1432
40123 msgid "This returns the last error number (errno) that happened on C<g>."
40124 msgstr ""
40125
40126 #. type: textblock
40127 #: ../src/guestfs.pod:1434
40128 msgid "If successful, an errno integer not equal to zero is returned."
40129 msgstr ""
40130
40131 #. type: textblock
40132 #: ../src/guestfs.pod:1436
40133 msgid ""
40134 "If no error, this returns 0.  This call can return 0 in three situations:"
40135 msgstr ""
40136
40137 #. type: textblock
40138 #: ../src/guestfs.pod:1443
40139 msgid "There has not been any error on the handle."
40140 msgstr ""
40141
40142 #. type: textblock
40143 #: ../src/guestfs.pod:1447
40144 msgid ""
40145 "There has been an error but the errno was meaningless.  This corresponds to "
40146 "the case where the error did not come from a failed system call, but for "
40147 "some other reason."
40148 msgstr ""
40149
40150 #. type: textblock
40151 #: ../src/guestfs.pod:1453
40152 msgid ""
40153 "There was an error from a failed system call, but for some reason the errno "
40154 "was not captured and returned.  This usually indicates a bug in libguestfs."
40155 msgstr ""
40156
40157 #. type: textblock
40158 #: ../src/guestfs.pod:1459
40159 msgid ""
40160 "Libguestfs tries to convert the errno from inside the applicance into a "
40161 "corresponding errno for the caller (not entirely trivial: the appliance "
40162 "might be running a completely different operating system from the library "
40163 "and error numbers are not standardized across Un*xen).  If this could not be "
40164 "done, then the error is translated to C<EINVAL>.  In practice this should "
40165 "only happen in very rare circumstances."
40166 msgstr ""
40167
40168 #. type: =head2
40169 #: ../src/guestfs.pod:1467
40170 msgid "guestfs_set_error_handler"
40171 msgstr "guestfs_set_error_handler"
40172
40173 #. type: verbatim
40174 #: ../src/guestfs.pod:1469
40175 #, no-wrap
40176 msgid ""
40177 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
40178 "                                           void *opaque,\n"
40179 "                                           const char *msg);\n"
40180 " void guestfs_set_error_handler (guestfs_h *g,\n"
40181 "                                 guestfs_error_handler_cb cb,\n"
40182 "                                 void *opaque);\n"
40183 "\n"
40184 msgstr ""
40185 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
40186 "                                           void *opaque,\n"
40187 "                                           const char *msg);\n"
40188 " void guestfs_set_error_handler (guestfs_h *g,\n"
40189 "                                 guestfs_error_handler_cb cb,\n"
40190 "                                 void *opaque);\n"
40191 "\n"
40192
40193 #. type: textblock
40194 #: ../src/guestfs.pod:1476
40195 msgid ""
40196 "The callback C<cb> will be called if there is an error.  The parameters "
40197 "passed to the callback are an opaque data pointer and the error message "
40198 "string."
40199 msgstr ""
40200
40201 #. type: textblock
40202 #: ../src/guestfs.pod:1480
40203 msgid ""
40204 "C<errno> is not passed to the callback.  To get that the callback must call "
40205 "L</guestfs_last_errno>."
40206 msgstr ""
40207
40208 #. type: textblock
40209 #: ../src/guestfs.pod:1483
40210 msgid ""
40211 "Note that the message string C<msg> is freed as soon as the callback "
40212 "function returns, so if you want to stash it somewhere you must make your "
40213 "own copy."
40214 msgstr ""
40215
40216 #. type: textblock
40217 #: ../src/guestfs.pod:1487
40218 msgid "The default handler prints messages on C<stderr>."
40219 msgstr ""
40220
40221 #. type: textblock
40222 #: ../src/guestfs.pod:1489
40223 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
40224 msgstr ""
40225
40226 #. type: =head2
40227 #: ../src/guestfs.pod:1491
40228 msgid "guestfs_get_error_handler"
40229 msgstr "guestfs_get_error_handler"
40230
40231 #. type: verbatim
40232 #: ../src/guestfs.pod:1493
40233 #, no-wrap
40234 msgid ""
40235 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
40236 "                                                     void **opaque_rtn);\n"
40237 "\n"
40238 msgstr ""
40239 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
40240 "                                                     void **opaque_rtn);\n"
40241 "\n"
40242
40243 #. type: textblock
40244 #: ../src/guestfs.pod:1496
40245 msgid "Returns the current error handler callback."
40246 msgstr ""
40247
40248 #. type: =head2
40249 #: ../src/guestfs.pod:1498
40250 msgid "guestfs_set_out_of_memory_handler"
40251 msgstr "guestfs_set_out_of_memory_handler"
40252
40253 #. type: verbatim
40254 #: ../src/guestfs.pod:1500
40255 #, no-wrap
40256 msgid ""
40257 " typedef void (*guestfs_abort_cb) (void);\n"
40258 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
40259 "                                         guestfs_abort_cb);\n"
40260 "\n"
40261 msgstr ""
40262
40263 #. type: textblock
40264 #: ../src/guestfs.pod:1504
40265 msgid ""
40266 "The callback C<cb> will be called if there is an out of memory situation.  "
40267 "I<Note this callback must not return>."
40268 msgstr ""
40269
40270 #. type: textblock
40271 #: ../src/guestfs.pod:1507
40272 msgid "The default is to call L<abort(3)>."
40273 msgstr ""
40274
40275 #. type: textblock
40276 #: ../src/guestfs.pod:1509
40277 msgid ""
40278 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
40279 msgstr ""
40280
40281 #. type: =head2
40282 #: ../src/guestfs.pod:1512
40283 msgid "guestfs_get_out_of_memory_handler"
40284 msgstr "guestfs_get_out_of_memory_handler"
40285
40286 #. type: verbatim
40287 #: ../src/guestfs.pod:1514
40288 #, no-wrap
40289 msgid ""
40290 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40291 "\n"
40292 msgstr ""
40293 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40294 "\n"
40295
40296 #. type: textblock
40297 #: ../src/guestfs.pod:1516
40298 msgid "This returns the current out of memory handler."
40299 msgstr ""
40300
40301 #. type: =head1
40302 #: ../src/guestfs.pod:1518
40303 msgid "API CALLS"
40304 msgstr "ВИКЛИКИ API"
40305
40306 #. type: =head1
40307 #: ../src/guestfs.pod:1522
40308 msgid "STRUCTURES"
40309 msgstr "СТРУКТУРИ"
40310
40311 #. type: textblock
40312 #: ../src/guestfs.pod:1524
40313 msgid "@STRUCTS@"
40314 msgstr "@STRUCTS@"
40315
40316 #. type: =head1
40317 #: ../src/guestfs.pod:1526
40318 msgid "AVAILABILITY"
40319 msgstr "ДОСТУПНІСТЬ"
40320
40321 #. type: =head2
40322 #: ../src/guestfs.pod:1528
40323 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
40324 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
40325
40326 #. type: textblock
40327 #: ../src/guestfs.pod:1530
40328 msgid ""
40329 "Using L</guestfs_available> you can test availability of the following "
40330 "groups of functions.  This test queries the appliance to see if the "
40331 "appliance you are currently using supports the functionality."
40332 msgstr ""
40333
40334 #. type: textblock
40335 #: ../src/guestfs.pod:1535
40336 msgid "@AVAILABILITY@"
40337 msgstr "@AVAILABILITY@"
40338
40339 #. type: =head2
40340 #: ../src/guestfs.pod:1537
40341 msgid "GUESTFISH supported COMMAND"
40342 msgstr ""
40343
40344 #. type: textblock
40345 #: ../src/guestfs.pod:1539
40346 msgid ""
40347 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
40348 "prints out the available groups and whether they are supported by this build "
40349 "of libguestfs.  Note however that you have to do C<run> first."
40350 msgstr ""
40351
40352 #. type: =head2
40353 #: ../src/guestfs.pod:1544
40354 msgid "SINGLE CALLS AT COMPILE TIME"
40355 msgstr ""
40356
40357 #. type: textblock
40358 #: ../src/guestfs.pod:1546
40359 msgid ""
40360 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
40361 "function, such as:"
40362 msgstr ""
40363
40364 #. type: verbatim
40365 #: ../src/guestfs.pod:1549
40366 #, no-wrap
40367 msgid ""
40368 " #define LIBGUESTFS_HAVE_DD 1\n"
40369 "\n"
40370 msgstr ""
40371 " #define LIBGUESTFS_HAVE_DD 1\n"
40372 "\n"
40373
40374 #. type: textblock
40375 #: ../src/guestfs.pod:1551
40376 msgid "if L</guestfs_dd> is available."
40377 msgstr ""
40378
40379 #. type: textblock
40380 #: ../src/guestfs.pod:1553
40381 msgid ""
40382 "Before version 1.5.8, if you needed to test whether a single libguestfs "
40383 "function is available at compile time, we recommended using build tools such "
40384 "as autoconf or cmake.  For example in autotools you could use:"
40385 msgstr ""
40386
40387 #. type: verbatim
40388 #: ../src/guestfs.pod:1558
40389 #, no-wrap
40390 msgid ""
40391 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40392 " AC_CHECK_FUNCS([guestfs_dd])\n"
40393 "\n"
40394 msgstr ""
40395 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40396 " AC_CHECK_FUNCS([guestfs_dd])\n"
40397 "\n"
40398
40399 #. type: textblock
40400 #: ../src/guestfs.pod:1561
40401 msgid ""
40402 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
40403 "in your program."
40404 msgstr ""
40405
40406 #. type: =head2
40407 #: ../src/guestfs.pod:1564
40408 msgid "SINGLE CALLS AT RUN TIME"
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../src/guestfs.pod:1566
40413 msgid ""
40414 "Testing at compile time doesn't guarantee that a function really exists in "
40415 "the library.  The reason is that you might be dynamically linked against a "
40416 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
40417 "This situation unfortunately results in a segmentation fault, which is a "
40418 "shortcoming of the C dynamic linking system itself."
40419 msgstr ""
40420
40421 #. type: textblock
40422 #: ../src/guestfs.pod:1573
40423 msgid ""
40424 "You can use L<dlopen(3)> to test if a function is available at run time, as "
40425 "in this example program (note that you still need the compile time check as "
40426 "well):"
40427 msgstr ""
40428
40429 #. type: verbatim
40430 #: ../src/guestfs.pod:1577
40431 #, no-wrap
40432 msgid ""
40433 " #include <stdio.h>\n"
40434 " #include <stdlib.h>\n"
40435 " #include <unistd.h>\n"
40436 " #include <dlfcn.h>\n"
40437 " #include <guestfs.h>\n"
40438 " \n"
40439 msgstr ""
40440 " #include <stdio.h>\n"
40441 " #include <stdlib.h>\n"
40442 " #include <unistd.h>\n"
40443 " #include <dlfcn.h>\n"
40444 " #include <guestfs.h>\n"
40445 " \n"
40446
40447 #. type: verbatim
40448 #: ../src/guestfs.pod:1583
40449 #, no-wrap
40450 msgid ""
40451 " main ()\n"
40452 " {\n"
40453 " #ifdef LIBGUESTFS_HAVE_DD\n"
40454 "   void *dl;\n"
40455 "   int has_function;\n"
40456 " \n"
40457 msgstr ""
40458 " main ()\n"
40459 " {\n"
40460 " #ifdef LIBGUESTFS_HAVE_DD\n"
40461 "   void *dl;\n"
40462 "   int has_function;\n"
40463 " \n"
40464
40465 #. type: verbatim
40466 #: ../src/guestfs.pod:1589
40467 #, no-wrap
40468 msgid ""
40469 "   /* Test if the function guestfs_dd is really available. */\n"
40470 "   dl = dlopen (NULL, RTLD_LAZY);\n"
40471 "   if (!dl) {\n"
40472 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
40473 "     exit (EXIT_FAILURE);\n"
40474 "   }\n"
40475 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
40476 "   dlclose (dl);\n"
40477 " \n"
40478 msgstr ""
40479
40480 #. type: verbatim
40481 #: ../src/guestfs.pod:1598
40482 #, no-wrap
40483 msgid ""
40484 "   if (!has_function)\n"
40485 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
40486 "   else {\n"
40487 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
40488 "     /* Now it's safe to call\n"
40489 "     guestfs_dd (g, \"foo\", \"bar\");\n"
40490 "     */\n"
40491 "   }\n"
40492 " #else\n"
40493 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
40494 " #endif\n"
40495 "  }\n"
40496 "\n"
40497 msgstr ""
40498
40499 #. type: textblock
40500 #: ../src/guestfs.pod:1611
40501 msgid ""
40502 "You may think the above is an awful lot of hassle, and it is.  There are "
40503 "other ways outside of the C linking system to ensure that this kind of "
40504 "incompatibility never arises, such as using package versioning:"
40505 msgstr ""
40506
40507 #. type: verbatim
40508 #: ../src/guestfs.pod:1616
40509 #, no-wrap
40510 msgid ""
40511 " Requires: libguestfs >= 1.0.80\n"
40512 "\n"
40513 msgstr ""
40514
40515 #. type: =head1
40516 #: ../src/guestfs.pod:1618
40517 msgid "CALLS WITH OPTIONAL ARGUMENTS"
40518 msgstr ""
40519
40520 #. type: textblock
40521 #: ../src/guestfs.pod:1620
40522 msgid ""
40523 "A recent feature of the API is the introduction of calls which take optional "
40524 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
40525 "takes variable arguments (ie. C<...>), as in this example:"
40526 msgstr ""
40527
40528 #. type: verbatim
40529 #: ../src/guestfs.pod:1625
40530 #, no-wrap
40531 msgid ""
40532 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40533 "\n"
40534 msgstr ""
40535 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40536 "\n"
40537
40538 #. type: textblock
40539 #: ../src/guestfs.pod:1627
40540 msgid ""
40541 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
40542 "call with no optional arguments specified:"
40543 msgstr ""
40544
40545 #. type: verbatim
40546 #: ../src/guestfs.pod:1630
40547 #, no-wrap
40548 msgid ""
40549 " guestfs_add_drive_opts (g, filename, -1);\n"
40550 "\n"
40551 msgstr ""
40552 " guestfs_add_drive_opts (g, filename, -1);\n"
40553 "\n"
40554
40555 #. type: textblock
40556 #: ../src/guestfs.pod:1632
40557 msgid "With a single optional argument:"
40558 msgstr ""
40559
40560 #. type: verbatim
40561 #: ../src/guestfs.pod:1634
40562 #, no-wrap
40563 msgid ""
40564 " guestfs_add_drive_opts (g, filename,\n"
40565 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40566 "                         -1);\n"
40567 "\n"
40568 msgstr ""
40569 " guestfs_add_drive_opts (g, filename,\n"
40570 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40571 "                         -1);\n"
40572 "\n"
40573
40574 #. type: textblock
40575 #: ../src/guestfs.pod:1638
40576 msgid "With two:"
40577 msgstr ""
40578
40579 #. type: verbatim
40580 #: ../src/guestfs.pod:1640
40581 #, no-wrap
40582 msgid ""
40583 " guestfs_add_drive_opts (g, filename,\n"
40584 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40585 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40586 "                         -1);\n"
40587 "\n"
40588 msgstr ""
40589 " guestfs_add_drive_opts (g, filename,\n"
40590 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40591 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40592 "                         -1);\n"
40593 "\n"
40594
40595 #. type: textblock
40596 #: ../src/guestfs.pod:1645
40597 msgid ""
40598 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
40599 "happen!"
40600 msgstr ""
40601
40602 #. type: =head2
40603 #: ../src/guestfs.pod:1648
40604 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
40605 msgstr ""
40606
40607 #. type: textblock
40608 #: ../src/guestfs.pod:1650
40609 msgid ""
40610 "The second variant has the same name with the suffix C<_va>, which works the "
40611 "same way but takes a C<va_list>.  See the C manual for details.  For the "
40612 "example function, this is declared:"
40613 msgstr ""
40614
40615 #. type: verbatim
40616 #: ../src/guestfs.pod:1654
40617 #, no-wrap
40618 msgid ""
40619 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40620 "                                va_list args);\n"
40621 "\n"
40622 msgstr ""
40623 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40624 "                                va_list args);\n"
40625 "\n"
40626
40627 #. type: =head2
40628 #: ../src/guestfs.pod:1657
40629 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
40630 msgstr ""
40631
40632 #. type: textblock
40633 #: ../src/guestfs.pod:1659
40634 msgid ""
40635 "The third variant is useful where you need to construct these calls.  You "
40636 "pass in a structure where you fill in the optional fields.  The structure "
40637 "has a bitmask as the first element which you must set to indicate which "
40638 "fields you have filled in.  For our example function the structure and call "
40639 "are declared:"
40640 msgstr ""
40641
40642 #. type: verbatim
40643 #: ../src/guestfs.pod:1665
40644 #, no-wrap
40645 msgid ""
40646 " struct guestfs_add_drive_opts_argv {\n"
40647 "   uint64_t bitmask;\n"
40648 "   int readonly;\n"
40649 "   const char *format;\n"
40650 "   /* ... */\n"
40651 " };\n"
40652 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40653 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
40654 "\n"
40655 msgstr ""
40656 " struct guestfs_add_drive_opts_argv {\n"
40657 "   uint64_t bitmask;\n"
40658 "   int readonly;\n"
40659 "   const char *format;\n"
40660 "   /* ... */\n"
40661 " };\n"
40662 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40663 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
40664 "\n"
40665
40666 #. type: textblock
40667 #: ../src/guestfs.pod:1674
40668 msgid "You could call it like this:"
40669 msgstr ""
40670
40671 #. type: verbatim
40672 #: ../src/guestfs.pod:1676
40673 #, no-wrap
40674 msgid ""
40675 " struct guestfs_add_drive_opts_argv optargs = {\n"
40676 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40677 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40678 "   .readonly = 1,\n"
40679 "   .format = \"qcow2\"\n"
40680 " };\n"
40681 " \n"
40682 msgstr ""
40683 " struct guestfs_add_drive_opts_argv optargs = {\n"
40684 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40685 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40686 "   .readonly = 1,\n"
40687 "   .format = \"qcow2\"\n"
40688 " };\n"
40689 " \n"
40690
40691 #. type: verbatim
40692 #: ../src/guestfs.pod:1683
40693 #, no-wrap
40694 msgid ""
40695 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40696 "\n"
40697 msgstr ""
40698 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40699 "\n"
40700
40701 #. type: textblock
40702 #: ../src/guestfs.pod:1691
40703 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
40704 msgstr ""
40705
40706 #. type: textblock
40707 #: ../src/guestfs.pod:1696
40708 msgid "You do not need to fill in all fields of the structure."
40709 msgstr ""
40710
40711 #. type: textblock
40712 #: ../src/guestfs.pod:1700
40713 msgid ""
40714 "There must be a one-to-one correspondence between fields of the structure "
40715 "that are filled in, and bits set in the bitmask."
40716 msgstr ""
40717
40718 #. type: =head2
40719 #: ../src/guestfs.pod:1705
40720 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
40721 msgstr ""
40722
40723 #. type: textblock
40724 #: ../src/guestfs.pod:1707
40725 msgid ""
40726 "In other languages, optional arguments are expressed in the way that is "
40727 "natural for that language.  We refer you to the language-specific "
40728 "documentation for more details on that."
40729 msgstr ""
40730
40731 #. type: textblock
40732 #: ../src/guestfs.pod:1711
40733 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
40734 msgstr ""
40735
40736 #. type: =head2
40737 #: ../src/guestfs.pod:1713
40738 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
40739 msgstr ""
40740
40741 #. type: textblock
40742 #: ../src/guestfs.pod:1715
40743 msgid ""
40744 "B<Note:> This section documents the generic event mechanism introduced in "
40745 "libguestfs 1.10, which you should use in new code if possible.  The old "
40746 "functions C<guestfs_set_log_message_callback>, "
40747 "C<guestfs_set_subprocess_quit_callback>, "
40748 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
40749 "C<guestfs_set_progress_callback> are no longer documented in this manual "
40750 "page.  Because of the ABI guarantee, the old functions continue to work."
40751 msgstr ""
40752
40753 #. type: textblock
40754 #: ../src/guestfs.pod:1724
40755 msgid ""
40756 "Handles generate events when certain things happen, such as log messages "
40757 "being generated, progress messages during long-running operations, or the "
40758 "handle being closed.  The API calls described below let you register a "
40759 "callback to be called when events happen.  You can register multiple "
40760 "callbacks (for the same, different or overlapping sets of events), and "
40761 "individually remove callbacks.  If callbacks are not removed, then they "
40762 "remain in force until the handle is closed."
40763 msgstr ""
40764
40765 #. type: textblock
40766 #: ../src/guestfs.pod:1732
40767 msgid ""
40768 "In the current implementation, events are only generated synchronously: that "
40769 "means that events (and hence callbacks) can only happen while you are in the "
40770 "middle of making another libguestfs call.  The callback is called in the "
40771 "same thread."
40772 msgstr ""
40773
40774 #. type: textblock
40775 #: ../src/guestfs.pod:1737
40776 msgid ""
40777 "Events may contain a payload, usually nothing (void), an array of 64 bit "
40778 "unsigned integers, or a message buffer.  Payloads are discussed later on."
40779 msgstr ""
40780
40781 #. type: =head3
40782 #: ../src/guestfs.pod:1741
40783 msgid "CLASSES OF EVENTS"
40784 msgstr ""
40785
40786 #. type: =item
40787 #: ../src/guestfs.pod:1745
40788 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
40789 msgstr ""
40790
40791 #. type: textblock
40792 #: ../src/guestfs.pod:1748
40793 msgid ""
40794 "The callback function will be called while the handle is being closed "
40795 "(synchronously from L</guestfs_close>)."
40796 msgstr ""
40797
40798 #. type: textblock
40799 #: ../src/guestfs.pod:1751
40800 msgid ""
40801 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
40802 "handles that are open when the program exits.  This means that this callback "
40803 "might be called indirectly from L<exit(3)>, which can cause unexpected "
40804 "problems in higher-level languages (eg. if your HLL interpreter has already "
40805 "been cleaned up by the time this is called, and if your callback then jumps "
40806 "into some HLL function)."
40807 msgstr ""
40808
40809 #. type: textblock
40810 #: ../src/guestfs.pod:1758
40811 msgid ""
40812 "If no callback is registered: the handle is closed without any callback "
40813 "being invoked."
40814 msgstr ""
40815
40816 #. type: =item
40817 #: ../src/guestfs.pod:1761
40818 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
40819 msgstr ""
40820
40821 #. type: textblock
40822 #: ../src/guestfs.pod:1764
40823 msgid ""
40824 "The callback function will be called when the child process quits, either "
40825 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
40826 "corresponds to a transition from any state to the CONFIG state)."
40827 msgstr ""
40828
40829 #. type: textblock
40830 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
40831 msgid "If no callback is registered: the event is ignored."
40832 msgstr ""
40833
40834 #. type: =item
40835 #: ../src/guestfs.pod:1770
40836 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
40837 msgstr ""
40838
40839 #. type: textblock
40840 #: ../src/guestfs.pod:1773
40841 msgid ""
40842 "The callback function will be called when the child process becomes ready "
40843 "first time after it has been launched.  (This corresponds to a transition "
40844 "from LAUNCHING to the READY state)."
40845 msgstr ""
40846
40847 #. type: =item
40848 #: ../src/guestfs.pod:1779
40849 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
40850 msgstr ""
40851
40852 #. type: textblock
40853 #: ../src/guestfs.pod:1782
40854 msgid ""
40855 "Some long-running operations can generate progress messages.  If this "
40856 "callback is registered, then it will be called each time a progress message "
40857 "is generated (usually two seconds after the operation started, and three "
40858 "times per second thereafter until it completes, although the frequency may "
40859 "change in future versions)."
40860 msgstr ""
40861
40862 #. type: textblock
40863 #: ../src/guestfs.pod:1788
40864 msgid ""
40865 "The callback receives in the payload four unsigned 64 bit numbers which are "
40866 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
40867 msgstr ""
40868
40869 #. type: textblock
40870 #: ../src/guestfs.pod:1791
40871 msgid ""
40872 "The units of C<total> are not defined, although for some operations C<total> "
40873 "may relate in some way to the amount of data to be transferred (eg. in bytes "
40874 "or megabytes), and C<position> may be the portion which has been transferred."
40875 msgstr ""
40876
40877 #. type: textblock
40878 #: ../src/guestfs.pod:1796
40879 msgid "The only defined and stable parts of the API are:"
40880 msgstr ""
40881
40882 #. type: textblock
40883 #: ../src/guestfs.pod:1802
40884 msgid ""
40885 "The callback can display to the user some type of progress bar or indicator "
40886 "which shows the ratio of C<position>:C<total>."
40887 msgstr ""
40888
40889 #. type: textblock
40890 #: ../src/guestfs.pod:1807
40891 msgid "0 E<lt>= C<position> E<lt>= C<total>"
40892 msgstr ""
40893
40894 #. type: textblock
40895 #: ../src/guestfs.pod:1811
40896 msgid ""
40897 "If any progress notification is sent during a call, then a final progress "
40898 "notification is always sent when C<position> = C<total> (I<unless> the call "
40899 "fails with an error)."
40900 msgstr ""
40901
40902 #. type: textblock
40903 #: ../src/guestfs.pod:1815
40904 msgid ""
40905 "This is to simplify caller code, so callers can easily set the progress "
40906 "indicator to \"100%\" at the end of the operation, without requiring special "
40907 "code to detect this case."
40908 msgstr ""
40909
40910 #. type: textblock
40911 #: ../src/guestfs.pod:1821
40912 msgid ""
40913 "For some calls we are unable to estimate the progress of the call, but we "
40914 "can still generate progress messages to indicate activity.  This is known as "
40915 "\"pulse mode\", and is directly supported by certain progress bar "
40916 "implementations (eg. GtkProgressBar)."
40917 msgstr ""
40918
40919 #. type: textblock
40920 #: ../src/guestfs.pod:1826
40921 msgid ""
40922 "For these calls, zero or more progress messages are generated with "
40923 "C<position = 0> and C<total = 1>, followed by a final message with "
40924 "C<position = total = 1>."
40925 msgstr ""
40926
40927 #. type: textblock
40928 #: ../src/guestfs.pod:1830
40929 msgid ""
40930 "As noted above, if the call fails with an error then the final message may "
40931 "not be generated."
40932 msgstr ""
40933
40934 #. type: textblock
40935 #: ../src/guestfs.pod:1835
40936 msgid ""
40937 "The callback also receives the procedure number (C<proc_nr>) and serial "
40938 "number (C<serial>) of the call.  These are only useful for debugging "
40939 "protocol issues, and the callback can normally ignore them.  The callback "
40940 "may want to print these numbers in error messages or debugging messages."
40941 msgstr ""
40942
40943 #. type: textblock
40944 #: ../src/guestfs.pod:1841
40945 msgid "If no callback is registered: progress messages are discarded."
40946 msgstr ""
40947
40948 #. type: =item
40949 #: ../src/guestfs.pod:1843
40950 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
40951 msgstr ""
40952
40953 #. type: textblock
40954 #: ../src/guestfs.pod:1846
40955 msgid ""
40956 "The callback function is called whenever a log message is generated by qemu, "
40957 "the appliance kernel, guestfsd (daemon), or utility programs."
40958 msgstr ""
40959
40960 #. type: textblock
40961 #: ../src/guestfs.pod:1849
40962 msgid ""
40963 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
40964 "guestfs_launch>) then additional debug messages are generated."
40965 msgstr ""
40966
40967 #. type: textblock
40968 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
40969 msgid ""
40970 "If no callback is registered: the messages are discarded unless the verbose "
40971 "flag is set in which case they are sent to stderr.  You can override the "
40972 "printing of verbose messages to stderr by setting up a callback."
40973 msgstr ""
40974
40975 #. type: =item
40976 #: ../src/guestfs.pod:1857
40977 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
40978 msgstr ""
40979
40980 #. type: textblock
40981 #: ../src/guestfs.pod:1860
40982 msgid ""
40983 "The callback function is called whenever a log message is generated by the "
40984 "library part of libguestfs."
40985 msgstr ""
40986
40987 #. type: textblock
40988 #: ../src/guestfs.pod:1863
40989 msgid ""
40990 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
40991 "messages are generated."
40992 msgstr ""
40993
40994 #. type: =item
40995 #: ../src/guestfs.pod:1871
40996 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
40997 msgstr ""
40998
40999 #. type: textblock
41000 #: ../src/guestfs.pod:1874
41001 msgid ""
41002 "The callback function is called whenever a trace message is generated.  This "
41003 "only applies if the trace flag (L</guestfs_set_trace>) is set."
41004 msgstr ""
41005
41006 #. type: textblock
41007 #: ../src/guestfs.pod:1877
41008 msgid ""
41009 "If no callback is registered: the messages are sent to stderr.  You can "
41010 "override the printing of trace messages to stderr by setting up a callback."
41011 msgstr ""
41012
41013 #. type: =item
41014 #: ../src/guestfs.pod:1881
41015 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
41016 msgstr ""
41017
41018 #. type: textblock
41019 #: ../src/guestfs.pod:1884
41020 msgid ""
41021 "The callback function is called whenever a libguestfs function is entered."
41022 msgstr ""
41023
41024 #. type: textblock
41025 #: ../src/guestfs.pod:1887
41026 msgid ""
41027 "The payload is a string which contains the name of the function that we are "
41028 "entering (not including C<guestfs_> prefix)."
41029 msgstr ""
41030
41031 #. type: textblock
41032 #: ../src/guestfs.pod:1890
41033 msgid ""
41034 "Note that libguestfs functions can call themselves, so you may see many "
41035 "events from a single call.  A few libguestfs functions do not generate this "
41036 "event."
41037 msgstr ""
41038
41039 #. type: =head3
41040 #: ../src/guestfs.pod:1898
41041 msgid "guestfs_set_event_callback"
41042 msgstr ""
41043
41044 #. type: verbatim
41045 #: ../src/guestfs.pod:1900
41046 #, no-wrap
41047 msgid ""
41048 " int guestfs_set_event_callback (guestfs_h *g,\n"
41049 "                                 guestfs_event_callback cb,\n"
41050 "                                 uint64_t event_bitmask,\n"
41051 "                                 int flags,\n"
41052 "                                 void *opaque);\n"
41053 "\n"
41054 msgstr ""
41055
41056 #. type: textblock
41057 #: ../src/guestfs.pod:1906
41058 msgid ""
41059 "This function registers a callback (C<cb>) for all event classes in the "
41060 "C<event_bitmask>."
41061 msgstr ""
41062
41063 #. type: textblock
41064 #: ../src/guestfs.pod:1909
41065 msgid ""
41066 "For example, to register for all log message events, you could call this "
41067 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
41068 "To register a single callback for all possible classes of events, use "
41069 "C<GUESTFS_EVENT_ALL>."
41070 msgstr ""
41071
41072 #. type: textblock
41073 #: ../src/guestfs.pod:1915
41074 msgid "C<flags> should always be passed as 0."
41075 msgstr ""
41076
41077 #. type: textblock
41078 #: ../src/guestfs.pod:1917
41079 msgid ""
41080 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
41081 "it for any purpose."
41082 msgstr ""
41083
41084 #. type: textblock
41085 #: ../src/guestfs.pod:1920
41086 msgid ""
41087 "The return value is the event handle (an integer) which you can use to "
41088 "delete the callback (see below)."
41089 msgstr ""
41090
41091 #. type: textblock
41092 #: ../src/guestfs.pod:1923
41093 msgid ""
41094 "If there is an error, this function returns C<-1>, and sets the error in the "
41095 "handle in the usual way (see L</guestfs_last_error> etc.)"
41096 msgstr ""
41097
41098 #. type: textblock
41099 #: ../src/guestfs.pod:1926
41100 msgid ""
41101 "Callbacks remain in effect until they are deleted, or until the handle is "
41102 "closed."
41103 msgstr ""
41104
41105 #. type: textblock
41106 #: ../src/guestfs.pod:1929
41107 msgid ""
41108 "In the case where multiple callbacks are registered for a particular event "
41109 "class, all of the callbacks are called.  The order in which multiple "
41110 "callbacks are called is not defined."
41111 msgstr ""
41112
41113 #. type: =head3
41114 #: ../src/guestfs.pod:1933
41115 msgid "guestfs_delete_event_callback"
41116 msgstr ""
41117
41118 #. type: verbatim
41119 #: ../src/guestfs.pod:1935
41120 #, no-wrap
41121 msgid ""
41122 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
41123 "\n"
41124 msgstr ""
41125
41126 #. type: textblock
41127 #: ../src/guestfs.pod:1937
41128 msgid ""
41129 "Delete a callback that was previously registered.  C<event_handle> should be "
41130 "the integer that was returned by a previous call to "
41131 "C<guestfs_set_event_callback> on the same handle."
41132 msgstr ""
41133
41134 #. type: =head3
41135 #: ../src/guestfs.pod:1941
41136 msgid "guestfs_event_callback"
41137 msgstr ""
41138
41139 #. type: verbatim
41140 #: ../src/guestfs.pod:1943
41141 #, no-wrap
41142 msgid ""
41143 " typedef void (*guestfs_event_callback) (\n"
41144 "                  guestfs_h *g,\n"
41145 "                  void *opaque,\n"
41146 "                  uint64_t event,\n"
41147 "                  int event_handle,\n"
41148 "                  int flags,\n"
41149 "                  const char *buf, size_t buf_len,\n"
41150 "                  const uint64_t *array, size_t array_len);\n"
41151 "\n"
41152 msgstr ""
41153
41154 #. type: textblock
41155 #: ../src/guestfs.pod:1952
41156 msgid ""
41157 "This is the type of the event callback function that you have to provide."
41158 msgstr ""
41159
41160 #. type: textblock
41161 #: ../src/guestfs.pod:1955
41162 msgid ""
41163 "The basic parameters are: the handle (C<g>), the opaque user pointer "
41164 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
41165 "handle, and C<flags> which in the current API you should ignore."
41166 msgstr ""
41167
41168 #. type: textblock
41169 #: ../src/guestfs.pod:1959
41170 msgid ""
41171 "The remaining parameters contain the event payload (if any).  Each event may "
41172 "contain a payload, which usually relates to the event class, but for future "
41173 "proofing your code should be written to handle any payload for any event "
41174 "class."
41175 msgstr ""
41176
41177 #. type: textblock
41178 #: ../src/guestfs.pod:1964
41179 msgid ""
41180 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
41181 "there is no message buffer).  Note that this message buffer can contain "
41182 "arbitrary 8 bit data, including NUL bytes."
41183 msgstr ""
41184
41185 #. type: textblock
41186 #: ../src/guestfs.pod:1968
41187 msgid ""
41188 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
41189 "moment this is only used for progress messages."
41190 msgstr ""
41191
41192 #. type: =head3
41193 #: ../src/guestfs.pod:1971
41194 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
41195 msgstr ""
41196
41197 #. type: textblock
41198 #: ../src/guestfs.pod:1973
41199 msgid ""
41200 "One motivation for the generic event API was to allow GUI programs to "
41201 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
41202 "unconditionally to C<stderr>."
41203 msgstr ""
41204
41205 #. type: textblock
41206 #: ../src/guestfs.pod:1977
41207 msgid ""
41208 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
41209 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
41210 "messages are not events; you must capture error messages separately)."
41211 msgstr ""
41212
41213 #. type: textblock
41214 #: ../src/guestfs.pod:1982
41215 msgid ""
41216 "Programs have to set up a callback to capture the classes of events of "
41217 "interest:"
41218 msgstr ""
41219
41220 #. type: verbatim
41221 #: ../src/guestfs.pod:1985
41222 #, no-wrap
41223 msgid ""
41224 " int eh =\n"
41225 "   guestfs_set_event_callback\n"
41226 "     (g, message_callback,\n"
41227 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
41228 "      GUESTFS_EVENT_TRACE,\n"
41229 "      0, NULL) == -1)\n"
41230 " if (eh == -1) {\n"
41231 "   // handle error in the usual way\n"
41232 " }\n"
41233 "\n"
41234 msgstr ""
41235
41236 #. type: textblock
41237 #: ../src/guestfs.pod:1995
41238 msgid ""
41239 "The callback can then direct messages to the appropriate place.  In this "
41240 "example, messages are directed to syslog:"
41241 msgstr ""
41242
41243 #. type: verbatim
41244 #: ../src/guestfs.pod:1998
41245 #, no-wrap
41246 msgid ""
41247 " static void\n"
41248 " message_callback (\n"
41249 "         guestfs_h *g,\n"
41250 "         void *opaque,\n"
41251 "         uint64_t event,\n"
41252 "         int event_handle,\n"
41253 "         int flags,\n"
41254 "         const char *buf, size_t buf_len,\n"
41255 "         const uint64_t *array, size_t array_len)\n"
41256 " {\n"
41257 "   const int priority = LOG_USER|LOG_INFO;\n"
41258 "   if (buf_len > 0)\n"
41259 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
41260 " }\n"
41261 "\n"
41262 msgstr ""
41263
41264 #. type: =head1
41265 #: ../src/guestfs.pod:2013
41266 msgid "CANCELLING LONG TRANSFERS"
41267 msgstr ""
41268
41269 #. type: textblock
41270 #: ../src/guestfs.pod:2015
41271 msgid ""
41272 "Some operations can be cancelled by the caller while they are in progress.  "
41273 "Currently only operations that involve uploading or downloading data can be "
41274 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
41275 "parameters in the generator)."
41276 msgstr ""
41277
41278 #. type: =head2
41279 #: ../src/guestfs.pod:2020
41280 msgid "guestfs_user_cancel"
41281 msgstr ""
41282
41283 #. type: verbatim
41284 #: ../src/guestfs.pod:2022
41285 #, no-wrap
41286 msgid ""
41287 " void guestfs_user_cancel (guestfs_h *g);\n"
41288 "\n"
41289 msgstr ""
41290
41291 #. type: textblock
41292 #: ../src/guestfs.pod:2024
41293 msgid ""
41294 "C<guestfs_user_cancel> cancels the current upload or download operation."
41295 msgstr ""
41296
41297 #. type: textblock
41298 #: ../src/guestfs.pod:2027
41299 msgid ""
41300 "Unlike most other libguestfs calls, this function is signal safe and thread "
41301 "safe.  You can call it from a signal handler or from another thread, without "
41302 "needing to do any locking."
41303 msgstr ""
41304
41305 #. type: textblock
41306 #: ../src/guestfs.pod:2031
41307 msgid ""
41308 "The transfer that was in progress (if there is one) will stop shortly "
41309 "afterwards, and will return an error.  The errno (see L</"
41310 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
41311 "out if the operation was cancelled or failed because of another error."
41312 msgstr ""
41313
41314 #. type: textblock
41315 #: ../src/guestfs.pod:2037
41316 msgid ""
41317 "No cleanup is performed: for example, if a file was being uploaded then "
41318 "after cancellation there may be a partially uploaded file.  It is the "
41319 "caller's responsibility to clean up if necessary."
41320 msgstr ""
41321
41322 #. type: textblock
41323 #: ../src/guestfs.pod:2041
41324 msgid "There are two common places that you might call C<guestfs_user_cancel>."
41325 msgstr ""
41326
41327 #. type: textblock
41328 #: ../src/guestfs.pod:2043
41329 msgid ""
41330 "In an interactive text-based program, you might call it from a C<SIGINT> "
41331 "signal handler so that pressing C<^C> cancels the current operation.  (You "
41332 "also need to call L</guestfs_set_pgroup> so that child processes don't "
41333 "receive the C<^C> signal)."
41334 msgstr ""
41335
41336 #. type: textblock
41337 #: ../src/guestfs.pod:2048
41338 msgid ""
41339 "In a graphical program, when the main thread is displaying a progress bar "
41340 "with a cancel button, wire up the cancel button to call this function."
41341 msgstr ""
41342
41343 #. type: =head1
41344 #: ../src/guestfs.pod:2052
41345 msgid "PRIVATE DATA AREA"
41346 msgstr ""
41347
41348 #. type: textblock
41349 #: ../src/guestfs.pod:2054
41350 msgid ""
41351 "You can attach named pieces of private data to the libguestfs handle, fetch "
41352 "them by name, and walk over them, for the lifetime of the handle.  This is "
41353 "called the private data area and is only available from the C API."
41354 msgstr ""
41355
41356 #. type: textblock
41357 #: ../src/guestfs.pod:2059
41358 msgid "To attach a named piece of data, use the following call:"
41359 msgstr ""
41360
41361 #. type: verbatim
41362 #: ../src/guestfs.pod:2061
41363 #, no-wrap
41364 msgid ""
41365 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41366 "\n"
41367 msgstr ""
41368 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41369 "\n"
41370
41371 #. type: textblock
41372 #: ../src/guestfs.pod:2063
41373 msgid ""
41374 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
41375 "pointer (which can be C<NULL>).  Any previous item with the same key is "
41376 "overwritten."
41377 msgstr ""
41378
41379 #. type: textblock
41380 #: ../src/guestfs.pod:2067
41381 msgid ""
41382 "You can use any C<key> you want, but your key should I<not> start with an "
41383 "underscore character.  Keys beginning with an underscore character are "
41384 "reserved for internal libguestfs purposes (eg. for implementing language "
41385 "bindings).  It is recommended that you prefix the key with some unique "
41386 "string to avoid collisions with other users."
41387 msgstr ""
41388
41389 #. type: textblock
41390 #: ../src/guestfs.pod:2073
41391 msgid "To retrieve the pointer, use:"
41392 msgstr ""
41393
41394 #. type: verbatim
41395 #: ../src/guestfs.pod:2075
41396 #, no-wrap
41397 msgid ""
41398 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41399 "\n"
41400 msgstr ""
41401 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41402 "\n"
41403
41404 #. type: textblock
41405 #: ../src/guestfs.pod:2077
41406 msgid ""
41407 "This function returns C<NULL> if either no data is found associated with "
41408 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
41409 "C<NULL>."
41410 msgstr ""
41411
41412 #. type: textblock
41413 #: ../src/guestfs.pod:2081
41414 msgid ""
41415 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
41416 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
41417 "all.  In particular, libguestfs does I<not> try to free the data when the "
41418 "handle is closed.  If the data must be freed, then the caller must either "
41419 "free it before calling L</guestfs_close> or must set up a close callback to "
41420 "do it (see L</GUESTFS_EVENT_CLOSE>)."
41421 msgstr ""
41422
41423 #. type: textblock
41424 #: ../src/guestfs.pod:2088
41425 msgid "To walk over all entries, use these two functions:"
41426 msgstr ""
41427
41428 #. type: verbatim
41429 #: ../src/guestfs.pod:2090
41430 #, no-wrap
41431 msgid ""
41432 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
41433 "\n"
41434 msgstr ""
41435
41436 #. type: verbatim
41437 #: ../src/guestfs.pod:2092
41438 #, no-wrap
41439 msgid ""
41440 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
41441 "\n"
41442 msgstr ""
41443
41444 #. type: textblock
41445 #: ../src/guestfs.pod:2094
41446 msgid ""
41447 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
41448 "not have any particular meaning -- keys are not returned in any defined "
41449 "order).  A pointer to the key is returned in C<*key_rtn> and the "
41450 "corresponding data pointer is returned from the function.  C<NULL> is "
41451 "returned if there are no keys stored in the handle."
41452 msgstr ""
41453
41454 #. type: textblock
41455 #: ../src/guestfs.pod:2100
41456 msgid ""
41457 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
41458 "value of this function is also C<NULL> is there are no further entries to "
41459 "return."
41460 msgstr ""
41461
41462 #. type: textblock
41463 #: ../src/guestfs.pod:2104
41464 msgid "Notes about walking over entries:"
41465 msgstr ""
41466
41467 #. type: textblock
41468 #: ../src/guestfs.pod:2110
41469 msgid ""
41470 "You must not call C<guestfs_set_private> while walking over the entries."
41471 msgstr ""
41472
41473 #. type: textblock
41474 #: ../src/guestfs.pod:2115
41475 msgid ""
41476 "The handle maintains an internal iterator which is reset when you call "
41477 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
41478 "call C<guestfs_set_private>."
41479 msgstr ""
41480
41481 #. type: textblock
41482 #: ../src/guestfs.pod:2121
41483 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
41484 msgstr ""
41485
41486 #. type: verbatim
41487 #: ../src/guestfs.pod:2123
41488 #, no-wrap
41489 msgid ""
41490 " guestfs_set_private (g, key, NULL);\n"
41491 "\n"
41492 msgstr ""
41493
41494 #. type: textblock
41495 #: ../src/guestfs.pod:2125
41496 msgid "then that C<key> is not returned when walking."
41497 msgstr ""
41498
41499 #. type: textblock
41500 #: ../src/guestfs.pod:2129
41501 msgid ""
41502 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
41503 "C<guestfs_next_private> or C<guestfs_set_private>."
41504 msgstr ""
41505
41506 #. type: textblock
41507 #: ../src/guestfs.pod:2135
41508 msgid ""
41509 "The following example code shows how to print all keys and data pointers "
41510 "that are associated with the handle C<g>:"
41511 msgstr ""
41512
41513 #. type: verbatim
41514 #: ../src/guestfs.pod:2138
41515 #, no-wrap
41516 msgid ""
41517 " const char *key;\n"
41518 " void *data = guestfs_first_private (g, &key);\n"
41519 " while (data != NULL)\n"
41520 "   {\n"
41521 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
41522 "     data = guestfs_next_private (g, &key);\n"
41523 "   }\n"
41524 "\n"
41525 msgstr ""
41526
41527 #. type: textblock
41528 #: ../src/guestfs.pod:2146
41529 msgid ""
41530 "More commonly you are only interested in keys that begin with an application-"
41531 "specific prefix C<foo_>.  Modify the loop like so:"
41532 msgstr ""
41533
41534 #. type: verbatim
41535 #: ../src/guestfs.pod:2149
41536 #, no-wrap
41537 msgid ""
41538 " const char *key;\n"
41539 " void *data = guestfs_first_private (g, &key);\n"
41540 " while (data != NULL)\n"
41541 "   {\n"
41542 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41543 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
41544 "     data = guestfs_next_private (g, &key);\n"
41545 "   }\n"
41546 "\n"
41547 msgstr ""
41548
41549 #. type: textblock
41550 #: ../src/guestfs.pod:2158
41551 msgid ""
41552 "If you need to modify keys while walking, then you have to jump back to the "
41553 "beginning of the loop.  For example, to delete all keys prefixed with "
41554 "C<foo_>:"
41555 msgstr ""
41556
41557 #. type: verbatim
41558 #: ../src/guestfs.pod:2162
41559 #, no-wrap
41560 msgid ""
41561 "  const char *key;\n"
41562 "  void *data;\n"
41563 " again:\n"
41564 "  data = guestfs_first_private (g, &key);\n"
41565 "  while (data != NULL)\n"
41566 "    {\n"
41567 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41568 "        {\n"
41569 "          guestfs_set_private (g, key, NULL);\n"
41570 "          /* note that 'key' pointer is now invalid, and so is\n"
41571 "             the internal iterator */\n"
41572 "          goto again;\n"
41573 "        }\n"
41574 "      data = guestfs_next_private (g, &key);\n"
41575 "    }\n"
41576 "\n"
41577 msgstr ""
41578
41579 #. type: textblock
41580 #: ../src/guestfs.pod:2178
41581 msgid ""
41582 "Note that the above loop is guaranteed to terminate because the keys are "
41583 "being deleted, but other manipulations of keys within the loop might not "
41584 "terminate unless you also maintain an indication of which keys have been "
41585 "visited."
41586 msgstr ""
41587
41588 #. type: =head1
41589 #: ../src/guestfs.pod:2183
41590 msgid "SYSTEMTAP"
41591 msgstr ""
41592
41593 #. type: textblock
41594 #: ../src/guestfs.pod:2185
41595 msgid ""
41596 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
41597 "true of any library, not just libguestfs.  However libguestfs also contains "
41598 "static markers to help in probing internal operations."
41599 msgstr ""
41600
41601 #. type: textblock
41602 #: ../src/guestfs.pod:2189
41603 msgid "You can list all the static markers by doing:"
41604 msgstr ""
41605
41606 #. type: verbatim
41607 #: ../src/guestfs.pod:2191
41608 #, no-wrap
41609 msgid ""
41610 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
41611 "              .provider(\"guestfs\").mark(\"*\")'\n"
41612 "\n"
41613 msgstr ""
41614
41615 #. type: textblock
41616 #: ../src/guestfs.pod:2194
41617 msgid ""
41618 "B<Note:> These static markers are I<not> part of the stable API and may "
41619 "change in future versions."
41620 msgstr ""
41621
41622 #. type: =head2
41623 #: ../src/guestfs.pod:2197
41624 msgid "SYSTEMTAP SCRIPT EXAMPLE"
41625 msgstr ""
41626
41627 #. type: textblock
41628 #: ../src/guestfs.pod:2199
41629 msgid ""
41630 "This script contains examples of displaying both the static markers and some "
41631 "ordinary C entry points:"
41632 msgstr ""
41633
41634 #. type: verbatim
41635 #: ../src/guestfs.pod:2202
41636 #, no-wrap
41637 msgid ""
41638 " global last;\n"
41639 " \n"
41640 msgstr ""
41641
41642 #. type: verbatim
41643 #: ../src/guestfs.pod:2204
41644 #, no-wrap
41645 msgid ""
41646 " function display_time () {\n"
41647 "       now = gettimeofday_us ();\n"
41648 "       delta = 0;\n"
41649 "       if (last > 0)\n"
41650 "             delta = now - last;\n"
41651 "       last = now;\n"
41652 " \n"
41653 msgstr ""
41654
41655 #. type: verbatim
41656 #: ../src/guestfs.pod:2211
41657 #, no-wrap
41658 msgid ""
41659 "       printf (\"%d (+%d):\", now, delta);\n"
41660 " }\n"
41661 " \n"
41662 msgstr ""
41663
41664 #. type: verbatim
41665 #: ../src/guestfs.pod:2214
41666 #, no-wrap
41667 msgid ""
41668 " probe begin {\n"
41669 "       last = 0;\n"
41670 "       printf (\"ready\\n\");\n"
41671 " }\n"
41672 " \n"
41673 msgstr ""
41674
41675 #. type: verbatim
41676 #: ../src/guestfs.pod:2219
41677 #, no-wrap
41678 msgid ""
41679 " /* Display all calls to static markers. */\n"
41680 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41681 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
41682 "       display_time();\n"
41683 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
41684 " }\n"
41685 " \n"
41686 msgstr ""
41687
41688 #. type: verbatim
41689 #: ../src/guestfs.pod:2226
41690 #, no-wrap
41691 msgid ""
41692 " /* Display all calls to guestfs_mkfs* functions. */\n"
41693 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41694 "           .function(\"guestfs_mkfs*\") ? {\n"
41695 "       display_time();\n"
41696 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
41697 " }\n"
41698 "\n"
41699 msgstr ""
41700
41701 #. type: textblock
41702 #: ../src/guestfs.pod:2233
41703 msgid ""
41704 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
41705 "program.  Note that you either have to be root, or you have to add yourself "
41706 "to several special stap groups.  Consult the systemtap documentation for "
41707 "more information."
41708 msgstr ""
41709
41710 #. type: verbatim
41711 #: ../src/guestfs.pod:2238
41712 #, no-wrap
41713 msgid ""
41714 " # stap /tmp/test.stap\n"
41715 " ready\n"
41716 "\n"
41717 msgstr ""
41718
41719 #. type: textblock
41720 #: ../src/guestfs.pod:2241
41721 msgid "In another terminal, run a guestfish command such as this:"
41722 msgstr ""
41723
41724 #. type: textblock
41725 #: ../src/guestfs.pod:2245
41726 msgid "In the first terminal, stap trace output similar to this is shown:"
41727 msgstr ""
41728
41729 #. type: verbatim
41730 #: ../src/guestfs.pod:2247
41731 #, no-wrap
41732 msgid ""
41733 " 1318248056692655 (+0):\tlaunch_start\n"
41734 " 1318248056692850 (+195):       launch_build_appliance_start\n"
41735 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
41736 " 1318248056838059 (+19774):     launch_run_qemu\n"
41737 " 1318248061071167 (+4233108):   launch_end\n"
41738 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
41739 "\n"
41740 msgstr ""
41741
41742 #. type: =end
41743 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
41744 msgid "html"
41745 msgstr "html"
41746
41747 #. type: textblock
41748 #: ../src/guestfs.pod:2256
41749 msgid ""
41750 "<!-- old anchor for the next section --> <a name="
41751 "\"state_machine_and_low_level_event_api\"/>"
41752 msgstr ""
41753 "<!-- old anchor for the next section --> <a name="
41754 "\"state_machine_and_low_level_event_api\"/>"
41755
41756 #. type: =head1
41757 #: ../src/guestfs.pod:2261
41758 msgid "ARCHITECTURE"
41759 msgstr "АРХІТЕКТУРА"
41760
41761 #. type: textblock
41762 #: ../src/guestfs.pod:2263
41763 msgid ""
41764 "Internally, libguestfs is implemented by running an appliance (a special "
41765 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
41766 "process of the main program."
41767 msgstr ""
41768
41769 #. type: verbatim
41770 #: ../src/guestfs.pod:2267
41771 #, no-wrap
41772 msgid ""
41773 "  ___________________\n"
41774 " /                   \\\n"
41775 " | main program      |\n"
41776 " |                   |\n"
41777 " |                   |           child process / appliance\n"
41778 " |                   |           __________________________\n"
41779 " |                   |          / qemu                     \\\n"
41780 " +-------------------+   RPC    |      +-----------------+ |\n"
41781 " | libguestfs     <--------------------> guestfsd        | |\n"
41782 " |                   |          |      +-----------------+ |\n"
41783 " \\___________________/          |      | Linux kernel    | |\n"
41784 "                                |      +--^--------------+ |\n"
41785 "                                \\_________|________________/\n"
41786 "                                          |\n"
41787 "                                   _______v______\n"
41788 "                                  /              \\\n"
41789 "                                  | Device or    |\n"
41790 "                                  | disk image   |\n"
41791 "                                  \\______________/\n"
41792 "\n"
41793 msgstr ""
41794
41795 #. type: textblock
41796 #: ../src/guestfs.pod:2287
41797 msgid ""
41798 "The library, linked to the main program, creates the child process and hence "
41799 "the appliance in the L</guestfs_launch> function."
41800 msgstr ""
41801
41802 #. type: textblock
41803 #: ../src/guestfs.pod:2290
41804 msgid ""
41805 "Inside the appliance is a Linux kernel and a complete stack of userspace "
41806 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
41807 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
41808 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
41809 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
41810 "attached to the qemu process which translates device access by the "
41811 "appliance's Linux kernel into accesses to the image."
41812 msgstr ""
41813
41814 #. type: textblock
41815 #: ../src/guestfs.pod:2299
41816 msgid ""
41817 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
41818 "Although the disk image you are attached to might also be used by some "
41819 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
41820 "care if both libguestfs's qemu process and your virtual machine are trying "
41821 "to update the disk image at the same time, since these usually results in "
41822 "massive disk corruption)."
41823 msgstr ""
41824
41825 #. type: =head1
41826 #: ../src/guestfs.pod:2306
41827 msgid "STATE MACHINE"
41828 msgstr "СКІНЧЕННИЙ АВТОМАТ"
41829
41830 #. type: textblock
41831 #: ../src/guestfs.pod:2308
41832 msgid "libguestfs uses a state machine to model the child process:"
41833 msgstr ""
41834
41835 #. type: verbatim
41836 #: ../src/guestfs.pod:2310
41837 #, no-wrap
41838 msgid ""
41839 "                         |\n"
41840 "                    guestfs_create\n"
41841 "                         |\n"
41842 "                         |\n"
41843 "                     ____V_____\n"
41844 "                    /          \\\n"
41845 "                    |  CONFIG  |\n"
41846 "                    \\__________/\n"
41847 "                     ^ ^   ^  \\\n"
41848 "                    /  |    \\  \\ guestfs_launch\n"
41849 "                   /   |    _\\__V______\n"
41850 "                  /    |   /           \\\n"
41851 "                 /     |   | LAUNCHING |\n"
41852 "                /      |   \\___________/\n"
41853 "               /       |       /\n"
41854 "              /        |  guestfs_launch\n"
41855 "             /         |     /\n"
41856 "    ______  /        __|____V\n"
41857 "   /      \\ ------> /        \\\n"
41858 "   | BUSY |         | READY  |\n"
41859 "   \\______/ <------ \\________/\n"
41860 "\n"
41861 msgstr ""
41862
41863 #. type: textblock
41864 #: ../src/guestfs.pod:2332
41865 msgid ""
41866 "The normal transitions are (1) CONFIG (when the handle is created, but there "
41867 "is no child process), (2) LAUNCHING (when the child process is booting up), "
41868 "(3) alternating between READY and BUSY as commands are issued to, and "
41869 "carried out by, the child process."
41870 msgstr ""
41871
41872 #. type: textblock
41873 #: ../src/guestfs.pod:2337
41874 msgid ""
41875 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
41876 "asynchronously at any time (eg. due to some internal error), and that causes "
41877 "the state to transition back to CONFIG."
41878 msgstr ""
41879
41880 #. type: textblock
41881 #: ../src/guestfs.pod:2341
41882 msgid ""
41883 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
41884 "issued when in the CONFIG state."
41885 msgstr ""
41886
41887 #. type: textblock
41888 #: ../src/guestfs.pod:2344
41889 msgid ""
41890 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
41891 "L</guestfs_launch> blocks until the child process is READY to accept "
41892 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
41893 "moves the state from CONFIG to LAUNCHING while it is running."
41894 msgstr ""
41895
41896 #. type: textblock
41897 #: ../src/guestfs.pod:2350
41898 msgid ""
41899 "API actions such as L</guestfs_mount> can only be issued when in the READY "
41900 "state.  These API calls block waiting for the command to be carried out (ie. "
41901 "the state to transition to BUSY and then back to READY).  There are no non-"
41902 "blocking versions, and no way to issue more than one command per handle at "
41903 "the same time."
41904 msgstr ""
41905
41906 #. type: textblock
41907 #: ../src/guestfs.pod:2356
41908 msgid ""
41909 "Finally, the child process sends asynchronous messages back to the main "
41910 "program, such as kernel log messages.  You can register a callback to "
41911 "receive these messages."
41912 msgstr ""
41913
41914 #. type: =head1
41915 #: ../src/guestfs.pod:2360
41916 msgid "INTERNALS"
41917 msgstr ""
41918
41919 #. type: =head2
41920 #: ../src/guestfs.pod:2362
41921 msgid "APPLIANCE BOOT PROCESS"
41922 msgstr ""
41923
41924 #. type: textblock
41925 #: ../src/guestfs.pod:2364
41926 msgid ""
41927 "This process has evolved and continues to evolve.  The description here "
41928 "corresponds only to the current version of libguestfs and is provided for "
41929 "information only."
41930 msgstr ""
41931
41932 #. type: textblock
41933 #: ../src/guestfs.pod:2368
41934 msgid ""
41935 "In order to follow the stages involved below, enable libguestfs debugging "
41936 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
41937 msgstr ""
41938
41939 #. type: =item
41940 #: ../src/guestfs.pod:2373
41941 msgid "Create the appliance"
41942 msgstr ""
41943
41944 #. type: textblock
41945 #: ../src/guestfs.pod:2375
41946 msgid ""
41947 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
41948 "initrd and the appliance."
41949 msgstr ""
41950
41951 #. type: textblock
41952 #: ../src/guestfs.pod:2378
41953 msgid ""
41954 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
41955 "directory if C<TMPDIR> is set)."
41956 msgstr ""
41957
41958 #. type: textblock
41959 #: ../src/guestfs.pod:2381
41960 msgid ""
41961 "For a complete description of how the appliance is created and cached, read "
41962 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
41963 msgstr ""
41964
41965 #. type: =item
41966 #: ../src/guestfs.pod:2385
41967 msgid "Start qemu and boot the kernel"
41968 msgstr ""
41969
41970 #. type: textblock
41971 #: ../src/guestfs.pod:2387
41972 msgid "qemu is invoked to boot the kernel."
41973 msgstr ""
41974
41975 #. type: =item
41976 #: ../src/guestfs.pod:2389
41977 msgid "Run the initrd"
41978 msgstr ""
41979
41980 #. type: textblock
41981 #: ../src/guestfs.pod:2391
41982 msgid ""
41983 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
41984 "appliance.  The purpose of the initrd is to load enough kernel modules in "
41985 "order that the appliance itself can be mounted and started."
41986 msgstr ""
41987
41988 #. type: textblock
41989 #: ../src/guestfs.pod:2395
41990 msgid ""
41991 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
41992 "initrd>."
41993 msgstr ""
41994
41995 #. type: textblock
41996 #: ../src/guestfs.pod:2398
41997 msgid ""
41998 "When the initrd has started you will see messages showing that kernel "
41999 "modules are being loaded, similar to this:"
42000 msgstr ""
42001
42002 #. type: verbatim
42003 #: ../src/guestfs.pod:2401
42004 #, no-wrap
42005 msgid ""
42006 " febootstrap: ext2 mini initrd starting up\n"
42007 " febootstrap: mounting /sys\n"
42008 " febootstrap: internal insmod libcrc32c.ko\n"
42009 " febootstrap: internal insmod crc32c-intel.ko\n"
42010 "\n"
42011 msgstr ""
42012
42013 #. type: =item
42014 #: ../src/guestfs.pod:2406
42015 msgid "Find and mount the appliance device"
42016 msgstr ""
42017
42018 #. type: textblock
42019 #: ../src/guestfs.pod:2408
42020 msgid ""
42021 "The appliance is a sparse file containing an ext2 filesystem which contains "
42022 "a familiar (although reduced in size) Linux operating system.  It would "
42023 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
42024 msgstr ""
42025
42026 #. type: textblock
42027 #: ../src/guestfs.pod:2412
42028 msgid ""
42029 "The regular disks being inspected by libguestfs are the first devices "
42030 "exposed by qemu (eg. as C</dev/vda>)."
42031 msgstr ""
42032
42033 #. type: textblock
42034 #: ../src/guestfs.pod:2415
42035 msgid ""
42036 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
42037 "there was only one regular disk)."
42038 msgstr ""
42039
42040 #. type: textblock
42041 #: ../src/guestfs.pod:2418
42042 msgid ""
42043 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
42044 "and switch root into the appliance, and run C</init> from the appliance."
42045 msgstr ""
42046
42047 #. type: textblock
42048 #: ../src/guestfs.pod:2422
42049 msgid "If this works successfully you will see messages such as:"
42050 msgstr ""
42051
42052 #. type: verbatim
42053 #: ../src/guestfs.pod:2424
42054 #, no-wrap
42055 msgid ""
42056 " febootstrap: picked /sys/block/vdb/dev as root device\n"
42057 " febootstrap: creating /dev/root as block special 252:16\n"
42058 " febootstrap: mounting new root on /root\n"
42059 " febootstrap: chroot\n"
42060 " Starting /init script ...\n"
42061 "\n"
42062 msgstr ""
42063
42064 #. type: textblock
42065 #: ../src/guestfs.pod:2430
42066 msgid ""
42067 "Note that C<Starting /init script ...> indicates that the appliance's init "
42068 "script is now running."
42069 msgstr ""
42070
42071 #. type: =item
42072 #: ../src/guestfs.pod:2433
42073 msgid "Initialize the appliance"
42074 msgstr ""
42075
42076 #. type: textblock
42077 #: ../src/guestfs.pod:2435
42078 msgid ""
42079 "The appliance itself now initializes itself.  This involves starting certain "
42080 "processes like C<udev>, possibly printing some debug information, and "
42081 "finally running the daemon (C<guestfsd>)."
42082 msgstr ""
42083
42084 #. type: =item
42085 #: ../src/guestfs.pod:2439
42086 msgid "The daemon"
42087 msgstr ""
42088
42089 #. type: textblock
42090 #: ../src/guestfs.pod:2441
42091 msgid ""
42092 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
42093 "should see:"
42094 msgstr ""
42095
42096 #. type: verbatim
42097 #: ../src/guestfs.pod:2444
42098 #, no-wrap
42099 msgid ""
42100 " verbose daemon enabled\n"
42101 "\n"
42102 msgstr ""
42103
42104 #. type: textblock
42105 #: ../src/guestfs.pod:2446
42106 msgid ""
42107 "The daemon expects to see a named virtio-serial port exposed by qemu and "
42108 "connected on the other end to the library."
42109 msgstr ""
42110
42111 #. type: textblock
42112 #: ../src/guestfs.pod:2449
42113 msgid ""
42114 "The daemon connects to this port (and hence to the library) and sends a four "
42115 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
42116 "protocol (see below)."
42117 msgstr ""
42118
42119 #. type: =head2
42120 #: ../src/guestfs.pod:2455
42121 msgid "COMMUNICATION PROTOCOL"
42122 msgstr ""
42123
42124 #. type: textblock
42125 #: ../src/guestfs.pod:2457
42126 msgid ""
42127 "Don't rely on using this protocol directly.  This section documents how it "
42128 "currently works, but it may change at any time."
42129 msgstr ""
42130
42131 #. type: textblock
42132 #: ../src/guestfs.pod:2460
42133 msgid ""
42134 "The protocol used to talk between the library and the daemon running inside "
42135 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
42136 "1014, RFC 1832, RFC 4506)."
42137 msgstr ""
42138
42139 #. type: textblock
42140 #: ../src/guestfs.pod:2464
42141 msgid ""
42142 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
42143 "this file is automatically generated)."
42144 msgstr ""
42145
42146 #. type: textblock
42147 #: ../src/guestfs.pod:2467
42148 msgid ""
42149 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
42150 "and C<FileOut> parameters, which are handled with very simple request/reply "
42151 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
42152 "parameters, which use the same request and reply messages, but they may also "
42153 "be followed by files sent using a chunked encoding."
42154 msgstr ""
42155
42156 #. type: =head3
42157 #: ../src/guestfs.pod:2474
42158 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
42159 msgstr ""
42160
42161 #. type: textblock
42162 #: ../src/guestfs.pod:2476
42163 msgid "For ordinary functions, the request message is:"
42164 msgstr ""
42165
42166 #. type: verbatim
42167 #: ../src/guestfs.pod:2478
42168 #, no-wrap
42169 msgid ""
42170 " total length (header + arguments,\n"
42171 "      but not including the length word itself)\n"
42172 " struct guestfs_message_header (encoded as XDR)\n"
42173 " struct guestfs_<foo>_args (encoded as XDR)\n"
42174 "\n"
42175 msgstr ""
42176
42177 #. type: textblock
42178 #: ../src/guestfs.pod:2483
42179 msgid ""
42180 "The total length field allows the daemon to allocate a fixed size buffer "
42181 "into which it slurps the rest of the message.  As a result, the total length "
42182 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
42183 "effective size of any request is limited to somewhere under this size."
42184 msgstr ""
42185
42186 #. type: textblock
42187 #: ../src/guestfs.pod:2489
42188 msgid ""
42189 "Note also that many functions don't take any arguments, in which case the "
42190 "C<guestfs_I<foo>_args> is completely omitted."
42191 msgstr ""
42192
42193 #. type: textblock
42194 #: ../src/guestfs.pod:2492
42195 msgid ""
42196 "The header contains the procedure number (C<guestfs_proc>) which is how the "
42197 "receiver knows what type of args structure to expect, or none at all."
42198 msgstr ""
42199
42200 #. type: textblock
42201 #: ../src/guestfs.pod:2496
42202 msgid ""
42203 "For functions that take optional arguments, the optional arguments are "
42204 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
42205 "arguments.  A bitmask in the header indicates which optional arguments are "
42206 "meaningful.  The bitmask is also checked to see if it contains bits set "
42207 "which the daemon does not know about (eg. if more optional arguments were "
42208 "added in a later version of the library), and this causes the call to be "
42209 "rejected."
42210 msgstr ""
42211
42212 #. type: textblock
42213 #: ../src/guestfs.pod:2504
42214 msgid "The reply message for ordinary functions is:"
42215 msgstr ""
42216
42217 #. type: verbatim
42218 #: ../src/guestfs.pod:2506
42219 #, no-wrap
42220 msgid ""
42221 " total length (header + ret,\n"
42222 "      but not including the length word itself)\n"
42223 " struct guestfs_message_header (encoded as XDR)\n"
42224 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42225 "\n"
42226 msgstr ""
42227
42228 #. type: textblock
42229 #: ../src/guestfs.pod:2511
42230 msgid ""
42231 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
42232 "functions that return no formal return values."
42233 msgstr ""
42234
42235 #. type: textblock
42236 #: ../src/guestfs.pod:2514
42237 msgid ""
42238 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
42239 msgstr ""
42240
42241 #. type: textblock
42242 #: ../src/guestfs.pod:2517
42243 msgid ""
42244 "In the case of an error, a flag is set in the header, and the reply message "
42245 "is slightly changed:"
42246 msgstr ""
42247
42248 #. type: verbatim
42249 #: ../src/guestfs.pod:2520
42250 #, no-wrap
42251 msgid ""
42252 " total length (header + error,\n"
42253 "      but not including the length word itself)\n"
42254 " struct guestfs_message_header (encoded as XDR)\n"
42255 " struct guestfs_message_error (encoded as XDR)\n"
42256 "\n"
42257 msgstr ""
42258
42259 #. type: textblock
42260 #: ../src/guestfs.pod:2525
42261 msgid ""
42262 "The C<guestfs_message_error> structure contains the error message as a "
42263 "string."
42264 msgstr ""
42265
42266 #. type: =head3
42267 #: ../src/guestfs.pod:2528
42268 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
42269 msgstr ""
42270
42271 #. type: textblock
42272 #: ../src/guestfs.pod:2530
42273 msgid ""
42274 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
42275 "The normal request message is sent (see above).  However this is followed by "
42276 "a sequence of file chunks."
42277 msgstr ""
42278
42279 #. type: verbatim
42280 #: ../src/guestfs.pod:2534
42281 #, no-wrap
42282 msgid ""
42283 " total length (header + arguments,\n"
42284 "      but not including the length word itself,\n"
42285 "      and not including the chunks)\n"
42286 " struct guestfs_message_header (encoded as XDR)\n"
42287 " struct guestfs_<foo>_args (encoded as XDR)\n"
42288 " sequence of chunks for FileIn param #0\n"
42289 " sequence of chunks for FileIn param #1 etc.\n"
42290 "\n"
42291 msgstr ""
42292
42293 #. type: textblock
42294 #: ../src/guestfs.pod:2542
42295 msgid "The \"sequence of chunks\" is:"
42296 msgstr ""
42297
42298 #. type: verbatim
42299 #: ../src/guestfs.pod:2544
42300 #, no-wrap
42301 msgid ""
42302 " length of chunk (not including length word itself)\n"
42303 " struct guestfs_chunk (encoded as XDR)\n"
42304 " length of chunk\n"
42305 " struct guestfs_chunk (encoded as XDR)\n"
42306 "   ...\n"
42307 " length of chunk\n"
42308 " struct guestfs_chunk (with data.data_len == 0)\n"
42309 "\n"
42310 msgstr ""
42311
42312 #. type: textblock
42313 #: ../src/guestfs.pod:2552
42314 msgid ""
42315 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
42316 "is set in the final chunk to indicate either successful completion or early "
42317 "cancellation."
42318 msgstr ""
42319
42320 #. type: textblock
42321 #: ../src/guestfs.pod:2556
42322 msgid ""
42323 "At time of writing there are no functions that have more than one FileIn "
42324 "parameter.  However this is (theoretically) supported, by sending the "
42325 "sequence of chunks for each FileIn parameter one after another (from left to "
42326 "right)."
42327 msgstr ""
42328
42329 #. type: textblock
42330 #: ../src/guestfs.pod:2561
42331 msgid ""
42332 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
42333 "transfer.  The library does this by sending a chunk with a special flag set "
42334 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
42335 "RPC, does I<not> send any reply, and goes back to reading the next request."
42336 msgstr ""
42337
42338 #. type: textblock
42339 #: ../src/guestfs.pod:2567
42340 msgid ""
42341 "The daemon may also cancel.  It does this by writing a special word "
42342 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
42343 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
42344 "cancel chunk).  The special word is chosen so that even if cancellation "
42345 "happens right at the end of the transfer (after the library has finished "
42346 "writing and has started listening for the reply), the \"spurious\" cancel "
42347 "flag will not be confused with the reply message."
42348 msgstr ""
42349
42350 #. type: textblock
42351 #: ../src/guestfs.pod:2576
42352 msgid ""
42353 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
42354 "limit), and also files where the size is not known in advance (eg. from "
42355 "pipes or sockets).  However the chunks are rather small "
42356 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
42357 "to keep much in memory."
42358 msgstr ""
42359
42360 #. type: =head3
42361 #: ../src/guestfs.pod:2582
42362 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
42363 msgstr ""
42364
42365 #. type: textblock
42366 #: ../src/guestfs.pod:2584
42367 msgid ""
42368 "The protocol for FileOut parameters is exactly the same as for FileIn "
42369 "parameters, but with the roles of daemon and library reversed."
42370 msgstr ""
42371
42372 #. type: verbatim
42373 #: ../src/guestfs.pod:2587
42374 #, no-wrap
42375 msgid ""
42376 " total length (header + ret,\n"
42377 "      but not including the length word itself,\n"
42378 "      and not including the chunks)\n"
42379 " struct guestfs_message_header (encoded as XDR)\n"
42380 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42381 " sequence of chunks for FileOut param #0\n"
42382 " sequence of chunks for FileOut param #1 etc.\n"
42383 "\n"
42384 msgstr ""
42385
42386 #. type: =head3
42387 #: ../src/guestfs.pod:2595
42388 msgid "INITIAL MESSAGE"
42389 msgstr ""
42390
42391 #. type: textblock
42392 #: ../src/guestfs.pod:2597
42393 msgid ""
42394 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
42395 "which indicates that the guest and daemon is alive.  This is what L</"
42396 "guestfs_launch> waits for."
42397 msgstr ""
42398
42399 #. type: =head3
42400 #: ../src/guestfs.pod:2601
42401 msgid "PROGRESS NOTIFICATION MESSAGES"
42402 msgstr ""
42403
42404 #. type: textblock
42405 #: ../src/guestfs.pod:2603
42406 msgid ""
42407 "The daemon may send progress notification messages at any time.  These are "
42408 "distinguished by the normal length word being replaced by "
42409 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
42410 msgstr ""
42411
42412 #. type: textblock
42413 #: ../src/guestfs.pod:2607
42414 msgid ""
42415 "The library turns them into progress callbacks (see L</"
42416 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
42417 "if not."
42418 msgstr ""
42419
42420 #. type: textblock
42421 #: ../src/guestfs.pod:2611
42422 msgid ""
42423 "The daemon self-limits the frequency of progress messages it sends (see "
42424 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
42425 "messages."
42426 msgstr ""
42427
42428 #. type: =head1
42429 #: ../src/guestfs.pod:2615
42430 msgid "LIBGUESTFS VERSION NUMBERS"
42431 msgstr ""
42432
42433 #. type: textblock
42434 #: ../src/guestfs.pod:2617
42435 msgid ""
42436 "Since April 2010, libguestfs has started to make separate development and "
42437 "stable releases, along with corresponding branches in our git repository.  "
42438 "These separate releases can be identified by version number:"
42439 msgstr ""
42440
42441 #. type: verbatim
42442 #: ../src/guestfs.pod:2622
42443 #, no-wrap
42444 msgid ""
42445 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
42446 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
42447 "       |\n"
42448 "       v\n"
42449 " 1  .  3  .  5\n"
42450 " ^           ^\n"
42451 " |           |\n"
42452 " |           `-------- sub-version\n"
42453 " |\n"
42454 " `------ always '1' because we don't change the ABI\n"
42455 "\n"
42456 msgstr ""
42457
42458 #. type: textblock
42459 #: ../src/guestfs.pod:2633
42460 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
42461 msgstr ""
42462
42463 #. type: textblock
42464 #: ../src/guestfs.pod:2635
42465 msgid ""
42466 "As time passes we cherry pick fixes from the development branch and backport "
42467 "those into the stable branch, the effect being that the stable branch should "
42468 "get more stable and less buggy over time.  So the stable releases are ideal "
42469 "for people who don't need new features but would just like the software to "
42470 "work."
42471 msgstr ""
42472
42473 #. type: textblock
42474 #: ../src/guestfs.pod:2641
42475 msgid "Our criteria for backporting changes are:"
42476 msgstr ""
42477
42478 #. type: textblock
42479 #: ../src/guestfs.pod:2647
42480 msgid ""
42481 "Documentation changes which don't affect any code are backported unless the "
42482 "documentation refers to a future feature which is not in stable."
42483 msgstr ""
42484
42485 #. type: textblock
42486 #: ../src/guestfs.pod:2653
42487 msgid ""
42488 "Bug fixes which are not controversial, fix obvious problems, and have been "
42489 "well tested are backported."
42490 msgstr ""
42491
42492 #. type: textblock
42493 #: ../src/guestfs.pod:2658
42494 msgid ""
42495 "Simple rearrangements of code which shouldn't affect how it works get "
42496 "backported.  This is so that the code in the two branches doesn't get too "
42497 "far out of step, allowing us to backport future fixes more easily."
42498 msgstr ""
42499
42500 #. type: textblock
42501 #: ../src/guestfs.pod:2664
42502 msgid ""
42503 "We I<don't> backport new features, new APIs, new tools etc, except in one "
42504 "exceptional case: the new feature is required in order to implement an "
42505 "important bug fix."
42506 msgstr ""
42507
42508 #. type: textblock
42509 #: ../src/guestfs.pod:2670
42510 msgid ""
42511 "A new stable branch starts when we think the new features in development are "
42512 "substantial and compelling enough over the current stable branch to warrant "
42513 "it.  When that happens we create new stable and development versions 1.N.0 "
42514 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
42515 "stable at this point, but by backporting fixes from development, that branch "
42516 "will stabilize over time."
42517 msgstr ""
42518
42519 #. type: =head1
42520 #: ../src/guestfs.pod:2678
42521 msgid "EXTENDING LIBGUESTFS"
42522 msgstr ""
42523
42524 #. type: =head2
42525 #: ../src/guestfs.pod:2680
42526 msgid "ADDING A NEW API ACTION"
42527 msgstr ""
42528
42529 #. type: textblock
42530 #: ../src/guestfs.pod:2682
42531 msgid ""
42532 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
42533 "documentation) are generated, and this makes it easy to extend the "
42534 "libguestfs API."
42535 msgstr ""
42536
42537 #. type: textblock
42538 #: ../src/guestfs.pod:2686
42539 msgid "To add a new API action there are two changes:"
42540 msgstr ""
42541
42542 #. type: textblock
42543 #: ../src/guestfs.pod:2692
42544 msgid ""
42545 "You need to add a description of the call (name, parameters, return type, "
42546 "tests, documentation) to C<generator/generator_actions.ml>."
42547 msgstr ""
42548
42549 #. type: textblock
42550 #: ../src/guestfs.pod:2695
42551 msgid ""
42552 "There are two sorts of API action, depending on whether the call goes "
42553 "through to the daemon in the appliance, or is serviced entirely by the "
42554 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
42555 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
42556 "an example of the latter, since a trace flag is maintained in the handle and "
42557 "all tracing is done on the library side."
42558 msgstr ""
42559
42560 #. type: textblock
42561 #: ../src/guestfs.pod:2703
42562 msgid ""
42563 "Most new actions are of the first type, and get added to the "
42564 "C<daemon_functions> list.  Each function has a unique procedure number used "
42565 "in the RPC protocol which is assigned to that action when we publish "
42566 "libguestfs and cannot be reused.  Take the latest procedure number and "
42567 "increment it."
42568 msgstr ""
42569
42570 #. type: textblock
42571 #: ../src/guestfs.pod:2709
42572 msgid ""
42573 "For library-only actions of the second type, add to the "
42574 "C<non_daemon_functions> list.  Since these functions are serviced by the "
42575 "library and do not travel over the RPC mechanism to the daemon, these "
42576 "functions do not need a procedure number, and so the procedure number is set "
42577 "to C<-1>."
42578 msgstr ""
42579
42580 #. type: textblock
42581 #: ../src/guestfs.pod:2717
42582 msgid "Implement the action (in C):"
42583 msgstr ""
42584
42585 #. type: textblock
42586 #: ../src/guestfs.pod:2719
42587 msgid ""
42588 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
42589 "C<daemon/> directory."
42590 msgstr ""
42591
42592 #. type: textblock
42593 #: ../src/guestfs.pod:2722
42594 msgid ""
42595 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
42596 "(note: double underscore) in the C<src/> directory."
42597 msgstr ""
42598
42599 #. type: textblock
42600 #: ../src/guestfs.pod:2725
42601 msgid "In either case, use another function as an example of what to do."
42602 msgstr ""
42603
42604 #. type: textblock
42605 #: ../src/guestfs.pod:2729
42606 msgid "After making these changes, use C<make> to compile."
42607 msgstr ""
42608
42609 #. type: textblock
42610 #: ../src/guestfs.pod:2731
42611 msgid ""
42612 "Note that you don't need to implement the RPC, language bindings, manual "
42613 "pages or anything else.  It's all automatically generated from the OCaml "
42614 "description."
42615 msgstr ""
42616
42617 #. type: =head2
42618 #: ../src/guestfs.pod:2735
42619 msgid "ADDING TESTS FOR AN API ACTION"
42620 msgstr ""
42621
42622 #. type: textblock
42623 #: ../src/guestfs.pod:2737
42624 msgid ""
42625 "You can supply zero or as many tests as you want per API call.  The tests "
42626 "can either be added as part of the API description (C<generator/"
42627 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
42628 "into C<tests/*/>.  Note that adding a script to C<tests/*/> is slower, so if "
42629 "possible use the first method."
42630 msgstr ""
42631
42632 #. type: textblock
42633 #: ../src/guestfs.pod:2744
42634 msgid ""
42635 "The following describes the test environment used when you add an API test "
42636 "in C<generator_actions.ml>."
42637 msgstr ""
42638
42639 #. type: textblock
42640 #: ../src/guestfs.pod:2747
42641 msgid "The test environment has 4 block devices:"
42642 msgstr ""
42643
42644 #. type: =item
42645 #: ../src/guestfs.pod:2751
42646 msgid "C</dev/sda> 500MB"
42647 msgstr "C</dev/sda> 500 МБ"
42648
42649 #. type: textblock
42650 #: ../src/guestfs.pod:2753
42651 msgid "General block device for testing."
42652 msgstr ""
42653
42654 #. type: =item
42655 #: ../src/guestfs.pod:2755
42656 msgid "C</dev/sdb> 50MB"
42657 msgstr "C</dev/sdb> 50 МБ"
42658
42659 #. type: textblock
42660 #: ../src/guestfs.pod:2757
42661 msgid ""
42662 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
42663 "operations."
42664 msgstr ""
42665
42666 #. type: =item
42667 #: ../src/guestfs.pod:2760
42668 msgid "C</dev/sdc> 10MB"
42669 msgstr "C</dev/sdc> 10 МБ"
42670
42671 #. type: textblock
42672 #: ../src/guestfs.pod:2762
42673 msgid "Used in a few tests where two block devices are needed."
42674 msgstr ""
42675
42676 #. type: =item
42677 #: ../src/guestfs.pod:2764
42678 msgid "C</dev/sdd>"
42679 msgstr "C</dev/sdd>"
42680
42681 #. type: textblock
42682 #: ../src/guestfs.pod:2766
42683 msgid "ISO with fixed content (see C<images/test.iso>)."
42684 msgstr ""
42685
42686 #. type: textblock
42687 #: ../src/guestfs.pod:2770
42688 msgid ""
42689 "To be able to run the tests in a reasonable amount of time, the libguestfs "
42690 "appliance and block devices are reused between tests.  So don't try testing "
42691 "L</guestfs_kill_subprocess> :-x"
42692 msgstr ""
42693
42694 #. type: textblock
42695 #: ../src/guestfs.pod:2774
42696 msgid ""
42697 "Each test starts with an initial scenario, selected using one of the "
42698 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
42699 "initialize the disks mentioned above in a particular way as documented in "
42700 "C<generator_types.ml>.  You should not assume anything about the previous "
42701 "contents of other disks that are not initialized."
42702 msgstr ""
42703
42704 #. type: textblock
42705 #: ../src/guestfs.pod:2780
42706 msgid ""
42707 "You can add a prerequisite clause to any individual test.  This is a run-"
42708 "time check, which, if it fails, causes the test to be skipped.  Useful if "
42709 "testing a command which might not work on all variations of libguestfs "
42710 "builds.  A test that has prerequisite of C<Always> means to run "
42711 "unconditionally."
42712 msgstr ""
42713
42714 #. type: textblock
42715 #: ../src/guestfs.pod:2786
42716 msgid ""
42717 "In addition, packagers can skip individual tests by setting environment "
42718 "variables before running C<make check>."
42719 msgstr ""
42720
42721 #. type: verbatim
42722 #: ../src/guestfs.pod:2789
42723 #, no-wrap
42724 msgid ""
42725 " SKIP_TEST_<CMD>_<NUM>=1\n"
42726 "\n"
42727 msgstr ""
42728
42729 #. type: textblock
42730 #: ../src/guestfs.pod:2791
42731 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
42732 msgstr ""
42733
42734 #. type: verbatim
42735 #: ../src/guestfs.pod:2795
42736 #, no-wrap
42737 msgid ""
42738 " SKIP_TEST_<CMD>=1\n"
42739 "\n"
42740 msgstr ""
42741
42742 #. type: textblock
42743 #: ../src/guestfs.pod:2797
42744 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
42745 msgstr ""
42746
42747 #. type: textblock
42748 #: ../src/guestfs.pod:2799
42749 msgid "Packagers can run only certain tests by setting for example:"
42750 msgstr ""
42751
42752 #. type: verbatim
42753 #: ../src/guestfs.pod:2801
42754 #, no-wrap
42755 msgid ""
42756 " TEST_ONLY=\"vfs_type zerofree\"\n"
42757 "\n"
42758 msgstr ""
42759
42760 #. type: textblock
42761 #: ../src/guestfs.pod:2803
42762 msgid ""
42763 "See C<tests/c-api/tests.c> for more details of how these environment "
42764 "variables work."
42765 msgstr ""
42766
42767 #. type: =head2
42768 #: ../src/guestfs.pod:2806
42769 msgid "DEBUGGING NEW API ACTIONS"
42770 msgstr ""
42771
42772 #. type: textblock
42773 #: ../src/guestfs.pod:2808
42774 msgid "Test new actions work before submitting them."
42775 msgstr ""
42776
42777 #. type: textblock
42778 #: ../src/guestfs.pod:2810
42779 msgid "You can use guestfish to try out new commands."
42780 msgstr ""
42781
42782 #. type: textblock
42783 #: ../src/guestfs.pod:2812
42784 msgid ""
42785 "Debugging the daemon is a problem because it runs inside a minimal "
42786 "environment.  However you can fprintf messages in the daemon to stderr, and "
42787 "they will show up if you use C<guestfish -v>."
42788 msgstr ""
42789
42790 #. type: =head2
42791 #: ../src/guestfs.pod:2816
42792 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
42793 msgstr ""
42794
42795 #. type: textblock
42796 #: ../src/guestfs.pod:2818
42797 msgid ""
42798 "Our C source code generally adheres to some basic code-formatting "
42799 "conventions.  The existing code base is not totally consistent on this "
42800 "front, but we do prefer that contributed code be formatted similarly.  In "
42801 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
42802 "indentation level, and other than that, follow the K&R style."
42803 msgstr ""
42804
42805 #. type: textblock
42806 #: ../src/guestfs.pod:2824
42807 msgid ""
42808 "If you use Emacs, add the following to one of one of your start-up files (e."
42809 "g., ~/.emacs), to help ensure that you get indentation right:"
42810 msgstr ""
42811
42812 #. type: verbatim
42813 #: ../src/guestfs.pod:2827
42814 #, no-wrap
42815 msgid ""
42816 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
42817 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
42818 " (add-hook 'find-file-hook\n"
42819 "     '(lambda () (if (and buffer-file-name\n"
42820 "                          (string-match \"/libguestfs\\\\>\"\n"
42821 "                              (buffer-file-name))\n"
42822 "                          (not (string-equal mode-name \"Change Log\"))\n"
42823 "                          (not (string-equal mode-name \"Makefile\")))\n"
42824 "                     (setq indent-tabs-mode nil))))\n"
42825 " \n"
42826 msgstr ""
42827
42828 #. type: verbatim
42829 #: ../src/guestfs.pod:2837
42830 #, no-wrap
42831 msgid ""
42832 " ;;; When editing C sources in libguestfs, use this style.\n"
42833 " (defun libguestfs-c-mode ()\n"
42834 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
42835 "   (interactive)\n"
42836 "   (c-set-style \"K&R\")\n"
42837 "   (setq c-indent-level 2)\n"
42838 "   (setq c-basic-offset 2))\n"
42839 " (add-hook 'c-mode-hook\n"
42840 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
42841 "                               (buffer-file-name))\n"
42842 "                           (libguestfs-c-mode))))\n"
42843 "\n"
42844 msgstr ""
42845
42846 #. type: textblock
42847 #: ../src/guestfs.pod:2849
42848 msgid "Enable warnings when compiling (and fix any problems this finds):"
42849 msgstr ""
42850
42851 #. type: verbatim
42852 #: ../src/guestfs.pod:2852
42853 #, no-wrap
42854 msgid ""
42855 " ./configure --enable-gcc-warnings\n"
42856 "\n"
42857 msgstr ""
42858 " ./configure --enable-gcc-warnings\n"
42859 "\n"
42860
42861 #. type: textblock
42862 #: ../src/guestfs.pod:2854
42863 msgid "Useful targets are:"
42864 msgstr ""
42865
42866 #. type: verbatim
42867 #: ../src/guestfs.pod:2856
42868 #, no-wrap
42869 msgid ""
42870 " make syntax-check  # checks the syntax of the C code\n"
42871 " make check         # runs the test suite\n"
42872 "\n"
42873 msgstr ""
42874
42875 #. type: =head2
42876 #: ../src/guestfs.pod:2859
42877 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
42878 msgstr ""
42879
42880 #. type: textblock
42881 #: ../src/guestfs.pod:2861
42882 msgid ""
42883 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
42884 "which are used to do shell quoting."
42885 msgstr ""
42886
42887 #. type: =item
42888 #: ../src/guestfs.pod:2866
42889 msgid "%Q"
42890 msgstr "%Q"
42891
42892 #. type: textblock
42893 #: ../src/guestfs.pod:2868
42894 msgid ""
42895 "Simple shell quoted string.  Any spaces or other shell characters are "
42896 "escaped for you."
42897 msgstr ""
42898
42899 #. type: =item
42900 #: ../src/guestfs.pod:2871
42901 msgid "%R"
42902 msgstr "%R"
42903
42904 #. type: textblock
42905 #: ../src/guestfs.pod:2873
42906 msgid ""
42907 "Same as C<%Q> except the string is treated as a path which is prefixed by "
42908 "the sysroot."
42909 msgstr ""
42910
42911 #. type: verbatim
42912 #: ../src/guestfs.pod:2880
42913 #, no-wrap
42914 msgid ""
42915 " asprintf (&cmd, \"cat %R\", path);\n"
42916 "\n"
42917 msgstr ""
42918 " asprintf (&cmd, \"cat %R\", path);\n"
42919 "\n"
42920
42921 #. type: textblock
42922 #: ../src/guestfs.pod:2882
42923 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
42924 msgstr ""
42925
42926 #. type: textblock
42927 #: ../src/guestfs.pod:2884
42928 msgid ""
42929 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
42930 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
42931 "they are not passed via the shell (instead, straight to exec).  You probably "
42932 "want to use the C<sysroot_path()> function however."
42933 msgstr ""
42934
42935 #. type: =head2
42936 #: ../src/guestfs.pod:2890
42937 msgid "SUBMITTING YOUR NEW API ACTIONS"
42938 msgstr ""
42939
42940 #. type: textblock
42941 #: ../src/guestfs.pod:2892
42942 msgid ""
42943 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
42944 "libguestfs> and CC to L<rjones@redhat.com>."
42945 msgstr ""
42946
42947 #. type: =head2
42948 #: ../src/guestfs.pod:2896
42949 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
42950 msgstr ""
42951
42952 #. type: textblock
42953 #: ../src/guestfs.pod:2898
42954 msgid "We support i18n (gettext anyhow) in the library."
42955 msgstr ""
42956
42957 #. type: textblock
42958 #: ../src/guestfs.pod:2900
42959 msgid ""
42960 "However many messages come from the daemon, and we don't translate those at "
42961 "the moment.  One reason is that the appliance generally has all locale files "
42962 "removed from it, because they take up a lot of space.  So we'd have to readd "
42963 "some of those, as well as copying our PO files into the appliance."
42964 msgstr ""
42965
42966 #. type: textblock
42967 #: ../src/guestfs.pod:2906
42968 msgid ""
42969 "Debugging messages are never translated, since they are intended for the "
42970 "programmers."
42971 msgstr ""
42972
42973 #. type: =head2
42974 #: ../src/guestfs.pod:2909
42975 msgid "SOURCE CODE SUBDIRECTORIES"
42976 msgstr ""
42977
42978 #. type: =item
42979 #: ../src/guestfs.pod:2913
42980 msgid "C<align>"
42981 msgstr ""
42982
42983 #. type: textblock
42984 #: ../src/guestfs.pod:2915
42985 msgid "L<virt-alignment-scan(1)> command and documentation."
42986 msgstr ""
42987
42988 #. type: textblock
42989 #: ../src/guestfs.pod:2919
42990 msgid "The libguestfs appliance, build scripts and so on."
42991 msgstr ""
42992
42993 #. type: =item
42994 #: ../src/guestfs.pod:2921
42995 msgid "C<cat>"
42996 msgstr "C<cat>"
42997
42998 #. type: textblock
42999 #: ../src/guestfs.pod:2923
43000 msgid ""
43001 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
43002 "documentation."
43003 msgstr ""
43004
43005 #. type: =item
43006 #: ../src/guestfs.pod:2926
43007 msgid "C<clone>"
43008 msgstr ""
43009
43010 #. type: textblock
43011 #: ../src/guestfs.pod:2928
43012 msgid ""
43013 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
43014 "command and documentation."
43015 msgstr ""
43016
43017 #. type: =item
43018 #: ../src/guestfs.pod:2931
43019 msgid "C<contrib>"
43020 msgstr "C<contrib>"
43021
43022 #. type: textblock
43023 #: ../src/guestfs.pod:2933
43024 msgid "Outside contributions, experimental parts."
43025 msgstr ""
43026
43027 #. type: =item
43028 #: ../src/guestfs.pod:2935
43029 msgid "C<daemon>"
43030 msgstr "C<daemon>"
43031
43032 #. type: textblock
43033 #: ../src/guestfs.pod:2937
43034 msgid ""
43035 "The daemon that runs inside the libguestfs appliance and carries out actions."
43036 msgstr ""
43037
43038 #. type: =item
43039 #: ../src/guestfs.pod:2940
43040 msgid "C<df>"
43041 msgstr "C<df>"
43042
43043 #. type: textblock
43044 #: ../src/guestfs.pod:2942
43045 msgid "L<virt-df(1)> command and documentation."
43046 msgstr ""
43047
43048 #. type: =item
43049 #: ../src/guestfs.pod:2944
43050 msgid "C<edit>"
43051 msgstr "C<edit>"
43052
43053 #. type: textblock
43054 #: ../src/guestfs.pod:2946
43055 msgid "L<virt-edit(1)> command and documentation."
43056 msgstr ""
43057
43058 #. type: =item
43059 #: ../src/guestfs.pod:2948
43060 msgid "C<examples>"
43061 msgstr "C<examples>"
43062
43063 #. type: textblock
43064 #: ../src/guestfs.pod:2950
43065 msgid "C API example code."
43066 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
43067
43068 #. type: =item
43069 #: ../src/guestfs.pod:2952
43070 msgid "C<fish>"
43071 msgstr "C<fish>"
43072
43073 #. type: textblock
43074 #: ../src/guestfs.pod:2954
43075 msgid ""
43076 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
43077 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
43078 "L<virt-tar-out(1)>."
43079 msgstr ""
43080
43081 #. type: =item
43082 #: ../src/guestfs.pod:2958
43083 msgid "C<fuse>"
43084 msgstr "C<fuse>"
43085
43086 #. type: textblock
43087 #: ../src/guestfs.pod:2960
43088 msgid ""
43089 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
43090 msgstr ""
43091
43092 #. type: =item
43093 #: ../src/guestfs.pod:2962
43094 msgid "C<generator>"
43095 msgstr "C<generator>"
43096
43097 #. type: textblock
43098 #: ../src/guestfs.pod:2964
43099 msgid ""
43100 "The crucially important generator, used to automatically generate large "
43101 "amounts of boilerplate C code for things like RPC and bindings."
43102 msgstr ""
43103
43104 #. type: =item
43105 #: ../src/guestfs.pod:2967
43106 msgid "C<inspector>"
43107 msgstr "C<inspector>"
43108
43109 #. type: textblock
43110 #: ../src/guestfs.pod:2969
43111 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
43112 msgstr ""
43113
43114 #. type: =item
43115 #: ../src/guestfs.pod:2971
43116 msgid "C<logo>"
43117 msgstr "C<logo>"
43118
43119 #. type: textblock
43120 #: ../src/guestfs.pod:2973
43121 msgid "Logo used on the website.  The fish is called Arthur by the way."
43122 msgstr ""
43123
43124 #. type: =item
43125 #: ../src/guestfs.pod:2975
43126 msgid "C<m4>"
43127 msgstr "C<m4>"
43128
43129 #. type: textblock
43130 #: ../src/guestfs.pod:2977
43131 msgid "M4 macros used by autoconf."
43132 msgstr ""
43133
43134 #. type: =item
43135 #: ../src/guestfs.pod:2979
43136 msgid "C<po>"
43137 msgstr "C<po>"
43138
43139 #. type: textblock
43140 #: ../src/guestfs.pod:2981
43141 msgid "Translations of simple gettext strings."
43142 msgstr "Переклади простих рядків gettext."
43143
43144 #. type: =item
43145 #: ../src/guestfs.pod:2983
43146 msgid "C<po-docs>"
43147 msgstr "C<po-docs>"
43148
43149 #. type: textblock
43150 #: ../src/guestfs.pod:2985
43151 msgid ""
43152 "The build infrastructure and PO files for translations of manpages and POD "
43153 "files.  Eventually this will be combined with the C<po> directory, but that "
43154 "is rather complicated."
43155 msgstr ""
43156
43157 #. type: =item
43158 #: ../src/guestfs.pod:2989
43159 msgid "C<rescue>"
43160 msgstr "C<rescue>"
43161
43162 #. type: textblock
43163 #: ../src/guestfs.pod:2991
43164 msgid "L<virt-rescue(1)> command and documentation."
43165 msgstr ""
43166
43167 #. type: =item
43168 #: ../src/guestfs.pod:2993
43169 msgid "C<resize>"
43170 msgstr ""
43171
43172 #. type: textblock
43173 #: ../src/guestfs.pod:2995
43174 msgid "L<virt-resize(1)> command and documentation."
43175 msgstr ""
43176
43177 #. type: =item
43178 #: ../src/guestfs.pod:2997
43179 msgid "C<sparsify>"
43180 msgstr ""
43181
43182 #. type: textblock
43183 #: ../src/guestfs.pod:2999
43184 msgid "L<virt-sparsify(1)> command and documentation."
43185 msgstr ""
43186
43187 #. type: =item
43188 #: ../src/guestfs.pod:3001
43189 msgid "C<src>"
43190 msgstr "C<src>"
43191
43192 #. type: textblock
43193 #: ../src/guestfs.pod:3003
43194 msgid "Source code to the C library."
43195 msgstr ""
43196
43197 #. type: =item
43198 #: ../src/guestfs.pod:3005
43199 msgid "C<test-tool>"
43200 msgstr "C<test-tool>"
43201
43202 #. type: textblock
43203 #: ../src/guestfs.pod:3007
43204 msgid ""
43205 "Test tool for end users to test if their qemu/kernel combination will work "
43206 "with libguestfs."
43207 msgstr ""
43208
43209 #. type: =item
43210 #: ../src/guestfs.pod:3010
43211 #, fuzzy
43212 #| msgid "C<capitests>"
43213 msgid "C<tests>"
43214 msgstr "C<capitests>"
43215
43216 #. type: textblock
43217 #: ../src/guestfs.pod:3012
43218 #, fuzzy
43219 #| msgid "6. Test"
43220 msgid "Tests."
43221 msgstr "6. Перевірка"
43222
43223 #. type: =item
43224 #: ../src/guestfs.pod:3014
43225 msgid "C<tools>"
43226 msgstr "C<tools>"
43227
43228 #. type: textblock
43229 #: ../src/guestfs.pod:3016
43230 msgid ""
43231 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
43232 msgstr ""
43233
43234 #. type: =item
43235 #: ../src/guestfs.pod:3018
43236 msgid "C<csharp>"
43237 msgstr "C<csharp>"
43238
43239 #. type: =item
43240 #: ../src/guestfs.pod:3020
43241 msgid "C<erlang>"
43242 msgstr ""
43243
43244 #. type: =item
43245 #: ../src/guestfs.pod:3022
43246 msgid "C<haskell>"
43247 msgstr "C<haskell>"
43248
43249 #. type: =item
43250 #: ../src/guestfs.pod:3024
43251 msgid "C<java>"
43252 msgstr "C<java>"
43253
43254 #. type: =item
43255 #: ../src/guestfs.pod:3026
43256 msgid "C<ocaml>"
43257 msgstr "C<ocaml>"
43258
43259 #. type: =item
43260 #: ../src/guestfs.pod:3028
43261 msgid "C<php>"
43262 msgstr "C<php>"
43263
43264 #. type: =item
43265 #: ../src/guestfs.pod:3030
43266 msgid "C<perl>"
43267 msgstr "C<perl>"
43268
43269 #. type: =item
43270 #: ../src/guestfs.pod:3032
43271 msgid "C<python>"
43272 msgstr "C<python>"
43273
43274 #. type: =item
43275 #: ../src/guestfs.pod:3034
43276 msgid "C<ruby>"
43277 msgstr "C<ruby>"
43278
43279 #. type: textblock
43280 #: ../src/guestfs.pod:3036
43281 msgid "Language bindings."
43282 msgstr "Прив’язки до мов програмування."
43283
43284 #. type: =head2
43285 #: ../src/guestfs.pod:3040
43286 msgid "MAKING A STABLE RELEASE"
43287 msgstr ""
43288
43289 #. type: textblock
43290 #: ../src/guestfs.pod:3042
43291 msgid ""
43292 "When we make a stable release, there are several steps documented here.  See "
43293 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
43294 "branch policy."
43295 msgstr ""
43296
43297 #. type: textblock
43298 #: ../src/guestfs.pod:3050
43299 msgid ""
43300 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
43301 msgstr ""
43302
43303 #. type: textblock
43304 #: ../src/guestfs.pod:3055
43305 msgid "Finalize RELEASE-NOTES."
43306 msgstr ""
43307
43308 #. type: textblock
43309 #: ../src/guestfs.pod:3059
43310 msgid "Update ROADMAP."
43311 msgstr ""
43312
43313 #. type: textblock
43314 #: ../src/guestfs.pod:3063
43315 msgid "Run C<src/api-support/update-from-tarballs.sh>."
43316 msgstr ""
43317
43318 #. type: textblock
43319 #: ../src/guestfs.pod:3067
43320 msgid "Push and pull from Transifex."
43321 msgstr ""
43322
43323 #. type: verbatim
43324 #: ../src/guestfs.pod:3071
43325 #, no-wrap
43326 msgid ""
43327 " tx push -s\n"
43328 "\n"
43329 msgstr ""
43330
43331 #. type: textblock
43332 #: ../src/guestfs.pod:3073
43333 msgid "to push the latest POT files to Transifex.  Then run:"
43334 msgstr ""
43335
43336 #. type: verbatim
43337 #: ../src/guestfs.pod:3075
43338 #, no-wrap
43339 msgid ""
43340 " ./tx-pull.sh\n"
43341 "\n"
43342 msgstr ""
43343
43344 #. type: textblock
43345 #: ../src/guestfs.pod:3077
43346 msgid "which is a wrapper to pull the latest translated C<*.po> files."
43347 msgstr ""
43348
43349 #. type: textblock
43350 #: ../src/guestfs.pod:3081
43351 msgid ""
43352 "Create new stable and development directories under L<http://libguestfs.org/"
43353 "download>."
43354 msgstr ""
43355
43356 #. type: textblock
43357 #: ../src/guestfs.pod:3086
43358 msgid "Create the branch in git:"
43359 msgstr ""
43360
43361 #. type: verbatim
43362 #: ../src/guestfs.pod:3088
43363 #, no-wrap
43364 msgid ""
43365 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
43366 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
43367 " git branch stable-1.XX\n"
43368 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
43369 "\n"
43370 msgstr ""
43371
43372 #. type: =head1
43373 #: ../src/guestfs.pod:3095
43374 msgid "LIMITS"
43375 msgstr "ОБМЕЖЕННЯ"
43376
43377 #. type: =head2
43378 #: ../src/guestfs.pod:3097
43379 msgid "PROTOCOL LIMITS"
43380 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
43381
43382 #. type: textblock
43383 #: ../src/guestfs.pod:3099
43384 msgid ""
43385 "Internally libguestfs uses a message-based protocol to pass API calls and "
43386 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
43387 "plenty more detail about this).  The maximum message size used by the "
43388 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
43389 "aware of this limit.  The API calls which may be affected are individually "
43390 "documented, with a link back to this section of the documentation."
43391 msgstr ""
43392
43393 #. type: textblock
43394 #: ../src/guestfs.pod:3107
43395 msgid ""
43396 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
43397 "a simple string.  Because this string is at some point internally encoded as "
43398 "a message, the maximum size that it can return is slightly under 4 MB.  If "
43399 "the requested file is larger than this then you will get an error."
43400 msgstr ""
43401
43402 #. type: textblock
43403 #: ../src/guestfs.pod:3113
43404 msgid ""
43405 "In order to transfer large files into and out of the guest filesystem, you "
43406 "need to use particular calls that support this.  The sections L</UPLOADING> "
43407 "and L</DOWNLOADING> document how to do this."
43408 msgstr ""
43409
43410 #. type: textblock
43411 #: ../src/guestfs.pod:3117
43412 msgid ""
43413 "You might also consider mounting the disk image using our FUSE filesystem "
43414 "support (L<guestmount(1)>)."
43415 msgstr ""
43416
43417 #. type: =head2
43418 #: ../src/guestfs.pod:3120
43419 msgid "MAXIMUM NUMBER OF DISKS"
43420 msgstr ""
43421
43422 #. type: textblock
43423 #: ../src/guestfs.pod:3122
43424 msgid "When using virtio disks (the default) the current limit is B<25> disks."
43425 msgstr ""
43426
43427 #. type: textblock
43428 #: ../src/guestfs.pod:3125
43429 msgid ""
43430 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
43431 "slots.  However febootstrap only understands disks with names C</dev/vda> "
43432 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
43433 "purposes."
43434 msgstr ""
43435
43436 #. type: textblock
43437 #: ../src/guestfs.pod:3130
43438 msgid ""
43439 "We are working to substantially raise this limit in future versions but it "
43440 "requires complex changes to qemu."
43441 msgstr ""
43442
43443 #. type: textblock
43444 #: ../src/guestfs.pod:3133
43445 msgid ""
43446 "In future versions of libguestfs it should also be possible to \"hot plug\" "
43447 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
43448 "requires changes to qemu."
43449 msgstr ""
43450
43451 #. type: =head2
43452 #: ../src/guestfs.pod:3137
43453 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
43454 msgstr ""
43455
43456 #. type: textblock
43457 #: ../src/guestfs.pod:3139
43458 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
43459 msgstr ""
43460
43461 #. type: textblock
43462 #: ../src/guestfs.pod:3141
43463 msgid ""
43464 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
43465 "vda>, and C</dev/vda1> through C</dev/vda15>)."
43466 msgstr ""
43467
43468 #. type: textblock
43469 #: ../src/guestfs.pod:3144
43470 msgid ""
43471 "If you attach a disk with more than 15 partitions, the extra partitions are "
43472 "ignored by libguestfs."
43473 msgstr ""
43474
43475 #. type: =head2
43476 #: ../src/guestfs.pod:3147
43477 msgid "MAXIMUM SIZE OF A DISK"
43478 msgstr ""
43479
43480 #. type: textblock
43481 #: ../src/guestfs.pod:3149
43482 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
43483 msgstr ""
43484
43485 #. type: textblock
43486 #: ../src/guestfs.pod:3151
43487 msgid ""
43488 "We have tested block devices up to 1 exabyte (2**60 or "
43489 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
43490 "filesystem."
43491 msgstr ""
43492
43493 #. type: textblock
43494 #: ../src/guestfs.pod:3155
43495 msgid ""
43496 "Although libguestfs probably does not impose any limit, the underlying host "
43497 "storage will.  If you store disk images on a host ext4 filesystem, then the "
43498 "maximum size will be limited by the maximum ext4 file size (currently 16 "
43499 "TB).  If you store disk images as host logical volumes then you are limited "
43500 "by the maximum size of an LV."
43501 msgstr ""
43502
43503 #. type: textblock
43504 #: ../src/guestfs.pod:3161
43505 msgid ""
43506 "For the hugest disk image files, we recommend using XFS on the host for "
43507 "storage."
43508 msgstr ""
43509
43510 #. type: =head2
43511 #: ../src/guestfs.pod:3164
43512 msgid "MAXIMUM SIZE OF A PARTITION"
43513 msgstr ""
43514
43515 #. type: textblock
43516 #: ../src/guestfs.pod:3166
43517 msgid ""
43518 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
43519 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
43520 "address a partition located beyond 2 TB on the disk."
43521 msgstr ""
43522
43523 #. type: textblock
43524 #: ../src/guestfs.pod:3170
43525 msgid ""
43526 "It is recommended that you use GPT partitions on disks which are larger than "
43527 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
43528 "which are theoretically larger than the largest disk we could support."
43529 msgstr ""
43530
43531 #. type: =head2
43532 #: ../src/guestfs.pod:3175
43533 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
43534 msgstr ""
43535
43536 #. type: textblock
43537 #: ../src/guestfs.pod:3177
43538 msgid ""
43539 "This depends on the filesystem type.  libguestfs itself does not impose any "
43540 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
43541 "what these limits are."
43542 msgstr ""
43543
43544 #. type: =head2
43545 #: ../src/guestfs.pod:3181
43546 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
43547 msgstr ""
43548
43549 #. type: textblock
43550 #: ../src/guestfs.pod:3183
43551 msgid ""
43552 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
43553 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
43554 "uploads and downloads."
43555 msgstr ""
43556
43557 #. type: =head2
43558 #: ../src/guestfs.pod:3187
43559 msgid "INSPECTION LIMITS"
43560 msgstr ""
43561
43562 #. type: textblock
43563 #: ../src/guestfs.pod:3189
43564 msgid ""
43565 "The inspection code has several arbitrary limits on things like the size of "
43566 "Windows Registry hive it will read, and the length of product name.  These "
43567 "are intended to stop a malicious guest from consuming arbitrary amounts of "
43568 "memory and disk space on the host, and should not be reached in practice.  "
43569 "See the source code for more information."
43570 msgstr ""
43571
43572 #. type: textblock
43573 #: ../src/guestfs.pod:3215
43574 msgid ""
43575 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
43576 "effect as calling C<guestfs_set_verbose (g, 1)>."
43577 msgstr ""
43578
43579 #. type: textblock
43580 #: ../src/guestfs.pod:3227
43581 msgid ""
43582 "Set the path that libguestfs uses to search for a supermin appliance.  See "
43583 "the discussion of paths in section L</PATH> above."
43584 msgstr ""
43585
43586 #. type: textblock
43587 #: ../src/guestfs.pod:3236
43588 msgid "See also L</QEMU WRAPPERS> above."
43589 msgstr ""
43590
43591 #. type: textblock
43592 #: ../src/guestfs.pod:3240
43593 msgid ""
43594 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
43595 "effect as calling C<guestfs_set_trace (g, 1)>."
43596 msgstr ""
43597
43598 #. type: textblock
43599 #: ../src/guestfs.pod:3258
43600 msgid ""
43601 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
43602 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
43603 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
43604 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
43605 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
43606 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
43607 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
43608 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
43609 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
43610 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
43611 msgstr ""
43612
43613 #. type: textblock
43614 #: ../src/guestfs.pod:3295
43615 msgid ""
43616 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
43617 "(8)>, L<disktype(1)>."
43618 msgstr ""
43619
43620 #. type: =head1
43621 #: ../src/guestfs.pod:3302 ../tools/virt-make-fs.pl:571
43622 #: ../tools/virt-win-reg.pl:772
43623 msgid "BUGS"
43624 msgstr "ВАДИ"
43625
43626 #. type: textblock
43627 #: ../src/guestfs.pod:3304
43628 msgid "To get a list of bugs against libguestfs use this link:"
43629 msgstr ""
43630 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
43631 "посиланням:"
43632
43633 #. type: textblock
43634 #: ../src/guestfs.pod:3306
43635 msgid ""
43636 "L<https://bugzilla.redhat.com/buglist.cgi?"
43637 "component=libguestfs&product=Virtualization+Tools>"
43638 msgstr ""
43639 "L<https://bugzilla.redhat.com/buglist.cgi?"
43640 "component=libguestfs&product=Virtualization+Tools>"
43641
43642 #. type: textblock
43643 #: ../src/guestfs.pod:3308
43644 msgid "To report a new bug against libguestfs use this link:"
43645 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
43646
43647 #. type: textblock
43648 #: ../src/guestfs.pod:3310
43649 msgid ""
43650 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43651 "component=libguestfs&product=Virtualization+Tools>"
43652 msgstr ""
43653 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43654 "component=libguestfs&product=Virtualization+Tools>"
43655
43656 #. type: textblock
43657 #: ../src/guestfs.pod:3312
43658 msgid "When reporting a bug, please check:"
43659 msgstr ""
43660
43661 #. type: textblock
43662 #: ../src/guestfs.pod:3318
43663 msgid "That the bug hasn't been reported already."
43664 msgstr ""
43665
43666 #. type: textblock
43667 #: ../src/guestfs.pod:3322
43668 msgid "That you are testing a recent version."
43669 msgstr ""
43670
43671 #. type: textblock
43672 #: ../src/guestfs.pod:3326
43673 msgid "Describe the bug accurately, and give a way to reproduce it."
43674 msgstr ""
43675
43676 #. type: textblock
43677 #: ../src/guestfs.pod:3330
43678 msgid ""
43679 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
43680 "bug report."
43681 msgstr ""
43682
43683 #. type: textblock
43684 #: ../test-tool/libguestfs-test-tool.pod:5
43685 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
43686 msgstr ""
43687
43688 #. type: verbatim
43689 #: ../test-tool/libguestfs-test-tool.pod:9
43690 #, no-wrap
43691 msgid ""
43692 " libguestfs-test-tool [--options]\n"
43693 "\n"
43694 msgstr ""
43695
43696 #. type: textblock
43697 #: ../test-tool/libguestfs-test-tool.pod:13
43698 msgid ""
43699 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
43700 "to check basic libguestfs functionality is working.  This is needed because "
43701 "libguestfs occasionally breaks for reasons beyond our control: usually "
43702 "because of changes in the underlying qemu or kernel packages, or the host "
43703 "environment."
43704 msgstr ""
43705
43706 #. type: textblock
43707 #: ../test-tool/libguestfs-test-tool.pod:19
43708 msgid "If you suspect a problem in libguestfs, then just run:"
43709 msgstr ""
43710
43711 #. type: verbatim
43712 #: ../test-tool/libguestfs-test-tool.pod:21
43713 #, no-wrap
43714 msgid ""
43715 " libguestfs-test-tool\n"
43716 "\n"
43717 msgstr ""
43718
43719 #. type: textblock
43720 #: ../test-tool/libguestfs-test-tool.pod:23
43721 msgid "It will print lots of diagnostic messages."
43722 msgstr ""
43723
43724 #. type: textblock
43725 #: ../test-tool/libguestfs-test-tool.pod:25
43726 msgid "If it runs to completion successfully, you will see this near the end:"
43727 msgstr ""
43728
43729 #. type: verbatim
43730 #: ../test-tool/libguestfs-test-tool.pod:27
43731 #, no-wrap
43732 msgid ""
43733 " ===== TEST FINISHED OK =====\n"
43734 "\n"
43735 msgstr ""
43736
43737 #. type: textblock
43738 #: ../test-tool/libguestfs-test-tool.pod:29
43739 msgid "and the test tool will exit with code 0."
43740 msgstr ""
43741
43742 #. type: textblock
43743 #: ../test-tool/libguestfs-test-tool.pod:31
43744 msgid ""
43745 "If it fails (and/or exits with non-zero error code), please paste the "
43746 "I<complete, unedited> output of the test tool into a bug report.  More "
43747 "information about reporting bugs can be found on the L<http://libguestfs.org/"
43748 "> website."
43749 msgstr ""
43750
43751 #. type: textblock
43752 #: ../test-tool/libguestfs-test-tool.pod:42
43753 msgid "Display short usage information and exit."
43754 msgstr ""
43755
43756 #. type: =item
43757 #: ../test-tool/libguestfs-test-tool.pod:44
43758 msgid "B<--qemu qemu_binary>"
43759 msgstr ""
43760
43761 #. type: textblock
43762 #: ../test-tool/libguestfs-test-tool.pod:46
43763 msgid ""
43764 "If you have downloaded another qemu binary, point this option at the full "
43765 "path of the binary to try it."
43766 msgstr ""
43767
43768 #. type: =item
43769 #: ../test-tool/libguestfs-test-tool.pod:49
43770 msgid "B<--qemudir qemu_source_dir>"
43771 msgstr ""
43772
43773 #. type: textblock
43774 #: ../test-tool/libguestfs-test-tool.pod:51
43775 msgid ""
43776 "If you have compiled qemu from source, point this option at the source "
43777 "directory to try it."
43778 msgstr ""
43779
43780 #. type: =item
43781 #: ../test-tool/libguestfs-test-tool.pod:54
43782 msgid "B<-t N>"
43783 msgstr ""
43784
43785 #. type: =item
43786 #: ../test-tool/libguestfs-test-tool.pod:56
43787 msgid "B<--timeout N>"
43788 msgstr ""
43789
43790 #. type: textblock
43791 #: ../test-tool/libguestfs-test-tool.pod:58
43792 msgid ""
43793 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
43794 "minutes) which does not usually need to be adjusted."
43795 msgstr ""
43796
43797 #. type: =head1
43798 #: ../test-tool/libguestfs-test-tool.pod:63
43799 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
43800 msgstr ""
43801
43802 #. type: textblock
43803 #: ../test-tool/libguestfs-test-tool.pod:65
43804 msgid ""
43805 "If you have compiled another version of qemu from source and would like to "
43806 "try that, then you can use the I<--qemudir> option to point to the qemu "
43807 "source directory."
43808 msgstr ""
43809
43810 #. type: textblock
43811 #: ../test-tool/libguestfs-test-tool.pod:69
43812 msgid ""
43813 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
43814 "option to point to the binary."
43815 msgstr ""
43816
43817 #. type: textblock
43818 #: ../test-tool/libguestfs-test-tool.pod:72
43819 msgid ""
43820 "Note when using these options, you can ignore the business of qemu wrapper "
43821 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
43822 "wrapper script for you if one is needed."
43823 msgstr ""
43824
43825 #. type: =head1
43826 #: ../test-tool/libguestfs-test-tool.pod:76
43827 msgid "TRYING OUT A DIFFERENT KERNEL"
43828 msgstr ""
43829
43830 #. type: textblock
43831 #: ../test-tool/libguestfs-test-tool.pod:78
43832 msgid ""
43833 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
43834 "libguestfs tries.  You do this by setting the environment variables "
43835 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
43836 msgstr ""
43837
43838 #. type: textblock
43839 #: ../test-tool/libguestfs-test-tool.pod:82
43840 msgid ""
43841 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
43842 "information."
43843 msgstr ""
43844
43845 #. type: =head1
43846 #: ../test-tool/libguestfs-test-tool.pod:85
43847 msgid "SELF-DIAGNOSIS"
43848 msgstr ""
43849
43850 #. type: textblock
43851 #: ../test-tool/libguestfs-test-tool.pod:87
43852 msgid ""
43853 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
43854 "produced by libguestfs-test-tool and/or possible errors."
43855 msgstr ""
43856
43857 #. type: textblock
43858 #: ../test-tool/libguestfs-test-tool.pod:92
43859 msgid ""
43860 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
43861 "I<1> if there was an error."
43862 msgstr ""
43863
43864 #. type: textblock
43865 #: ../test-tool/libguestfs-test-tool.pod:97
43866 msgid ""
43867 "For the full list of environment variables which may affect libguestfs, "
43868 "please see the L<guestfs(3)> manual page."
43869 msgstr ""
43870
43871 #. type: textblock
43872 #: ../test-tool/libguestfs-test-tool.pod:102
43873 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
43874 msgstr ""
43875
43876 #. type: textblock
43877 #: ../tools/virt-list-filesystems.pl:32
43878 msgid ""
43879 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
43880 msgstr ""
43881
43882 #. type: verbatim
43883 #: ../tools/virt-list-filesystems.pl:36
43884 #, no-wrap
43885 msgid ""
43886 " virt-list-filesystems [--options] domname\n"
43887 "\n"
43888 msgstr ""
43889
43890 #. type: verbatim
43891 #: ../tools/virt-list-filesystems.pl:38
43892 #, no-wrap
43893 msgid ""
43894 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
43895 "\n"
43896 msgstr ""
43897
43898 #. type: textblock
43899 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
43900 msgid ""
43901 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
43902 "replacement."
43903 msgstr ""
43904
43905 #. type: textblock
43906 #: ../tools/virt-list-filesystems.pl:45
43907 msgid ""
43908 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
43909 "are contained in a virtual machine or disk image."
43910 msgstr ""
43911
43912 #. type: textblock
43913 #: ../tools/virt-list-filesystems.pl:49
43914 msgid ""
43915 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
43916 "functionality.  For more complex cases you should look at the L<guestfish(1)"
43917 "> tool."
43918 msgstr ""
43919
43920 #. type: textblock
43921 #: ../tools/virt-list-filesystems.pl:112
43922 msgid ""
43923 "With this option, C<virt-list-filesystems> displays the type of each "
43924 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
43925 msgstr ""
43926
43927 #. type: =item
43928 #: ../tools/virt-list-filesystems.pl:119
43929 msgid "B<-a>"
43930 msgstr "B<-a>"
43931
43932 #. type: textblock
43933 #: ../tools/virt-list-filesystems.pl:123
43934 msgid ""
43935 "Normally we only show mountable filesystems.  If this option is given then "
43936 "swap devices are shown too."
43937 msgstr ""
43938
43939 #. type: textblock
43940 #: ../tools/virt-list-filesystems.pl:197
43941 msgid ""
43942 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43943 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43944 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43945 msgstr ""
43946 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43947 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43948 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43949
43950 #. type: textblock
43951 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
43952 msgid "Copyright (C) 2009 Red Hat Inc."
43953 msgstr "© Red Hat Inc., 2009"
43954
43955 #. type: textblock
43956 #: ../tools/virt-list-partitions.pl:32
43957 msgid ""
43958 "virt-list-partitions - List partitions in a virtual machine or disk image"
43959 msgstr ""
43960
43961 #. type: verbatim
43962 #: ../tools/virt-list-partitions.pl:36
43963 #, no-wrap
43964 msgid ""
43965 " virt-list-partitions [--options] domname\n"
43966 "\n"
43967 msgstr ""
43968 " virt-list-partitions [--параметри] назва_домену\n"
43969 "\n"
43970
43971 #. type: verbatim
43972 #: ../tools/virt-list-partitions.pl:38
43973 #, no-wrap
43974 msgid ""
43975 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
43976 "\n"
43977 msgstr ""
43978 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
43979 "\n"
43980
43981 #. type: textblock
43982 #: ../tools/virt-list-partitions.pl:45
43983 msgid ""
43984 "C<virt-list-partitions> is a command line tool to list the partitions that "
43985 "are contained in a virtual machine or disk image.  It is mainly useful as a "
43986 "first step to using L<virt-resize(1)>."
43987 msgstr ""
43988
43989 #. type: textblock
43990 #: ../tools/virt-list-partitions.pl:50
43991 msgid ""
43992 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
43993 "functionality.  For more complex cases you should look at the L<guestfish(1)"
43994 "> tool."
43995 msgstr ""
43996
43997 #. type: textblock
43998 #: ../tools/virt-list-partitions.pl:113
43999 msgid "Show sizes in human-readable form (eg. \"1G\")."
44000 msgstr ""
44001
44002 #. type: textblock
44003 #: ../tools/virt-list-partitions.pl:123
44004 msgid ""
44005 "With this option, C<virt-list-partitions> displays the type and size of each "
44006 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
44007 msgstr ""
44008
44009 #. type: =item
44010 #: ../tools/virt-list-partitions.pl:130
44011 msgid "B<-t>"
44012 msgstr "B<-t>"
44013
44014 #. type: =item
44015 #: ../tools/virt-list-partitions.pl:132
44016 msgid "B<--total>"
44017 msgstr "B<--total>"
44018
44019 #. type: textblock
44020 #: ../tools/virt-list-partitions.pl:134
44021 msgid ""
44022 "Display the total size of each block device (as a separate row or rows)."
44023 msgstr ""
44024
44025 #. type: textblock
44026 #: ../tools/virt-list-partitions.pl:267
44027 msgid ""
44028 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
44029 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
44030 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44031 msgstr ""
44032 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
44033 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
44034 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44035
44036 #. type: textblock
44037 #: ../tools/virt-list-partitions.pl:283
44038 msgid "Copyright (C) 2009-2010 Red Hat Inc."
44039 msgstr "© Red Hat Inc., 2009–2010"
44040
44041 #. type: textblock
44042 #: ../tools/virt-make-fs.pl:37
44043 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
44044 msgstr ""
44045
44046 #. type: verbatim
44047 #: ../tools/virt-make-fs.pl:41
44048 #, no-wrap
44049 msgid ""
44050 " virt-make-fs [--options] input.tar output.img\n"
44051 "\n"
44052 msgstr ""
44053
44054 #. type: verbatim
44055 #: ../tools/virt-make-fs.pl:43
44056 #, no-wrap
44057 msgid ""
44058 " virt-make-fs [--options] input.tar.gz output.img\n"
44059 "\n"
44060 msgstr ""
44061
44062 #. type: verbatim
44063 #: ../tools/virt-make-fs.pl:45
44064 #, no-wrap
44065 msgid ""
44066 " virt-make-fs [--options] directory output.img\n"
44067 "\n"
44068 msgstr ""
44069
44070 #. type: textblock
44071 #: ../tools/virt-make-fs.pl:49
44072 msgid ""
44073 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
44074 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
44075 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
44076 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
44077 "you want to attach these filesystems to existing virtual machines (eg. to "
44078 "import large amounts of read-only data to a VM)."
44079 msgstr ""
44080
44081 #. type: textblock
44082 #: ../tools/virt-make-fs.pl:57
44083 msgid "Basic usage is:"
44084 msgstr ""
44085
44086 #. type: verbatim
44087 #: ../tools/virt-make-fs.pl:59
44088 #, no-wrap
44089 msgid ""
44090 " virt-make-fs input output.img\n"
44091 "\n"
44092 msgstr ""
44093
44094 #. type: textblock
44095 #: ../tools/virt-make-fs.pl:61
44096 msgid ""
44097 "where C<input> is either a directory containing files that you want to add, "
44098 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
44099 "C<output.img> is a disk image.  The input type is detected automatically.  "
44100 "The output disk image defaults to a raw ext2 sparse image unless you specify "
44101 "extra flags (see L</OPTIONS> below)."
44102 msgstr ""
44103
44104 #. type: =head2
44105 #: ../tools/virt-make-fs.pl:67
44106 msgid "FILESYSTEM TYPE"
44107 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
44108
44109 #. type: textblock
44110 #: ../tools/virt-make-fs.pl:69
44111 msgid ""
44112 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
44113 "libguestfs supports can be used (but I<not> read-only formats like "
44114 "ISO9660).  Here are some of the more common choices:"
44115 msgstr ""
44116
44117 #. type: =item
44118 #: ../tools/virt-make-fs.pl:75
44119 msgid "I<ext3>"
44120 msgstr "I<ext3>"
44121
44122 #. type: textblock
44123 #: ../tools/virt-make-fs.pl:77
44124 msgid ""
44125 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
44126 "you are not going to use the filesystem in a way that requires the journal, "
44127 "then this is just wasted overhead."
44128 msgstr ""
44129
44130 #. type: =item
44131 #: ../tools/virt-make-fs.pl:81
44132 msgid "I<ntfs> or I<vfat>"
44133 msgstr "I<ntfs> або I<vfat>"
44134
44135 #. type: textblock
44136 #: ../tools/virt-make-fs.pl:83
44137 msgid "Useful if exporting data to a Windows guest."
44138 msgstr ""
44139
44140 #. type: textblock
44141 #: ../tools/virt-make-fs.pl:85
44142 msgid ""
44143 "I<Note for vfat>: The tar archive or local directory must only contain files "
44144 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
44145 "program running within libguestfs is unable to change the ownership of non-"
44146 "root files, since vfat itself does not support this."
44147 msgstr ""
44148
44149 #. type: =item
44150 #: ../tools/virt-make-fs.pl:90
44151 msgid "I<minix>"
44152 msgstr "I<minix>"
44153
44154 #. type: textblock
44155 #: ../tools/virt-make-fs.pl:92
44156 msgid ""
44157 "Lower overhead than C<ext2>, but certain limitations on filename length and "
44158 "total filesystem size."
44159 msgstr ""
44160
44161 #. type: =head3
44162 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
44163 #: ../tools/virt-make-fs.pl:149
44164 msgid "EXAMPLE"
44165 msgstr "ПРИКЛАД"
44166
44167 #. type: verbatim
44168 #: ../tools/virt-make-fs.pl:99
44169 #, no-wrap
44170 msgid ""
44171 " virt-make-fs --type=minix input minixfs.img\n"
44172 "\n"
44173 msgstr ""
44174
44175 #. type: =head2
44176 #: ../tools/virt-make-fs.pl:101
44177 msgid "TO PARTITION OR NOT TO PARTITION"
44178 msgstr ""
44179
44180 #. type: textblock
44181 #: ../tools/virt-make-fs.pl:103
44182 msgid "Optionally virt-make-fs can add a partition table to the output disk."
44183 msgstr ""
44184
44185 #. type: textblock
44186 #: ../tools/virt-make-fs.pl:105
44187 msgid ""
44188 "Adding a partition can make the disk image more compatible with certain "
44189 "virtualized operating systems which don't expect to see a filesystem "
44190 "directly located on a block device (Linux doesn't care and will happily "
44191 "handle both types)."
44192 msgstr ""
44193
44194 #. type: textblock
44195 #: ../tools/virt-make-fs.pl:110
44196 msgid ""
44197 "On the other hand, if you have a partition table then the output image is no "
44198 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
44199 "directly on a partitioned disk image.  (However libguestfs tools such as "
44200 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
44201 msgstr ""
44202
44203 #. type: textblock
44204 #: ../tools/virt-make-fs.pl:118
44205 msgid "Add an MBR partition:"
44206 msgstr ""
44207
44208 #. type: verbatim
44209 #: ../tools/virt-make-fs.pl:120
44210 #, no-wrap
44211 msgid ""
44212 " virt-make-fs --partition -- input disk.img\n"
44213 "\n"
44214 msgstr ""
44215
44216 #. type: textblock
44217 #: ../tools/virt-make-fs.pl:122
44218 msgid ""
44219 "If the output disk image could be terabyte-sized or larger, it's better to "
44220 "use an EFI/GPT-compatible partition table:"
44221 msgstr ""
44222
44223 #. type: verbatim
44224 #: ../tools/virt-make-fs.pl:125
44225 #, no-wrap
44226 msgid ""
44227 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
44228 "\n"
44229 msgstr ""
44230
44231 #. type: =head2
44232 #: ../tools/virt-make-fs.pl:127
44233 msgid "EXTRA SPACE"
44234 msgstr ""
44235
44236 #. type: textblock
44237 #: ../tools/virt-make-fs.pl:129
44238 msgid ""
44239 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
44240 "the files that it contains, but might have extra space.  Depending on how "
44241 "you are going to use the output, you might think this extra space is wasted "
44242 "and want to minimize it, or you might want to leave space so that more files "
44243 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
44244 "but you can use the I<--size> flag to leave space in the filesystem if you "
44245 "want it."
44246 msgstr ""
44247
44248 #. type: textblock
44249 #: ../tools/virt-make-fs.pl:137
44250 msgid ""
44251 "An alternative way to leave extra space but not make the output image any "
44252 "bigger is to use an alternative disk image format (instead of the default "
44253 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
44254 "image format (check your hypervisor supports this before using it).  This "
44255 "allows you to choose a large I<--size> but the extra space won't actually be "
44256 "allocated in the image until you try to store something in it."
44257 msgstr ""
44258
44259 #. type: textblock
44260 #: ../tools/virt-make-fs.pl:145
44261 msgid ""
44262 "Don't forget that you can also use local commands including L<resize2fs(8)> "
44263 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
44264 "to build another image from scratch."
44265 msgstr ""
44266
44267 #. type: verbatim
44268 #: ../tools/virt-make-fs.pl:151
44269 #, no-wrap
44270 msgid ""
44271 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44272 "\n"
44273 msgstr ""
44274 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44275 "\n"
44276
44277 #. type: textblock
44278 #: ../tools/virt-make-fs.pl:179
44279 msgid "Enable debugging information."
44280 msgstr "Увімкнути виведення діагностичних даних."
44281
44282 #. type: =item
44283 #: ../tools/virt-make-fs.pl:185
44284 msgid "B<--size=E<lt>NE<gt>>"
44285 msgstr "B<--size=E<lt>NE<gt>>"
44286
44287 #. type: =item
44288 #: ../tools/virt-make-fs.pl:187
44289 msgid "B<--size=+E<lt>NE<gt>>"
44290 msgstr "B<--size=+E<lt>NE<gt>>"
44291
44292 #. type: =item
44293 #: ../tools/virt-make-fs.pl:189
44294 msgid "B<-s E<lt>NE<gt>>"
44295 msgstr "B<-s E<lt>NE<gt>>"
44296
44297 #. type: =item
44298 #: ../tools/virt-make-fs.pl:191
44299 msgid "B<-s +E<lt>NE<gt>>"
44300 msgstr "B<-s +E<lt>NE<gt>>"
44301
44302 #. type: textblock
44303 #: ../tools/virt-make-fs.pl:193
44304 msgid ""
44305 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
44306 msgstr ""
44307
44308 #. type: textblock
44309 #: ../tools/virt-make-fs.pl:196
44310 msgid ""
44311 "If this option is I<not> given, then the output image will be just large "
44312 "enough to contain all the files, with not much wasted space."
44313 msgstr ""
44314
44315 #. type: textblock
44316 #: ../tools/virt-make-fs.pl:199
44317 msgid ""
44318 "To choose a fixed size output disk, specify an absolute number followed by b/"
44319 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44320 "Petabytes or Exabytes.  This must be large enough to contain all the input "
44321 "files, else you will get an error."
44322 msgstr ""
44323
44324 #. type: textblock
44325 #: ../tools/virt-make-fs.pl:204
44326 msgid ""
44327 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
44328 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44329 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
44330 "the input files, and (approximately) an extra 200 MB free space."
44331 msgstr ""
44332
44333 #. type: textblock
44334 #: ../tools/virt-make-fs.pl:210
44335 msgid ""
44336 "Note that virt-make-fs estimates free space, and therefore will not produce "
44337 "filesystems containing precisely the free space requested.  (It is much more "
44338 "expensive and time-consuming to produce a filesystem which has precisely the "
44339 "desired free space)."
44340 msgstr ""
44341
44342 #. type: =item
44343 #: ../tools/virt-make-fs.pl:219
44344 msgid "B<--format=E<lt>fmtE<gt>>"
44345 msgstr ""
44346
44347 #. type: =item
44348 #: ../tools/virt-make-fs.pl:221
44349 msgid "B<-F E<lt>fmtE<gt>>"
44350 msgstr ""
44351
44352 #. type: textblock
44353 #: ../tools/virt-make-fs.pl:223
44354 msgid "Choose the output disk image format."
44355 msgstr ""
44356
44357 #. type: textblock
44358 #: ../tools/virt-make-fs.pl:225
44359 msgid "The default is C<raw> (raw sparse disk image)."
44360 msgstr ""
44361
44362 #. type: textblock
44363 #: ../tools/virt-make-fs.pl:227
44364 msgid ""
44365 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
44366 "that would really make sense here is C<qcow2>."
44367 msgstr ""
44368
44369 #. type: =item
44370 #: ../tools/virt-make-fs.pl:234
44371 msgid "B<--type=E<lt>fsE<gt>>"
44372 msgstr ""
44373
44374 #. type: =item
44375 #: ../tools/virt-make-fs.pl:236
44376 msgid "B<-t E<lt>fsE<gt>>"
44377 msgstr ""
44378
44379 #. type: textblock
44380 #: ../tools/virt-make-fs.pl:238
44381 msgid "Choose the output filesystem type."
44382 msgstr ""
44383
44384 #. type: textblock
44385 #: ../tools/virt-make-fs.pl:240
44386 msgid "The default is C<ext2>."
44387 msgstr "Типовим значенням є C<ext2>."
44388
44389 #. type: textblock
44390 #: ../tools/virt-make-fs.pl:242
44391 msgid ""
44392 "Any filesystem which is supported read-write by libguestfs can be used here."
44393 msgstr ""
44394
44395 #. type: =item
44396 #: ../tools/virt-make-fs.pl:249
44397 msgid "B<--partition>"
44398 msgstr "B<--partition>"
44399
44400 #. type: =item
44401 #: ../tools/virt-make-fs.pl:251
44402 msgid "B<--partition=E<lt>parttypeE<gt>>"
44403 msgstr ""
44404
44405 #. type: textblock
44406 #: ../tools/virt-make-fs.pl:253
44407 msgid ""
44408 "If specified, this flag adds an MBR partition table to the output disk image."
44409 msgstr ""
44410
44411 #. type: textblock
44412 #: ../tools/virt-make-fs.pl:256
44413 msgid ""
44414 "You can change the partition table type, eg. I<--partition=gpt> for large "
44415 "disks."
44416 msgstr ""
44417
44418 #. type: textblock
44419 #: ../tools/virt-make-fs.pl:259
44420 msgid ""
44421 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
44422 "might consider the next parameter to be the partition type.  For example:"
44423 msgstr ""
44424
44425 #. type: verbatim
44426 #: ../tools/virt-make-fs.pl:263
44427 #, no-wrap
44428 msgid ""
44429 " virt-make-fs --partition input.tar output.img\n"
44430 "\n"
44431 msgstr ""
44432
44433 #. type: textblock
44434 #: ../tools/virt-make-fs.pl:265
44435 msgid ""
44436 "would cause virt-make-fs to think you wanted to use a partition type of "
44437 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
44438 "dash) between options and the input and output arguments:"
44439 msgstr ""
44440
44441 #. type: verbatim
44442 #: ../tools/virt-make-fs.pl:269
44443 #, no-wrap
44444 msgid ""
44445 " virt-make-fs --partition -- input.tar output.img\n"
44446 "\n"
44447 msgstr ""
44448
44449 #. type: textblock
44450 #: ../tools/virt-make-fs.pl:271
44451 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
44452 msgstr ""
44453
44454 #. type: textblock
44455 #: ../tools/virt-make-fs.pl:559
44456 msgid ""
44457 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44458 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44459 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44460 msgstr ""
44461 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44462 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44463 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44464
44465 #. type: textblock
44466 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
44467 msgid ""
44468 "When reporting bugs, please enable debugging and capture the I<complete> "
44469 "output:"
44470 msgstr ""
44471
44472 #. type: verbatim
44473 #: ../tools/virt-make-fs.pl:576
44474 #, no-wrap
44475 msgid ""
44476 " export LIBGUESTFS_DEBUG=1\n"
44477 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44478 "\n"
44479 msgstr ""
44480 " export LIBGUESTFS_DEBUG=1\n"
44481 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44482 "\n"
44483
44484 #. type: textblock
44485 #: ../tools/virt-make-fs.pl:579
44486 msgid ""
44487 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
44488 "redhat.com/>"
44489 msgstr ""
44490
44491 #. type: textblock
44492 #: ../tools/virt-tar.pl:33
44493 msgid "virt-tar - Extract or upload files to a virtual machine"
44494 msgstr ""
44495
44496 #. type: verbatim
44497 #: ../tools/virt-tar.pl:37
44498 #, no-wrap
44499 msgid ""
44500 " virt-tar [--options] -x domname directory tarball\n"
44501 "\n"
44502 msgstr ""
44503
44504 #. type: verbatim
44505 #: ../tools/virt-tar.pl:39
44506 #, no-wrap
44507 msgid ""
44508 " virt-tar [--options] -u domname tarball directory\n"
44509 "\n"
44510 msgstr ""
44511
44512 #. type: verbatim
44513 #: ../tools/virt-tar.pl:41
44514 #, no-wrap
44515 msgid ""
44516 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
44517 "\n"
44518 msgstr ""
44519
44520 #. type: verbatim
44521 #: ../tools/virt-tar.pl:43
44522 #, no-wrap
44523 msgid ""
44524 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
44525 "\n"
44526 msgstr ""
44527
44528 #. type: =head2
44529 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
44530 msgid "NOTE"
44531 msgstr "ПРИМІТКА"
44532
44533 #. type: textblock
44534 #: ../tools/virt-tar.pl:47
44535 msgid ""
44536 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
44537 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
44538 msgstr ""
44539
44540 #. type: textblock
44541 #: ../tools/virt-tar.pl:52
44542 msgid "Download C</home> from the VM into a local tarball:"
44543 msgstr ""
44544
44545 #. type: verbatim
44546 #: ../tools/virt-tar.pl:54
44547 #, no-wrap
44548 msgid ""
44549 " virt-tar -x domname /home home.tar\n"
44550 "\n"
44551 msgstr ""
44552
44553 #. type: verbatim
44554 #: ../tools/virt-tar.pl:56
44555 #, no-wrap
44556 msgid ""
44557 " virt-tar -zx domname /home home.tar.gz\n"
44558 "\n"
44559 msgstr ""
44560
44561 #. type: textblock
44562 #: ../tools/virt-tar.pl:58
44563 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
44564 msgstr ""
44565
44566 #. type: verbatim
44567 #: ../tools/virt-tar.pl:60
44568 #, no-wrap
44569 msgid ""
44570 " virt-tar -u domname uploadstuff.tar /tmp\n"
44571 "\n"
44572 msgstr ""
44573
44574 #. type: verbatim
44575 #: ../tools/virt-tar.pl:62
44576 #, no-wrap
44577 msgid ""
44578 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
44579 "\n"
44580 msgstr ""
44581
44582 #. type: textblock
44583 #: ../tools/virt-tar.pl:66
44584 msgid ""
44585 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
44586 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
44587 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
44588 msgstr ""
44589
44590 #. type: textblock
44591 #: ../tools/virt-tar.pl:71
44592 msgid ""
44593 "You can use I<-x> (extract) on live virtual machines, but you might get "
44594 "inconsistent results or errors if there is filesystem activity inside the "
44595 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
44596 "work, but the only way to guarantee consistent results is if the virtual "
44597 "machine is shut down."
44598 msgstr ""
44599
44600 #. type: textblock
44601 #: ../tools/virt-tar.pl:79
44602 msgid ""
44603 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
44604 "parts of a guest filesystem.  There are many possibilities: making backups, "
44605 "uploading data files, snooping on guest activity, fixing or customizing "
44606 "guests, etc."
44607 msgstr ""
44608
44609 #. type: textblock
44610 #: ../tools/virt-tar.pl:84
44611 msgid ""
44612 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
44613 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
44614 "should look at the L<guestfish(1)> tool."
44615 msgstr ""
44616
44617 #. type: textblock
44618 #: ../tools/virt-tar.pl:88
44619 msgid ""
44620 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
44621 "its contents (recursively) from the virtual machine into a local tarball.  "
44622 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
44623 "virtual machine.  You cannot use these two options together."
44624 msgstr ""
44625
44626 #. type: textblock
44627 #: ../tools/virt-tar.pl:94
44628 msgid ""
44629 "In addition, you may need to use the I<-z> (gZip) option to enable "
44630 "compression.  When uploading, you have to specify I<-z> if the upload file "
44631 "is compressed because virt-tar won't detect this on its own."
44632 msgstr ""
44633
44634 #. type: textblock
44635 #: ../tools/virt-tar.pl:98
44636 msgid ""
44637 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
44638 "example it cannot do PKZip files or bzip2 compression.  If you want that "
44639 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
44640 "the L<libguestfs(3)> API)."
44641 msgstr ""
44642
44643 #. type: =item
44644 #: ../tools/virt-tar.pl:160
44645 msgid "B<--extract>"
44646 msgstr "B<--extract>"
44647
44648 #. type: =item
44649 #: ../tools/virt-tar.pl:162
44650 msgid "B<--download>"
44651 msgstr "B<--download>"
44652
44653 #. type: =item
44654 #: ../tools/virt-tar.pl:164
44655 msgid "B<-u>"
44656 msgstr "B<-u>"
44657
44658 #. type: =item
44659 #: ../tools/virt-tar.pl:166
44660 msgid "B<--upload>"
44661 msgstr "B<--upload>"
44662
44663 #. type: textblock
44664 #: ../tools/virt-tar.pl:168
44665 msgid ""
44666 "Use I<-x> to extract (download) a directory from a virtual machine to a "
44667 "local tarball."
44668 msgstr ""
44669
44670 #. type: textblock
44671 #: ../tools/virt-tar.pl:171
44672 msgid ""
44673 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
44674 "Please read the L</WARNING> section above before using this option."
44675 msgstr ""
44676
44677 #. type: textblock
44678 #: ../tools/virt-tar.pl:175
44679 msgid "You must specify exactly one of these options."
44680 msgstr ""
44681
44682 #. type: =item
44683 #: ../tools/virt-tar.pl:181
44684 msgid "B<-z>"
44685 msgstr "B<-z>"
44686
44687 #. type: =item
44688 #: ../tools/virt-tar.pl:183
44689 msgid "B<--gzip>"
44690 msgstr "B<--gzip>"
44691
44692 #. type: textblock
44693 #: ../tools/virt-tar.pl:185
44694 msgid "Specify that the input or output tarball is gzip-compressed."
44695 msgstr ""
44696
44697 #. type: textblock
44698 #: ../tools/virt-tar.pl:298
44699 msgid ""
44700 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44701 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44702 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44703 "org/>."
44704 msgstr ""
44705 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44706 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44707 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44708 "org/>."
44709
44710 #. type: textblock
44711 #: ../tools/virt-win-reg.pl:37
44712 msgid ""
44713 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
44714 msgstr ""
44715
44716 #. type: verbatim
44717 #: ../tools/virt-win-reg.pl:41
44718 #, no-wrap
44719 msgid ""
44720 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
44721 "\n"
44722 msgstr ""
44723
44724 #. type: verbatim
44725 #: ../tools/virt-win-reg.pl:43
44726 #, no-wrap
44727 msgid ""
44728 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
44729 "\n"
44730 msgstr ""
44731
44732 #. type: verbatim
44733 #: ../tools/virt-win-reg.pl:45
44734 #, no-wrap
44735 msgid ""
44736 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
44737 "\n"
44738 msgstr ""
44739
44740 #. type: verbatim
44741 #: ../tools/virt-win-reg.pl:47
44742 #, no-wrap
44743 msgid ""
44744 " virt-win-reg --merge domname [input.reg ...]\n"
44745 "\n"
44746 msgstr ""
44747
44748 #. type: verbatim
44749 #: ../tools/virt-win-reg.pl:49
44750 #, no-wrap
44751 msgid ""
44752 " virt-win-reg [--options] disk.img ... # instead of domname\n"
44753 "\n"
44754 msgstr ""
44755
44756 #. type: textblock
44757 #: ../tools/virt-win-reg.pl:53
44758 msgid ""
44759 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
44760 "virtual machines.  If you do this, you I<will> get irreversible disk "
44761 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
44762 "but doesn't catch all cases."
44763 msgstr ""
44764
44765 #. type: textblock
44766 #: ../tools/virt-win-reg.pl:58
44767 msgid ""
44768 "Modifying the Windows Registry is an inherently risky operation.  The format "
44769 "is deliberately obscure and undocumented, and Registry changes can leave the "
44770 "system unbootable.  Therefore when using the I<--merge> option, make sure "
44771 "you have a reliable backup first."
44772 msgstr ""
44773
44774 #. type: textblock
44775 #: ../tools/virt-win-reg.pl:65
44776 msgid ""
44777 "This program can export and merge Windows Registry entries from a Windows "
44778 "guest."
44779 msgstr ""
44780
44781 #. type: textblock
44782 #: ../tools/virt-win-reg.pl:68
44783 msgid ""
44784 "The first parameter is the libvirt guest name or the raw disk image of a "
44785 "Windows guest."
44786 msgstr ""
44787
44788 #. type: textblock
44789 #: ../tools/virt-win-reg.pl:71
44790 msgid ""
44791 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
44792 "exported (recursively).  For example:"
44793 msgstr ""
44794
44795 #. type: verbatim
44796 #: ../tools/virt-win-reg.pl:74
44797 #, no-wrap
44798 msgid ""
44799 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44800 "\n"
44801 msgstr ""
44802 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44803 "\n"
44804
44805 #. type: textblock
44806 #: ../tools/virt-win-reg.pl:76
44807 msgid ""
44808 "You can also display single values from within registry keys, for example:"
44809 msgstr ""
44810
44811 #. type: verbatim
44812 #: ../tools/virt-win-reg.pl:79
44813 #, no-wrap
44814 msgid ""
44815 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44816 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44817 " Windows 7 Enterprise\n"
44818 "\n"
44819 msgstr ""
44820 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44821 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44822 " Windows 7 Enterprise\n"
44823 "\n"
44824
44825 #. type: textblock
44826 #: ../tools/virt-win-reg.pl:83
44827 msgid ""
44828 "With I<--merge>, you can merge a textual regedit file into the Windows "
44829 "Registry:"
44830 msgstr ""
44831
44832 #. type: verbatim
44833 #: ../tools/virt-win-reg.pl:86
44834 #, no-wrap
44835 msgid ""
44836 " $ virt-win-reg --merge Windows7 changes.reg\n"
44837 "\n"
44838 msgstr ""
44839 " $ virt-win-reg --merge Windows7 changes.reg\n"
44840 "\n"
44841
44842 #. type: textblock
44843 #: ../tools/virt-win-reg.pl:90
44844 msgid ""
44845 "This program is only meant for simple access to the registry.  If you want "
44846 "to do complicated things with the registry, we suggest you download the "
44847 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
44848 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
44849 "L<hivexregedit(1)>."
44850 msgstr ""
44851
44852 #. type: =item
44853 #: ../tools/virt-win-reg.pl:159
44854 msgid "B<--merge>"
44855 msgstr "B<--merge>"
44856
44857 #. type: textblock
44858 #: ../tools/virt-win-reg.pl:161
44859 msgid ""
44860 "In merge mode, this merges a textual regedit file into the Windows Registry "
44861 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
44862 "displays or exports Registry entries instead."
44863 msgstr ""
44864
44865 #. type: textblock
44866 #: ../tools/virt-win-reg.pl:165
44867 msgid ""
44868 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
44869 "result in disk corruption.  However exporting (without this flag)  is always "
44870 "safe."
44871 msgstr ""
44872
44873 #. type: =item
44874 #: ../tools/virt-win-reg.pl:173
44875 msgid "B<--encoding> UTF-16LE|ASCII"
44876 msgstr "B<--encoding> UTF-16LE|ASCII"
44877
44878 #. type: textblock
44879 #: ../tools/virt-win-reg.pl:175
44880 msgid ""
44881 "When merging (only), you may need to specify the encoding for strings to be "
44882 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
44883 "(3)/ENCODING STRINGS>."
44884 msgstr ""
44885
44886 #. type: textblock
44887 #: ../tools/virt-win-reg.pl:179
44888 msgid ""
44889 "The default is to use UTF-16LE, which should work with recent versions of "
44890 "Windows."
44891 msgstr ""
44892
44893 #. type: =item
44894 #: ../tools/virt-win-reg.pl:186
44895 msgid "B<--unsafe-printable-strings>"
44896 msgstr "B<--unsafe-printable-strings>"
44897
44898 #. type: textblock
44899 #: ../tools/virt-win-reg.pl:188
44900 msgid ""
44901 "When exporting (only), assume strings are UTF-16LE and print them as strings "
44902 "instead of hex sequences.  Remove the final zero codepoint from strings if "
44903 "present."
44904 msgstr ""
44905
44906 #. type: textblock
44907 #: ../tools/virt-win-reg.pl:192
44908 msgid ""
44909 "This is unsafe and does not preserve the fidelity of strings in the original "
44910 "Registry for various reasons:"
44911 msgstr ""
44912
44913 #. type: textblock
44914 #: ../tools/virt-win-reg.pl:199
44915 msgid ""
44916 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
44917 "other encodings will be corrupted by this transformation."
44918 msgstr ""
44919
44920 #. type: textblock
44921 #: ../tools/virt-win-reg.pl:204
44922 msgid ""
44923 "Assumes that everything which has type 1 or 2 is really a string and that "
44924 "everything else is not a string, but the type field in real Registries is "
44925 "not reliable."
44926 msgstr ""
44927
44928 #. type: textblock
44929 #: ../tools/virt-win-reg.pl:210
44930 msgid ""
44931 "Loses information about whether a zero codepoint followed the string in the "
44932 "Registry or not."
44933 msgstr ""
44934
44935 #. type: textblock
44936 #: ../tools/virt-win-reg.pl:215
44937 msgid ""
44938 "This all happens because the Registry itself contains no information about "
44939 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
44940 msgstr ""
44941
44942 #. type: textblock
44943 #: ../tools/virt-win-reg.pl:219
44944 msgid ""
44945 "You should only use this option for quick hacking and debugging of the "
44946 "Registry contents, and I<never> use it if the output is going to be passed "
44947 "into another program or stored in another Registry."
44948 msgstr ""
44949
44950 #. type: =head1
44951 #: ../tools/virt-win-reg.pl:556
44952 msgid "SUPPORTED SYSTEMS"
44953 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
44954
44955 #. type: textblock
44956 #: ../tools/virt-win-reg.pl:558
44957 msgid ""
44958 "The program currently supports Windows NT-derived guests starting with "
44959 "Windows XP through to at least Windows 7."
44960 msgstr ""
44961
44962 #. type: textblock
44963 #: ../tools/virt-win-reg.pl:561
44964 msgid "The following Registry keys are supported:"
44965 msgstr ""
44966
44967 #. type: =item
44968 #: ../tools/virt-win-reg.pl:565
44969 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
44970 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
44971
44972 #. type: =item
44973 #: ../tools/virt-win-reg.pl:567
44974 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44975 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44976
44977 #. type: =item
44978 #: ../tools/virt-win-reg.pl:569
44979 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44980 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44981
44982 #. type: =item
44983 #: ../tools/virt-win-reg.pl:571
44984 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44985 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44986
44987 #. type: =item
44988 #: ../tools/virt-win-reg.pl:573
44989 msgid "C<HKEY_USERS\\.DEFAULT>"
44990 msgstr "C<HKEY_USERS\\.DEFAULT>"
44991
44992 #. type: =item
44993 #: ../tools/virt-win-reg.pl:575
44994 msgid "C<HKEY_USERS\\I<SID>>"
44995 msgstr "C<HKEY_USERS\\I<SID>>"
44996
44997 #. type: textblock
44998 #: ../tools/virt-win-reg.pl:577
44999 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
45000 msgstr ""
45001
45002 #. type: =item
45003 #: ../tools/virt-win-reg.pl:579
45004 msgid "C<HKEY_USERS\\I<username>>"
45005 msgstr "C<HKEY_USERS\\I<користувач>>"
45006
45007 #. type: textblock
45008 #: ../tools/virt-win-reg.pl:581
45009 msgid ""
45010 "where I<username> is a local user name (this is a libguestfs extension)."
45011 msgstr ""
45012
45013 #. type: textblock
45014 #: ../tools/virt-win-reg.pl:585
45015 msgid ""
45016 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
45017 "C<HKEY_USERS>."
45018 msgstr ""
45019
45020 #. type: textblock
45021 #: ../tools/virt-win-reg.pl:588
45022 msgid ""
45023 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
45024 "supported (there is no \"current user\")."
45025 msgstr ""
45026
45027 #. type: =head1
45028 #: ../tools/virt-win-reg.pl:591
45029 msgid "ENCODING"
45030 msgstr "КОДУВАННЯ"
45031
45032 #. type: textblock
45033 #: ../tools/virt-win-reg.pl:593
45034 msgid ""
45035 "C<virt-win-reg> expects that regedit files have already been reencoded in "
45036 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
45037 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
45038 "Windows-style line endings, you may need to reencode the whole file before "
45039 "or after processing."
45040 msgstr ""
45041
45042 #. type: textblock
45043 #: ../tools/virt-win-reg.pl:599
45044 msgid ""
45045 "To reencode a file from Windows format to Linux (before processing it with "
45046 "the I<--merge> option), you would do something like this:"
45047 msgstr ""
45048
45049 #. type: verbatim
45050 #: ../tools/virt-win-reg.pl:602
45051 #, no-wrap
45052 msgid ""
45053 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
45054 "\n"
45055 msgstr ""
45056 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
45057 "\n"
45058
45059 #. type: textblock
45060 #: ../tools/virt-win-reg.pl:604
45061 msgid ""
45062 "To go in the opposite direction, after exporting and before sending the file "
45063 "to a Windows user, do something like this:"
45064 msgstr ""
45065
45066 #. type: verbatim
45067 #: ../tools/virt-win-reg.pl:607
45068 #, no-wrap
45069 msgid ""
45070 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
45071 "\n"
45072 msgstr ""
45073 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
45074 "\n"
45075
45076 #. type: textblock
45077 #: ../tools/virt-win-reg.pl:609
45078 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
45079 msgstr ""
45080
45081 #. type: textblock
45082 #: ../tools/virt-win-reg.pl:611
45083 msgid ""
45084 "If you are unsure about the current encoding, use the L<file(1)> command.  "
45085 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
45086 "style (CRLF) line endings, like this:"
45087 msgstr ""
45088
45089 #. type: verbatim
45090 #: ../tools/virt-win-reg.pl:615
45091 #, no-wrap
45092 msgid ""
45093 " $ file software.reg\n"
45094 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
45095 " with CRLF line terminators\n"
45096 "\n"
45097 msgstr ""
45098
45099 #. type: textblock
45100 #: ../tools/virt-win-reg.pl:619
45101 msgid "This file would need conversion before you could I<--merge> it."
45102 msgstr ""
45103
45104 #. type: =head1
45105 #: ../tools/virt-win-reg.pl:621
45106 msgid "CurrentControlSet etc."
45107 msgstr ""
45108
45109 #. type: textblock
45110 #: ../tools/virt-win-reg.pl:623
45111 msgid ""
45112 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
45113 "Registry at the level of the hive file, and therefore you cannot modify "
45114 "these."
45115 msgstr ""
45116
45117 #. type: textblock
45118 #: ../tools/virt-win-reg.pl:627
45119 msgid ""
45120 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
45121 "circumstances it might refer to another control set.  The way to find out is "
45122 "to look at the C<HKLM\\SYSTEM\\Select> key:"
45123 msgstr ""
45124
45125 #. type: verbatim
45126 #: ../tools/virt-win-reg.pl:631
45127 #, no-wrap
45128 msgid ""
45129 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
45130 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
45131 " \"Current\"=dword:00000001\n"
45132 " \"Default\"=dword:00000001\n"
45133 " \"Failed\"=dword:00000000\n"
45134 " \"LastKnownGood\"=dword:00000002\n"
45135 "\n"
45136 msgstr ""
45137 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
45138 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
45139 " \"Current\"=dword:00000001\n"
45140 " \"Default\"=dword:00000001\n"
45141 " \"Failed\"=dword:00000000\n"
45142 " \"LastKnownGood\"=dword:00000002\n"
45143 "\n"
45144
45145 #. type: textblock
45146 #: ../tools/virt-win-reg.pl:638
45147 msgid "\"Current\" is the one which Windows will choose when it boots."
45148 msgstr ""
45149
45150 #. type: textblock
45151 #: ../tools/virt-win-reg.pl:640
45152 msgid ""
45153 "Similarly, other C<Current...> keys in the path may need to be replaced."
45154 msgstr ""
45155
45156 #. type: =head1
45157 #: ../tools/virt-win-reg.pl:643
45158 msgid "DELETING REGISTRY KEYS AND VALUES"
45159 msgstr ""
45160
45161 #. type: textblock
45162 #: ../tools/virt-win-reg.pl:645
45163 msgid "To delete a whole registry key, use the syntax:"
45164 msgstr ""
45165
45166 #. type: verbatim
45167 #: ../tools/virt-win-reg.pl:647
45168 #, no-wrap
45169 msgid ""
45170 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
45171 "\n"
45172 msgstr ""
45173
45174 #. type: textblock
45175 #: ../tools/virt-win-reg.pl:649
45176 msgid "To delete a single value within a key, use the syntax:"
45177 msgstr ""
45178
45179 #. type: verbatim
45180 #: ../tools/virt-win-reg.pl:651
45181 #, no-wrap
45182 msgid ""
45183 " [HKEY_LOCAL_MACHINE\\Foo]\n"
45184 " \"Value\"=-\n"
45185 "\n"
45186 msgstr ""
45187
45188 #. type: =head1
45189 #: ../tools/virt-win-reg.pl:654
45190 msgid "WINDOWS TIPS"
45191 msgstr ""
45192
45193 #. type: textblock
45194 #: ../tools/virt-win-reg.pl:656
45195 msgid ""
45196 "Note that some of these tips modify the guest disk image.  The guest I<must> "
45197 "be shut off, else you will get disk corruption."
45198 msgstr ""
45199
45200 #. type: =head2
45201 #: ../tools/virt-win-reg.pl:659
45202 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
45203 msgstr ""
45204
45205 #. type: textblock
45206 #: ../tools/virt-win-reg.pl:661
45207 msgid ""
45208 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
45209 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
45210 "is uploaded into C<C:\\>:"
45211 msgstr ""
45212
45213 #. type: verbatim
45214 #: ../tools/virt-win-reg.pl:665
45215 #, no-wrap
45216 msgid ""
45217 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45218 "\n"
45219 msgstr ""
45220 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45221 "\n"
45222
45223 #. type: textblock
45224 #: ../tools/virt-win-reg.pl:667
45225 msgid "Prepare a regedit file containing the registry change:"
45226 msgstr ""
45227
45228 #. type: verbatim
45229 #: ../tools/virt-win-reg.pl:669
45230 #, no-wrap
45231 msgid ""
45232 " cat > test.reg <<'EOF'\n"
45233 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45234 " \"Test\"=\"c:\\\\test.bat\"\n"
45235 " EOF\n"
45236 "\n"
45237 msgstr ""
45238 " cat > test.reg <<'EOF'\n"
45239 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45240 " \"Test\"=\"c:\\\\test.bat\"\n"
45241 " EOF\n"
45242 "\n"
45243
45244 #. type: textblock
45245 #: ../tools/virt-win-reg.pl:674
45246 msgid ""
45247 "In this example we use the key C<RunOnce> which means that the script will "
45248 "run precisely once when the first user logs in.  If you want it to run every "
45249 "time a user logs in, replace C<RunOnce> with C<Run>."
45250 msgstr ""
45251
45252 #. type: textblock
45253 #: ../tools/virt-win-reg.pl:678
45254 msgid "Now update the registry:"
45255 msgstr "Оновіть регістр:"
45256
45257 #. type: verbatim
45258 #: ../tools/virt-win-reg.pl:680
45259 #, no-wrap
45260 msgid ""
45261 " virt-win-reg --merge WindowsGuest test.reg\n"
45262 "\n"
45263 msgstr ""
45264
45265 #. type: =head2
45266 #: ../tools/virt-win-reg.pl:682
45267 msgid "INSTALLING A SERVICE"
45268 msgstr ""
45269
45270 #. type: textblock
45271 #: ../tools/virt-win-reg.pl:684
45272 msgid ""
45273 "This section assumes you are familiar with Windows services, and you either "
45274 "have a program which handles the Windows Service Control Protocol directly "
45275 "or you want to run any program using a service wrapper like SrvAny or the "
45276 "free RHSrvAny."
45277 msgstr ""
45278
45279 #. type: textblock
45280 #: ../tools/virt-win-reg.pl:689
45281 msgid ""
45282 "First upload the program and optionally the service wrapper.  In this case "
45283 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
45284 msgstr ""
45285
45286 #. type: verbatim
45287 #: ../tools/virt-win-reg.pl:693
45288 #, no-wrap
45289 msgid ""
45290 " guestfish -i -d WindowsGuest <<EOF\n"
45291 "   upload rhsrvany.exe /rhsrvany.exe\n"
45292 "   upload test.exe /test.exe\n"
45293 " EOF\n"
45294 "\n"
45295 msgstr ""
45296 " guestfish -i -d WindowsGuest <<EOF\n"
45297 "   upload rhsrvany.exe /rhsrvany.exe\n"
45298 "   upload test.exe /test.exe\n"
45299 " EOF\n"
45300 "\n"
45301
45302 #. type: textblock
45303 #: ../tools/virt-win-reg.pl:698
45304 msgid ""
45305 "Prepare a regedit file containing the registry changes.  In this example, "
45306 "the first registry change is needed for the service itself or the service "
45307 "wrapper (if used).  The second registry change is only needed because I am "
45308 "using the RHSrvAny service wrapper."
45309 msgstr ""
45310
45311 #. type: verbatim
45312 #: ../tools/virt-win-reg.pl:703
45313 #, no-wrap
45314 msgid ""
45315 " cat > service.reg <<'EOF'\n"
45316 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45317 " \"Type\"=dword:00000010\n"
45318 " \"Start\"=dword:00000002\n"
45319 " \"ErrorControl\"=dword:00000001\n"
45320 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45321 " \"DisplayName\"=\"RHSrvAny\"\n"
45322 " \"ObjectName\"=\"NetworkService\"\n"
45323 " \n"
45324 msgstr ""
45325 " cat > service.reg <<'EOF'\n"
45326 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45327 " \"Type\"=dword:00000010\n"
45328 " \"Start\"=dword:00000002\n"
45329 " \"ErrorControl\"=dword:00000001\n"
45330 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45331 " \"DisplayName\"=\"RHSrvAny\"\n"
45332 " \"ObjectName\"=\"NetworkService\"\n"
45333 " \n"
45334
45335 #. type: verbatim
45336 #: ../tools/virt-win-reg.pl:712
45337 #, no-wrap
45338 msgid ""
45339 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45340 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45341 " \"PWD\"=\"c:\\\\Temp\"\n"
45342 " EOF\n"
45343 "\n"
45344 msgstr ""
45345 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45346 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45347 " \"PWD\"=\"c:\\\\Temp\"\n"
45348 " EOF\n"
45349 "\n"
45350
45351 #. type: textblock
45352 #: ../tools/virt-win-reg.pl:723
45353 msgid ""
45354 "For use of C<ControlSet001> see the section above in this manual page.  You "
45355 "may need to adjust this according to the control set that is in use by the "
45356 "guest."
45357 msgstr ""
45358
45359 #. type: textblock
45360 #: ../tools/virt-win-reg.pl:729
45361 msgid ""
45362 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
45363 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
45364 "privileged account."
45365 msgstr ""
45366
45367 #. type: textblock
45368 #: ../tools/virt-win-reg.pl:735
45369 msgid ""
45370 "For the meaning of the magic numbers, see this Microsoft KB article: "
45371 "L<http://support.microsoft.com/kb/103000>."
45372 msgstr ""
45373
45374 #. type: textblock
45375 #: ../tools/virt-win-reg.pl:740
45376 msgid "Update the registry:"
45377 msgstr "Оновіть регістр:"
45378
45379 #. type: verbatim
45380 #: ../tools/virt-win-reg.pl:742
45381 #, no-wrap
45382 msgid ""
45383 " virt-win-reg --merge WindowsGuest service.reg\n"
45384 "\n"
45385 msgstr ""
45386
45387 #. type: textblock
45388 #: ../tools/virt-win-reg.pl:746
45389 msgid ""
45390 "Be careful when passing parameters containing C<\\> (backslash) in the "
45391 "shell.  Usually you will have to use 'single quotes' or double backslashes "
45392 "(but not both) to protect them from the shell."
45393 msgstr ""
45394
45395 #. type: textblock
45396 #: ../tools/virt-win-reg.pl:750
45397 msgid "Paths and value names are case-insensitive."
45398 msgstr ""
45399
45400 #. type: textblock
45401 #: ../tools/virt-win-reg.pl:759
45402 msgid ""
45403 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45404 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45405 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45406 msgstr ""
45407 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45408 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45409 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45410
45411 #. type: verbatim
45412 #: ../tools/virt-win-reg.pl:777
45413 #, no-wrap
45414 msgid ""
45415 " export LIBGUESTFS_DEBUG=1\n"
45416 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
45417 "\n"
45418 msgstr ""
45419
45420 #. type: textblock
45421 #: ../tools/virt-win-reg.pl:780
45422 msgid ""
45423 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
45424 "redhat.com/>"
45425 msgstr ""
45426
45427 #~ msgid "C<caution>"
45428 #~ msgstr "C<caution>"
45429
45430 #, fuzzy
45431 #~| msgid "C<capitests>"
45432 #~ msgid "C<extratests>"
45433 #~ msgstr "C<capitests>"
45434
45435 #~ msgid "C<images>"
45436 #~ msgstr "C<images>"
45437
45438 #~ msgid "C<regressions>"
45439 #~ msgstr "C<regressions>"
45440
45441 #~ msgid "Regression tests."
45442 #~ msgstr "Тести на регресії."
45443
45444 #, fuzzy
45445 #~| msgid "C<md5>"
45446 #~ msgid "C<md>"
45447 #~ msgstr "C<md5>"