Version 1.15.4.
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-17 13:11+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 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "НАЗВА"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr "КОРОТКИЙ ОПИС"
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr "ОПИС"
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr "ПАРАМЕТРИ"
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr "B<--help>"
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr "Показати коротку довідку."
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
308 msgid "B<-a> file"
309 msgstr "B<-a> файл"
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
316 msgid "B<--add> file"
317 msgstr "B<--add> файл"
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:135
340 msgid "B<-c> URI"
341 msgstr "B<-c> адреса"
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:137
348 msgid "B<--connect> URI"
349 msgstr "B<--connect> адреса"
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:142
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
378 msgid "B<-d> guest"
379 msgstr "B<-d> гість"
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
386 msgid "B<--domain> guest"
387 msgstr "B<--domain> гість"
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr "B<--format=raw|qcow2|..>"
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:154
415 msgid "B<--format>"
416 msgstr "B<--format>"
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
437 #: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
438 msgid "For example:"
439 msgstr "Приклад:"
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:165
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:169
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr "B<-q>"
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr "B<--quiet>"
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr "B<-v>"
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr "B<--verbose>"
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr "B<-V>"
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr "B<--version>"
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr "Показати дані щодо версії і завершити роботу."
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr "B<-x>"
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical consumer hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/hw_sector_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/physical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/logical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/minimum_io_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/optimal_io_size\n"
725 " 0\n"
726 "\n"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:245
731 msgid "For a new consumer hard drive with 4Kbyte sectors:"
732 msgstr ""
733
734 #. type: verbatim
735 #: ../align/virt-alignment-scan.pod:247
736 #, no-wrap
737 msgid ""
738 " $ cat /sys/block/sda/queue/hw_sector_size\n"
739 " 4096\n"
740 " $ cat /sys/block/sda/queue/physical_block_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/logical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/minimum_io_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/optimal_io_size\n"
747 " 0\n"
748 "\n"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:258
753 msgid "For a NetApp LUN:"
754 msgstr ""
755
756 #. type: verbatim
757 #: ../align/virt-alignment-scan.pod:260
758 #, no-wrap
759 msgid ""
760 " $ cat /sys/block/sdc/queue/logical_block_size\n"
761 " 512\n"
762 " $ cat /sys/block/sdc/queue/physical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
765 " 4096\n"
766 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
767 " 65536\n"
768 "\n"
769 msgstr ""
770
771 #. type: textblock
772 #: ../align/virt-alignment-scan.pod:269
773 msgid ""
774 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
775 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
776 msgstr ""
777
778 #. type: textblock
779 #: ../align/virt-alignment-scan.pod:273
780 msgid ""
781 "For detailed information about what these numbers mean, see L<http://docs."
782 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
783 "Storage_Administration_Guide/newstorage-iolimits.html>"
784 msgstr ""
785
786 #. type: textblock
787 #: ../align/virt-alignment-scan.pod:276
788 msgid ""
789 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
790 "for providing NetApp data and additional information.]"
791 msgstr ""
792
793 #. type: =head2
794 #: ../align/virt-alignment-scan.pod:279
795 msgid "1 MB PARTITION ALIGNMENT"
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:281
800 msgid ""
801 "Microsoft picked 1 MB as the default alignment for all partitions starting "
802 "with Windows 2008 Server, and Linux has followed this."
803 msgstr ""
804
805 #. type: textblock
806 #: ../align/virt-alignment-scan.pod:284
807 msgid ""
808 "Assuming 512 byte sectors in the guest, you will now see the first partition "
809 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
810 "multiple of 2048 sectors."
811 msgstr ""
812
813 #. type: textblock
814 #: ../align/virt-alignment-scan.pod:288
815 msgid ""
816 "1 MB alignment is compatible with all current alignment requirements (4K, "
817 "64K) and provides room for future growth in physical block sizes."
818 msgstr ""
819
820 #. type: =head2
821 #: ../align/virt-alignment-scan.pod:291
822 msgid "SETTING ALIGNMENT"
823 msgstr ""
824
825 #. type: textblock
826 #: ../align/virt-alignment-scan.pod:293
827 msgid ""
828 "L<virt-resize(1)> can change the alignment of the partitions of some "
829 "guests.  Currently it can fully align all the partitions of all Windows "
830 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
831 "it can align the second and subsequent partitions, so the majority of OS "
832 "accesses except at boot will be aligned."
833 msgstr ""
834
835 #. type: textblock
836 #: ../align/virt-alignment-scan.pod:299
837 msgid ""
838 "Another way to correct partition alignment problems is to reinstall your "
839 "guest operating systems.  If you install operating systems from templates, "
840 "ensure these have correct partition alignment too."
841 msgstr ""
842
843 #. type: textblock
844 #: ../align/virt-alignment-scan.pod:303
845 msgid ""
846 "For older versions of Windows, the following NetApp document contains useful "
847 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
848 msgstr ""
849
850 #. type: textblock
851 #: ../align/virt-alignment-scan.pod:306
852 msgid ""
853 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
854 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
855 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
856 "contains an example."
857 msgstr ""
858
859 #. type: =head1
860 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
861 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
862 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
863 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
864 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:676
865 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
866 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
867 #: ../tools/virt-win-reg.pl:744
868 msgid "SHELL QUOTING"
869 msgstr ""
870
871 #. type: textblock
872 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
873 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
874 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
875 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
876 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:678
877 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
878 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
879 #: ../tools/virt-win-reg.pl:752
880 msgid ""
881 "Libvirt guest names can contain arbitrary characters, some of which have "
882 "meaning to the shell such as C<#> and space.  You may need to quote or "
883 "escape these characters on the command line.  See the shell manual page L<sh"
884 "(1)> for details."
885 msgstr ""
886
887 #. type: =head1
888 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
889 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
890 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
891 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
892 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
893 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
894 #: ../test-tool/libguestfs-test-tool.pod:90
895 msgid "EXIT STATUS"
896 msgstr ""
897
898 #. type: textblock
899 #: ../align/virt-alignment-scan.pod:320
900 msgid "This program returns:"
901 msgstr ""
902
903 #. type: =item
904 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
905 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
906 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
907 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
908 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
909 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
910 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
911 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
912 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
913 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
914 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
915 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
916 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
917 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
918 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
919 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
920 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
921 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
922 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
923 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
924 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
925 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
926 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
927 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
928 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
929 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
930 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
931 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
932 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
933 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
934 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
935 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
936 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
937 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
938 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
939 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408
940 #: ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:359
941 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
942 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
943 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
944 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
945 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
946 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
947 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
948 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
949 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
950 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091
951 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103
952 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117
953 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125
954 #: ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267
955 #: ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277
956 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342
957 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762
958 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776
959 #: ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327
960 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342
961 #: ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403
962 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
963 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
964 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
965 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
966 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
967 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
968 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
969 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
970 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
971 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
972 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
973 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
974 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
975 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
976 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
977 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
978 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
979 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
980 #: ../tools/virt-win-reg.pl:733
981 msgid "*"
982 msgstr "*"
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:326
986 msgid "0"
987 msgstr ""
988
989 #. type: textblock
990 #: ../align/virt-alignment-scan.pod:328
991 msgid ""
992 "successful exit, all partitions are aligned E<ge> 64K for best performance"
993 msgstr ""
994
995 #. type: textblock
996 #: ../align/virt-alignment-scan.pod:332
997 msgid "1"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../align/virt-alignment-scan.pod:334
1002 msgid "an error scanning the disk image or guest"
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../align/virt-alignment-scan.pod:338
1007 msgid "2"
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../align/virt-alignment-scan.pod:340
1012 msgid ""
1013 "successful exit, some partitions have alignment E<lt> 64K which can result "
1014 "in poor performance on high end network storage"
1015 msgstr ""
1016
1017 #. type: textblock
1018 #: ../align/virt-alignment-scan.pod:345
1019 msgid "3"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../align/virt-alignment-scan.pod:347
1024 msgid ""
1025 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1026 "poor performance on most hypervisors"
1027 msgstr ""
1028
1029 #. type: =head1
1030 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1031 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1032 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1033 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1034 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1035 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1036 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1037 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1038 #: ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45
1039 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1040 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1041 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1042 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1043 #: ../test-tool/libguestfs-test-tool.pod:100
1044 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1045 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1046 #: ../tools/virt-win-reg.pl:757
1047 msgid "SEE ALSO"
1048 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1049
1050 #. type: textblock
1051 #: ../align/virt-alignment-scan.pod:354
1052 msgid ""
1053 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1054 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1055 msgstr ""
1056
1057 #. type: =head1
1058 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1059 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1060 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1061 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1062 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1063 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1064 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1065 #: ../tools/virt-win-reg.pl:783
1066 msgid "AUTHOR"
1067 msgstr "АВТОР"
1068
1069 #. type: textblock
1070 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1071 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1072 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1073 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1074 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:713
1075 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1076 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1077 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1078 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1079 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1080
1081 #. type: =head1
1082 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1083 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1084 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1085 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1086 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1087 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1088 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1089 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1090 #: ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62
1091 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1092 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1093 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1094 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1095 #: ../test-tool/libguestfs-test-tool.pod:110
1096 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1097 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1098 #: ../tools/virt-win-reg.pl:787
1099 msgid "COPYRIGHT"
1100 msgstr "АВТОРСЬКІ ПРАВА"
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1104 #: ../sparsify/virt-sparsify.pod:270
1105 msgid "Copyright (C) 2011 Red Hat Inc."
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1110 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1111 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1112 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1113 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1114 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1115 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1116 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:719
1117 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1118 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1119 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1120 #: ../tools/virt-win-reg.pl:791
1121 msgid ""
1122 "This program is free software; you can redistribute it and/or modify it "
1123 "under the terms of the GNU General Public License as published by the Free "
1124 "Software Foundation; either version 2 of the License, or (at your option) "
1125 "any later version."
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1130 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1131 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1132 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1133 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1134 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1135 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1136 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:724
1137 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1138 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1139 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1140 #: ../tools/virt-win-reg.pl:796
1141 msgid ""
1142 "This program is distributed in the hope that it will be useful, but WITHOUT "
1143 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1144 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1145 "more details."
1146 msgstr ""
1147 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1148 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1149 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1150 "дізнатися з GNU General Public License."
1151
1152 #. type: textblock
1153 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1154 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1155 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1156 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1157 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1158 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1159 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1160 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:729
1161 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1162 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1163 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1164 #: ../tools/virt-win-reg.pl:801
1165 msgid ""
1166 "You should have received a copy of the GNU General Public License along with "
1167 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1168 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1169 msgstr ""
1170 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1171 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1172 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1173
1174 #. type: textblock
1175 #: ../cat/virt-cat.pod:5
1176 msgid "virt-cat - Display files in a virtual machine"
1177 msgstr "virt-cat — показ файлів у віртуальній машині"
1178
1179 #. type: verbatim
1180 #: ../cat/virt-cat.pod:9
1181 #, no-wrap
1182 msgid ""
1183 " virt-cat [--options] -d domname file [file ...]\n"
1184 "\n"
1185 msgstr ""
1186 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1187 "\n"
1188
1189 #. type: verbatim
1190 #: ../cat/virt-cat.pod:11
1191 #, no-wrap
1192 msgid ""
1193 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1194 "\n"
1195 msgstr ""
1196 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1197 "\n"
1198
1199 #. type: textblock
1200 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1201 #: ../inspector/virt-inspector.pod:13
1202 msgid "Old-style:"
1203 msgstr "Застарілий стиль:"
1204
1205 #. type: verbatim
1206 #: ../cat/virt-cat.pod:15
1207 #, no-wrap
1208 msgid ""
1209 " virt-cat domname file\n"
1210 "\n"
1211 msgstr ""
1212 " virt-cat назва_домену файл\n"
1213 "\n"
1214
1215 #. type: verbatim
1216 #: ../cat/virt-cat.pod:17
1217 #, no-wrap
1218 msgid ""
1219 " virt-cat disk.img file\n"
1220 "\n"
1221 msgstr ""
1222 " virt-cat диск.img файл\n"
1223 "\n"
1224
1225 #. type: textblock
1226 #: ../cat/virt-cat.pod:21
1227 msgid ""
1228 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1229 "C<file> exists in the named virtual machine (or disk image)."
1230 msgstr ""
1231 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1232 "зберігається у вказаній віртуальній машині (або образі диска)."
1233
1234 #. type: textblock
1235 #: ../cat/virt-cat.pod:24
1236 msgid ""
1237 "Multiple filenames can be given, in which case they are concatenated "
1238 "together.  Each filename must be a full path, starting at the root directory "
1239 "(starting with '/')."
1240 msgstr ""
1241 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1242 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1243 "кореневого каталогу (тобто назва має починатися з «/»)."
1244
1245 #. type: textblock
1246 #: ../cat/virt-cat.pod:28
1247 msgid ""
1248 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1249 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1250 "(see L</USING GUESTFISH> below)."
1251 msgstr ""
1252 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1253 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1254 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1255 "нижче)."
1256
1257 #. type: =head1
1258 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1259 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1260 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1261 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1262 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1263 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1264 #: ../tools/virt-tar.pl:50
1265 msgid "EXAMPLES"
1266 msgstr "ПРИКЛАДИ"
1267
1268 #. type: textblock
1269 #: ../cat/virt-cat.pod:34
1270 msgid ""
1271 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1272 msgstr ""
1273 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1274
1275 #. type: verbatim
1276 #: ../cat/virt-cat.pod:37
1277 #, no-wrap
1278 msgid ""
1279 " virt-cat -d mydomain /etc/fstab\n"
1280 "\n"
1281 msgstr ""
1282 " virt-cat -d mydomain /etc/fstab\n"
1283 "\n"
1284
1285 #. type: textblock
1286 #: ../cat/virt-cat.pod:39
1287 msgid "List syslog messages from a VM disk image file:"
1288 msgstr ""
1289 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1290
1291 #. type: verbatim
1292 #: ../cat/virt-cat.pod:41
1293 #, no-wrap
1294 msgid ""
1295 " virt-cat -a disk.img /var/log/messages | tail\n"
1296 "\n"
1297 msgstr ""
1298 " virt-cat -a disk.img /var/log/messages | tail\n"
1299 "\n"
1300
1301 #. type: textblock
1302 #: ../cat/virt-cat.pod:43
1303 msgid "Find out what DHCP IP address a VM acquired:"
1304 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1305
1306 #. type: verbatim
1307 #: ../cat/virt-cat.pod:45
1308 #, no-wrap
1309 msgid ""
1310 " virt-cat -d mydomain /var/log/messages | \\\n"
1311 "   grep 'dhclient: bound to' | tail\n"
1312 "\n"
1313 msgstr ""
1314 " virt-cat -d mydomain /var/log/messages | \\\n"
1315 "   grep 'dhclient: bound to' | tail\n"
1316 "\n"
1317
1318 #. type: textblock
1319 #: ../cat/virt-cat.pod:48
1320 msgid "Find out what packages were recently installed:"
1321 msgstr "Пошук нещодавно встановлених пакунків:"
1322
1323 #. type: verbatim
1324 #: ../cat/virt-cat.pod:50
1325 #, no-wrap
1326 msgid ""
1327 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1328 "\n"
1329 msgstr ""
1330 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1331 "\n"
1332
1333 #. type: textblock
1334 #: ../cat/virt-cat.pod:52
1335 msgid "Find out who is logged on inside a virtual machine:"
1336 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1337
1338 #. type: verbatim
1339 #: ../cat/virt-cat.pod:54
1340 #, no-wrap
1341 msgid ""
1342 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1343 " who /tmp/utmp\n"
1344 "\n"
1345 msgstr ""
1346 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1347 " who /tmp/utmp\n"
1348 "\n"
1349
1350 #. type: textblock
1351 #: ../cat/virt-cat.pod:57
1352 msgid "or who was logged on:"
1353 msgstr "або тих, які у ній працювали:"
1354
1355 #. type: verbatim
1356 #: ../cat/virt-cat.pod:59
1357 #, no-wrap
1358 msgid ""
1359 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1360 " last -f /tmp/wtmp\n"
1361 "\n"
1362 msgstr ""
1363 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1364 " last -f /tmp/wtmp\n"
1365 "\n"
1366
1367 #. type: textblock
1368 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1369 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1370 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1371 msgid ""
1372 "Add I<file> which should be a disk image from a virtual machine.  If the "
1373 "virtual machine has multiple block devices, you must supply all of them with "
1374 "separate I<-a> options."
1375 msgstr ""
1376
1377 #. type: =item
1378 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1379 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1380 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1381 msgid "B<--echo-keys>"
1382 msgstr "B<--echo-keys>"
1383
1384 #. type: textblock
1385 #: ../cat/virt-cat.pod:100
1386 msgid ""
1387 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1388 "so you cannot see what you are typing.  If you are not worried about Tempest "
1389 "attacks and there is no one else in the room you can specify this flag to "
1390 "see what you are typing."
1391 msgstr ""
1392
1393 #. type: verbatim
1394 #: ../cat/virt-cat.pod:116
1395 #, no-wrap
1396 msgid ""
1397 " virt-cat --format=raw -a disk.img file\n"
1398 "\n"
1399 msgstr ""
1400 " virt-cat --format=raw -a disk.img file\n"
1401 "\n"
1402
1403 #. type: verbatim
1404 #: ../cat/virt-cat.pod:120
1405 #, no-wrap
1406 msgid ""
1407 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1408 "\n"
1409 msgstr ""
1410 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1411 "\n"
1412
1413 #. type: =item
1414 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1415 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1416 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1417 msgid "B<--keys-from-stdin>"
1418 msgstr "B<--keys-from-stdin>"
1419
1420 #. type: textblock
1421 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1422 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1423 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1424 msgid ""
1425 "Read key or passphrase parameters from stdin.  The default is to try to read "
1426 "passphrases from the user by opening C</dev/tty>."
1427 msgstr ""
1428
1429 #. type: =head1
1430 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1431 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1432 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1433 msgstr ""
1434
1435 #. type: textblock
1436 #: ../cat/virt-cat.pod:154
1437 msgid "Previous versions of virt-cat allowed you to write either:"
1438 msgstr ""
1439
1440 #. type: verbatim
1441 #: ../cat/virt-cat.pod:156
1442 #, no-wrap
1443 msgid ""
1444 " virt-cat disk.img [disk.img ...] file\n"
1445 "\n"
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1450 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1451 msgid "or"
1452 msgstr "або"
1453
1454 #. type: verbatim
1455 #: ../cat/virt-cat.pod:160
1456 #, no-wrap
1457 msgid ""
1458 " virt-cat guestname file\n"
1459 "\n"
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1464 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1465 msgid ""
1466 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1467 "the confusing case where a disk image might have the same name as a guest."
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1472 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1473 msgid "For compatibility the old style is still supported."
1474 msgstr ""
1475
1476 #. type: =head1
1477 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1478 msgid "WINDOWS PATHS"
1479 msgstr "ШЛЯХИ У WINDOWS"
1480
1481 #. type: textblock
1482 #: ../cat/virt-cat.pod:170
1483 msgid ""
1484 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1485 "paths (eg. C<E:\\foo\\bar.txt>)."
1486 msgstr ""
1487
1488 #. type: textblock
1489 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1490 msgid "If and only if the guest is running Windows then:"
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1495 msgid ""
1496 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1497 "to the correct filesystem."
1498 msgstr ""
1499
1500 #. type: textblock
1501 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1502 msgid ""
1503 "Any backslash (C<\\>) characters in the path are replaced with forward "
1504 "slashes so that libguestfs can process it."
1505 msgstr ""
1506
1507 #. type: textblock
1508 #: ../cat/virt-cat.pod:189
1509 msgid ""
1510 "The path is resolved case insensitively to locate the file that should be "
1511 "displayed."
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1516 msgid "There are some known shortcomings:"
1517 msgstr ""
1518
1519 #. type: textblock
1520 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1521 msgid "Some NTFS symbolic links may not be followed correctly."
1522 msgstr ""
1523
1524 #. type: textblock
1525 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1526 msgid "NTFS junction points that cross filesystems are not followed."
1527 msgstr ""
1528
1529 #. type: =head1
1530 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1531 msgid "USING GUESTFISH"
1532 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1533
1534 #. type: textblock
1535 #: ../cat/virt-cat.pod:210
1536 msgid ""
1537 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1538 "C<virt-cat> doesn't work."
1539 msgstr ""
1540
1541 #. type: textblock
1542 #: ../cat/virt-cat.pod:213
1543 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1544 msgstr ""
1545
1546 #. type: verbatim
1547 #: ../cat/virt-cat.pod:215
1548 #, no-wrap
1549 msgid ""
1550 " guestfish --ro -i -d domname download file -\n"
1551 "\n"
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../cat/virt-cat.pod:217
1556 msgid ""
1557 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1558 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-cat.pod:221
1563 msgid ""
1564 "The command above uses libguestfs's guest inspection feature and so does not "
1565 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1566 "disk images that don't contain guests.  To display a file from a disk image "
1567 "directly, use:"
1568 msgstr ""
1569
1570 #. type: verbatim
1571 #: ../cat/virt-cat.pod:226
1572 #, no-wrap
1573 msgid ""
1574 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1575 "\n"
1576 msgstr ""
1577
1578 #. type: textblock
1579 #: ../cat/virt-cat.pod:228
1580 msgid ""
1581 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1582 "the disk image, and C<file> is the full path to the file."
1583 msgstr ""
1584
1585 #. type: textblock
1586 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1587 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1588 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1589 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1590 msgid ""
1591 "This program returns 0 if successful, or non-zero if there was an error."
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-cat.pod:245
1596 msgid ""
1597 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1598 "tar-out(1)>, L<http://libguestfs.org/>."
1599 msgstr ""
1600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1601 "tar-out(1)>, L<http://libguestfs.org/>."
1602
1603 #. type: textblock
1604 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1605 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1606 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1607 msgstr "©Red Hat Inc., 2010–2011"
1608
1609 #. type: textblock
1610 #: ../cat/virt-filesystems.pod:5
1611 msgid ""
1612 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1613 "virtual machine or disk image"
1614 msgstr ""
1615
1616 #. type: verbatim
1617 #: ../cat/virt-filesystems.pod:9
1618 #, no-wrap
1619 msgid ""
1620 " virt-filesystems [--options] -d domname\n"
1621 "\n"
1622 msgstr ""
1623 " virt-filesystems [--параметри] -d назва_домену\n"
1624 "\n"
1625
1626 #. type: verbatim
1627 #: ../cat/virt-filesystems.pod:11
1628 #, no-wrap
1629 msgid ""
1630 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1631 "\n"
1632 msgstr ""
1633
1634 #. type: textblock
1635 #: ../cat/virt-filesystems.pod:15
1636 msgid ""
1637 "This tool allows you to discover filesystems, partitions, logical volumes, "
1638 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1639 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../cat/virt-filesystems.pod:20
1644 msgid ""
1645 "One use for this tool is from shell scripts to iterate over all filesystems "
1646 "from a disk image:"
1647 msgstr ""
1648
1649 #. type: verbatim
1650 #: ../cat/virt-filesystems.pod:23
1651 #, no-wrap
1652 msgid ""
1653 " for fs in $(virt-filesystems -a disk.img); do\n"
1654 "   # ...\n"
1655 " done\n"
1656 "\n"
1657 msgstr ""
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1659 "   # ...\n"
1660 " done\n"
1661 "\n"
1662
1663 #. type: textblock
1664 #: ../cat/virt-filesystems.pod:27
1665 msgid ""
1666 "Another use is to list partitions before using another tool to modify those "
1667 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1668 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1669 msgstr ""
1670
1671 #. type: textblock
1672 #: ../cat/virt-filesystems.pod:32
1673 msgid ""
1674 "Various command line options control what this program displays.  You need "
1675 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1676 "guest respectively.  If you just specify that then the program shows "
1677 "filesystems found, one per line, like this:"
1678 msgstr ""
1679
1680 #. type: verbatim
1681 #: ../cat/virt-filesystems.pod:37
1682 #, no-wrap
1683 msgid ""
1684 " $ virt-filesystems -a disk.img\n"
1685 " /dev/sda1\n"
1686 " /dev/vg_guest/lv_root\n"
1687 "\n"
1688 msgstr ""
1689 " $ virt-filesystems -a disk.img\n"
1690 " /dev/sda1\n"
1691 " /dev/vg_guest/lv_root\n"
1692 "\n"
1693
1694 #. type: textblock
1695 #: ../cat/virt-filesystems.pod:41
1696 msgid ""
1697 "If you add I<-l> or I<--long> then the output includes extra information:"
1698 msgstr ""
1699
1700 #. type: verbatim
1701 #: ../cat/virt-filesystems.pod:44
1702 #, no-wrap
1703 msgid ""
1704 " $ virt-filesystems -a disk.img -l\n"
1705 " Name                   Type         VFS   Label  Size\n"
1706 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1707 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1708 "\n"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:49
1713 msgid ""
1714 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1715 "shown as well:"
1716 msgstr ""
1717
1718 #. type: verbatim
1719 #: ../cat/virt-filesystems.pod:52
1720 #, no-wrap
1721 msgid ""
1722 " $ virt-filesystems -a disk.img --extra\n"
1723 " /dev/sda1\n"
1724 " /dev/vg_guest/lv_root\n"
1725 " /dev/vg_guest/lv_swap\n"
1726 " /dev/vg_guest/lv_data\n"
1727 "\n"
1728 msgstr ""
1729 " $ virt-filesystems -a disk.img --extra\n"
1730 " /dev/sda1\n"
1731 " /dev/vg_guest/lv_root\n"
1732 " /dev/vg_guest/lv_swap\n"
1733 " /dev/vg_guest/lv_data\n"
1734 "\n"
1735
1736 #. type: textblock
1737 #: ../cat/virt-filesystems.pod:58
1738 msgid ""
1739 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1740 msgstr ""
1741
1742 #. type: verbatim
1743 #: ../cat/virt-filesystems.pod:60
1744 #, no-wrap
1745 msgid ""
1746 " $ virt-filesystems -a disk.img --partitions\n"
1747 " /dev/sda1\n"
1748 " /dev/sda2\n"
1749 "\n"
1750 msgstr ""
1751 " $ virt-filesystems -a disk.img --partitions\n"
1752 " /dev/sda1\n"
1753 " /dev/sda2\n"
1754 "\n"
1755
1756 #. type: textblock
1757 #: ../cat/virt-filesystems.pod:64
1758 msgid ""
1759 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1760 "volumes>, I<--block-devices> to list those items."
1761 msgstr ""
1762
1763 #. type: textblock
1764 #: ../cat/virt-filesystems.pod:67
1765 msgid ""
1766 "You can use these options in combination as well (if you want a combination "
1767 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1768 "items fall into several categories (eg. C</dev/sda1> might be both a "
1769 "partition and a filesystem).  These items are listed several times.  To get "
1770 "a list which includes absolutely everything that virt-filesystems knows "
1771 "about, use the I<--all> option."
1772 msgstr ""
1773
1774 #. type: textblock
1775 #: ../cat/virt-filesystems.pod:74
1776 msgid ""
1777 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1778 "uuid> option to display device and filesystem UUIDs in the long output."
1779 msgstr ""
1780
1781 #. type: textblock
1782 #: ../cat/virt-filesystems.pod:78
1783 msgid ""
1784 "I<--all --long --uuid> is a useful combination to display all possible "
1785 "information about everything."
1786 msgstr ""
1787
1788 #. type: verbatim
1789 #: ../cat/virt-filesystems.pod:81
1790 #, no-wrap
1791 msgid ""
1792 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1793 " Name      Type       VFS  Label           Size Parent   UUID\n"
1794 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1795 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1796 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1797 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1798 " /dev/sda  device     -    -               20G  -        -\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:89
1804 msgid ""
1805 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1806 msgstr ""
1807
1808 #. type: =item
1809 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1810 msgid "B<--all>"
1811 msgstr "B<--all>"
1812
1813 #. type: textblock
1814 #: ../cat/virt-filesystems.pod:112
1815 msgid ""
1816 "Display everything.  This is currently the same as specifying these options: "
1817 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1818 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1819 "added to this list in future)."
1820 msgstr ""
1821
1822 #. type: textblock
1823 #: ../cat/virt-filesystems.pod:117
1824 msgid "See also I<--long>."
1825 msgstr "Див. також I<--long>."
1826
1827 #. type: =item
1828 #: ../cat/virt-filesystems.pod:119
1829 msgid "B<--blkdevs>"
1830 msgstr "B<--blkdevs>"
1831
1832 #. type: =item
1833 #: ../cat/virt-filesystems.pod:121
1834 msgid "B<--block-devices>"
1835 msgstr "B<--block-devices>"
1836
1837 #. type: textblock
1838 #: ../cat/virt-filesystems.pod:123
1839 msgid "Display block devices."
1840 msgstr "Показати список блокових пристроїв."
1841
1842 #. type: =item
1843 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1844 msgid "B<--csv>"
1845 msgstr "B<--csv>"
1846
1847 #. type: textblock
1848 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1849 msgid ""
1850 "Write out the results in CSV format (comma-separated values).  This format "
1851 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1852 "ABOUT CSV FORMAT> below."
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../cat/virt-filesystems.pod:150
1857 msgid ""
1858 "When prompting for keys and passphrases, virt-filesystems normally turns "
1859 "echoing off so you cannot see what you are typing.  If you are not worried "
1860 "about Tempest attacks and there is no one else in the room you can specify "
1861 "this flag to see what you are typing."
1862 msgstr ""
1863
1864 #. type: =item
1865 #: ../cat/virt-filesystems.pod:155
1866 msgid "B<--extra>"
1867 msgstr "B<--extra>"
1868
1869 #. type: textblock
1870 #: ../cat/virt-filesystems.pod:157
1871 msgid ""
1872 "This causes filesystems that are not ordinary, mountable filesystems to be "
1873 "displayed.  This category includes swapspace, and filesystems that are empty "
1874 "or contain unknown data."
1875 msgstr ""
1876
1877 #. type: textblock
1878 #: ../cat/virt-filesystems.pod:161
1879 msgid "This option implies I<--filesystems>."
1880 msgstr ""
1881
1882 #. type: =item
1883 #: ../cat/virt-filesystems.pod:163
1884 msgid "B<--filesystems>"
1885 msgstr "B<--filesystems>"
1886
1887 #. type: textblock
1888 #: ../cat/virt-filesystems.pod:165
1889 msgid ""
1890 "Display mountable filesystems.  If no display option was selected then this "
1891 "option is implied."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../cat/virt-filesystems.pod:168
1896 msgid "With I<--extra>, non-mountable filesystems are shown too."
1897 msgstr ""
1898
1899 #. type: verbatim
1900 #: ../cat/virt-filesystems.pod:181
1901 #, no-wrap
1902 msgid ""
1903 " virt-filesystems --format=raw -a disk.img\n"
1904 "\n"
1905 msgstr ""
1906 " virt-filesystems --format=raw -a диск.img\n"
1907 "\n"
1908
1909 #. type: verbatim
1910 #: ../cat/virt-filesystems.pod:185
1911 #, no-wrap
1912 msgid ""
1913 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1914 "\n"
1915 msgstr ""
1916
1917 #. type: =item
1918 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1919 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1920 #: ../tools/virt-list-partitions.pl:109
1921 msgid "B<-h>"
1922 msgstr "B<-h>"
1923
1924 #. type: =item
1925 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1926 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1927 msgid "B<--human-readable>"
1928 msgstr "B<--human-readable>"
1929
1930 #. type: textblock
1931 #: ../cat/virt-filesystems.pod:198
1932 msgid "In I<--long> mode, display sizes in human-readable format."
1933 msgstr ""
1934
1935 #. type: =item
1936 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1937 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1938 msgid "B<-l>"
1939 msgstr "B<-l>"
1940
1941 #. type: =item
1942 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1943 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1944 msgid "B<--long>"
1945 msgstr "B<--long>"
1946
1947 #. type: textblock
1948 #: ../cat/virt-filesystems.pod:209
1949 msgid "Display extra columns of data (\"long format\")."
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../cat/virt-filesystems.pod:211
1954 msgid "A title row is added unless you also specify I<--no-title>."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:213
1959 msgid ""
1960 "The extra columns displayed depend on what output you select, and the "
1961 "ordering of columns may change in future versions.  Use the title row, I<--"
1962 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1963 "programs."
1964 msgstr ""
1965
1966 #. type: textblock
1967 #: ../cat/virt-filesystems.pod:218
1968 msgid ""
1969 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1970 "default is to show raw numbers of I<bytes>."
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-filesystems.pod:221
1975 msgid "Use I<--uuid> to display UUIDs too."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-filesystems.pod:223
1980 msgid "B<--lvs>"
1981 msgstr "B<--lvs>"
1982
1983 #. type: =item
1984 #: ../cat/virt-filesystems.pod:225
1985 msgid "B<--logvols>"
1986 msgstr "B<--logvols>"
1987
1988 #. type: =item
1989 #: ../cat/virt-filesystems.pod:227
1990 msgid "B<--logical-volumes>"
1991 msgstr "B<--logical-volumes>"
1992
1993 #. type: textblock
1994 #: ../cat/virt-filesystems.pod:229
1995 msgid ""
1996 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1997 "of whether the LVs contain filesystems."
1998 msgstr ""
1999
2000 #. type: =item
2001 #: ../cat/virt-filesystems.pod:232
2002 msgid "B<--no-title>"
2003 msgstr "B<--no-title>"
2004
2005 #. type: textblock
2006 #: ../cat/virt-filesystems.pod:234
2007 msgid "In I<--long> mode, don't add a title row."
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../cat/virt-filesystems.pod:236
2012 msgid ""
2013 "Note that the order of the columns is not fixed, and may change in future "
2014 "versions of virt-filesystems, so using this option may give you unexpected "
2015 "surprises."
2016 msgstr ""
2017
2018 #. type: =item
2019 #: ../cat/virt-filesystems.pod:240
2020 msgid "B<--parts>"
2021 msgstr "B<--parts>"
2022
2023 #. type: =item
2024 #: ../cat/virt-filesystems.pod:242
2025 msgid "B<--partitions>"
2026 msgstr "B<--partitions>"
2027
2028 #. type: textblock
2029 #: ../cat/virt-filesystems.pod:244
2030 msgid ""
2031 "Display partitions.  In this mode, these are displayed irrespective of "
2032 "whether the partitions contain filesystems."
2033 msgstr ""
2034
2035 #. type: =item
2036 #: ../cat/virt-filesystems.pod:247
2037 msgid "B<--pvs>"
2038 msgstr "B<--pvs>"
2039
2040 #. type: =item
2041 #: ../cat/virt-filesystems.pod:249
2042 msgid "B<--physvols>"
2043 msgstr "B<--physvols>"
2044
2045 #. type: =item
2046 #: ../cat/virt-filesystems.pod:251
2047 msgid "B<--physical-volumes>"
2048 msgstr "B<--physical-volumes>"
2049
2050 #. type: textblock
2051 #: ../cat/virt-filesystems.pod:253
2052 msgid "Display LVM physical volumes."
2053 msgstr ""
2054
2055 #. type: =item
2056 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2057 msgid "B<--uuid>"
2058 msgstr "B<--uuid>"
2059
2060 #. type: =item
2061 #: ../cat/virt-filesystems.pod:257
2062 msgid "B<--uuids>"
2063 msgstr "B<--uuids>"
2064
2065 #. type: textblock
2066 #: ../cat/virt-filesystems.pod:259
2067 msgid "In I<--long> mode, display UUIDs as well."
2068 msgstr ""
2069
2070 #. type: =item
2071 #: ../cat/virt-filesystems.pod:273
2072 msgid "B<--vgs>"
2073 msgstr "B<--vgs>"
2074
2075 #. type: =item
2076 #: ../cat/virt-filesystems.pod:275
2077 msgid "B<--volgroups>"
2078 msgstr "B<--volgroups>"
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:277
2082 msgid "B<--volume-groups>"
2083 msgstr "B<--volume-groups>"
2084
2085 #. type: textblock
2086 #: ../cat/virt-filesystems.pod:279
2087 msgid "Display LVM volume groups."
2088 msgstr ""
2089
2090 #. type: =head1
2091 #: ../cat/virt-filesystems.pod:287
2092 msgid "COLUMNS"
2093 msgstr "СТОВПЧИКИ"
2094
2095 #. type: textblock
2096 #: ../cat/virt-filesystems.pod:289
2097 msgid ""
2098 "Note that columns in the output are subject to reordering and change in "
2099 "future versions of this tool."
2100 msgstr ""
2101
2102 #. type: =item
2103 #: ../cat/virt-filesystems.pod:294
2104 msgid "B<Name>"
2105 msgstr ""
2106
2107 #. type: textblock
2108 #: ../cat/virt-filesystems.pod:296
2109 msgid "The filesystem, partition, block device or LVM name."
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-filesystems.pod:298
2114 msgid ""
2115 "For device and partition names these are displayed as canonical libguestfs "
2116 "names, so that for example C</dev/sda2> is the second partition on the first "
2117 "device."
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-filesystems.pod:302
2122 msgid ""
2123 "If the I<--long> option is B<not> specified, then only the name column is "
2124 "shown in the output."
2125 msgstr ""
2126
2127 #. type: =item
2128 #: ../cat/virt-filesystems.pod:305
2129 msgid "B<Type>"
2130 msgstr ""
2131
2132 #. type: textblock
2133 #: ../cat/virt-filesystems.pod:307
2134 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2135 msgstr ""
2136
2137 #. type: =item
2138 #: ../cat/virt-filesystems.pod:309
2139 msgid "B<VFS>"
2140 msgstr "B<VFS>"
2141
2142 #. type: textblock
2143 #: ../cat/virt-filesystems.pod:311
2144 msgid ""
2145 "If there is a filesystem, then this column displays the filesystem type if "
2146 "one could be detected, eg. C<ext4>."
2147 msgstr ""
2148
2149 #. type: =item
2150 #: ../cat/virt-filesystems.pod:314
2151 msgid "B<Label>"
2152 msgstr ""
2153
2154 #. type: textblock
2155 #: ../cat/virt-filesystems.pod:316
2156 msgid ""
2157 "If the object has a label (used for identifying and mounting filesystems) "
2158 "then this column contains the label."
2159 msgstr ""
2160
2161 #. type: =item
2162 #: ../cat/virt-filesystems.pod:319
2163 msgid "B<MBR>"
2164 msgstr ""
2165
2166 #. type: textblock
2167 #: ../cat/virt-filesystems.pod:321
2168 msgid ""
2169 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2170 "comprehensive list of partition types can be found here: L<http://www.win."
2171 "tue.nl/~aeb/partitions/partition_types-1.html>"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-filesystems.pod:325
2176 msgid "This is only applicable for DOS (MBR) partitions."
2177 msgstr ""
2178
2179 #. type: =item
2180 #: ../cat/virt-filesystems.pod:327
2181 msgid "B<Size>"
2182 msgstr ""
2183
2184 #. type: textblock
2185 #: ../cat/virt-filesystems.pod:329
2186 msgid ""
2187 "The size of the object in bytes.  If the I<--human> option is used then the "
2188 "size is displayed in a human-readable form."
2189 msgstr ""
2190
2191 #. type: =item
2192 #: ../cat/virt-filesystems.pod:332
2193 msgid "B<Parent>"
2194 msgstr ""
2195
2196 #. type: textblock
2197 #: ../cat/virt-filesystems.pod:334
2198 msgid ""
2199 "The parent column records the parent relationship between objects.  For "
2200 "example, if the object is a partition, then this column contains the name of "
2201 "the containing device.  If the object is a logical volume, then this column "
2202 "is the name of the volume group."
2203 msgstr ""
2204
2205 #. type: =item
2206 #: ../cat/virt-filesystems.pod:339
2207 msgid "B<UUID>"
2208 msgstr "B<UUID>"
2209
2210 #. type: textblock
2211 #: ../cat/virt-filesystems.pod:341
2212 msgid ""
2213 "If the object has a UUID (used for identifying and mounting filesystems and "
2214 "block devices) then this column contains the UUID as a string."
2215 msgstr ""
2216
2217 #. type: textblock
2218 #: ../cat/virt-filesystems.pod:345
2219 msgid "The UUID is only displayed if the I<--uuid> option is given."
2220 msgstr ""
2221
2222 #. type: =head1
2223 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2224 #: ../df/virt-df.pod:191
2225 msgid "NOTE ABOUT CSV FORMAT"
2226 msgstr ""
2227
2228 #. type: textblock
2229 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2230 #: ../df/virt-df.pod:193
2231 msgid ""
2232 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2233 "should be easy to parse, but it is definitely not easy to parse."
2234 msgstr ""
2235
2236 #. type: textblock
2237 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2238 #: ../df/virt-df.pod:196
2239 msgid ""
2240 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2241 "reliably.  This example has two columns:"
2242 msgstr ""
2243
2244 #. type: verbatim
2245 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2246 #: ../df/virt-df.pod:199
2247 #, no-wrap
2248 msgid ""
2249 " \"foo,bar\",baz\n"
2250 "\n"
2251 msgstr ""
2252
2253 #. type: textblock
2254 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2255 #: ../df/virt-df.pod:201
2256 msgid ""
2257 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2258 "reliably.  This example has one row:"
2259 msgstr ""
2260
2261 #. type: verbatim
2262 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2263 #: ../df/virt-df.pod:204
2264 #, no-wrap
2265 msgid ""
2266 " \"foo\n"
2267 " bar\",baz\n"
2268 "\n"
2269 msgstr ""
2270
2271 #. type: textblock
2272 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2273 #: ../df/virt-df.pod:207
2274 msgid ""
2275 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2276 "packaged in major Linux distributions)."
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2281 #: ../df/virt-df.pod:210
2282 msgid ""
2283 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2284 "or Python's built-in csv library)."
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2289 #: ../df/virt-df.pod:213
2290 msgid "Most spreadsheets and databases can import CSV directly."
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-filesystems.pod:387
2295 msgid ""
2296 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2297 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2298 "libguestfs.org/>."
2299 msgstr ""
2300 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2301 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2302 "libguestfs.org/>."
2303
2304 #. type: textblock
2305 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2306 msgid "Copyright (C) 2010 Red Hat Inc."
2307 msgstr "©Red Hat Inc., 2010"
2308
2309 #. type: textblock
2310 #: ../cat/virt-ls.pod:5
2311 msgid "virt-ls - List files in a virtual machine"
2312 msgstr ""
2313
2314 #. type: verbatim
2315 #: ../cat/virt-ls.pod:9
2316 #, no-wrap
2317 msgid ""
2318 " virt-ls [--options] -d domname directory [directory ...]\n"
2319 "\n"
2320 msgstr ""
2321
2322 #. type: verbatim
2323 #: ../cat/virt-ls.pod:11
2324 #, no-wrap
2325 msgid ""
2326 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2327 "\n"
2328 msgstr ""
2329
2330 #. type: textblock
2331 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2332 msgid "Old style:"
2333 msgstr "Старий стиль:"
2334
2335 #. type: verbatim
2336 #: ../cat/virt-ls.pod:15
2337 #, no-wrap
2338 msgid ""
2339 " virt-ls [--options] domname directory\n"
2340 "\n"
2341 msgstr ""
2342
2343 #. type: verbatim
2344 #: ../cat/virt-ls.pod:17
2345 #, no-wrap
2346 msgid ""
2347 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2348 "\n"
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../cat/virt-ls.pod:21
2353 msgid ""
2354 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2355 "more from a virtual machine or disk image."
2356 msgstr ""
2357
2358 #. type: textblock
2359 #: ../cat/virt-ls.pod:24
2360 msgid ""
2361 "Multiple directory names can be given, in which case the output from each is "
2362 "concatenated."
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:27
2367 msgid ""
2368 "To list directories from a libvirt guest use the I<-d> option to specify the "
2369 "name of the guest.  For a disk image, use the I<-a> option."
2370 msgstr ""
2371
2372 #. type: textblock
2373 #: ../cat/virt-ls.pod:31
2374 msgid ""
2375 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2376 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2377 "(3)> API."
2378 msgstr ""
2379
2380 #. type: textblock
2381 #: ../cat/virt-ls.pod:37
2382 msgid "Get a list of all files and directories in a virtual machine:"
2383 msgstr ""
2384
2385 #. type: verbatim
2386 #: ../cat/virt-ls.pod:39
2387 #, no-wrap
2388 msgid ""
2389 " virt-ls -R -d guest /\n"
2390 "\n"
2391 msgstr ""
2392
2393 #. type: textblock
2394 #: ../cat/virt-ls.pod:41
2395 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2396 msgstr ""
2397
2398 #. type: verbatim
2399 #: ../cat/virt-ls.pod:43
2400 #, no-wrap
2401 msgid ""
2402 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2403 "\n"
2404 msgstr ""
2405
2406 #. type: textblock
2407 #: ../cat/virt-ls.pod:45
2408 msgid "List all public-writable directories in a Linux virtual machine:"
2409 msgstr ""
2410
2411 #. type: verbatim
2412 #: ../cat/virt-ls.pod:47
2413 #, no-wrap
2414 msgid ""
2415 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2416 "\n"
2417 msgstr ""
2418
2419 #. type: textblock
2420 #: ../cat/virt-ls.pod:49
2421 msgid "List all Unix domain sockets in a Linux virtual machine:"
2422 msgstr ""
2423
2424 #. type: verbatim
2425 #: ../cat/virt-ls.pod:51
2426 #, no-wrap
2427 msgid ""
2428 " virt-ls -lR -d guest / | grep '^s'\n"
2429 "\n"
2430 msgstr ""
2431
2432 #. type: textblock
2433 #: ../cat/virt-ls.pod:53
2434 msgid "List all regular files with filenames ending in '.png':"
2435 msgstr ""
2436
2437 #. type: verbatim
2438 #: ../cat/virt-ls.pod:55
2439 #, no-wrap
2440 msgid ""
2441 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2442 "\n"
2443 msgstr ""
2444
2445 #. type: textblock
2446 #: ../cat/virt-ls.pod:57
2447 msgid "To display files larger than 10MB in home directories:"
2448 msgstr ""
2449
2450 #. type: verbatim
2451 #: ../cat/virt-ls.pod:59
2452 #, no-wrap
2453 msgid ""
2454 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2455 "\n"
2456 msgstr ""
2457
2458 #. type: textblock
2459 #: ../cat/virt-ls.pod:61
2460 msgid "Find everything modified in the last 7 days:"
2461 msgstr ""
2462
2463 #. type: verbatim
2464 #: ../cat/virt-ls.pod:63
2465 #, no-wrap
2466 msgid ""
2467 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2468 "\n"
2469 msgstr ""
2470
2471 #. type: textblock
2472 #: ../cat/virt-ls.pod:65
2473 msgid "Find regular files modified in the last 24 hours:"
2474 msgstr ""
2475
2476 #. type: verbatim
2477 #: ../cat/virt-ls.pod:67
2478 #, no-wrap
2479 msgid ""
2480 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2481 "\n"
2482 msgstr ""
2483
2484 #. type: =head2
2485 #: ../cat/virt-ls.pod:69
2486 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2487 msgstr ""
2488
2489 #. type: textblock
2490 #: ../cat/virt-ls.pod:71
2491 msgid ""
2492 "Find the differences between files in a guest and an earlier snapshot of the "
2493 "same guest."
2494 msgstr ""
2495
2496 #. type: verbatim
2497 #: ../cat/virt-ls.pod:74
2498 #, no-wrap
2499 msgid ""
2500 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2501 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2502 " diff -u old new | less\n"
2503 "\n"
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../cat/virt-ls.pod:78
2508 msgid ""
2509 "The commands above won't find files where the content has changed but the "
2510 "metadata (eg. file size and modification date) is the same.  To do that, you "
2511 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2512 "checksum> can be quite slow since it has to read and compute a checksum of "
2513 "every regular file in the virtual machine."
2514 msgstr ""
2515
2516 #. type: =head1
2517 #: ../cat/virt-ls.pod:84
2518 msgid "OUTPUT MODES"
2519 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2520
2521 #. type: textblock
2522 #: ../cat/virt-ls.pod:86
2523 msgid ""
2524 "C<virt-ls> has four output modes, controlled by different combinations of "
2525 "the I<-l> and I<-R> options."
2526 msgstr ""
2527
2528 #. type: =head2
2529 #: ../cat/virt-ls.pod:89
2530 msgid "SIMPLE LISTING"
2531 msgstr "ПРОСТИЙ СПИСОК"
2532
2533 #. type: textblock
2534 #: ../cat/virt-ls.pod:91
2535 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2536 msgstr ""
2537
2538 #. type: verbatim
2539 #: ../cat/virt-ls.pod:93
2540 #, no-wrap
2541 msgid ""
2542 " $ virt-ls -d guest /\n"
2543 " bin\n"
2544 " boot\n"
2545 " [etc.]\n"
2546 "\n"
2547 msgstr ""
2548 " $ virt-ls -d guest /\n"
2549 " bin\n"
2550 " boot\n"
2551 " [тощо]\n"
2552 "\n"
2553
2554 #. type: =head2
2555 #: ../cat/virt-ls.pod:98
2556 msgid "LONG LISTING"
2557 msgstr "ДОВГИЙ СПИСОК"
2558
2559 #. type: textblock
2560 #: ../cat/virt-ls.pod:100
2561 msgid ""
2562 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2563 "(more specifically, like the C<guestfs_ll> function)."
2564 msgstr ""
2565
2566 #. type: verbatim
2567 #: ../cat/virt-ls.pod:103
2568 #, no-wrap
2569 msgid ""
2570 " $ virt-ls -l -d guest /\n"
2571 " total 204\n"
2572 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2573 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2574 " [etc.]\n"
2575 "\n"
2576 msgstr ""
2577 " $ virt-ls -l -d guest /\n"
2578 " total 204\n"
2579 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2580 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2581 " [тощо]\n"
2582 "\n"
2583
2584 #. type: textblock
2585 #: ../cat/virt-ls.pod:109
2586 msgid ""
2587 "Note that while this is useful for displaying a directory, do not try "
2588 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2589 "instead."
2590 msgstr ""
2591
2592 #. type: =head2
2593 #: ../cat/virt-ls.pod:113
2594 msgid "RECURSIVE LISTING"
2595 msgstr "РЕКУРСИВНИЙ СПИСОК"
2596
2597 #. type: textblock
2598 #: ../cat/virt-ls.pod:115
2599 msgid ""
2600 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2601 "and directories recursively:"
2602 msgstr ""
2603
2604 #. type: verbatim
2605 #: ../cat/virt-ls.pod:118
2606 #, no-wrap
2607 msgid ""
2608 " $ virt-ls -R -d guest /tmp\n"
2609 " foo\n"
2610 " foo/bar\n"
2611 " [etc.]\n"
2612 "\n"
2613 msgstr ""
2614 " $ virt-ls -R -d guest /tmp\n"
2615 " foo\n"
2616 " foo/bar\n"
2617 " [тощо]\n"
2618 "\n"
2619
2620 #. type: textblock
2621 #: ../cat/virt-ls.pod:123
2622 msgid ""
2623 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2624 "converts C<\\0> characters to C<\\n>."
2625 msgstr ""
2626
2627 #. type: =head2
2628 #: ../cat/virt-ls.pod:126
2629 msgid "RECURSIVE LONG LISTING"
2630 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2631
2632 #. type: textblock
2633 #: ../cat/virt-ls.pod:128
2634 msgid ""
2635 "Using I<-lR> options together changes the output to display directories "
2636 "recursively, with file stats, and optionally other features such as "
2637 "checksums and extended attributes."
2638 msgstr ""
2639
2640 #. type: textblock
2641 #: ../cat/virt-ls.pod:132
2642 msgid ""
2643 "Most of the interesting features of C<virt-ls> are only available when using "
2644 "I<-lR> mode."
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../cat/virt-ls.pod:135
2649 msgid ""
2650 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2651 "you cannot use the output in another program (because filenames can contain "
2652 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2653 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2654 "on you by creating filenames with embedded newline characters.  To B<safely> "
2655 "parse the output in another program, use the I<--csv> (Comma-Separated "
2656 "Values) option."
2657 msgstr ""
2658
2659 #. type: textblock
2660 #: ../cat/virt-ls.pod:143
2661 msgid ""
2662 "Note that this output format is completely unrelated to the C<ls -lR> "
2663 "command."
2664 msgstr ""
2665
2666 #. type: verbatim
2667 #: ../cat/virt-ls.pod:146
2668 #, no-wrap
2669 msgid ""
2670 " $ virt-ls -lR -d guest /bin\n"
2671 " d 0555       4096 /bin\n"
2672 " - 0755        123 /bin/alsaunmute\n"
2673 " - 0755      28328 /bin/arch\n"
2674 " l 0777          4 /bin/awk -> gawk\n"
2675 " - 0755      27216 /bin/basename\n"
2676 " - 0755     943360 /bin/bash\n"
2677 " [etc.]\n"
2678 "\n"
2679 msgstr ""
2680 " $ virt-ls -lR -d guest /bin\n"
2681 " d 0555       4096 /bin\n"
2682 " - 0755        123 /bin/alsaunmute\n"
2683 " - 0755      28328 /bin/arch\n"
2684 " l 0777          4 /bin/awk -> gawk\n"
2685 " - 0755      27216 /bin/basename\n"
2686 " - 0755     943360 /bin/bash\n"
2687 " [тощо]\n"
2688 "\n"
2689
2690 #. type: textblock
2691 #: ../cat/virt-ls.pod:155
2692 msgid "These basic fields are always shown:"
2693 msgstr ""
2694
2695 #. type: =item
2696 #: ../cat/virt-ls.pod:159
2697 msgid "type"
2698 msgstr "тип"
2699
2700 #. type: textblock
2701 #: ../cat/virt-ls.pod:161
2702 msgid ""
2703 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2704 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2705 "link), C<s> (socket) or C<u> (unknown)."
2706 msgstr ""
2707
2708 #. type: =item
2709 #: ../cat/virt-ls.pod:171
2710 msgid "permissions"
2711 msgstr "права доступу"
2712
2713 #. type: textblock
2714 #: ../cat/virt-ls.pod:173
2715 msgid "The Unix permissions, displayed as a 4 digit octal number."
2716 msgstr ""
2717
2718 #. type: =item
2719 #: ../cat/virt-ls.pod:175
2720 msgid "size"
2721 msgstr "розмір"
2722
2723 #. type: textblock
2724 #: ../cat/virt-ls.pod:177
2725 msgid ""
2726 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2727 "readable> option is given, in which case this is shown as a human-readable "
2728 "number."
2729 msgstr ""
2730
2731 #. type: =head2
2732 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4477
2733 msgid "path"
2734 msgstr "шлях"
2735
2736 #. type: textblock
2737 #: ../cat/virt-ls.pod:183
2738 msgid "The full path of the file or directory."
2739 msgstr ""
2740
2741 #. type: =item
2742 #: ../cat/virt-ls.pod:185
2743 msgid "link"
2744 msgstr "посилання"
2745
2746 #. type: textblock
2747 #: ../cat/virt-ls.pod:187
2748 msgid "For symbolic links only, the link target."
2749 msgstr ""
2750
2751 #. type: textblock
2752 #: ../cat/virt-ls.pod:191
2753 msgid ""
2754 "In I<-lR> mode, additional command line options enable the display of more "
2755 "fields."
2756 msgstr ""
2757
2758 #. type: textblock
2759 #: ../cat/virt-ls.pod:194
2760 msgid ""
2761 "With the I<--uids> flag, these additional fields are displayed before the "
2762 "path:"
2763 msgstr ""
2764
2765 #. type: =item
2766 #: ../cat/virt-ls.pod:199
2767 msgid "uid"
2768 msgstr "uid"
2769
2770 #. type: =item
2771 #: ../cat/virt-ls.pod:201
2772 msgid "gid"
2773 msgstr "gid"
2774
2775 #. type: textblock
2776 #: ../cat/virt-ls.pod:203
2777 msgid ""
2778 "The UID and GID of the owner of the file (displayed numerically).  Note "
2779 "these only make sense in the context of a Unix-like guest."
2780 msgstr ""
2781
2782 #. type: textblock
2783 #: ../cat/virt-ls.pod:208
2784 msgid "With the I<--times> flag, these additional fields are displayed:"
2785 msgstr ""
2786
2787 #. type: =item
2788 #: ../cat/virt-ls.pod:212
2789 msgid "atime"
2790 msgstr "atime"
2791
2792 #. type: textblock
2793 #: ../cat/virt-ls.pod:214
2794 msgid "The time of last access."
2795 msgstr "Час останнього доступу."
2796
2797 #. type: =item
2798 #: ../cat/virt-ls.pod:216
2799 msgid "mtime"
2800 msgstr "mtime"
2801
2802 #. type: textblock
2803 #: ../cat/virt-ls.pod:218
2804 msgid "The time of last modification."
2805 msgstr "Час останнього внесення змін."
2806
2807 #. type: =item
2808 #: ../cat/virt-ls.pod:220
2809 msgid "ctime"
2810 msgstr "ctime"
2811
2812 #. type: textblock
2813 #: ../cat/virt-ls.pod:222
2814 msgid "The time of last status change."
2815 msgstr "Час останньої зміни стану."
2816
2817 #. type: textblock
2818 #: ../cat/virt-ls.pod:226
2819 msgid ""
2820 "The time fields are displayed as string dates and times, unless one of the "
2821 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2822 msgstr ""
2823
2824 #. type: textblock
2825 #: ../cat/virt-ls.pod:229
2826 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2827 msgstr ""
2828
2829 #. type: =item
2830 #: ../cat/virt-ls.pod:233
2831 msgid "device"
2832 msgstr "пристрій"
2833
2834 #. type: textblock
2835 #: ../cat/virt-ls.pod:235
2836 msgid ""
2837 "The device containing the file (displayed as major:minor).  This may not "
2838 "match devices as known to the guest."
2839 msgstr ""
2840
2841 #. type: =item
2842 #: ../cat/virt-ls.pod:238
2843 msgid "inode"
2844 msgstr "inode"
2845
2846 #. type: textblock
2847 #: ../cat/virt-ls.pod:240
2848 msgid "The inode number."
2849 msgstr ""
2850
2851 #. type: =item
2852 #: ../cat/virt-ls.pod:242
2853 msgid "nlink"
2854 msgstr "nlink"
2855
2856 #. type: textblock
2857 #: ../cat/virt-ls.pod:244
2858 msgid "The number of hard links."
2859 msgstr "Кількість жорстких посилань."
2860
2861 #. type: =item
2862 #: ../cat/virt-ls.pod:246
2863 msgid "rdev"
2864 msgstr "rdev"
2865
2866 #. type: textblock
2867 #: ../cat/virt-ls.pod:248
2868 msgid ""
2869 "For block and char special files, the device (displayed as major:minor)."
2870 msgstr ""
2871
2872 #. type: =item
2873 #: ../cat/virt-ls.pod:251
2874 msgid "blocks"
2875 msgstr "блоки"
2876
2877 #. type: textblock
2878 #: ../cat/virt-ls.pod:253
2879 msgid "The number of 512 byte blocks allocated to the file."
2880 msgstr ""
2881
2882 #. type: textblock
2883 #: ../cat/virt-ls.pod:257
2884 msgid ""
2885 "With the I<--checksum> flag, the checksum of the file contents is shown "
2886 "(only for regular files).  Computing file checksums can take a considerable "
2887 "amount of time."
2888 msgstr ""
2889
2890 #. type: =item
2891 #: ../cat/virt-ls.pod:280
2892 msgid "B<--checksum>"
2893 msgstr "B<--checksum>"
2894
2895 #. type: =item
2896 #: ../cat/virt-ls.pod:282
2897 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2898 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2899
2900 #. type: textblock
2901 #: ../cat/virt-ls.pod:284
2902 msgid ""
2903 "Display checksum over file contents for regular files.  With no argument, "
2904 "this defaults to using I<md5>.  Using an argument, you can select the "
2905 "checksum type to use."
2906 msgstr ""
2907
2908 #. type: textblock
2909 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2910 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2911 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2912 msgid ""
2913 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2914 "LISTING> above."
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../cat/virt-ls.pod:316
2919 msgid ""
2920 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2921 "so you cannot see what you are typing.  If you are not worried about Tempest "
2922 "attacks and there is no one else in the room you can specify this flag to "
2923 "see what you are typing."
2924 msgstr ""
2925
2926 #. type: =item
2927 #: ../cat/virt-ls.pod:321
2928 msgid "B<--extra-stats>"
2929 msgstr "B<--extra-stats>"
2930
2931 #. type: textblock
2932 #: ../cat/virt-ls.pod:323
2933 msgid "Display extra stats."
2934 msgstr "Показати додаткові дані."
2935
2936 #. type: verbatim
2937 #: ../cat/virt-ls.pod:339
2938 #, no-wrap
2939 msgid ""
2940 " virt-ls --format=raw -a disk.img /dir\n"
2941 "\n"
2942 msgstr ""
2943
2944 #. type: verbatim
2945 #: ../cat/virt-ls.pod:343
2946 #, no-wrap
2947 msgid ""
2948 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2949 "\n"
2950 msgstr ""
2951
2952 #. type: textblock
2953 #: ../cat/virt-ls.pod:356
2954 msgid "Display file sizes in human-readable format."
2955 msgstr ""
2956
2957 #. type: =item
2958 #: ../cat/virt-ls.pod:370
2959 msgid "B<-R>"
2960 msgstr "B<-R>"
2961
2962 #. type: =item
2963 #: ../cat/virt-ls.pod:372
2964 msgid "B<--recursive>"
2965 msgstr "B<--recursive>"
2966
2967 #. type: textblock
2968 #: ../cat/virt-ls.pod:374
2969 msgid ""
2970 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2971 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2972 "LISTING>."
2973 msgstr ""
2974
2975 #. type: textblock
2976 #: ../cat/virt-ls.pod:378
2977 msgid ""
2978 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2979 "LONG LISTING>."
2980 msgstr ""
2981
2982 #. type: textblock
2983 #: ../cat/virt-ls.pod:381
2984 msgid ""
2985 "C<virt-ls -R> produces a recursive list of files starting at the named "
2986 "directory.  See L</RECURSIVE LISTING>."
2987 msgstr ""
2988
2989 #. type: textblock
2990 #: ../cat/virt-ls.pod:384
2991 msgid ""
2992 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2993 "parsed.  See L</RECURSIVE LONG LISTING>."
2994 msgstr ""
2995
2996 #. type: =item
2997 #: ../cat/virt-ls.pod:387
2998 msgid "B<--times>"
2999 msgstr "B<--times>"
3000
3001 #. type: textblock
3002 #: ../cat/virt-ls.pod:389
3003 msgid "Display time fields."
3004 msgstr ""
3005
3006 #. type: =item
3007 #: ../cat/virt-ls.pod:394
3008 msgid "B<--time-days>"
3009 msgstr "B<--time-days>"
3010
3011 #. type: textblock
3012 #: ../cat/virt-ls.pod:396
3013 msgid "Display time fields as days before now (negative if in the future)."
3014 msgstr ""
3015
3016 #. type: textblock
3017 #: ../cat/virt-ls.pod:398
3018 msgid ""
3019 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3020 "of the file is between 0 and 86399 seconds."
3021 msgstr ""
3022
3023 #. type: =item
3024 #: ../cat/virt-ls.pod:404
3025 msgid "B<--time-relative>"
3026 msgstr "B<--time-relative>"
3027
3028 #. type: textblock
3029 #: ../cat/virt-ls.pod:406
3030 msgid "Display time fields as seconds before now (negative if in the future)."
3031 msgstr ""
3032
3033 #. type: =item
3034 #: ../cat/virt-ls.pod:411
3035 msgid "B<--time-t>"
3036 msgstr "B<--time-t>"
3037
3038 #. type: textblock
3039 #: ../cat/virt-ls.pod:413
3040 msgid "Display time fields as seconds since the Unix epoch."
3041 msgstr ""
3042
3043 #. type: =item
3044 #: ../cat/virt-ls.pod:418
3045 msgid "B<--uids>"
3046 msgstr "B<--uids>"
3047
3048 #. type: textblock
3049 #: ../cat/virt-ls.pod:420
3050 msgid "Display UID and GID fields."
3051 msgstr ""
3052
3053 #. type: textblock
3054 #: ../cat/virt-ls.pod:445
3055 msgid "Previous versions of virt-ls allowed you to write either:"
3056 msgstr ""
3057
3058 #. type: verbatim
3059 #: ../cat/virt-ls.pod:447
3060 #, no-wrap
3061 msgid ""
3062 " virt-ls disk.img [disk.img ...] /dir\n"
3063 "\n"
3064 msgstr ""
3065
3066 #. type: verbatim
3067 #: ../cat/virt-ls.pod:451
3068 #, no-wrap
3069 msgid ""
3070 " virt-ls guestname /dir\n"
3071 "\n"
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../cat/virt-ls.pod:497
3076 msgid ""
3077 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3078 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3079 "L<http://libguestfs.org/>."
3080 msgstr ""
3081 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3082 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3083 "L<http://libguestfs.org/>."
3084
3085 #. type: textblock
3086 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3087 #: ../rescue/virt-rescue.pod:340
3088 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3089 msgstr "©Red Hat Inc., 2009–2011"
3090
3091 #. type: textblock
3092 #: ../clone/virt-sysprep.pod:5
3093 msgid ""
3094 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3095 msgstr ""
3096
3097 #. type: verbatim
3098 #: ../clone/virt-sysprep.pod:9
3099 #, no-wrap
3100 msgid ""
3101 " virt-sysprep [--options] -d domname\n"
3102 "\n"
3103 msgstr ""
3104
3105 #. type: verbatim
3106 #: ../clone/virt-sysprep.pod:11
3107 #, no-wrap
3108 msgid ""
3109 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3110 "\n"
3111 msgstr ""
3112
3113 #. type: textblock
3114 #: ../clone/virt-sysprep.pod:15
3115 msgid ""
3116 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3117 "can be made from it.  Steps in this process include removing SSH host keys, "
3118 "removing persistent network MAC configuration, and removing user accounts.  "
3119 "Each step can be enabled or disabled as required."
3120 msgstr ""
3121
3122 #. type: textblock
3123 #: ../clone/virt-sysprep.pod:21
3124 msgid ""
3125 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3126 "customization by the system administrator."
3127 msgstr ""
3128
3129 #. type: textblock
3130 #: ../clone/virt-sysprep.pod:24
3131 msgid ""
3132 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3133 "be shut down.  If you want to preserve the existing contents of the guest, "
3134 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../clone/virt-sysprep.pod:29
3139 msgid ""
3140 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3141 "recommend that you don't.  The time you might want to run it as root is when "
3142 "you need root in order to access the disk image, but even in this case it "
3143 "would be better to change the permissions on the disk image to be writable "
3144 "as the non-root user running virt-sysprep."
3145 msgstr ""
3146
3147 #. type: textblock
3148 #: ../clone/virt-sysprep.pod:35
3149 msgid ""
3150 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3151 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3152 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3153 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3154 "Windows sysprepping in a future version, and we already have code to do it."
3155 msgstr ""
3156
3157 #. type: =item
3158 #: ../clone/virt-sysprep.pod:76
3159 msgid "B<--enable=...>"
3160 msgstr ""
3161
3162 #. type: textblock
3163 #: ../clone/virt-sysprep.pod:78
3164 msgid ""
3165 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3166 "operations, for example:"
3167 msgstr ""
3168
3169 #. type: verbatim
3170 #: ../clone/virt-sysprep.pod:81
3171 #, no-wrap
3172 msgid ""
3173 " --enable=ssh-hostkeys,udev-persistent-net\n"
3174 "\n"
3175 msgstr ""
3176
3177 #. type: textblock
3178 #: ../clone/virt-sysprep.pod:83
3179 msgid ""
3180 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3181 msgstr ""
3182
3183 #. type: textblock
3184 #: ../clone/virt-sysprep.pod:85
3185 msgid ""
3186 "If the I<--enable> option is not given, then we default to trying all "
3187 "possible sysprep operations.  But some sysprep operations are skipped for "
3188 "some guest types."
3189 msgstr ""
3190
3191 #. type: textblock
3192 #: ../clone/virt-sysprep.pod:89
3193 msgid ""
3194 "Use I<--list-operations> to list operations supported by a particular "
3195 "version of virt-sysprep."
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../clone/virt-sysprep.pod:92
3200 msgid ""
3201 "See L</OPERATIONS> below for a list and an explanation of each operation."
3202 msgstr ""
3203
3204 #. type: verbatim
3205 #: ../clone/virt-sysprep.pod:106
3206 #, no-wrap
3207 msgid ""
3208 " virt-sysprep --format=raw -a disk.img\n"
3209 "\n"
3210 msgstr ""
3211
3212 #. type: verbatim
3213 #: ../clone/virt-sysprep.pod:110
3214 #, no-wrap
3215 msgid ""
3216 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3217 "\n"
3218 msgstr ""
3219
3220 #. type: =item
3221 #: ../clone/virt-sysprep.pod:119
3222 msgid "B<--hostname> newhostname"
3223 msgstr ""
3224
3225 #. type: textblock
3226 #: ../clone/virt-sysprep.pod:121
3227 msgid ""
3228 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3229 "defaults to C<localhost.localdomain>."
3230 msgstr ""
3231
3232 #. type: =item
3233 #: ../clone/virt-sysprep.pod:124
3234 msgid "B<--list-operations>"
3235 msgstr ""
3236
3237 #. type: textblock
3238 #: ../clone/virt-sysprep.pod:126
3239 msgid "List the operations supported by the virt-sysprep program."
3240 msgstr ""
3241
3242 #. type: =item
3243 #: ../clone/virt-sysprep.pod:128
3244 msgid "B<--selinux-relabel>"
3245 msgstr ""
3246
3247 #. type: =item
3248 #: ../clone/virt-sysprep.pod:130
3249 msgid "B<--no-selinux-relabel>"
3250 msgstr ""
3251
3252 #. type: textblock
3253 #: ../clone/virt-sysprep.pod:132
3254 msgid ""
3255 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3256 "I<--no-selinux-relabel> disables relabelling."
3257 msgstr ""
3258
3259 #. type: textblock
3260 #: ../clone/virt-sysprep.pod:135
3261 msgid ""
3262 "The default is to try to detect if SELinux relabelling is required.  See L</"
3263 "SELINUX RELABELLING> below for more details."
3264 msgstr ""
3265
3266 #. type: =head1
3267 #: ../clone/virt-sysprep.pod:156
3268 msgid "OPERATIONS"
3269 msgstr ""
3270
3271 #. type: textblock
3272 #: ../clone/virt-sysprep.pod:158
3273 msgid ""
3274 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3275 "enabled>, although some are skipped depending on the type of guest."
3276 msgstr ""
3277
3278 #. type: textblock
3279 #: ../clone/virt-sysprep.pod:162
3280 msgid ""
3281 "Operations can be individually enabled using the I<--enable> option.  Use a "
3282 "comma-separated list, for example:"
3283 msgstr ""
3284
3285 #. type: verbatim
3286 #: ../clone/virt-sysprep.pod:165
3287 #, no-wrap
3288 msgid ""
3289 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3290 "\n"
3291 msgstr ""
3292
3293 #. type: textblock
3294 #: ../clone/virt-sysprep.pod:167
3295 msgid ""
3296 "To list the operations supported by the current version of virt-sysprep, use "
3297 "I<--list-operations>."
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../clone/virt-sysprep.pod:170
3302 msgid ""
3303 "Future versions of virt-sysprep may add more operations.  If you are using "
3304 "virt-sysprep and want predictable behaviour, specify only the operations "
3305 "that you want to have enabled."
3306 msgstr ""
3307
3308 #. type: =head2
3309 #: ../clone/virt-sysprep.pod:174
3310 msgid "cron-spool"
3311 msgstr ""
3312
3313 #. type: textblock
3314 #: ../clone/virt-sysprep.pod:176
3315 msgid "Remove user at-jobs and cron-jobs."
3316 msgstr ""
3317
3318 #. type: =head2
3319 #: ../clone/virt-sysprep.pod:178
3320 msgid "dhcp-client-state"
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../clone/virt-sysprep.pod:180
3325 msgid "Remove DHCP client leases."
3326 msgstr ""
3327
3328 #. type: =head2
3329 #: ../clone/virt-sysprep.pod:182
3330 msgid "dhcp-server-state"
3331 msgstr ""
3332
3333 #. type: textblock
3334 #: ../clone/virt-sysprep.pod:184
3335 msgid "Remove DHCP server leases."
3336 msgstr ""
3337
3338 #. type: =head2
3339 #: ../clone/virt-sysprep.pod:186
3340 msgid "hostname"
3341 msgstr ""
3342
3343 #. type: textblock
3344 #: ../clone/virt-sysprep.pod:188
3345 msgid ""
3346 "Changes the hostname of the guest to the value given in the I<--hostname> "
3347 "parameter."
3348 msgstr ""
3349
3350 #. type: textblock
3351 #: ../clone/virt-sysprep.pod:191
3352 msgid ""
3353 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3354 "C<localhost.localdomain>."
3355 msgstr ""
3356
3357 #. type: =head2
3358 #: ../clone/virt-sysprep.pod:194
3359 msgid "logfiles"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../clone/virt-sysprep.pod:196
3364 msgid "Remove many log files."
3365 msgstr ""
3366
3367 #. type: =head2
3368 #: ../clone/virt-sysprep.pod:198
3369 msgid "mail-spool"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../clone/virt-sysprep.pod:200
3374 msgid "Remove email from the local mail spool directory."
3375 msgstr ""
3376
3377 #. type: =head2
3378 #: ../clone/virt-sysprep.pod:202
3379 msgid "net-hwaddr"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../clone/virt-sysprep.pod:204
3384 msgid ""
3385 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3386 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3387 msgstr ""
3388
3389 #. type: =head2
3390 #: ../clone/virt-sysprep.pod:207
3391 msgid "random-seed"
3392 msgstr ""
3393
3394 #. type: textblock
3395 #: ../clone/virt-sysprep.pod:209
3396 msgid ""
3397 "Write some random bytes from the host into the random seed file of the guest."
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../clone/virt-sysprep.pod:212
3402 msgid "See L</RANDOM SEED> below."
3403 msgstr ""
3404
3405 #. type: =head2
3406 #: ../clone/virt-sysprep.pod:214
3407 msgid "rhn-systemid"
3408 msgstr ""
3409
3410 #. type: textblock
3411 #: ../clone/virt-sysprep.pod:216
3412 msgid "Remove the RHN system ID."
3413 msgstr ""
3414
3415 #. type: =head2
3416 #: ../clone/virt-sysprep.pod:218
3417 msgid "smolt-uuid"
3418 msgstr ""
3419
3420 #. type: textblock
3421 #: ../clone/virt-sysprep.pod:220
3422 msgid "Remove the Smolt hardware UUID."
3423 msgstr ""
3424
3425 #. type: =head2
3426 #: ../clone/virt-sysprep.pod:222
3427 msgid "ssh-hostkeys"
3428 msgstr ""
3429
3430 #. type: textblock
3431 #: ../clone/virt-sysprep.pod:224
3432 msgid "Remove the SSH host keys in the guest."
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../clone/virt-sysprep.pod:226
3437 msgid ""
3438 "The SSH host keys are regenerated (differently) next time the guest is "
3439 "booted."
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../clone/virt-sysprep.pod:229
3444 msgid ""
3445 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3446 "stark warning about the host key changing:"
3447 msgstr ""
3448
3449 #. type: verbatim
3450 #: ../clone/virt-sysprep.pod:232
3451 #, no-wrap
3452 msgid ""
3453 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3454 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3455 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3456 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3457 "\n"
3458 msgstr ""
3459
3460 #. type: =head2
3461 #: ../clone/virt-sysprep.pod:237
3462 msgid "udev-persistent-net"
3463 msgstr ""
3464
3465 #. type: textblock
3466 #: ../clone/virt-sysprep.pod:239
3467 msgid ""
3468 "Remove udev persistent net rules which map the guest's existing MAC address "
3469 "to a fixed ethernet device (eg. eth0)."
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../clone/virt-sysprep.pod:242
3474 msgid ""
3475 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3476 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3477 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3478 "Erasing the udev persistent net rules avoids this."
3479 msgstr ""
3480
3481 #. type: =head2
3482 #: ../clone/virt-sysprep.pod:247
3483 msgid "utmp"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../clone/virt-sysprep.pod:249
3488 msgid "Remove the utmp file."
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../clone/virt-sysprep.pod:251
3493 msgid ""
3494 "This records who is currently logged in on a machine.  In modern Linux "
3495 "distros it is stored in a ramdisk and hence not part of the virtual "
3496 "machine's disk, but it was stored on disk in older distros."
3497 msgstr ""
3498
3499 #. type: =head2
3500 #: ../clone/virt-sysprep.pod:255
3501 msgid "yum-uuid"
3502 msgstr ""
3503
3504 #. type: textblock
3505 #: ../clone/virt-sysprep.pod:257
3506 msgid "Remove the yum UUID."
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../clone/virt-sysprep.pod:259
3511 msgid ""
3512 "Yum creates a fresh UUID the next time it runs when it notices that the "
3513 "original UUID has been erased."
3514 msgstr ""
3515
3516 #. type: =head1
3517 #: ../clone/virt-sysprep.pod:262
3518 msgid "COPYING AND CLONING"
3519 msgstr ""
3520
3521 #. type: textblock
3522 #: ../clone/virt-sysprep.pod:264
3523 msgid ""
3524 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3525 "prepare a template from which guests can be cloned.  There are many "
3526 "different ways to achieve this using the virt tools, and this section is "
3527 "just an introduction."
3528 msgstr ""
3529
3530 #. type: textblock
3531 #: ../clone/virt-sysprep.pod:269
3532 msgid "A virtual machine (when switched off) consists of two parts:"
3533 msgstr ""
3534
3535 #. type: =item
3536 #: ../clone/virt-sysprep.pod:273
3537 msgid "I<configuration>"
3538 msgstr ""
3539
3540 #. type: textblock
3541 #: ../clone/virt-sysprep.pod:275
3542 msgid ""
3543 "The configuration or description of the guest.  eg. The libvirt XML (see "
3544 "C<virsh dumpxml>), the running configuration of the guest, or another "
3545 "external format like OVF."
3546 msgstr ""
3547
3548 #. type: textblock
3549 #: ../clone/virt-sysprep.pod:279
3550 msgid "Some configuration items that might need to be changed:"
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../clone/virt-sysprep.pod:285
3555 msgid "name"
3556 msgstr ""
3557
3558 #. type: textblock
3559 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3560 msgid "UUID"
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../clone/virt-sysprep.pod:293
3565 msgid "path to block device(s)"
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../clone/virt-sysprep.pod:297
3570 msgid "network card MAC address"
3571 msgstr ""
3572
3573 #. type: =item
3574 #: ../clone/virt-sysprep.pod:301
3575 msgid "I<block device(s)>"
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../clone/virt-sysprep.pod:303
3580 msgid ""
3581 "One or more hard disk images, themselves containing files, directories, "
3582 "applications, kernels, configuration, etc."
3583 msgstr ""
3584
3585 #. type: textblock
3586 #: ../clone/virt-sysprep.pod:306
3587 msgid "Some things inside the block devices that might need to be changed:"
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../clone/virt-sysprep.pod:312
3592 msgid "hostname and other net configuration"
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../clone/virt-sysprep.pod:320
3597 msgid "SSH host keys"
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../clone/virt-sysprep.pod:324
3602 msgid "Windows unique security ID (SID)"
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../clone/virt-sysprep.pod:328
3607 msgid "Puppet registration"
3608 msgstr ""
3609
3610 #. type: =head2
3611 #: ../clone/virt-sysprep.pod:334
3612 msgid "COPYING THE BLOCK DEVICE"
3613 msgstr ""
3614
3615 #. type: textblock
3616 #: ../clone/virt-sysprep.pod:336
3617 msgid ""
3618 "Starting with an original guest, you probably wish to copy the guest block "
3619 "device and its configuration to make a template.  Then once you are happy "
3620 "with the template, you will want to make many clones from it."
3621 msgstr ""
3622
3623 #. type: verbatim
3624 #: ../clone/virt-sysprep.pod:341
3625 #, no-wrap
3626 msgid ""
3627 "                        virt-sysprep\n"
3628 "                             |\n"
3629 "                             v\n"
3630 " original guest --------> template ---------->\n"
3631 "                                      \\------> cloned\n"
3632 "                                       \\-----> guests\n"
3633 "                                        \\---->\n"
3634 "\n"
3635 msgstr ""
3636
3637 #. type: textblock
3638 #: ../clone/virt-sysprep.pod:349
3639 msgid ""
3640 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3641 "L<dd(1)>."
3642 msgstr ""
3643
3644 #. type: verbatim
3645 #: ../clone/virt-sysprep.pod:352
3646 #, no-wrap
3647 msgid ""
3648 "                   dd                 dd\n"
3649 " original guest --------> template ---------->\n"
3650 "                                      \\------> cloned\n"
3651 "                                       \\-----> guests\n"
3652 "                                        \\---->\n"
3653 "\n"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../clone/virt-sysprep.pod:358
3658 msgid "There are some smarter (and faster) ways too:"
3659 msgstr ""
3660
3661 #. type: verbatim
3662 #: ../clone/virt-sysprep.pod:364
3663 #, no-wrap
3664 msgid ""
3665 "                          snapshot\n"
3666 "                template ---------->\n"
3667 "                            \\------> cloned\n"
3668 "                             \\-----> guests\n"
3669 "                              \\---->\n"
3670 "\n"
3671 msgstr ""
3672
3673 #. type: textblock
3674 #: ../clone/virt-sysprep.pod:370
3675 msgid ""
3676 "Use the block device as a backing file and create a snapshot on top for each "
3677 "guest.  The advantage is that you don't need to copy the block device (very "
3678 "fast) and only changes are stored (less storage required)."
3679 msgstr ""
3680
3681 #. type: textblock
3682 #: ../clone/virt-sysprep.pod:375
3683 msgid ""
3684 "Note that writing to the backing file once you have created guests on top of "
3685 "it is not possible: you will corrupt the guests."
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../clone/virt-sysprep.pod:378
3690 msgid ""
3691 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3692 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3693 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3694 "also create cheap snapshots from files or LUNs."
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../clone/virt-sysprep.pod:386
3699 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3700 msgstr ""
3701
3702 #. type: textblock
3703 #: ../clone/virt-sysprep.pod:390
3704 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3705 msgstr ""
3706
3707 #. type: =head2
3708 #: ../clone/virt-sysprep.pod:394
3709 msgid "VIRT-CLONE"
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../clone/virt-sysprep.pod:396
3714 msgid ""
3715 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3716 "and/or modify the external libvirt configuration of a guest.  It will reset "
3717 "the name, UUID and MAC address of the guest in the libvirt XML."
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../clone/virt-sysprep.pod:401
3722 msgid ""
3723 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3724 "image.  This was the original motivation to write virt-sysprep."
3725 msgstr ""
3726
3727 #. type: =head2
3728 #: ../clone/virt-sysprep.pod:404
3729 msgid "SPARSIFY"
3730 msgstr ""
3731
3732 #. type: verbatim
3733 #: ../clone/virt-sysprep.pod:406
3734 #, no-wrap
3735 msgid ""
3736 "              virt-sparsify\n"
3737 " original guest --------> template\n"
3738 "\n"
3739 msgstr ""
3740
3741 #. type: textblock
3742 #: ../clone/virt-sysprep.pod:409
3743 msgid ""
3744 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3745 "it easier to compress and/or faster to copy."
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../clone/virt-sysprep.pod:412
3750 msgid ""
3751 "Notice that since virt-sparsify also copies the image, you can use it to "
3752 "make the initial copy (instead of C<dd>)."
3753 msgstr ""
3754
3755 #. type: =head2
3756 #: ../clone/virt-sysprep.pod:415
3757 msgid "RESIZE"
3758 msgstr ""
3759
3760 #. type: verbatim
3761 #: ../clone/virt-sysprep.pod:417
3762 #, no-wrap
3763 msgid ""
3764 "                         virt-resize\n"
3765 "                template ---------->\n"
3766 "                            \\------> cloned\n"
3767 "                             \\-----> guests\n"
3768 "                              \\---->\n"
3769 "\n"
3770 msgstr ""
3771
3772 #. type: textblock
3773 #: ../clone/virt-sysprep.pod:423
3774 msgid ""
3775 "If you want to give people cloned guests, but let them pick the size of the "
3776 "guest themselves (eg. depending on how much they are prepared to pay for "
3777 "disk space), then instead of copying the template, you can run L<virt-resize"
3778 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3779 "guests from a template."
3780 msgstr ""
3781
3782 #. type: =head1
3783 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3784 msgid "SECURITY"
3785 msgstr "БЕЗПЕКА"
3786
3787 #. type: textblock
3788 #: ../clone/virt-sysprep.pod:431
3789 msgid ""
3790 "Although virt-sysprep removes some sensitive information from the guest, it "
3791 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3792 "above, and the implementation of the operations in the shell script.  You "
3793 "should also examine the guest afterwards."
3794 msgstr ""
3795
3796 #. type: textblock
3797 #: ../clone/virt-sysprep.pod:436
3798 msgid ""
3799 "Sensitive files are simply removed.  The data they contained may still exist "
3800 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3801 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3802 "(1)> command to get rid of deleted content in directory entries and inodes."
3803 msgstr ""
3804
3805 #. type: =head2
3806 #: ../clone/virt-sysprep.pod:442
3807 msgid "RANDOM SEED"
3808 msgstr ""
3809
3810 #. type: textblock
3811 #: ../clone/virt-sysprep.pod:444
3812 msgid "I<(This section applies to Linux guests only)>"
3813 msgstr ""
3814
3815 #. type: textblock
3816 #: ../clone/virt-sysprep.pod:446
3817 msgid ""
3818 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3819 "from the host into the guest's random seed file."
3820 msgstr ""
3821
3822 #. type: textblock
3823 #: ../clone/virt-sysprep.pod:449
3824 msgid ""
3825 "If this is just done once and the guest is cloned from the same template, "
3826 "then each guest will start with the same entropy, and things like SSH host "
3827 "keys and TCP sequence numbers may be predictable."
3828 msgstr ""
3829
3830 #. type: textblock
3831 #: ../clone/virt-sysprep.pod:453
3832 msgid ""
3833 "Therefore you should arrange to add more randomness I<after> cloning from a "
3834 "template too, which can be done by just enabling the C<random-seed> "
3835 "operation:"
3836 msgstr ""
3837
3838 #. type: verbatim
3839 #: ../clone/virt-sysprep.pod:457
3840 #, no-wrap
3841 msgid ""
3842 " cp template.img newguest.img\n"
3843 " virt-sysprep --enable=random-seed -a newguest.img\n"
3844 "\n"
3845 msgstr ""
3846
3847 #. type: =head2
3848 #: ../clone/virt-sysprep.pod:460
3849 msgid "SELINUX RELABELLING"
3850 msgstr ""
3851
3852 #. type: textblock
3853 #: ../clone/virt-sysprep.pod:462
3854 msgid "I<(This section applies to Linux guests using SELinux only)>"
3855 msgstr ""
3856
3857 #. type: textblock
3858 #: ../clone/virt-sysprep.pod:464
3859 msgid ""
3860 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3861 "autorelabel> so that these will be correctly labelled by SELinux the next "
3862 "time the guest is booted.  This process interrupts boot and can take some "
3863 "time."
3864 msgstr ""
3865
3866 #. type: textblock
3867 #: ../clone/virt-sysprep.pod:469
3868 msgid ""
3869 "You can force relabelling for all guests by supplying the I<--selinux-"
3870 "relabel> option."
3871 msgstr ""
3872
3873 #. type: textblock
3874 #: ../clone/virt-sysprep.pod:472
3875 msgid ""
3876 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3877 "relabel> option."
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../clone/virt-sysprep.pod:484
3882 msgid "This program returns 0 on success, or 1 if there was an error."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../clone/virt-sysprep.pod:488
3887 msgid ""
3888 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3889 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3890 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3891 msgstr ""
3892
3893 #. type: textblock
3894 #: ../df/virt-df.pod:5
3895 msgid "virt-df - Display free space on virtual filesystems"
3896 msgstr ""
3897
3898 #. type: verbatim
3899 #: ../df/virt-df.pod:9
3900 #, no-wrap
3901 msgid ""
3902 " virt-df [--options]\n"
3903 "\n"
3904 msgstr ""
3905 " virt-df [--параметри]\n"
3906 "\n"
3907
3908 #. type: verbatim
3909 #: ../df/virt-df.pod:11
3910 #, no-wrap
3911 msgid ""
3912 " virt-df [--options] -d domname\n"
3913 "\n"
3914 msgstr ""
3915
3916 #. type: verbatim
3917 #: ../df/virt-df.pod:13
3918 #, no-wrap
3919 msgid ""
3920 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3921 "\n"
3922 msgstr ""
3923
3924 #. type: verbatim
3925 #: ../df/virt-df.pod:17
3926 #, no-wrap
3927 msgid ""
3928 " virt-df [--options] domname\n"
3929 "\n"
3930 msgstr ""
3931
3932 #. type: verbatim
3933 #: ../df/virt-df.pod:19
3934 #, no-wrap
3935 msgid ""
3936 " virt-df [--options] disk.img [disk.img ...]\n"
3937 "\n"
3938 msgstr ""
3939
3940 #. type: textblock
3941 #: ../df/virt-df.pod:23
3942 msgid ""
3943 "C<virt-df> is a command line tool to display free space on virtual machine "
3944 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3945 "allocated to a virtual machine, but can look inside disk images to see how "
3946 "much space is really being used."
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../df/virt-df.pod:28
3951 msgid ""
3952 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3953 "to get a list of all active and inactive guests, and performs a C<df>-type "
3954 "operation on each one in turn, printing out the results."
3955 msgstr ""
3956
3957 #. type: textblock
3958 #: ../df/virt-df.pod:32
3959 msgid ""
3960 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3961 "type operation on either the single named libvirt domain, or on the disk "
3962 "image(s) listed on the command line (which must all belong to a single VM).  "
3963 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3964 "guest>.  If you want to run on multiple guests, then you have to invoke "
3965 "C<virt-df> multiple times."
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../df/virt-df.pod:39
3970 msgid ""
3971 "Use the I<--csv> option to get a format which can be easily parsed by other "
3972 "programs.  Other options are similar to the standard L<df(1)> command."
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../df/virt-df.pod:45
3977 msgid ""
3978 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3979 "output human-readable:"
3980 msgstr ""
3981
3982 #. type: verbatim
3983 #: ../df/virt-df.pod:48
3984 #, no-wrap
3985 msgid ""
3986 " # virt-df -d F14x64 -h\n"
3987 " Filesystem                       Size     Used  Available  Use%\n"
3988 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3989 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3990 "\n"
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../df/virt-df.pod:53
3995 msgid "Show disk usage for a disk image file called C<test.img>:"
3996 msgstr ""
3997
3998 #. type: verbatim
3999 #: ../df/virt-df.pod:55
4000 #, no-wrap
4001 msgid ""
4002 " $ virt-df -a test1.img\n"
4003 " Filesystem                  1K-blocks     Used  Available  Use%\n"
4004 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
4005 "\n"
4006 msgstr ""
4007
4008 #. type: verbatim
4009 #: ../df/virt-df.pod:112
4010 #, no-wrap
4011 msgid ""
4012 " virt-df --format=raw -a disk.img\n"
4013 "\n"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../df/virt-df.pod:116
4018 #, no-wrap
4019 msgid ""
4020 " virt-df --format=raw -a disk.img --format -a another.img\n"
4021 "\n"
4022 msgstr ""
4023
4024 #. type: textblock
4025 #: ../df/virt-df.pod:129
4026 msgid "Print sizes in human-readable format."
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../df/virt-df.pod:131
4031 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4032 msgstr ""
4033
4034 #. type: =item
4035 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4036 msgid "B<-i>"
4037 msgstr "B<-i>"
4038
4039 #. type: =item
4040 #: ../df/virt-df.pod:135
4041 msgid "B<--inodes>"
4042 msgstr "B<--inodes>"
4043
4044 #. type: textblock
4045 #: ../df/virt-df.pod:137
4046 msgid "Print inodes instead of blocks."
4047 msgstr ""
4048
4049 #. type: =item
4050 #: ../df/virt-df.pod:139
4051 msgid "B<--one-per-guest>"
4052 msgstr "B<--one-per-guest>"
4053
4054 #. type: textblock
4055 #: ../df/virt-df.pod:141
4056 msgid ""
4057 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
4058 "disks from several guests to a single libguestfs appliance."
4059 msgstr ""
4060
4061 #. type: textblock
4062 #: ../df/virt-df.pod:144
4063 msgid "You might use this option in the following circumstances:"
4064 msgstr ""
4065
4066 #. type: textblock
4067 #: ../df/virt-df.pod:150
4068 msgid ""
4069 "If you think an untrusted guest might actively try to exploit the libguestfs "
4070 "appliance kernel, then this prevents one guest from interfering with the "
4071 "stats printed for another guest."
4072 msgstr ""
4073
4074 #. type: textblock
4075 #: ../df/virt-df.pod:156
4076 msgid ""
4077 "If the kernel has a bug which stops it from accessing a filesystem in one "
4078 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4079 "and report stats for further guests."
4080 msgstr ""
4081
4082 #. type: textblock
4083 #: ../df/virt-df.pod:165
4084 msgid ""
4085 "Print UUIDs instead of names.  This is useful for following a guest even "
4086 "when the guest is migrated or renamed, or when two guests happen to have the "
4087 "same name."
4088 msgstr ""
4089
4090 #. type: textblock
4091 #: ../df/virt-df.pod:169
4092 msgid ""
4093 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
4094 "images, we still print the disk image name even when this option is "
4095 "specified."
4096 msgstr ""
4097
4098 #. type: textblock
4099 #: ../df/virt-df.pod:229
4100 msgid ""
4101 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4102 "libguestfs.org/>."
4103 msgstr ""
4104
4105 #. type: textblock
4106 #: ../edit/virt-edit.pod:5
4107 msgid "virt-edit - Edit a file in a virtual machine"
4108 msgstr ""
4109
4110 #. type: verbatim
4111 #: ../edit/virt-edit.pod:9
4112 #, no-wrap
4113 msgid ""
4114 " virt-edit [--options] -d domname file [file ...]\n"
4115 "\n"
4116 msgstr ""
4117
4118 #. type: verbatim
4119 #: ../edit/virt-edit.pod:11
4120 #, no-wrap
4121 msgid ""
4122 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4123 "\n"
4124 msgstr ""
4125
4126 #. type: verbatim
4127 #: ../edit/virt-edit.pod:13
4128 #, no-wrap
4129 msgid ""
4130 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4131 "\n"
4132 msgstr ""
4133
4134 #. type: verbatim
4135 #: ../edit/virt-edit.pod:17
4136 #, no-wrap
4137 msgid ""
4138 " virt-edit domname file\n"
4139 "\n"
4140 msgstr ""
4141
4142 #. type: verbatim
4143 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4144 #, no-wrap
4145 msgid ""
4146 " virt-edit disk.img [disk.img ...] file\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: =head1
4151 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4152 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4153 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21
4154 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4155 msgid "WARNING"
4156 msgstr "ПОПЕРЕДЖЕННЯ"
4157
4158 #. type: textblock
4159 #: ../edit/virt-edit.pod:23
4160 msgid ""
4161 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4162 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4163 "doing this, but doesn't catch all cases."
4164 msgstr ""
4165
4166 #. type: textblock
4167 #: ../edit/virt-edit.pod:29
4168 msgid ""
4169 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4170 "exists in the named virtual machine (or disk image)."
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:32
4175 msgid ""
4176 "Multiple filenames can be given, in which case they are each edited in "
4177 "turn.  Each filename must be a full path, starting at the root directory "
4178 "(starting with '/')."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../edit/virt-edit.pod:36
4183 msgid "If you want to just view a file, use L<virt-cat(1)>."
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../edit/virt-edit.pod:38
4188 msgid ""
4189 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4190 "USING GUESTFISH> below)."
4191 msgstr ""
4192
4193 #. type: textblock
4194 #: ../edit/virt-edit.pod:41
4195 msgid ""
4196 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4197 "that and much more."
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../edit/virt-edit.pod:46
4202 msgid "Edit the named files interactively:"
4203 msgstr ""
4204
4205 #. type: verbatim
4206 #: ../edit/virt-edit.pod:48
4207 #, no-wrap
4208 msgid ""
4209 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4210 "\n"
4211 msgstr ""
4212
4213 #. type: verbatim
4214 #: ../edit/virt-edit.pod:50
4215 #, no-wrap
4216 msgid ""
4217 " virt-edit -d mydomain /etc/passwd\n"
4218 "\n"
4219 msgstr ""
4220
4221 #. type: textblock
4222 #: ../edit/virt-edit.pod:52
4223 msgid "For Windows guests, some Windows paths are understood:"
4224 msgstr ""
4225
4226 #. type: verbatim
4227 #: ../edit/virt-edit.pod:54
4228 #, no-wrap
4229 msgid ""
4230 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4231 "\n"
4232 msgstr ""
4233
4234 #. type: textblock
4235 #: ../edit/virt-edit.pod:56
4236 msgid ""
4237 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4238 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4239 msgstr ""
4240
4241 #. type: verbatim
4242 #: ../edit/virt-edit.pod:60
4243 #, no-wrap
4244 msgid ""
4245 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4246 "\n"
4247 msgstr ""
4248
4249 #. type: =item
4250 #: ../edit/virt-edit.pod:81
4251 msgid "B<-b> extension"
4252 msgstr ""
4253
4254 #. type: =item
4255 #: ../edit/virt-edit.pod:83
4256 msgid "B<--backup> extension"
4257 msgstr ""
4258
4259 #. type: textblock
4260 #: ../edit/virt-edit.pod:85
4261 msgid ""
4262 "Create a backup of the original file I<in the guest disk image>.  The backup "
4263 "has the original filename with C<extension> added."
4264 msgstr ""
4265
4266 #. type: textblock
4267 #: ../edit/virt-edit.pod:88
4268 msgid ""
4269 "Usually the first character of C<extension> would be a dot C<.> so you would "
4270 "write:"
4271 msgstr ""
4272
4273 #. type: verbatim
4274 #: ../edit/virt-edit.pod:91
4275 #, no-wrap
4276 msgid ""
4277 " virt-edit -b .orig [etc]\n"
4278 "\n"
4279 msgstr ""
4280
4281 #. type: textblock
4282 #: ../edit/virt-edit.pod:93
4283 msgid "By default, no backup file is made."
4284 msgstr ""
4285
4286 #. type: =item
4287 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4288 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4289 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4290 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4291 msgid "B<-c URI>"
4292 msgstr "B<-c адреса>"
4293
4294 #. type: =item
4295 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4296 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4297 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4298 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4299 msgid "B<--connect URI>"
4300 msgstr "B<--connect адреса>"
4301
4302 #. type: textblock
4303 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4304 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4305 #: ../tools/virt-win-reg.pl:135
4306 msgid ""
4307 "If you specify guest block devices directly, then libvirt is not used at all."
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../edit/virt-edit.pod:114
4312 msgid ""
4313 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4314 "off so you cannot see what you are typing.  If you are not worried about "
4315 "Tempest attacks and there is no one else in the room you can specify this "
4316 "flag to see what you are typing."
4317 msgstr ""
4318
4319 #. type: =item
4320 #: ../edit/virt-edit.pod:119
4321 msgid "B<-e> EXPR"
4322 msgstr "B<-e> вираз"
4323
4324 #. type: =item
4325 #: ../edit/virt-edit.pod:121
4326 msgid "B<--expr> EXPR"
4327 msgstr "B<--expr> вираз"
4328
4329 #. type: textblock
4330 #: ../edit/virt-edit.pod:123
4331 msgid ""
4332 "Instead of launching the external editor, non-interactively apply the Perl "
4333 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4334 "EDITING> below."
4335 msgstr ""
4336
4337 #. type: textblock
4338 #: ../edit/virt-edit.pod:127
4339 msgid ""
4340 "Be careful to properly quote the expression to prevent it from being altered "
4341 "by the shell."
4342 msgstr ""
4343
4344 #. type: textblock
4345 #: ../edit/virt-edit.pod:130
4346 msgid "Note that this option is only available when Perl 5 is installed."
4347 msgstr ""
4348
4349 #. type: =item
4350 #: ../edit/virt-edit.pod:132
4351 msgid "B<--format> raw|qcow2|..."
4352 msgstr "B<--format> raw|qcow2|..."
4353
4354 #. type: verbatim
4355 #: ../edit/virt-edit.pod:143
4356 #, no-wrap
4357 msgid ""
4358 " virt-edit --format=raw -a disk.img file\n"
4359 "\n"
4360 msgstr ""
4361
4362 #. type: verbatim
4363 #: ../edit/virt-edit.pod:147
4364 #, no-wrap
4365 msgid ""
4366 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4367 "\n"
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../edit/virt-edit.pod:181
4372 msgid "Previous versions of virt-edit allowed you to write either:"
4373 msgstr ""
4374
4375 #. type: verbatim
4376 #: ../edit/virt-edit.pod:187
4377 #, no-wrap
4378 msgid ""
4379 " virt-edit guestname file\n"
4380 "\n"
4381 msgstr ""
4382
4383 #. type: =head1
4384 #: ../edit/virt-edit.pod:195
4385 msgid "NON-INTERACTIVE EDITING"
4386 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4387
4388 #. type: textblock
4389 #: ../edit/virt-edit.pod:197
4390 msgid ""
4391 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4392 "administrator can interactively edit the file."
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../edit/virt-edit.pod:200
4397 msgid ""
4398 "There are two ways also to use C<virt-edit> from scripts in order to make "
4399 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4400 "like this, it's less error-prone to write scripts directly using the "
4401 "libguestfs API and Augeas for configuration file editing.)"
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../edit/virt-edit.pod:206
4406 msgid ""
4407 "The first method is to temporarily set C<$EDITOR> to any script or program "
4408 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4409 "update C<tmpfile> in place however it likes."
4410 msgstr ""
4411
4412 #. type: textblock
4413 #: ../edit/virt-edit.pod:210
4414 msgid ""
4415 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4416 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4417 "instances of C<foo> with C<bar> in a file:"
4418 msgstr ""
4419
4420 #. type: verbatim
4421 #: ../edit/virt-edit.pod:214
4422 #, no-wrap
4423 msgid ""
4424 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4425 "\n"
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:216
4430 msgid ""
4431 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4432 "For example to delete root's password you could do:"
4433 msgstr ""
4434
4435 #. type: verbatim
4436 #: ../edit/virt-edit.pod:219
4437 #, no-wrap
4438 msgid ""
4439 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4440 "\n"
4441 msgstr ""
4442 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4443 "\n"
4444
4445 #. type: textblock
4446 #: ../edit/virt-edit.pod:221
4447 msgid ""
4448 "What really happens is that the snippet is evaluated as a Perl expression "
4449 "for each line of the file.  The line, including the final C<\\n>, is passed "
4450 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4451 msgstr ""
4452
4453 #. type: textblock
4454 #: ../edit/virt-edit.pod:226
4455 msgid ""
4456 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4457 "C<apache> user account from the password file you can do:"
4458 msgstr ""
4459
4460 #. type: verbatim
4461 #: ../edit/virt-edit.pod:229
4462 #, no-wrap
4463 msgid ""
4464 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4465 "\n"
4466 msgstr ""
4467 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4468 "\n"
4469
4470 #. type: textblock
4471 #: ../edit/virt-edit.pod:231
4472 msgid ""
4473 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4474 "the end of the file is rather difficult this way since there is no concept "
4475 "of \"last line of the file\" - your expression just doesn't get called "
4476 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4477 "want to do this."
4478 msgstr ""
4479
4480 #. type: textblock
4481 #: ../edit/virt-edit.pod:237
4482 msgid ""
4483 "The variable C<$lineno> contains the current line number.  As is "
4484 "traditional, the first line in the file is number C<1>."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../edit/virt-edit.pod:240
4489 msgid ""
4490 "The return value from the expression is ignored, but the expression may call "
4491 "C<die> in order to abort the whole program, leaving the original file "
4492 "untouched."
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../edit/virt-edit.pod:244
4497 msgid ""
4498 "Remember when matching the end of a line that C<$_> may contain the final C<"
4499 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4500 "newline then neither of these.  Thus to match or substitute some text at the "
4501 "end of a line, use this regular expression:"
4502 msgstr ""
4503
4504 #. type: verbatim
4505 #: ../edit/virt-edit.pod:249
4506 #, no-wrap
4507 msgid ""
4508 " /some text(\\r?\\n)?$/\n"
4509 "\n"
4510 msgstr ""
4511 " /якийсь текст(\\r?\\n)?$/\n"
4512 "\n"
4513
4514 #. type: textblock
4515 #: ../edit/virt-edit.pod:251
4516 msgid ""
4517 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4518 "$_> itself (since that would remove all newlines from the file):"
4519 msgstr ""
4520
4521 #. type: verbatim
4522 #: ../edit/virt-edit.pod:255
4523 #, no-wrap
4524 msgid ""
4525 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4526 "\n"
4527 msgstr ""
4528 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4529 "\n"
4530
4531 #. type: textblock
4532 #: ../edit/virt-edit.pod:259
4533 msgid ""
4534 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4535 "paths (eg. C<E:\\foo\\bar.txt>)."
4536 msgstr ""
4537
4538 #. type: textblock
4539 #: ../edit/virt-edit.pod:278
4540 msgid ""
4541 "The path is resolved case insensitively to locate the file that should be "
4542 "edited."
4543 msgstr ""
4544
4545 #. type: textblock
4546 #: ../edit/virt-edit.pod:299
4547 msgid ""
4548 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4549 "C<virt-edit> doesn't work."
4550 msgstr ""
4551
4552 #. type: textblock
4553 #: ../edit/virt-edit.pod:302
4554 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4555 msgstr ""
4556
4557 #. type: verbatim
4558 #: ../edit/virt-edit.pod:304
4559 #, no-wrap
4560 msgid ""
4561 " guestfish --rw -i -d domname edit /file\n"
4562 "\n"
4563 msgstr ""
4564
4565 #. type: textblock
4566 #: ../edit/virt-edit.pod:306
4567 msgid ""
4568 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4569 "path to the file."
4570 msgstr ""
4571
4572 #. type: textblock
4573 #: ../edit/virt-edit.pod:309
4574 msgid ""
4575 "The command above uses libguestfs's guest inspection feature and so does not "
4576 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4577 "disk images that don't contain guests.  To edit a file on a disk image "
4578 "directly, use:"
4579 msgstr ""
4580
4581 #. type: verbatim
4582 #: ../edit/virt-edit.pod:314
4583 #, no-wrap
4584 msgid ""
4585 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4586 "\n"
4587 msgstr ""
4588
4589 #. type: textblock
4590 #: ../edit/virt-edit.pod:316
4591 msgid ""
4592 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4593 "the disk image to edit, and C</file> is the full path to the file."
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../edit/virt-edit.pod:320
4598 msgid ""
4599 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4600 "C<write> or C<upload> instead:"
4601 msgstr ""
4602
4603 #. type: verbatim
4604 #: ../edit/virt-edit.pod:323
4605 #, no-wrap
4606 msgid ""
4607 " guestfish --rw -i -d domname touch /newfile\n"
4608 "\n"
4609 msgstr ""
4610
4611 #. type: verbatim
4612 #: ../edit/virt-edit.pod:325
4613 #, no-wrap
4614 msgid ""
4615 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4616 "\n"
4617 msgstr ""
4618
4619 #. type: verbatim
4620 #: ../edit/virt-edit.pod:327
4621 #, no-wrap
4622 msgid ""
4623 " guestfish --rw -i -d domname upload localfile /newfile\n"
4624 "\n"
4625 msgstr ""
4626
4627 #. type: =head1
4628 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4629 #: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:232
4630 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4631 msgid "ENVIRONMENT VARIABLES"
4632 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4633
4634 #. type: =item
4635 #: ../edit/virt-edit.pod:333
4636 msgid "C<EDITOR>"
4637 msgstr "C<EDITOR>"
4638
4639 #. type: textblock
4640 #: ../edit/virt-edit.pod:335
4641 msgid ""
4642 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4643 "\"emacs -nw\">"
4644 msgstr ""
4645
4646 #. type: textblock
4647 #: ../edit/virt-edit.pod:338
4648 msgid "If not set, C<vi> is used."
4649 msgstr ""
4650
4651 #. type: textblock
4652 #: ../edit/virt-edit.pod:356
4653 msgid ""
4654 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4655 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4656 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4657 msgstr ""
4658 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4659 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4660 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4661
4662 #. type: textblock
4663 #: ../erlang/examples/guestfs-erlang.pod:5
4664 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4665 msgstr ""
4666
4667 #. type: verbatim
4668 #: ../erlang/examples/guestfs-erlang.pod:9
4669 #, no-wrap
4670 msgid ""
4671 " {ok, G} = guestfs:create(),\n"
4672 " ok = guestfs:add_drive_opts(G, Disk,\n"
4673 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4674 " ok = guestfs:launch(G),\n"
4675 " [Device] = guestfs:list_devices(G),\n"
4676 " ok = guestfs:close(G).\n"
4677 "\n"
4678 msgstr ""
4679
4680 #. type: textblock
4681 #: ../erlang/examples/guestfs-erlang.pod:18
4682 msgid ""
4683 "This manual page documents how to call libguestfs from the Erlang "
4684 "programming language.  This page just documents the differences from the C "
4685 "API and gives some examples.  If you are not familiar with using libguestfs, "
4686 "you also need to read L<guestfs(3)>."
4687 msgstr ""
4688
4689 #. type: =head2
4690 #: ../erlang/examples/guestfs-erlang.pod:23
4691 msgid "OPENING AND CLOSING THE HANDLE"
4692 msgstr ""
4693
4694 #. type: textblock
4695 #: ../erlang/examples/guestfs-erlang.pod:25
4696 msgid ""
4697 "The Erlang bindings are implemented using an external program called C<erl-"
4698 "guestfs>.  This program must be on the current PATH, or else you should "
4699 "specify the full path to the program:"
4700 msgstr ""
4701
4702 #. type: verbatim
4703 #: ../erlang/examples/guestfs-erlang.pod:29
4704 #, no-wrap
4705 msgid ""
4706 " {ok, G} = guestfs:create().\n"
4707 "\n"
4708 msgstr ""
4709
4710 #. type: verbatim
4711 #: ../erlang/examples/guestfs-erlang.pod:31
4712 #, no-wrap
4713 msgid ""
4714 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4715 "\n"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../erlang/examples/guestfs-erlang.pod:33
4720 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../erlang/examples/guestfs-erlang.pod:36
4725 msgid "To close the handle:"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../erlang/examples/guestfs-erlang.pod:38
4730 #, no-wrap
4731 msgid ""
4732 " ok = guestfs:close(G).\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: =head2
4737 #: ../erlang/examples/guestfs-erlang.pod:40
4738 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4739 msgstr ""
4740
4741 #. type: textblock
4742 #: ../erlang/examples/guestfs-erlang.pod:42
4743 msgid ""
4744 "For functions that take optional arguments, the first arguments are the non-"
4745 "optional ones.  The last argument is a list of tuples supplying the "
4746 "remaining optional arguments."
4747 msgstr ""
4748
4749 #. type: verbatim
4750 #: ../erlang/examples/guestfs-erlang.pod:46
4751 #, no-wrap
4752 msgid ""
4753 " ok = guestfs:add_drive_opts(G, Disk,\n"
4754 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4755 "\n"
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../erlang/examples/guestfs-erlang.pod:49
4760 msgid "If the last argument would be an empty list, you can also omit it:"
4761 msgstr ""
4762
4763 #. type: verbatim
4764 #: ../erlang/examples/guestfs-erlang.pod:51
4765 #, no-wrap
4766 msgid ""
4767 " ok = guestfs:add_drive_opts(G, Disk).\n"
4768 "\n"
4769 msgstr ""
4770
4771 #. type: =head2
4772 #: ../erlang/examples/guestfs-erlang.pod:53
4773 msgid "RETURN VALUES AND ERRORS"
4774 msgstr ""
4775
4776 #. type: textblock
4777 #: ../erlang/examples/guestfs-erlang.pod:55
4778 msgid ""
4779 "On success, most functions return a C<Result> term (which could be a list, "
4780 "string, tuple etc.).  If there is nothing for the function to return, then "
4781 "the atom C<ok> is returned."
4782 msgstr ""
4783
4784 #. type: textblock
4785 #: ../erlang/examples/guestfs-erlang.pod:59
4786 msgid "On error, you would see one of the following tuples:"
4787 msgstr ""
4788
4789 #. type: =item
4790 #: ../erlang/examples/guestfs-erlang.pod:63
4791 msgid "C<{error, Msg, Errno}>"
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../erlang/examples/guestfs-erlang.pod:65
4796 msgid "This indicates an ordinary error from the function."
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../erlang/examples/guestfs-erlang.pod:67
4801 msgid ""
4802 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4803 "(integer)."
4804 msgstr ""
4805
4806 #. type: textblock
4807 #: ../erlang/examples/guestfs-erlang.pod:70
4808 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4809 msgstr ""
4810
4811 #. type: =item
4812 #: ../erlang/examples/guestfs-erlang.pod:72
4813 msgid "C<{unknown, Function}>"
4814 msgstr ""
4815
4816 #. type: textblock
4817 #: ../erlang/examples/guestfs-erlang.pod:74
4818 msgid ""
4819 "This indicates that the function you called is not known.  Generally this "
4820 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4821 "which you should not do."
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../erlang/examples/guestfs-erlang.pod:78
4826 msgid "C<Function> is the name of the unknown function."
4827 msgstr ""
4828
4829 #. type: =item
4830 #: ../erlang/examples/guestfs-erlang.pod:80
4831 msgid "C<{unknownarg, Arg}>"
4832 msgstr ""
4833
4834 #. type: textblock
4835 #: ../erlang/examples/guestfs-erlang.pod:82
4836 msgid ""
4837 "This indicates that you called a function with optional arguments, with an "
4838 "unknown argument name."
4839 msgstr ""
4840
4841 #. type: textblock
4842 #: ../erlang/examples/guestfs-erlang.pod:85
4843 msgid "C<Arg> is the name of the unknown argument."
4844 msgstr ""
4845
4846 #. type: =head1
4847 #: ../erlang/examples/guestfs-erlang.pod:89
4848 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4849 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4850 #: ../python/examples/guestfs-python.pod:34
4851 #: ../ruby/examples/guestfs-ruby.pod:28
4852 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4853 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4854
4855 #. type: textblock
4856 #: ../erlang/examples/guestfs-erlang.pod:91
4857 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4858 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4859 #: ../python/examples/guestfs-python.pod:36
4860 #: ../ruby/examples/guestfs-ruby.pod:30
4861 msgid "@EXAMPLE1@"
4862 msgstr "@EXAMPLE1@"
4863
4864 #. type: =head1
4865 #: ../erlang/examples/guestfs-erlang.pod:93
4866 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4867 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4868 #: ../python/examples/guestfs-python.pod:38
4869 #: ../ruby/examples/guestfs-ruby.pod:32
4870 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4871 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4872
4873 #. type: textblock
4874 #: ../erlang/examples/guestfs-erlang.pod:95
4875 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4876 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4877 #: ../python/examples/guestfs-python.pod:40
4878 #: ../ruby/examples/guestfs-ruby.pod:34
4879 msgid "@EXAMPLE2@"
4880 msgstr "@EXAMPLE2@"
4881
4882 #. type: textblock
4883 #: ../erlang/examples/guestfs-erlang.pod:99
4884 msgid ""
4885 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4886 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4887 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4888 msgstr ""
4889
4890 #. type: =head1
4891 #: ../erlang/examples/guestfs-erlang.pod:110
4892 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4893 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4894 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4895 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4896 #: ../inspector/virt-inspector.pod:404 ../java/examples/guestfs-java.pod:58
4897 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4898 #: ../python/examples/guestfs-python.pod:54
4899 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4900 #: ../test-tool/libguestfs-test-tool.pod:106
4901 msgid "AUTHORS"
4902 msgstr "АВТОРИ"
4903
4904 #. type: textblock
4905 #: ../erlang/examples/guestfs-erlang.pod:112
4906 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4907 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4908 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4909 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4910 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4911 #: ../perl/examples/guestfs-perl.pod:54
4912 #: ../python/examples/guestfs-python.pod:56
4913 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4914 #: ../test-tool/libguestfs-test-tool.pod:108
4915 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4916 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4917
4918 #. type: textblock
4919 #: ../erlang/examples/guestfs-erlang.pod:116
4920 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4921 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../erlang/examples/guestfs-erlang.pod:118
4926 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4927 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4928 #: ../perl/examples/guestfs-perl.pod:60
4929 #: ../python/examples/guestfs-python.pod:62
4930 #: ../ruby/examples/guestfs-ruby.pod:56
4931 msgid ""
4932 "The examples in this manual page may be freely copied, modified and "
4933 "distributed without any restrictions."
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../erlang/examples/guestfs-erlang.pod:121
4938 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4939 #: ../java/examples/guestfs-java.pod:69
4940 #: ../ocaml/examples/guestfs-ocaml.pod:102
4941 #: ../perl/examples/guestfs-perl.pod:63
4942 #: ../python/examples/guestfs-python.pod:65
4943 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4944 msgid ""
4945 "This library is free software; you can redistribute it and/or modify it "
4946 "under the terms of the GNU Lesser General Public License as published by the "
4947 "Free Software Foundation; either version 2 of the License, or (at your "
4948 "option) any later version."
4949 msgstr ""
4950
4951 #. type: textblock
4952 #: ../erlang/examples/guestfs-erlang.pod:126
4953 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4954 #: ../java/examples/guestfs-java.pod:74
4955 #: ../ocaml/examples/guestfs-ocaml.pod:107
4956 #: ../perl/examples/guestfs-perl.pod:68
4957 #: ../python/examples/guestfs-python.pod:70
4958 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4959 msgid ""
4960 "This library is distributed in the hope that it will be useful, but WITHOUT "
4961 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4962 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4963 "for more details."
4964 msgstr ""
4965
4966 #. type: textblock
4967 #: ../erlang/examples/guestfs-erlang.pod:131
4968 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4969 #: ../java/examples/guestfs-java.pod:79
4970 #: ../ocaml/examples/guestfs-ocaml.pod:112
4971 #: ../perl/examples/guestfs-perl.pod:73
4972 #: ../python/examples/guestfs-python.pod:75
4973 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4974 msgid ""
4975 "You should have received a copy of the GNU Lesser General Public License "
4976 "along with this library; if not, write to the Free Software Foundation, "
4977 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4978 msgstr ""
4979
4980 #. type: textblock
4981 #: ../examples/guestfs-examples.pod:5
4982 msgid "guestfs-examples - Examples of using libguestfs from C"
4983 msgstr ""
4984
4985 #. type: verbatim
4986 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4987 #, no-wrap
4988 msgid ""
4989 " #include <guestfs.h>\n"
4990 " \n"
4991 msgstr ""
4992 " #include <guestfs.h>\n"
4993 " \n"
4994
4995 #. type: verbatim
4996 #: ../examples/guestfs-examples.pod:11
4997 #, no-wrap
4998 msgid ""
4999 " guestfs_h *g = guestfs_create ();\n"
5000 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5001 " guestfs_launch (g);\n"
5002 "\n"
5003 msgstr ""
5004 " guestfs_h *g = guestfs_create ();\n"
5005 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5006 " guestfs_launch (g);\n"
5007 "\n"
5008
5009 #. type: verbatim
5010 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5011 #, no-wrap
5012 msgid ""
5013 " cc prog.c -o prog -lguestfs\n"
5014 "or:\n"
5015 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5016 "\n"
5017 msgstr ""
5018 " cc prog.c -o prog -lguestfs\n"
5019 "або:\n"
5020 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5021 "\n"
5022
5023 #. type: textblock
5024 #: ../examples/guestfs-examples.pod:21
5025 msgid ""
5026 "This manual page contains examples of calling libguestfs from the C "
5027 "programming language.  If you are not familiar with using libguestfs, you "
5028 "also need to read L<guestfs(3)>."
5029 msgstr ""
5030
5031 #. type: textblock
5032 #: ../examples/guestfs-examples.pod:35
5033 msgid ""
5034 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5035 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5036 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5041 #: ../python/examples/guestfs-python.pod:60
5042 #: ../ruby/examples/guestfs-ruby.pod:54
5043 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5044 msgstr ""
5045
5046 #. type: =end
5047 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5048 msgid "comment"
5049 msgstr "коментар"
5050
5051 #. type: textblock
5052 #: ../examples/guestfs-recipes.pod:5
5053 msgid ""
5054 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5055 "here.  The only way which works for both sorts of output is to just write "
5056 "the URL directly.  Do NOT use L<...> for URLs."
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../examples/guestfs-recipes.pod:9
5061 msgid ""
5062 "We break with tradition here and don't use ALL CAPS for the section "
5063 "headings, as this makes them much easier to read."
5064 msgstr ""
5065
5066 #. type: textblock
5067 #: ../examples/guestfs-recipes.pod:16
5068 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5069 msgstr ""
5070
5071 #. type: textblock
5072 #: ../examples/guestfs-recipes.pod:20
5073 msgid ""
5074 "This page contains recipes for and links to things you can do using "
5075 "libguestfs, L<guestfish(1)> and the virt tools."
5076 msgstr ""
5077
5078 #. type: =head1
5079 #: ../examples/guestfs-recipes.pod:23
5080 msgid "Audit a virtual machine for setuid files"
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../examples/guestfs-recipes.pod:25
5085 msgid ""
5086 "The link below contains a small program which can be used to audit a Linux "
5087 "virtual machine to see what setuid and setgid files it contains."
5088 msgstr ""
5089
5090 #. type: textblock
5091 #: ../examples/guestfs-recipes.pod:28
5092 msgid ""
5093 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5094 "files/#content"
5095 msgstr ""
5096
5097 #. type: =head1
5098 #: ../examples/guestfs-recipes.pod:30
5099 msgid "Change the background image in a Windows XP VM"
5100 msgstr ""
5101
5102 #. type: textblock
5103 #: ../examples/guestfs-recipes.pod:32
5104 msgid ""
5105 "The links below explain how to use L<guestfish(1)> to change the background "
5106 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5107 "be substantially different for each version of Windows."
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../examples/guestfs-recipes.pod:37
5112 msgid ""
5113 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5114 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5115 msgstr ""
5116
5117 #. type: =head1
5118 #: ../examples/guestfs-recipes.pod:40
5119 msgid "Cloning a virtual machine (Linux)"
5120 msgstr ""
5121
5122 #. type: textblock
5123 #: ../examples/guestfs-recipes.pod:42
5124 msgid ""
5125 "The guestfish technique described in the link below works well for most "
5126 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5127 "slightly."
5128 msgstr ""
5129
5130 #. type: textblock
5131 #: ../examples/guestfs-recipes.pod:46
5132 msgid ""
5133 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5134 "vm/#content"
5135 msgstr ""
5136
5137 #. type: textblock
5138 #: ../examples/guestfs-recipes.pod:48
5139 msgid ""
5140 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5141 "discussion."
5142 msgstr ""
5143
5144 #. type: textblock
5145 #: ../examples/guestfs-recipes.pod:51
5146 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5147 msgstr ""
5148
5149 #. type: =head1
5150 #: ../examples/guestfs-recipes.pod:53
5151 msgid "Cloning a virtual machine (Windows)"
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../examples/guestfs-recipes.pod:55
5156 msgid ""
5157 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5158 "straightforward.  Currently there is code in the Aeolus Oz project which "
5159 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5160 "we may add sysprepping ability."
5161 msgstr ""
5162
5163 #. type: textblock
5164 #: ../examples/guestfs-recipes.pod:60
5165 msgid ""
5166 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5167 "list/2011-May/msg00019.html"
5168 msgstr ""
5169
5170 #. type: =head1
5171 #: ../examples/guestfs-recipes.pod:63
5172 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5173 msgstr ""
5174
5175 #. type: textblock
5176 #: ../examples/guestfs-recipes.pod:65
5177 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5178 msgstr ""
5179
5180 #. type: verbatim
5181 #: ../examples/guestfs-recipes.pod:67
5182 #, no-wrap
5183 msgid ""
5184 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5185 "\n"
5186 msgstr ""
5187
5188 #. type: textblock
5189 #: ../examples/guestfs-recipes.pod:69
5190 msgid "To export just a subdirectory, eg. C</files>, do:"
5191 msgstr ""
5192
5193 #. type: verbatim
5194 #: ../examples/guestfs-recipes.pod:71
5195 #, no-wrap
5196 msgid ""
5197 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5198 "\n"
5199 msgstr ""
5200
5201 #. type: =head1
5202 #: ../examples/guestfs-recipes.pod:73
5203 msgid "Create empty disk images"
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:75
5208 msgid ""
5209 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5210 "The useful guide below explains the options available."
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../examples/guestfs-recipes.pod:78
5215 msgid ""
5216 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5217 "#content"
5218 msgstr ""
5219
5220 #. type: =head1
5221 #: ../examples/guestfs-recipes.pod:80
5222 msgid "Dump raw filesystem content from inside a disk image or VM"
5223 msgstr ""
5224
5225 #. type: textblock
5226 #: ../examples/guestfs-recipes.pod:82
5227 msgid ""
5228 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5229 "filesystem content from any filesystem in a disk image or a VM (even one "
5230 "which is encrypted or buried inside an LV):"
5231 msgstr ""
5232
5233 #. type: verbatim
5234 #: ../examples/guestfs-recipes.pod:86
5235 #, no-wrap
5236 msgid ""
5237 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5238 "\n"
5239 msgstr ""
5240
5241 #. type: verbatim
5242 #: ../examples/guestfs-recipes.pod:88
5243 #, no-wrap
5244 msgid ""
5245 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5246 "\n"
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../examples/guestfs-recipes.pod:90
5251 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5252 msgstr ""
5253
5254 #. type: =head1
5255 #: ../examples/guestfs-recipes.pod:92
5256 msgid "Edit grub configuration in a VM"
5257 msgstr ""
5258
5259 #. type: textblock
5260 #: ../examples/guestfs-recipes.pod:94
5261 msgid "You can use this to:"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../examples/guestfs-recipes.pod:100
5266 msgid "Fix a virtual machine that does not boot."
5267 msgstr ""
5268
5269 #. type: textblock
5270 #: ../examples/guestfs-recipes.pod:104
5271 msgid "Change which kernel is used to boot the VM."
5272 msgstr ""
5273
5274 #. type: textblock
5275 #: ../examples/guestfs-recipes.pod:108
5276 msgid "Change kernel command line options."
5277 msgstr ""
5278
5279 #. type: textblock
5280 #: ../examples/guestfs-recipes.pod:112
5281 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5282 msgstr ""
5283
5284 #. type: verbatim
5285 #: ../examples/guestfs-recipes.pod:114
5286 #, no-wrap
5287 msgid ""
5288 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5289 "\n"
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../examples/guestfs-recipes.pod:116
5294 msgid ""
5295 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5296 "this:"
5297 msgstr ""
5298
5299 #. type: verbatim
5300 #: ../examples/guestfs-recipes.pod:119
5301 #, no-wrap
5302 msgid ""
5303 " virt-rescue -d BrokenGuest\n"
5304 "\n"
5305 msgstr ""
5306
5307 #. type: =head1
5308 #: ../examples/guestfs-recipes.pod:121
5309 msgid "Export any directory from a VM"
5310 msgstr ""
5311
5312 #. type: textblock
5313 #: ../examples/guestfs-recipes.pod:123
5314 msgid ""
5315 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5316 msgstr ""
5317
5318 #. type: verbatim
5319 #: ../examples/guestfs-recipes.pod:126
5320 #, no-wrap
5321 msgid ""
5322 " virt-copy-out -d Guest /home .\n"
5323 "\n"
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5328 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5329 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5330 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5331 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5332 #: ../tools/virt-win-reg.pl:717
5333 msgid "Notes:"
5334 msgstr "Нотатки:"
5335
5336 #. type: textblock
5337 #: ../examples/guestfs-recipes.pod:134
5338 msgid ""
5339 "The final dot of the command is not a printing error.  It means we want to "
5340 "copy out to the current directory."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-recipes.pod:139
5345 msgid "This creates a directory called C<home> under the current directory."
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../examples/guestfs-recipes.pod:143
5350 msgid ""
5351 "If the guest is a Windows guest then you can use drive letters and "
5352 "backslashes, but you must prefix the path with C<win:> and quote it to "
5353 "protect it from the shell, like this:"
5354 msgstr ""
5355
5356 #. type: verbatim
5357 #: ../examples/guestfs-recipes.pod:147
5358 #, no-wrap
5359 msgid ""
5360 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5361 "\n"
5362 msgstr ""
5363
5364 #. type: textblock
5365 #: ../examples/guestfs-recipes.pod:149
5366 msgid "To get the output as a compressed tarball, do:"
5367 msgstr ""
5368
5369 #. type: verbatim
5370 #: ../examples/guestfs-recipes.pod:151
5371 #, no-wrap
5372 msgid ""
5373 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5374 "\n"
5375 msgstr ""
5376
5377 #. type: textblock
5378 #: ../examples/guestfs-recipes.pod:153
5379 msgid ""
5380 "Although it sounds tempting, this is usually not a reliable way to get a "
5381 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5382 "org/FAQ.html#backup"
5383 msgstr ""
5384
5385 #. type: =head1
5386 #: ../examples/guestfs-recipes.pod:157
5387 msgid "Find out which user is using the most space"
5388 msgstr ""
5389
5390 #. type: textblock
5391 #: ../examples/guestfs-recipes.pod:159
5392 msgid ""
5393 "This simple script examines a Linux guest to find out which user is using "
5394 "the most space in their home directory:"
5395 msgstr ""
5396
5397 #. type: verbatim
5398 #: ../examples/guestfs-recipes.pod:162
5399 #, no-wrap
5400 msgid ""
5401 " #!/bin/sh -\n"
5402 " \n"
5403 msgstr ""
5404
5405 #. type: verbatim
5406 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5407 #, no-wrap
5408 msgid ""
5409 " set -e\n"
5410 " \n"
5411 msgstr ""
5412
5413 #. type: verbatim
5414 #: ../examples/guestfs-recipes.pod:166
5415 #, no-wrap
5416 msgid ""
5417 " vm=\"$1\"\n"
5418 " dir=/home\n"
5419 " \n"
5420 msgstr ""
5421
5422 #. type: verbatim
5423 #: ../examples/guestfs-recipes.pod:169
5424 #, no-wrap
5425 msgid ""
5426 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5427 " \n"
5428 msgstr ""
5429
5430 #. type: verbatim
5431 #: ../examples/guestfs-recipes.pod:171
5432 #, no-wrap
5433 msgid ""
5434 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5435 "     echo -n \"$dir/$d\"\n"
5436 "     echo -ne '\\t'\n"
5437 "     guestfish --remote du \"$dir/$d\";\n"
5438 " done | sort -nr -k 2\n"
5439 " \n"
5440 msgstr ""
5441
5442 #. type: verbatim
5443 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5444 #, no-wrap
5445 msgid ""
5446 " guestfish --remote exit\n"
5447 "\n"
5448 msgstr ""
5449
5450 #. type: =head1
5451 #: ../examples/guestfs-recipes.pod:179
5452 msgid "Get DHCP address from a VM"
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../examples/guestfs-recipes.pod:181
5457 msgid ""
5458 "The link below explains the many different possible techniques for getting "
5459 "the last assigned DHCP address of a virtual machine."
5460 msgstr ""
5461
5462 #. type: textblock
5463 #: ../examples/guestfs-recipes.pod:184
5464 msgid ""
5465 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5466 "a-virtual-machine-disk-image/#content"
5467 msgstr ""
5468
5469 #. type: textblock
5470 #: ../examples/guestfs-recipes.pod:186
5471 msgid ""
5472 "In the libguestfs source examples directory you will find the latest version "
5473 "of the C<virt-dhcp-address.c> program."
5474 msgstr ""
5475
5476 #. type: =head1
5477 #: ../examples/guestfs-recipes.pod:189
5478 msgid "Get the operating system product name string"
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../examples/guestfs-recipes.pod:191
5483 msgid "Save the following script into a file called C<product-name.sh>:"
5484 msgstr ""
5485
5486 #. type: verbatim
5487 #: ../examples/guestfs-recipes.pod:193
5488 #, no-wrap
5489 msgid ""
5490 " #!/bin/sh -\n"
5491 " set -e\n"
5492 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5493 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5494 " guestfish --remote inspect-get-product-name \"$root\"\n"
5495 " guestfish --remote exit\n"
5496 "\n"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../examples/guestfs-recipes.pod:200
5501 msgid "Make the script executable and run it on a named guest:"
5502 msgstr ""
5503
5504 #. type: verbatim
5505 #: ../examples/guestfs-recipes.pod:202
5506 #, no-wrap
5507 msgid ""
5508 " # product-name.sh RHEL60x64\n"
5509 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5510 "\n"
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../examples/guestfs-recipes.pod:205
5515 msgid ""
5516 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5517 "C<xpath> command line tool or from your favourite programming language:"
5518 msgstr ""
5519
5520 #. type: verbatim
5521 #: ../examples/guestfs-recipes.pod:209
5522 #, no-wrap
5523 msgid ""
5524 " # virt-inspector RHEL60x64 > xml\n"
5525 " # xpath '//product_name' < xml\n"
5526 " Found 1 nodes:\n"
5527 " -- NODE --\n"
5528 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5529 "\n"
5530 msgstr ""
5531
5532 #. type: =head1
5533 #: ../examples/guestfs-recipes.pod:215
5534 msgid "Get the default boot kernel for a Linux VM"
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../examples/guestfs-recipes.pod:217
5539 msgid ""
5540 "The link below contains a program to print the default boot kernel for a "
5541 "Linux VM."
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../examples/guestfs-recipes.pod:220
5546 msgid ""
5547 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5548 "kernel-for-a-vm/#content"
5549 msgstr ""
5550
5551 #. type: textblock
5552 #: ../examples/guestfs-recipes.pod:222
5553 msgid ""
5554 "It uses Augeas, and the technique is generally applicable for many different "
5555 "tasks, such as:"
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../examples/guestfs-recipes.pod:229
5560 msgid "listing the user accounts in the guest"
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../examples/guestfs-recipes.pod:233
5565 msgid "what repositories is it configured to use"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:237
5570 msgid "what NTP servers does it connect to"
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../examples/guestfs-recipes.pod:241
5575 msgid "what were the boot messages last time it booted"
5576 msgstr ""
5577
5578 #. type: textblock
5579 #: ../examples/guestfs-recipes.pod:245
5580 msgid "listing who was logged in recently"
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../examples/guestfs-recipes.pod:249
5585 msgid "http://augeas.net/"
5586 msgstr ""
5587
5588 #. type: =head1
5589 #: ../examples/guestfs-recipes.pod:251
5590 msgid "Install RPMs in a guest"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../examples/guestfs-recipes.pod:253
5595 msgid ""
5596 "The link below contains a method to install RPMs in a guest.  In fact the "
5597 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5598 "installs them next time the guest is booted.  You could use this technique "
5599 "to install vital security updates in an offline guest."
5600 msgstr ""
5601
5602 #. type: textblock
5603 #: ../examples/guestfs-recipes.pod:259
5604 msgid ""
5605 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5606 msgstr ""
5607
5608 #. type: =head1
5609 #: ../examples/guestfs-recipes.pod:261
5610 msgid "List applications installed in a VM"
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../examples/guestfs-recipes.pod:263
5615 msgid "Save the following to a file C<list-apps.sh>:"
5616 msgstr ""
5617
5618 #. type: verbatim
5619 #: ../examples/guestfs-recipes.pod:265
5620 #, no-wrap
5621 msgid ""
5622 " #!/bin/sh -\n"
5623 " set -e\n"
5624 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5625 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5626 " guestfish --remote inspect-list-applications \"$root\"\n"
5627 " guestfish --remote exit\n"
5628 "\n"
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../examples/guestfs-recipes.pod:272
5633 msgid ""
5634 "Make the file executable and then you can run it on any named virtual "
5635 "machine:"
5636 msgstr ""
5637
5638 #. type: verbatim
5639 #: ../examples/guestfs-recipes.pod:275
5640 #, no-wrap
5641 msgid ""
5642 " # list-apps.sh WinGuest\n"
5643 " [0] = {\n"
5644 "   app_name: Mozilla Firefox (3.6.12)\n"
5645 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5646 "   app_epoch: 0\n"
5647 "   app_version: 3.6.12 (en-GB)\n"
5648 "   app_release:\n"
5649 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5650 "   app_trans_path:\n"
5651 "   app_publisher: Mozilla\n"
5652 "   app_url: http://www.mozilla.com/en-GB/\n"
5653 "   app_source_package:\n"
5654 "   app_summary:\n"
5655 "   app_description: Mozilla Firefox\n"
5656 " }\n"
5657 " [1] = {\n"
5658 "   app_name: VLC media player\n"
5659 "   app_display_name: VLC media player 1.1.5\n"
5660 "   app_epoch: 0\n"
5661 "   app_version: 1.1.5\n"
5662 "   app_release:\n"
5663 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5664 "   app_trans_path:\n"
5665 "   app_publisher: VideoLAN\n"
5666 "   app_url: http://www.videolan.org/\n"
5667 "   app_source_package:\n"
5668 "   app_summary:\n"
5669 "   app_description:\n"
5670 " }\n"
5671 "\n"
5672 msgstr ""
5673
5674 #. type: textblock
5675 #: ../examples/guestfs-recipes.pod:305
5676 msgid ""
5677 "If you want to run the script on disk images (instead of libvirt virtual "
5678 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5679 ">."
5680 msgstr ""
5681
5682 #. type: =head1
5683 #: ../examples/guestfs-recipes.pod:309
5684 msgid "List files and directories in a VM"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../examples/guestfs-recipes.pod:311
5689 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5690 msgstr ""
5691
5692 #. type: verbatim
5693 #: ../examples/guestfs-recipes.pod:313
5694 #, no-wrap
5695 msgid ""
5696 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5697 "\n"
5698 msgstr ""
5699
5700 #. type: =head1
5701 #: ../examples/guestfs-recipes.pod:315
5702 msgid "List services in a Windows VM"
5703 msgstr ""
5704
5705 #. type: textblock
5706 #: ../examples/guestfs-recipes.pod:317
5707 msgid ""
5708 "The link below contains a script that can be used to list out the services "
5709 "from a Windows VM, and whether those services run at boot time or are loaded "
5710 "on demand."
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../examples/guestfs-recipes.pod:321
5715 msgid ""
5716 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5717 "#content"
5718 msgstr ""
5719
5720 #. type: =head1
5721 #: ../examples/guestfs-recipes.pod:323
5722 msgid "Make a disk image sparse"
5723 msgstr ""
5724
5725 #. type: textblock
5726 #: ../examples/guestfs-recipes.pod:325
5727 msgid ""
5728 "The link below contains some guides for making a disk image sparse (or "
5729 "reintroducing sparseness)."
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../examples/guestfs-recipes.pod:328
5734 msgid ""
5735 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5736 msgstr ""
5737
5738 #. type: =head1
5739 #: ../examples/guestfs-recipes.pod:330
5740 msgid "Monitor disk usage over time"
5741 msgstr ""
5742
5743 #. type: textblock
5744 #: ../examples/guestfs-recipes.pod:332
5745 msgid ""
5746 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5747 "The link below contains a guide."
5748 msgstr ""
5749
5750 #. type: textblock
5751 #: ../examples/guestfs-recipes.pod:335
5752 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5753 msgstr ""
5754
5755 #. type: =head1
5756 #: ../examples/guestfs-recipes.pod:337
5757 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../examples/guestfs-recipes.pod:339
5762 msgid ""
5763 "L<guestfish(1)> plus the tools described in the link below can be used to "
5764 "read out the Windows Event Log from any virtual machine running Windows "
5765 "Vista or a later version."
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../examples/guestfs-recipes.pod:343
5770 msgid ""
5771 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5772 "guestfish/#content"
5773 msgstr ""
5774
5775 #. type: =head1
5776 #: ../examples/guestfs-recipes.pod:345
5777 msgid "Remove root password (Linux)"
5778 msgstr ""
5779
5780 #. type: textblock
5781 #: ../examples/guestfs-recipes.pod:347
5782 msgid ""
5783 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5784 "files.  One use is to remove the root password from a Linux guest:"
5785 msgstr ""
5786
5787 #. type: verbatim
5788 #: ../examples/guestfs-recipes.pod:350
5789 #, no-wrap
5790 msgid ""
5791 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5792 "\n"
5793 msgstr ""
5794
5795 #. type: =head1
5796 #: ../examples/guestfs-recipes.pod:352
5797 msgid "Remove Administrator password (Windows)"
5798 msgstr ""
5799
5800 #. type: textblock
5801 #: ../examples/guestfs-recipes.pod:354
5802 msgid ""
5803 "The link below contains one technique for removing the Administrator "
5804 "password from a Windows VM, or to be more precise, it gives you a command "
5805 "prompt the next time you log in which you can use to bypass any security:"
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../examples/guestfs-recipes.pod:359
5810 msgid ""
5811 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5812 "administrator-password-with-guestfish/"
5813 msgstr ""
5814
5815 #. type: =head1
5816 #: ../examples/guestfs-recipes.pod:361
5817 msgid "Unpack a live CD"
5818 msgstr ""
5819
5820 #. type: textblock
5821 #: ../examples/guestfs-recipes.pod:363
5822 msgid ""
5823 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5824 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5825 "layers, as outlined in the guide below."
5826 msgstr ""
5827
5828 #. type: textblock
5829 #: ../examples/guestfs-recipes.pod:367
5830 msgid ""
5831 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5832 "cd/#content"
5833 msgstr ""
5834
5835 #. type: =head1
5836 #: ../examples/guestfs-recipes.pod:369
5837 msgid "Uploading and downloading files"
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../examples/guestfs-recipes.pod:371
5842 msgid ""
5843 "The link below contains general tips on uploading (copying in)  and "
5844 "downloading (copying out) files from VMs."
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../examples/guestfs-recipes.pod:374
5849 msgid ""
5850 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5851 msgstr ""
5852
5853 #. type: =head1
5854 #: ../examples/guestfs-recipes.pod:376
5855 msgid "Use libguestfs tools on VMware ESX guests"
5856 msgstr ""
5857
5858 #. type: textblock
5859 #: ../examples/guestfs-recipes.pod:378
5860 msgid ""
5861 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5862 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../examples/guestfs-recipes.pod:382
5867 msgid ""
5868 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5869 "guests/#content"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../examples/guestfs-recipes.pod:386
5874 msgid ""
5875 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5876 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5877 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../examples/guestfs-recipes.pod:403
5882 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5883 msgstr ""
5884
5885 #. type: =head2
5886 #: ../fish/guestfish-actions.pod:1
5887 msgid "add-cdrom"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../fish/guestfish-actions.pod:3
5892 #, no-wrap
5893 msgid ""
5894 " add-cdrom filename\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5900 msgid "This function adds a virtual CD-ROM disk image to the guest."
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5905 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5906 msgstr ""
5907
5908 #. type: textblock
5909 #: ../fish/guestfish-actions.pod:15
5910 msgid ""
5911 "This call checks for the existence of C<filename>.  This stops you from "
5912 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5913 "and C<http:> URLs.  To specify those, use the general L</config> call "
5914 "instead."
5915 msgstr ""
5916
5917 #. type: textblock
5918 #: ../fish/guestfish-actions.pod:22
5919 msgid ""
5920 "If you just want to add an ISO file (often you use this as an efficient way "
5921 "to transfer large files into the guest), then you should probably use L</add-"
5922 "drive-ro> instead."
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5927 #: ../fish/guestfish-actions.pod:228
5928 msgid ""
5929 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5930 "instead."
5931 msgstr ""
5932
5933 #. type: textblock
5934 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5935 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5936 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5937 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5938 #: ../fish/guestfish-actions.pod:3381 ../fish/guestfish-actions.pod:3692
5939 #: ../fish/guestfish-actions.pod:3740 ../fish/guestfish-actions.pod:4658
5940 #: ../fish/guestfish-actions.pod:4678 ../fish/guestfish-actions.pod:4697
5941 #: ../fish/guestfish-actions.pod:4735 ../fish/guestfish-actions.pod:5463
5942 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:10
5943 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5944 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
5945 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
5946 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5225
5947 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5847
5948 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7184
5949 #: ../src/guestfs-actions.pod:7215 ../src/guestfs-actions.pod:7275
5950 #: ../src/guestfs-actions.pod:8327 ../src/guestfs-actions.pod:8436
5951 #: ../src/guestfs-actions.pod:8616
5952 msgid ""
5953 "Deprecated functions will not be removed from the API, but the fact that "
5954 "they are deprecated indicates that there are problems with correct use of "
5955 "these functions."
5956 msgstr ""
5957
5958 #. type: =head2
5959 #: ../fish/guestfish-actions.pod:35
5960 msgid "add-domain"
5961 msgstr "add-domain"
5962
5963 #. type: =head2
5964 #: ../fish/guestfish-actions.pod:37
5965 msgid "domain"
5966 msgstr "домен"
5967
5968 #. type: verbatim
5969 #: ../fish/guestfish-actions.pod:39
5970 #, no-wrap
5971 msgid ""
5972 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
5973 "\n"
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../fish/guestfish-actions.pod:41
5978 msgid ""
5979 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5980 "It works by connecting to libvirt, requesting the domain and domain XML from "
5981 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5986 msgid ""
5987 "The number of disks added is returned.  This operation is atomic: if an "
5988 "error is returned, then no disks are added."
5989 msgstr ""
5990
5991 #. type: textblock
5992 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5993 msgid ""
5994 "This function does some minimal checks to make sure the libvirt domain is "
5995 "not running (unless C<readonly> is true).  In a future version we will try "
5996 "to acquire the libvirt lock on each disk."
5997 msgstr ""
5998
5999 #. type: textblock
6000 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6001 msgid ""
6002 "Disks must be accessible locally.  This often means that adding disks from a "
6003 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6004 "unless those disks are accessible via the same device path locally too."
6005 msgstr ""
6006
6007 #. type: textblock
6008 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6009 msgid ""
6010 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6011 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6012 "libvirt URI (or one set through an environment variable, see the libvirt "
6013 "documentation for full details)."
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6018 msgid ""
6019 "The optional C<live> flag controls whether this call will try to connect to "
6020 "a running virtual machine C<guestfsd> process if it sees a suitable "
6021 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6022 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6023 "DAEMONS> for more information."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6028 msgid ""
6029 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6030 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6031 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6032 "as usual."
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6037 msgid ""
6038 "The optional C<readonlydisk> parameter controls what we do for disks which "
6039 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6040 msgstr ""
6041
6042 #. type: =item
6043 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6044 msgid "readonlydisk = \"error\""
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6049 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6050 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6051 msgid "If C<readonly> is false:"
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6056 msgid ""
6057 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6058 "E<gt> flag is found."
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6063 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6064 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6065 msgid "If C<readonly> is true:"
6066 msgstr ""
6067
6068 #. type: textblock
6069 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6070 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6071 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6072 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6073 msgstr ""
6074
6075 #. type: =item
6076 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6077 msgid "readonlydisk = \"read\""
6078 msgstr ""
6079
6080 #. type: textblock
6081 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6082 msgid ""
6083 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6084 "are added read/write."
6085 msgstr ""
6086
6087 #. type: =item
6088 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6089 msgid "readonlydisk = \"write\" (default)"
6090 msgstr ""
6091
6092 #. type: textblock
6093 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6094 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6095 msgstr ""
6096
6097 #. type: =item
6098 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6099 msgid "readonlydisk = \"ignore\""
6100 msgstr ""
6101
6102 #. type: textblock
6103 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6104 msgid "If C<readonly> is true or false:"
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6109 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:122
6114 msgid ""
6115 "The other optional parameters are passed directly through to L</add-drive-"
6116 "opts>."
6117 msgstr ""
6118
6119 #. type: textblock
6120 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6121 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6122 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6123 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6124 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6125 #: ../fish/guestfish-actions.pod:3215 ../fish/guestfish-actions.pod:3430
6126 #: ../fish/guestfish-actions.pod:3593 ../fish/guestfish-actions.pod:3728
6127 #: ../fish/guestfish-actions.pod:5099
6128 msgid ""
6129 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6130 msgstr ""
6131
6132 #. type: =head2
6133 #: ../fish/guestfish-actions.pod:127
6134 msgid "add-drive"
6135 msgstr "add-drive"
6136
6137 #. type: verbatim
6138 #: ../fish/guestfish-actions.pod:129
6139 #, no-wrap
6140 msgid ""
6141 " add-drive filename\n"
6142 "\n"
6143 msgstr ""
6144 " add-drive назва_файла\n"
6145 "\n"
6146
6147 #. type: textblock
6148 #: ../fish/guestfish-actions.pod:131
6149 msgid ""
6150 "This function is the equivalent of calling L</add-drive-opts> with no "
6151 "optional parameters, so the disk is added writable, with the format being "
6152 "detected automatically."
6153 msgstr ""
6154
6155 #. type: textblock
6156 #: ../fish/guestfish-actions.pod:135
6157 msgid ""
6158 "Automatic detection of the format opens you up to a potential security hole "
6159 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6160 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6161 "you should think about replacing calls to this function with calls to L</add-"
6162 "drive-opts>, and specifying the format."
6163 msgstr ""
6164
6165 #. type: =head2
6166 #: ../fish/guestfish-actions.pod:142
6167 msgid "add-drive-opts"
6168 msgstr "add-drive-opts"
6169
6170 #. type: =head2
6171 #: ../fish/guestfish-actions.pod:144
6172 msgid "add"
6173 msgstr "add"
6174
6175 #. type: verbatim
6176 #: ../fish/guestfish-actions.pod:146
6177 #, no-wrap
6178 msgid ""
6179 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6180 "\n"
6181 msgstr ""
6182
6183 #. type: textblock
6184 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6185 msgid ""
6186 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6187 "The first time you call this function, the disk appears as C</dev/sda>, the "
6188 "second time as C</dev/sdb>, and so on."
6189 msgstr ""
6190
6191 #. type: textblock
6192 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6193 msgid ""
6194 "You don't necessarily need to be root when using libguestfs.  However you "
6195 "obviously do need sufficient permissions to access the filename for whatever "
6196 "operations you want to perform (ie. read access if you just want to read the "
6197 "image or write access if you want to modify the image)."
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6202 msgid "This call checks that C<filename> exists."
6203 msgstr ""
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3392
6207 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5262
6208 msgid "The optional arguments are:"
6209 msgstr ""
6210
6211 #. type: =item
6212 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6213 msgid "C<readonly>"
6214 msgstr "C<readonly>"
6215
6216 #. type: textblock
6217 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6218 msgid ""
6219 "If true then the image is treated as read-only.  Writes are still allowed, "
6220 "but they are stored in a temporary snapshot overlay which is discarded at "
6221 "the end.  The disk that you add is not modified."
6222 msgstr ""
6223
6224 #. type: =item
6225 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6226 msgid "C<format>"
6227 msgstr "C<format>"
6228
6229 #. type: textblock
6230 #: ../fish/guestfish-actions.pod:173
6231 msgid ""
6232 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6233 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6234 "include C<raw> and C<qcow2>."
6235 msgstr ""
6236
6237 #. type: textblock
6238 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6239 msgid ""
6240 "Automatic detection of the format opens you up to a potential security hole "
6241 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6242 "RHBZ#642934.  Specifying the format closes this security hole."
6243 msgstr ""
6244
6245 #. type: =item
6246 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6247 msgid "C<iface>"
6248 msgstr "C<iface>"
6249
6250 #. type: textblock
6251 #: ../fish/guestfish-actions.pod:184
6252 msgid ""
6253 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6254 "add-drive-with-if> call (q.v.)"
6255 msgstr ""
6256
6257 #. type: =item
6258 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3242
6259 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4994
6260 msgid "C<name>"
6261 msgstr ""
6262
6263 #. type: textblock
6264 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6265 msgid ""
6266 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6267 "a hint to the guest inspection process if it is available."
6268 msgstr ""
6269
6270 #. type: =head2
6271 #: ../fish/guestfish-actions.pod:196
6272 msgid "add-drive-ro"
6273 msgstr "add-drive-ro"
6274
6275 #. type: =head2
6276 #: ../fish/guestfish-actions.pod:198
6277 msgid "add-ro"
6278 msgstr "add-ro"
6279
6280 #. type: verbatim
6281 #: ../fish/guestfish-actions.pod:200
6282 #, no-wrap
6283 msgid ""
6284 " add-drive-ro filename\n"
6285 "\n"
6286 msgstr ""
6287
6288 #. type: textblock
6289 #: ../fish/guestfish-actions.pod:202
6290 msgid ""
6291 "This function is the equivalent of calling L</add-drive-opts> with the "
6292 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6293 "is added read-only, with the format being detected automatically."
6294 msgstr ""
6295
6296 #. type: =head2
6297 #: ../fish/guestfish-actions.pod:207
6298 msgid "add-drive-ro-with-if"
6299 msgstr ""
6300
6301 #. type: verbatim
6302 #: ../fish/guestfish-actions.pod:209
6303 #, no-wrap
6304 msgid ""
6305 " add-drive-ro-with-if filename iface\n"
6306 "\n"
6307 msgstr ""
6308
6309 #. type: textblock
6310 #: ../fish/guestfish-actions.pod:211
6311 msgid ""
6312 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6313 "interface emulation to use at run time."
6314 msgstr ""
6315
6316 #. type: =head2
6317 #: ../fish/guestfish-actions.pod:221
6318 msgid "add-drive-with-if"
6319 msgstr ""
6320
6321 #. type: verbatim
6322 #: ../fish/guestfish-actions.pod:223
6323 #, no-wrap
6324 msgid ""
6325 " add-drive-with-if filename iface\n"
6326 "\n"
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:225
6331 msgid ""
6332 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6333 "interface emulation to use at run time."
6334 msgstr ""
6335
6336 #. type: =head2
6337 #: ../fish/guestfish-actions.pod:235
6338 msgid "aug-clear"
6339 msgstr ""
6340
6341 #. type: verbatim
6342 #: ../fish/guestfish-actions.pod:237
6343 #, no-wrap
6344 msgid ""
6345 " aug-clear augpath\n"
6346 "\n"
6347 msgstr ""
6348
6349 #. type: textblock
6350 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6351 msgid ""
6352 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6353 "L<augtool(1)> C<clear> command."
6354 msgstr ""
6355
6356 #. type: =head2
6357 #: ../fish/guestfish-actions.pod:242
6358 msgid "aug-close"
6359 msgstr ""
6360
6361 #. type: verbatim
6362 #: ../fish/guestfish-actions.pod:244
6363 #, no-wrap
6364 msgid ""
6365 " aug-close\n"
6366 "\n"
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../fish/guestfish-actions.pod:246
6371 msgid ""
6372 "Close the current Augeas handle and free up any resources used by it.  After "
6373 "calling this, you have to call L</aug-init> again before you can use any "
6374 "other Augeas functions."
6375 msgstr ""
6376
6377 #. type: =head2
6378 #: ../fish/guestfish-actions.pod:251
6379 msgid "aug-defnode"
6380 msgstr ""
6381
6382 #. type: verbatim
6383 #: ../fish/guestfish-actions.pod:253
6384 #, no-wrap
6385 msgid ""
6386 " aug-defnode name expr val\n"
6387 "\n"
6388 msgstr ""
6389
6390 #. type: textblock
6391 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6392 msgid ""
6393 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6394 msgstr ""
6395
6396 #. type: textblock
6397 #: ../fish/guestfish-actions.pod:258
6398 msgid ""
6399 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6400 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6401 "containing that single node."
6402 msgstr ""
6403
6404 #. type: textblock
6405 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6406 msgid ""
6407 "On success this returns a pair containing the number of nodes in the "
6408 "nodeset, and a boolean flag if a node was created."
6409 msgstr ""
6410
6411 #. type: =head2
6412 #: ../fish/guestfish-actions.pod:266
6413 msgid "aug-defvar"
6414 msgstr ""
6415
6416 #. type: verbatim
6417 #: ../fish/guestfish-actions.pod:268
6418 #, no-wrap
6419 msgid ""
6420 " aug-defvar name expr\n"
6421 "\n"
6422 msgstr ""
6423
6424 #. type: textblock
6425 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6426 msgid ""
6427 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6428 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6429 msgstr ""
6430
6431 #. type: textblock
6432 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6433 msgid ""
6434 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6435 "evaluates to something which is not a nodeset."
6436 msgstr ""
6437
6438 #. type: =head2
6439 #: ../fish/guestfish-actions.pod:277
6440 msgid "aug-get"
6441 msgstr ""
6442
6443 #. type: verbatim
6444 #: ../fish/guestfish-actions.pod:279
6445 #, no-wrap
6446 msgid ""
6447 " aug-get augpath\n"
6448 "\n"
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6453 msgid ""
6454 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6455 "node, the C<value> is returned."
6456 msgstr ""
6457
6458 #. type: =head2
6459 #: ../fish/guestfish-actions.pod:284
6460 msgid "aug-init"
6461 msgstr ""
6462
6463 #. type: verbatim
6464 #: ../fish/guestfish-actions.pod:286
6465 #, no-wrap
6466 msgid ""
6467 " aug-init root flags\n"
6468 "\n"
6469 msgstr ""
6470
6471 #. type: textblock
6472 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6473 msgid ""
6474 "Create a new Augeas handle for editing configuration files.  If there was "
6475 "any previous Augeas handle associated with this guestfs session, then it is "
6476 "closed."
6477 msgstr ""
6478
6479 #. type: textblock
6480 #: ../fish/guestfish-actions.pod:292
6481 msgid "You must call this before using any other L</aug-*> commands."
6482 msgstr ""
6483
6484 #. type: textblock
6485 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6486 msgid ""
6487 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6488 msgstr ""
6489
6490 #. type: textblock
6491 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6492 msgid ""
6493 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6494 "logical I<or> of the following integers:"
6495 msgstr ""
6496
6497 #. type: =item
6498 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6499 msgid "C<AUG_SAVE_BACKUP> = 1"
6500 msgstr "C<AUG_SAVE_BACKUP> = 1"
6501
6502 #. type: textblock
6503 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6504 msgid "Keep the original file with a C<.augsave> extension."
6505 msgstr ""
6506
6507 #. type: =item
6508 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6509 msgid "C<AUG_SAVE_NEWFILE> = 2"
6510 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6511
6512 #. type: textblock
6513 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6514 msgid ""
6515 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6516 "original.  Overrides C<AUG_SAVE_BACKUP>."
6517 msgstr ""
6518
6519 #. type: =item
6520 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6521 msgid "C<AUG_TYPE_CHECK> = 4"
6522 msgstr "C<AUG_TYPE_CHECK> = 4"
6523
6524 #. type: textblock
6525 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6526 msgid "Typecheck lenses."
6527 msgstr ""
6528
6529 #. type: textblock
6530 #: ../fish/guestfish-actions.pod:317
6531 msgid ""
6532 "This option is only useful when debugging Augeas lenses.  Use of this option "
6533 "may require additional memory for the libguestfs appliance.  You may need to "
6534 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6535 msgstr ""
6536
6537 #. type: =item
6538 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6539 msgid "C<AUG_NO_STDINC> = 8"
6540 msgstr "C<AUG_NO_STDINC> = 8"
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6544 msgid "Do not use standard load path for modules."
6545 msgstr ""
6546
6547 #. type: =item
6548 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6549 msgid "C<AUG_SAVE_NOOP> = 16"
6550 msgstr "C<AUG_SAVE_NOOP> = 16"
6551
6552 #. type: textblock
6553 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6554 msgid "Make save a no-op, just record what would have been changed."
6555 msgstr ""
6556
6557 #. type: =item
6558 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6559 msgid "C<AUG_NO_LOAD> = 32"
6560 msgstr "C<AUG_NO_LOAD> = 32"
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:332
6564 msgid "Do not load the tree in L</aug-init>."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:336
6569 msgid "To close the handle, you can call L</aug-close>."
6570 msgstr ""
6571
6572 #. type: textblock
6573 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6574 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6575 msgstr ""
6576
6577 #. type: =head2
6578 #: ../fish/guestfish-actions.pod:340
6579 msgid "aug-insert"
6580 msgstr ""
6581
6582 #. type: verbatim
6583 #: ../fish/guestfish-actions.pod:342
6584 #, no-wrap
6585 msgid ""
6586 " aug-insert augpath label true|false\n"
6587 "\n"
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6592 msgid ""
6593 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6594 "or after C<path> (depending on the boolean flag C<before>)."
6595 msgstr ""
6596
6597 #. type: textblock
6598 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6599 msgid ""
6600 "C<path> must match exactly one existing node in the tree, and C<label> must "
6601 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6602 msgstr ""
6603
6604 #. type: =head2
6605 #: ../fish/guestfish-actions.pod:352
6606 msgid "aug-load"
6607 msgstr ""
6608
6609 #. type: verbatim
6610 #: ../fish/guestfish-actions.pod:354
6611 #, no-wrap
6612 msgid ""
6613 " aug-load\n"
6614 "\n"
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6619 msgid "Load files into the tree."
6620 msgstr "Завантажити файли до ієрархії."
6621
6622 #. type: textblock
6623 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6624 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6625 msgstr ""
6626
6627 #. type: =head2
6628 #: ../fish/guestfish-actions.pod:361
6629 msgid "aug-ls"
6630 msgstr ""
6631
6632 #. type: verbatim
6633 #: ../fish/guestfish-actions.pod:363
6634 #, no-wrap
6635 msgid ""
6636 " aug-ls augpath\n"
6637 "\n"
6638 msgstr ""
6639
6640 #. type: textblock
6641 #: ../fish/guestfish-actions.pod:365
6642 msgid ""
6643 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6644 "resulting nodes into alphabetical order."
6645 msgstr ""
6646
6647 #. type: =head2
6648 #: ../fish/guestfish-actions.pod:368
6649 msgid "aug-match"
6650 msgstr ""
6651
6652 #. type: verbatim
6653 #: ../fish/guestfish-actions.pod:370
6654 #, no-wrap
6655 msgid ""
6656 " aug-match augpath\n"
6657 "\n"
6658 msgstr ""
6659
6660 #. type: textblock
6661 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6662 msgid ""
6663 "Returns a list of paths which match the path expression C<path>.  The "
6664 "returned paths are sufficiently qualified so that they match exactly one "
6665 "node in the current tree."
6666 msgstr ""
6667
6668 #. type: =head2
6669 #: ../fish/guestfish-actions.pod:376
6670 msgid "aug-mv"
6671 msgstr ""
6672
6673 #. type: verbatim
6674 #: ../fish/guestfish-actions.pod:378
6675 #, no-wrap
6676 msgid ""
6677 " aug-mv src dest\n"
6678 "\n"
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6683 msgid ""
6684 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6685 "C<dest> is overwritten if it exists."
6686 msgstr ""
6687
6688 #. type: =head2
6689 #: ../fish/guestfish-actions.pod:383
6690 msgid "aug-rm"
6691 msgstr ""
6692
6693 #. type: verbatim
6694 #: ../fish/guestfish-actions.pod:385
6695 #, no-wrap
6696 msgid ""
6697 " aug-rm augpath\n"
6698 "\n"
6699 msgstr ""
6700
6701 #. type: textblock
6702 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6703 msgid "Remove C<path> and all of its children."
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6708 msgid "On success this returns the number of entries which were removed."
6709 msgstr ""
6710
6711 #. type: =head2
6712 #: ../fish/guestfish-actions.pod:391
6713 msgid "aug-save"
6714 msgstr ""
6715
6716 #. type: verbatim
6717 #: ../fish/guestfish-actions.pod:393
6718 #, no-wrap
6719 msgid ""
6720 " aug-save\n"
6721 "\n"
6722 msgstr ""
6723
6724 #. type: textblock
6725 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6726 msgid "This writes all pending changes to disk."
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:397
6731 msgid ""
6732 "The flags which were passed to L</aug-init> affect exactly how files are "
6733 "saved."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:400
6738 msgid "aug-set"
6739 msgstr ""
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:402
6743 #, no-wrap
6744 msgid ""
6745 " aug-set augpath val\n"
6746 "\n"
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6751 msgid "Set the value associated with C<path> to C<val>."
6752 msgstr ""
6753
6754 #. type: textblock
6755 #: ../fish/guestfish-actions.pod:406
6756 msgid ""
6757 "In the Augeas API, it is possible to clear a node by setting the value to "
6758 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6759 "this call.  Instead you must use the L</aug-clear> call."
6760 msgstr ""
6761
6762 #. type: =head2
6763 #: ../fish/guestfish-actions.pod:411
6764 msgid "available"
6765 msgstr ""
6766
6767 #. type: verbatim
6768 #: ../fish/guestfish-actions.pod:413
6769 #, no-wrap
6770 msgid ""
6771 " available 'groups ...'\n"
6772 "\n"
6773 msgstr ""
6774
6775 #. type: textblock
6776 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6777 msgid ""
6778 "This command is used to check the availability of some groups of "
6779 "functionality in the appliance, which not all builds of the libguestfs "
6780 "appliance will be able to provide."
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:419
6785 msgid ""
6786 "The libguestfs groups, and the functions that those groups correspond to, "
6787 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6788 "runtime by calling L</available-all-groups>."
6789 msgstr ""
6790
6791 #. type: textblock
6792 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6793 msgid ""
6794 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6795 "\"]> would check for the availability of the Linux inotify functions and "
6796 "Augeas (configuration file editing) functions."
6797 msgstr ""
6798
6799 #. type: textblock
6800 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6801 msgid "The command returns no error if I<all> requested groups are available."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6806 msgid ""
6807 "It fails with an error if one or more of the requested groups is unavailable "
6808 "in the appliance."
6809 msgstr ""
6810
6811 #. type: textblock
6812 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6813 msgid ""
6814 "If an unknown group name is included in the list of groups then an error is "
6815 "always returned."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6820 msgid "I<Notes:>"
6821 msgstr "I<Нотатки:>"
6822
6823 #. type: textblock
6824 #: ../fish/guestfish-actions.pod:443
6825 msgid "You must call L</launch> before calling this function."
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6830 msgid ""
6831 "The reason is because we don't know what groups are supported by the "
6832 "appliance/daemon until it is running and can be queried."
6833 msgstr ""
6834
6835 #. type: textblock
6836 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6837 msgid ""
6838 "If a group of functions is available, this does not necessarily mean that "
6839 "they will work.  You still have to check for errors when calling individual "
6840 "API functions even if they are available."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6845 msgid ""
6846 "It is usually the job of distro packagers to build complete functionality "
6847 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6848 "with all requirements satisfied, will support everything."
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:465
6853 msgid ""
6854 "This call was added in version C<1.0.80>.  In previous versions of "
6855 "libguestfs all you could do would be to speculatively execute a command to "
6856 "find out if the daemon implemented it.  See also L</version>."
6857 msgstr ""
6858
6859 #. type: =head2
6860 #: ../fish/guestfish-actions.pod:472
6861 msgid "available-all-groups"
6862 msgstr ""
6863
6864 #. type: verbatim
6865 #: ../fish/guestfish-actions.pod:474
6866 #, no-wrap
6867 msgid ""
6868 " available-all-groups\n"
6869 "\n"
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:476
6874 msgid ""
6875 "This command returns a list of all optional groups that this daemon knows "
6876 "about.  Note this returns both supported and unsupported groups.  To find "
6877 "out which ones the daemon can actually support you have to call L</"
6878 "available> on each member of the returned list."
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:482
6883 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6884 msgstr ""
6885
6886 #. type: =head2
6887 #: ../fish/guestfish-actions.pod:484
6888 msgid "base64-in"
6889 msgstr ""
6890
6891 #. type: verbatim
6892 #: ../fish/guestfish-actions.pod:486
6893 #, no-wrap
6894 msgid ""
6895 " base64-in (base64file|-) filename\n"
6896 "\n"
6897 msgstr ""
6898
6899 #. type: textblock
6900 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6901 msgid ""
6902 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6903 msgstr ""
6904
6905 #. type: textblock
6906 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6907 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6908 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6909 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6910 #: ../fish/guestfish-actions.pod:4955 ../fish/guestfish-actions.pod:4967
6911 #: ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4989
6912 #: ../fish/guestfish-actions.pod:5120 ../fish/guestfish-actions.pod:5129
6913 #: ../fish/guestfish-actions.pod:5183 ../fish/guestfish-actions.pod:5206
6914 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6915 msgstr ""
6916
6917 #. type: =head2
6918 #: ../fish/guestfish-actions.pod:493
6919 msgid "base64-out"
6920 msgstr ""
6921
6922 #. type: verbatim
6923 #: ../fish/guestfish-actions.pod:495
6924 #, no-wrap
6925 msgid ""
6926 " base64-out filename (base64file|-)\n"
6927 "\n"
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6932 msgid ""
6933 "This command downloads the contents of C<filename>, writing it out to local "
6934 "file C<base64file> encoded as base64."
6935 msgstr ""
6936
6937 #. type: =head2
6938 #: ../fish/guestfish-actions.pod:502
6939 msgid "blockdev-flushbufs"
6940 msgstr ""
6941
6942 #. type: verbatim
6943 #: ../fish/guestfish-actions.pod:504
6944 #, no-wrap
6945 msgid ""
6946 " blockdev-flushbufs device\n"
6947 "\n"
6948 msgstr ""
6949
6950 #. type: textblock
6951 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6952 msgid ""
6953 "This tells the kernel to flush internal buffers associated with C<device>."
6954 msgstr ""
6955
6956 #. type: textblock
6957 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6958 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6959 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6960 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6961 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6962 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6963 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6964 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6965 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6966 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6967 msgid "This uses the L<blockdev(8)> command."
6968 msgstr ""
6969
6970 #. type: =head2
6971 #: ../fish/guestfish-actions.pod:511
6972 msgid "blockdev-getbsz"
6973 msgstr ""
6974
6975 #. type: verbatim
6976 #: ../fish/guestfish-actions.pod:513
6977 #, no-wrap
6978 msgid ""
6979 " blockdev-getbsz device\n"
6980 "\n"
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6985 msgid "This returns the block size of a device."
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6990 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6991 msgid ""
6992 "(Note this is different from both I<size in blocks> and I<filesystem block "
6993 "size>)."
6994 msgstr ""
6995
6996 #. type: =head2
6997 #: ../fish/guestfish-actions.pod:522
6998 msgid "blockdev-getro"
6999 msgstr ""
7000
7001 #. type: verbatim
7002 #: ../fish/guestfish-actions.pod:524
7003 #, no-wrap
7004 msgid ""
7005 " blockdev-getro device\n"
7006 "\n"
7007 msgstr ""
7008
7009 #. type: textblock
7010 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7011 msgid ""
7012 "Returns a boolean indicating if the block device is read-only (true if read-"
7013 "only, false if not)."
7014 msgstr ""
7015
7016 #. type: =head2
7017 #: ../fish/guestfish-actions.pod:531
7018 msgid "blockdev-getsize64"
7019 msgstr ""
7020
7021 #. type: verbatim
7022 #: ../fish/guestfish-actions.pod:533
7023 #, no-wrap
7024 msgid ""
7025 " blockdev-getsize64 device\n"
7026 "\n"
7027 msgstr ""
7028
7029 #. type: textblock
7030 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7031 msgid "This returns the size of the device in bytes."
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:537
7036 msgid "See also L</blockdev-getsz>."
7037 msgstr "Див. також L</blockdev-getsz>."
7038
7039 #. type: =head2
7040 #: ../fish/guestfish-actions.pod:541
7041 msgid "blockdev-getss"
7042 msgstr ""
7043
7044 #. type: verbatim
7045 #: ../fish/guestfish-actions.pod:543
7046 #, no-wrap
7047 msgid ""
7048 " blockdev-getss device\n"
7049 "\n"
7050 msgstr ""
7051
7052 #. type: textblock
7053 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7054 msgid ""
7055 "This returns the size of sectors on a block device.  Usually 512, but can be "
7056 "larger for modern devices."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:548
7061 msgid ""
7062 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7063 msgstr ""
7064
7065 #. type: =head2
7066 #: ../fish/guestfish-actions.pod:553
7067 msgid "blockdev-getsz"
7068 msgstr ""
7069
7070 #. type: verbatim
7071 #: ../fish/guestfish-actions.pod:555
7072 #, no-wrap
7073 msgid ""
7074 " blockdev-getsz device\n"
7075 "\n"
7076 msgstr ""
7077
7078 #. type: textblock
7079 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7080 msgid ""
7081 "This returns the size of the device in units of 512-byte sectors (even if "
7082 "the sectorsize isn't 512 bytes ... weird)."
7083 msgstr ""
7084
7085 #. type: textblock
7086 #: ../fish/guestfish-actions.pod:560
7087 msgid ""
7088 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7089 "blockdev-getsize64> for the more useful I<size in bytes>."
7090 msgstr ""
7091
7092 #. type: =head2
7093 #: ../fish/guestfish-actions.pod:566
7094 msgid "blockdev-rereadpt"
7095 msgstr ""
7096
7097 #. type: verbatim
7098 #: ../fish/guestfish-actions.pod:568
7099 #, no-wrap
7100 msgid ""
7101 " blockdev-rereadpt device\n"
7102 "\n"
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7107 msgid "Reread the partition table on C<device>."
7108 msgstr ""
7109
7110 #. type: =head2
7111 #: ../fish/guestfish-actions.pod:574
7112 msgid "blockdev-setbsz"
7113 msgstr ""
7114
7115 #. type: verbatim
7116 #: ../fish/guestfish-actions.pod:576
7117 #, no-wrap
7118 msgid ""
7119 " blockdev-setbsz device blocksize\n"
7120 "\n"
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7125 msgid "This sets the block size of a device."
7126 msgstr ""
7127
7128 #. type: =head2
7129 #: ../fish/guestfish-actions.pod:585
7130 msgid "blockdev-setro"
7131 msgstr ""
7132
7133 #. type: verbatim
7134 #: ../fish/guestfish-actions.pod:587
7135 #, no-wrap
7136 msgid ""
7137 " blockdev-setro device\n"
7138 "\n"
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7143 msgid "Sets the block device named C<device> to read-only."
7144 msgstr ""
7145
7146 #. type: =head2
7147 #: ../fish/guestfish-actions.pod:593
7148 msgid "blockdev-setrw"
7149 msgstr ""
7150
7151 #. type: verbatim
7152 #: ../fish/guestfish-actions.pod:595
7153 #, no-wrap
7154 msgid ""
7155 " blockdev-setrw device\n"
7156 "\n"
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7161 msgid "Sets the block device named C<device> to read-write."
7162 msgstr ""
7163
7164 #. type: =head2
7165 #: ../fish/guestfish-actions.pod:601
7166 msgid "btrfs-filesystem-resize"
7167 msgstr ""
7168
7169 #. type: verbatim
7170 #: ../fish/guestfish-actions.pod:603
7171 #, no-wrap
7172 msgid ""
7173 " btrfs-filesystem-resize mountpoint [size:N]\n"
7174 "\n"
7175 msgstr ""
7176
7177 #. type: textblock
7178 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7179 msgid "This command resizes a btrfs filesystem."
7180 msgstr ""
7181
7182 #. type: textblock
7183 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7184 msgid ""
7185 "Note that unlike other resize calls, the filesystem has to be mounted and "
7186 "the parameter is the mountpoint not the device (this is a requirement of "
7187 "btrfs itself)."
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3164
7192 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:5029
7193 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4890
7194 #: ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:7762
7195 msgid "The optional parameters are:"
7196 msgstr ""
7197
7198 #. type: =item
7199 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3707
7200 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5790
7201 msgid "C<size>"
7202 msgstr "C<розмір>"
7203
7204 #. type: textblock
7205 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7206 msgid ""
7207 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7208 "resized to the maximum size."
7209 msgstr ""
7210
7211 #. type: textblock
7212 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7213 msgid "See also L<btrfs(8)>."
7214 msgstr "Див. також L<btrfs(8)>."
7215
7216 #. type: =head2
7217 #: ../fish/guestfish-actions.pod:626
7218 msgid "case-sensitive-path"
7219 msgstr ""
7220
7221 #. type: verbatim
7222 #: ../fish/guestfish-actions.pod:628
7223 #, no-wrap
7224 msgid ""
7225 " case-sensitive-path path\n"
7226 "\n"
7227 msgstr ""
7228
7229 #. type: textblock
7230 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7231 msgid ""
7232 "This can be used to resolve case insensitive paths on a filesystem which is "
7233 "case sensitive.  The use case is to resolve paths which you have read from "
7234 "Windows configuration files or the Windows Registry, to the true path."
7235 msgstr ""
7236
7237 #. type: textblock
7238 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7239 msgid ""
7240 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7241 "(and probably others), which is that although the underlying filesystem is "
7242 "case-insensitive, the driver exports the filesystem to Linux as case-"
7243 "sensitive."
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7248 msgid ""
7249 "One consequence of this is that special directories such as C<c:\\windows> "
7250 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7251 "precise details of how they were created.  In Windows itself this would not "
7252 "be a problem."
7253 msgstr ""
7254
7255 #. type: textblock
7256 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7257 msgid ""
7258 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7259 "#posixfilenames1>"
7260 msgstr ""
7261
7262 #. type: textblock
7263 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7264 msgid ""
7265 "This function resolves the true case of each element in the path and returns "
7266 "the case-sensitive path."
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../fish/guestfish-actions.pod:652
7271 msgid ""
7272 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7273 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7274 "the directories were originally created under Windows)."
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7279 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7280 msgstr ""
7281
7282 #. type: textblock
7283 #: ../fish/guestfish-actions.pod:660
7284 msgid "See also L</realpath>."
7285 msgstr "Див. також L</realpath>."
7286
7287 #. type: =head2
7288 #: ../fish/guestfish-actions.pod:662
7289 msgid "cat"
7290 msgstr "cat"
7291
7292 #. type: verbatim
7293 #: ../fish/guestfish-actions.pod:664
7294 #, no-wrap
7295 msgid ""
7296 " cat path\n"
7297 "\n"
7298 msgstr ""
7299 " cat шлях\n"
7300 "\n"
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4134
7304 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6446
7305 msgid "Return the contents of the file named C<path>."
7306 msgstr ""
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:668
7310 msgid ""
7311 "Note that this function cannot correctly handle binary files (specifically, "
7312 "files containing C<\\0> character which is treated as end of string).  For "
7313 "those you need to use the L</read-file> or L</download> functions which have "
7314 "a more complex interface."
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7319 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7320 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7321 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7322 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7323 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7324 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7325 #: ../fish/guestfish-actions.pod:4004 ../fish/guestfish-actions.pod:4019
7326 #: ../fish/guestfish-actions.pod:4095 ../fish/guestfish-actions.pod:4112
7327 #: ../fish/guestfish-actions.pod:4127 ../fish/guestfish-actions.pod:4796
7328 #: ../fish/guestfish-actions.pod:4842 ../fish/guestfish-actions.pod:4927
7329 #: ../fish/guestfish-actions.pod:4942 ../fish/guestfish-actions.pod:5427
7330 #: ../fish/guestfish-actions.pod:5439 ../fish/guestfish-actions.pod:5457
7331 #: ../fish/guestfish-actions.pod:5474 ../fish/guestfish-actions.pod:5484
7332 #: ../fish/guestfish-actions.pod:5538 ../fish/guestfish-actions.pod:5548
7333 #: ../fish/guestfish-actions.pod:5577 ../fish/guestfish-actions.pod:5587
7334 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7335 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7336 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7337 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7338 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7339 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7340 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7341 #: ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6254
7342 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6411
7343 #: ../src/guestfs-actions.pod:6435 ../src/guestfs-actions.pod:7390
7344 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7591
7345 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:8400
7346 #: ../src/guestfs-actions.pod:8420 ../src/guestfs-actions.pod:8453
7347 #: ../src/guestfs-actions.pod:8472 ../src/guestfs-actions.pod:8491
7348 #: ../src/guestfs-actions.pod:8582 ../src/guestfs-actions.pod:8601
7349 #: ../src/guestfs-actions.pod:8647 ../src/guestfs-actions.pod:8666
7350 msgid ""
7351 "Because of the message protocol, there is a transfer limit of somewhere "
7352 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7353 msgstr ""
7354
7355 #. type: =head2
7356 #: ../fish/guestfish-actions.pod:676
7357 msgid "checksum"
7358 msgstr "checksum"
7359
7360 #. type: verbatim
7361 #: ../fish/guestfish-actions.pod:678
7362 #, no-wrap
7363 msgid ""
7364 " checksum csumtype path\n"
7365 "\n"
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7370 msgid ""
7371 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7372 msgstr ""
7373
7374 #. type: textblock
7375 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7376 msgid ""
7377 "The type of checksum to compute is given by the C<csumtype> parameter which "
7378 "must have one of the following values:"
7379 msgstr ""
7380
7381 #. type: =item
7382 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7383 msgid "C<crc>"
7384 msgstr "C<crc>"
7385
7386 #. type: textblock
7387 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7388 msgid ""
7389 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7390 "C<cksum> command."
7391 msgstr ""
7392
7393 #. type: =item
7394 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7395 msgid "C<md5>"
7396 msgstr "C<md5>"
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7400 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7401 msgstr ""
7402
7403 #. type: =item
7404 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7405 msgid "C<sha1>"
7406 msgstr "C<sha1>"
7407
7408 #. type: textblock
7409 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7410 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7411 msgstr ""
7412
7413 #. type: =item
7414 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7415 msgid "C<sha224>"
7416 msgstr "C<sha224>"
7417
7418 #. type: textblock
7419 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7420 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7421 msgstr ""
7422
7423 #. type: =item
7424 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7425 msgid "C<sha256>"
7426 msgstr "C<sha256>"
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7430 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7431 msgstr ""
7432
7433 #. type: =item
7434 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7435 msgid "C<sha384>"
7436 msgstr "C<sha384>"
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7440 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7441 msgstr ""
7442
7443 #. type: =item
7444 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7445 msgid "C<sha512>"
7446 msgstr "C<sha512>"
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7450 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7451 msgstr ""
7452
7453 #. type: textblock
7454 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7455 msgid "The checksum is returned as a printable string."
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:721
7460 msgid "To get the checksum for a device, use L</checksum-device>."
7461 msgstr ""
7462
7463 #. type: textblock
7464 #: ../fish/guestfish-actions.pod:723
7465 msgid "To get the checksums for many files, use L</checksums-out>."
7466 msgstr ""
7467
7468 #. type: =head2
7469 #: ../fish/guestfish-actions.pod:725
7470 msgid "checksum-device"
7471 msgstr "checksum-device"
7472
7473 #. type: verbatim
7474 #: ../fish/guestfish-actions.pod:727
7475 #, no-wrap
7476 msgid ""
7477 " checksum-device csumtype device\n"
7478 "\n"
7479 msgstr ""
7480
7481 #. type: textblock
7482 #: ../fish/guestfish-actions.pod:729
7483 msgid ""
7484 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7485 "device named C<device>.  For the types of checksums supported see the L</"
7486 "checksum> command."
7487 msgstr ""
7488
7489 #. type: =head2
7490 #: ../fish/guestfish-actions.pod:733
7491 msgid "checksums-out"
7492 msgstr ""
7493
7494 #. type: verbatim
7495 #: ../fish/guestfish-actions.pod:735
7496 #, no-wrap
7497 msgid ""
7498 " checksums-out csumtype directory (sumsfile|-)\n"
7499 "\n"
7500 msgstr ""
7501
7502 #. type: textblock
7503 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7504 msgid ""
7505 "This command computes the checksums of all regular files in C<directory> and "
7506 "then emits a list of those checksums to the local output file C<sumsfile>."
7507 msgstr ""
7508
7509 #. type: textblock
7510 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7511 msgid ""
7512 "This can be used for verifying the integrity of a virtual machine.  However "
7513 "to be properly secure you should pay attention to the output of the checksum "
7514 "command (it uses the ones from GNU coreutils).  In particular when the "
7515 "filename is not printable, coreutils uses a special backslash syntax.  For "
7516 "more information, see the GNU coreutils info file."
7517 msgstr ""
7518
7519 #. type: =head2
7520 #: ../fish/guestfish-actions.pod:751
7521 msgid "chmod"
7522 msgstr "chmod"
7523
7524 #. type: verbatim
7525 #: ../fish/guestfish-actions.pod:753
7526 #, no-wrap
7527 msgid ""
7528 " chmod mode path\n"
7529 "\n"
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7534 msgid ""
7535 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7536 "supported."
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7541 msgid ""
7542 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7543 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7544 "C<700>."
7545 msgstr ""
7546
7547 #. type: textblock
7548 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3356
7549 #: ../fish/guestfish-actions.pod:3495 ../fish/guestfish-actions.pod:3505
7550 #: ../fish/guestfish-actions.pod:3515 ../src/guestfs-actions.pod:1117
7551 #: ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5402
7552 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
7553 msgid "The mode actually set is affected by the umask."
7554 msgstr ""
7555
7556 #. type: =head2
7557 #: ../fish/guestfish-actions.pod:764
7558 msgid "chown"
7559 msgstr "chown"
7560
7561 #. type: verbatim
7562 #: ../fish/guestfish-actions.pod:766
7563 #, no-wrap
7564 msgid ""
7565 " chown owner group path\n"
7566 "\n"
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7571 msgid "Change the file owner to C<owner> and group to C<group>."
7572 msgstr ""
7573
7574 #. type: textblock
7575 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7576 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7577 msgid ""
7578 "Only numeric uid and gid are supported.  If you want to use names, you will "
7579 "need to locate and parse the password file yourself (Augeas support makes "
7580 "this relatively easy)."
7581 msgstr ""
7582
7583 #. type: =head2
7584 #: ../fish/guestfish-actions.pod:774
7585 msgid "command"
7586 msgstr "command"
7587
7588 #. type: verbatim
7589 #: ../fish/guestfish-actions.pod:776
7590 #, no-wrap
7591 msgid ""
7592 " command 'arguments ...'\n"
7593 "\n"
7594 msgstr ""
7595 " command 'параметри...'\n"
7596 "\n"
7597
7598 #. type: textblock
7599 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7600 msgid ""
7601 "This call runs a command from the guest filesystem.  The filesystem must be "
7602 "mounted, and must contain a compatible operating system (ie. something "
7603 "Linux, with the same or compatible processor architecture)."
7604 msgstr ""
7605
7606 #. type: textblock
7607 #: ../fish/guestfish-actions.pod:783
7608 msgid ""
7609 "The single parameter is an argv-style list of arguments.  The first element "
7610 "is the name of the program to run.  Subsequent elements are parameters.  The "
7611 "list must be non-empty (ie. must contain a program name).  Note that the "
7612 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7613 msgstr ""
7614
7615 #. type: textblock
7616 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7617 msgid "The return value is anything printed to I<stdout> by the command."
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7622 msgid ""
7623 "If the command returns a non-zero exit status, then this function returns an "
7624 "error message.  The error message string is the content of I<stderr> from "
7625 "the command."
7626 msgstr ""
7627
7628 #. type: textblock
7629 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7630 msgid ""
7631 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7632 "bin>.  If you require a program from another location, you should provide "
7633 "the full path in the first parameter."
7634 msgstr ""
7635
7636 #. type: textblock
7637 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7638 msgid ""
7639 "Shared libraries and data files required by the program must be available on "
7640 "filesystems which are mounted in the correct places.  It is the caller's "
7641 "responsibility to ensure all filesystems that are needed are mounted at the "
7642 "right locations."
7643 msgstr ""
7644
7645 #. type: =head2
7646 #: ../fish/guestfish-actions.pod:811
7647 msgid "command-lines"
7648 msgstr ""
7649
7650 #. type: verbatim
7651 #: ../fish/guestfish-actions.pod:813
7652 #, no-wrap
7653 msgid ""
7654 " command-lines 'arguments ...'\n"
7655 "\n"
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:815
7660 msgid ""
7661 "This is the same as L</command>, but splits the result into a list of lines."
7662 msgstr ""
7663
7664 #. type: textblock
7665 #: ../fish/guestfish-actions.pod:818
7666 msgid "See also: L</sh-lines>"
7667 msgstr "Див. також L</sh-lines>"
7668
7669 #. type: =head2
7670 #: ../fish/guestfish-actions.pod:823
7671 msgid "compress-device-out"
7672 msgstr ""
7673
7674 #. type: verbatim
7675 #: ../fish/guestfish-actions.pod:825
7676 #, no-wrap
7677 msgid ""
7678 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7679 "\n"
7680 msgstr ""
7681
7682 #. type: textblock
7683 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7684 msgid ""
7685 "This command compresses C<device> and writes it out to the local file "
7686 "C<zdevice>."
7687 msgstr ""
7688
7689 #. type: textblock
7690 #: ../fish/guestfish-actions.pod:830
7691 msgid ""
7692 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7693 "compress-out>."
7694 msgstr ""
7695
7696 #. type: =head2
7697 #: ../fish/guestfish-actions.pod:837
7698 msgid "compress-out"
7699 msgstr ""
7700
7701 #. type: verbatim
7702 #: ../fish/guestfish-actions.pod:839
7703 #, no-wrap
7704 msgid ""
7705 " compress-out ctype file (zfile|-) [level:N]\n"
7706 "\n"
7707 msgstr ""
7708
7709 #. type: textblock
7710 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7711 msgid ""
7712 "This command compresses C<file> and writes it out to the local file C<zfile>."
7713 msgstr ""
7714
7715 #. type: textblock
7716 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7717 msgid ""
7718 "The compression program used is controlled by the C<ctype> parameter.  "
7719 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7720 "Some compression types may not be supported by particular builds of "
7721 "libguestfs, in which case you will get an error containing the substring "
7722 "\"not supported\"."
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7727 msgid ""
7728 "The optional C<level> parameter controls compression level.  The meaning and "
7729 "default for this parameter depends on the compression program being used."
7730 msgstr ""
7731
7732 #. type: =head2
7733 #: ../fish/guestfish-actions.pod:858
7734 msgid "config"
7735 msgstr ""
7736
7737 #. type: verbatim
7738 #: ../fish/guestfish-actions.pod:860
7739 #, no-wrap
7740 msgid ""
7741 " config qemuparam qemuvalue\n"
7742 "\n"
7743 msgstr ""
7744
7745 #. type: textblock
7746 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7747 msgid ""
7748 "This can be used to add arbitrary qemu command line parameters of the form "
7749 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7750 "setting some parameters which would interfere with parameters that we use."
7751 msgstr ""
7752
7753 #. type: textblock
7754 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7755 msgid "The first character of C<param> string must be a C<-> (dash)."
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7760 msgid "C<value> can be NULL."
7761 msgstr ""
7762
7763 #. type: =head2
7764 #: ../fish/guestfish-actions.pod:871
7765 msgid "copy-device-to-device"
7766 msgstr ""
7767
7768 #. type: verbatim
7769 #: ../fish/guestfish-actions.pod:873
7770 #, no-wrap
7771 msgid ""
7772 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7773 "\n"
7774 msgstr ""
7775
7776 #. type: textblock
7777 #: ../fish/guestfish-actions.pod:875
7778 msgid ""
7779 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7780 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7781 "(device|file) to a destination (device|file)."
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7786 msgid ""
7787 "Partial copies can be made since you can specify optionally the source "
7788 "offset, destination offset and size to copy.  These values are all specified "
7789 "in bytes.  If not given, the offsets both default to zero, and the size "
7790 "defaults to copying as much as possible until we hit the end of the source."
7791 msgstr ""
7792
7793 #. type: textblock
7794 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7795 msgid ""
7796 "The source and destination may be the same object.  However overlapping "
7797 "regions may not be copied correctly."
7798 msgstr ""
7799
7800 #. type: textblock
7801 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7802 msgid ""
7803 "If the destination is a file, it is created if required.  If the destination "
7804 "file is not large enough, it is extended."
7805 msgstr ""
7806
7807 #. type: =head2
7808 #: ../fish/guestfish-actions.pod:896
7809 msgid "copy-device-to-file"
7810 msgstr ""
7811
7812 #. type: verbatim
7813 #: ../fish/guestfish-actions.pod:898
7814 #, no-wrap
7815 msgid ""
7816 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7817 "\n"
7818 msgstr ""
7819
7820 #. type: textblock
7821 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7822 #: ../fish/guestfish-actions.pod:918
7823 msgid "See L</copy-device-to-device> for a general overview of this call."
7824 msgstr ""
7825
7826 #. type: =head2
7827 #: ../fish/guestfish-actions.pod:905
7828 msgid "copy-file-to-device"
7829 msgstr ""
7830
7831 #. type: verbatim
7832 #: ../fish/guestfish-actions.pod:907
7833 #, no-wrap
7834 msgid ""
7835 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7836 "\n"
7837 msgstr ""
7838
7839 #. type: =head2
7840 #: ../fish/guestfish-actions.pod:914
7841 msgid "copy-file-to-file"
7842 msgstr ""
7843
7844 #. type: verbatim
7845 #: ../fish/guestfish-actions.pod:916
7846 #, no-wrap
7847 msgid ""
7848 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7849 "\n"
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:921
7854 msgid ""
7855 "This is B<not> the function you want for copying files.  This is for copying "
7856 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7857 "file copying and moving functions."
7858 msgstr ""
7859
7860 #. type: =head2
7861 #: ../fish/guestfish-actions.pod:928
7862 msgid "copy-size"
7863 msgstr ""
7864
7865 #. type: verbatim
7866 #: ../fish/guestfish-actions.pod:930
7867 #, no-wrap
7868 msgid ""
7869 " copy-size src dest size\n"
7870 "\n"
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7875 msgid ""
7876 "This command copies exactly C<size> bytes from one source device or file "
7877 "C<src> to another destination device or file C<dest>."
7878 msgstr ""
7879
7880 #. type: textblock
7881 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7882 msgid ""
7883 "Note this will fail if the source is too short or if the destination is not "
7884 "large enough."
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7889 msgid ""
7890 "I<This function is deprecated.> In new code, use the L</"
7891 "copy_device_to_device> call instead."
7892 msgstr ""
7893
7894 #. type: =head2
7895 #: ../fish/guestfish-actions.pod:945
7896 msgid "cp"
7897 msgstr "cp"
7898
7899 #. type: verbatim
7900 #: ../fish/guestfish-actions.pod:947
7901 #, no-wrap
7902 msgid ""
7903 " cp src dest\n"
7904 "\n"
7905 msgstr ""
7906
7907 #. type: textblock
7908 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7909 msgid ""
7910 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7911 "destination filename or destination directory."
7912 msgstr ""
7913
7914 #. type: =head2
7915 #: ../fish/guestfish-actions.pod:952
7916 msgid "cp-a"
7917 msgstr "cp-a"
7918
7919 #. type: verbatim
7920 #: ../fish/guestfish-actions.pod:954
7921 #, no-wrap
7922 msgid ""
7923 " cp-a src dest\n"
7924 "\n"
7925 msgstr ""
7926
7927 #. type: textblock
7928 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7929 msgid ""
7930 "This copies a file or directory from C<src> to C<dest> recursively using the "
7931 "C<cp -a> command."
7932 msgstr ""
7933
7934 #. type: =head2
7935 #: ../fish/guestfish-actions.pod:959
7936 msgid "dd"
7937 msgstr "dd"
7938
7939 #. type: verbatim
7940 #: ../fish/guestfish-actions.pod:961
7941 #, no-wrap
7942 msgid ""
7943 " dd src dest\n"
7944 "\n"
7945 msgstr ""
7946
7947 #. type: textblock
7948 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7949 msgid ""
7950 "This command copies from one source device or file C<src> to another "
7951 "destination device or file C<dest>.  Normally you would use this to copy to "
7952 "or from a device or partition, for example to duplicate a filesystem."
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:968
7957 msgid ""
7958 "If the destination is a device, it must be as large or larger than the "
7959 "source file or device, otherwise the copy will fail.  This command cannot do "
7960 "partial copies (see L</copy-device-to-device>)."
7961 msgstr ""
7962
7963 #. type: =head2
7964 #: ../fish/guestfish-actions.pod:980
7965 msgid "df"
7966 msgstr "df"
7967
7968 #. type: verbatim
7969 #: ../fish/guestfish-actions.pod:982
7970 #, no-wrap
7971 msgid ""
7972 " df\n"
7973 "\n"
7974 msgstr ""
7975 " df\n"
7976 "\n"
7977
7978 #. type: textblock
7979 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7980 msgid "This command runs the C<df> command to report disk space used."
7981 msgstr ""
7982
7983 #. type: textblock
7984 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7985 msgid ""
7986 "This command is mostly useful for interactive sessions.  It is I<not> "
7987 "intended that you try to parse the output string.  Use L</statvfs> from "
7988 "programs."
7989 msgstr ""
7990
7991 #. type: =head2
7992 #: ../fish/guestfish-actions.pod:990
7993 msgid "df-h"
7994 msgstr "df-h"
7995
7996 #. type: verbatim
7997 #: ../fish/guestfish-actions.pod:992
7998 #, no-wrap
7999 msgid ""
8000 " df-h\n"
8001 "\n"
8002 msgstr ""
8003 " df-h\n"
8004 "\n"
8005
8006 #. type: textblock
8007 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8008 msgid ""
8009 "This command runs the C<df -h> command to report disk space used in human-"
8010 "readable format."
8011 msgstr ""
8012
8013 #. type: =head2
8014 #: ../fish/guestfish-actions.pod:1001
8015 msgid "dmesg"
8016 msgstr "dmesg"
8017
8018 #. type: verbatim
8019 #: ../fish/guestfish-actions.pod:1003
8020 #, no-wrap
8021 msgid ""
8022 " dmesg\n"
8023 "\n"
8024 msgstr ""
8025 " dmesg\n"
8026 "\n"
8027
8028 #. type: textblock
8029 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8030 msgid ""
8031 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8032 "This is sometimes useful for extended debugging of problems."
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:1009
8037 msgid ""
8038 "Another way to get the same information is to enable verbose messages with "
8039 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8040 "before running the program."
8041 msgstr ""
8042
8043 #. type: =head2
8044 #: ../fish/guestfish-actions.pod:1014
8045 msgid "download"
8046 msgstr "download"
8047
8048 #. type: verbatim
8049 #: ../fish/guestfish-actions.pod:1016
8050 #, no-wrap
8051 msgid ""
8052 " download remotefilename (filename|-)\n"
8053 "\n"
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8058 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8059 msgid ""
8060 "Download file C<remotefilename> and save it as C<filename> on the local "
8061 "machine."
8062 msgstr ""
8063
8064 #. type: textblock
8065 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5179
8066 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7970
8067 msgid "C<filename> can also be a named pipe."
8068 msgstr ""
8069
8070 #. type: textblock
8071 #: ../fish/guestfish-actions.pod:1023
8072 msgid "See also L</upload>, L</cat>."
8073 msgstr ""
8074
8075 #. type: =head2
8076 #: ../fish/guestfish-actions.pod:1027
8077 msgid "download-offset"
8078 msgstr "download-offset"
8079
8080 #. type: verbatim
8081 #: ../fish/guestfish-actions.pod:1029
8082 #, no-wrap
8083 msgid ""
8084 " download-offset remotefilename (filename|-) offset size\n"
8085 "\n"
8086 msgstr ""
8087
8088 #. type: textblock
8089 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8090 msgid ""
8091 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8092 "region must be within the file or device)."
8093 msgstr ""
8094
8095 #. type: textblock
8096 #: ../fish/guestfish-actions.pod:1037
8097 msgid ""
8098 "Note that there is no limit on the amount of data that can be downloaded "
8099 "with this call, unlike with L</pread>, and this call always reads the full "
8100 "amount unless an error occurs."
8101 msgstr ""
8102
8103 #. type: textblock
8104 #: ../fish/guestfish-actions.pod:1042
8105 msgid "See also L</download>, L</pread>."
8106 msgstr ""
8107
8108 #. type: =head2
8109 #: ../fish/guestfish-actions.pod:1046
8110 msgid "drop-caches"
8111 msgstr ""
8112
8113 #. type: verbatim
8114 #: ../fish/guestfish-actions.pod:1048
8115 #, no-wrap
8116 msgid ""
8117 " drop-caches whattodrop\n"
8118 "\n"
8119 msgstr ""
8120
8121 #. type: textblock
8122 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8123 msgid ""
8124 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8125 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8126 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8127 msgstr ""
8128
8129 #. type: textblock
8130 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8131 msgid "Setting C<whattodrop> to 3 should drop everything."
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8136 msgid ""
8137 "This automatically calls L<sync(2)> before the operation, so that the "
8138 "maximum guest memory is freed."
8139 msgstr ""
8140
8141 #. type: =head2
8142 #: ../fish/guestfish-actions.pod:1060
8143 msgid "du"
8144 msgstr "du"
8145
8146 #. type: verbatim
8147 #: ../fish/guestfish-actions.pod:1062
8148 #, no-wrap
8149 msgid ""
8150 " du path\n"
8151 "\n"
8152 msgstr ""
8153 " du шлях\n"
8154 "\n"
8155
8156 #. type: textblock
8157 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8158 msgid ""
8159 "This command runs the C<du -s> command to estimate file space usage for "
8160 "C<path>."
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8165 msgid ""
8166 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8167 "estimate includes the contents of the directory and all subdirectories "
8168 "(recursively)."
8169 msgstr ""
8170
8171 #. type: textblock
8172 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8173 msgid ""
8174 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8175 msgstr ""
8176
8177 #. type: =head2
8178 #: ../fish/guestfish-actions.pod:1074
8179 msgid "e2fsck-f"
8180 msgstr "e2fsck-f"
8181
8182 #. type: verbatim
8183 #: ../fish/guestfish-actions.pod:1076
8184 #, no-wrap
8185 msgid ""
8186 " e2fsck-f device\n"
8187 "\n"
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8192 msgid ""
8193 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8194 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8195 "clean (I<-f>)."
8196 msgstr ""
8197
8198 #. type: textblock
8199 #: ../fish/guestfish-actions.pod:1082
8200 msgid ""
8201 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8202 "should use L</fsck>."
8203 msgstr ""
8204
8205 #. type: =head2
8206 #: ../fish/guestfish-actions.pod:1085
8207 msgid "echo-daemon"
8208 msgstr ""
8209
8210 #. type: verbatim
8211 #: ../fish/guestfish-actions.pod:1087
8212 #, no-wrap
8213 msgid ""
8214 " echo-daemon 'words ...'\n"
8215 "\n"
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8220 msgid ""
8221 "This command concatenates the list of C<words> passed with single spaces "
8222 "between them and returns the resulting string."
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8227 msgid "You can use this command to test the connection through to the daemon."
8228 msgstr ""
8229
8230 #. type: textblock
8231 #: ../fish/guestfish-actions.pod:1094
8232 msgid "See also L</ping-daemon>."
8233 msgstr "Див. також L</ping-daemon>."
8234
8235 #. type: =head2
8236 #: ../fish/guestfish-actions.pod:1096
8237 msgid "egrep"
8238 msgstr "egrep"
8239
8240 #. type: verbatim
8241 #: ../fish/guestfish-actions.pod:1098
8242 #, no-wrap
8243 msgid ""
8244 " egrep regex path\n"
8245 "\n"
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8250 msgid ""
8251 "This calls the external C<egrep> program and returns the matching lines."
8252 msgstr ""
8253
8254 #. type: =head2
8255 #: ../fish/guestfish-actions.pod:1106
8256 msgid "egrepi"
8257 msgstr "egrepi"
8258
8259 #. type: verbatim
8260 #: ../fish/guestfish-actions.pod:1108
8261 #, no-wrap
8262 msgid ""
8263 " egrepi regex path\n"
8264 "\n"
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8269 msgid ""
8270 "This calls the external C<egrep -i> program and returns the matching lines."
8271 msgstr ""
8272
8273 #. type: =head2
8274 #: ../fish/guestfish-actions.pod:1116
8275 msgid "equal"
8276 msgstr "equal"
8277
8278 #. type: verbatim
8279 #: ../fish/guestfish-actions.pod:1118
8280 #, no-wrap
8281 msgid ""
8282 " equal file1 file2\n"
8283 "\n"
8284 msgstr ""
8285 " equal файл1 файл2\n"
8286 "\n"
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8290 msgid ""
8291 "This compares the two files C<file1> and C<file2> and returns true if their "
8292 "content is exactly equal, or false otherwise."
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8297 msgid "The external L<cmp(1)> program is used for the comparison."
8298 msgstr ""
8299
8300 #. type: =head2
8301 #: ../fish/guestfish-actions.pod:1125
8302 msgid "exists"
8303 msgstr "exists"
8304
8305 #. type: verbatim
8306 #: ../fish/guestfish-actions.pod:1127
8307 #, no-wrap
8308 msgid ""
8309 " exists path\n"
8310 "\n"
8311 msgstr ""
8312 " exists шлях\n"
8313 "\n"
8314
8315 #. type: textblock
8316 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8317 msgid ""
8318 "This returns C<true> if and only if there is a file, directory (or anything) "
8319 "with the given C<path> name."
8320 msgstr ""
8321
8322 #. type: textblock
8323 #: ../fish/guestfish-actions.pod:1132
8324 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8325 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8326
8327 #. type: =head2
8328 #: ../fish/guestfish-actions.pod:1134
8329 msgid "fallocate"
8330 msgstr "fallocate"
8331
8332 #. type: verbatim
8333 #: ../fish/guestfish-actions.pod:1136
8334 #, no-wrap
8335 msgid ""
8336 " fallocate path len\n"
8337 "\n"
8338 msgstr ""
8339 " fallocate шлях довжина\n"
8340 "\n"
8341
8342 #. type: textblock
8343 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8344 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8345 msgid ""
8346 "This command preallocates a file (containing zero bytes) named C<path> of "
8347 "size C<len> bytes.  If the file exists already, it is overwritten."
8348 msgstr ""
8349
8350 #. type: textblock
8351 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8352 msgid ""
8353 "Do not confuse this with the guestfish-specific C<alloc> command which "
8354 "allocates a file in the host and attaches it as a device."
8355 msgstr ""
8356
8357 #. type: textblock
8358 #: ../fish/guestfish-actions.pod:1146
8359 msgid ""
8360 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8361 "instead."
8362 msgstr ""
8363
8364 #. type: =head2
8365 #: ../fish/guestfish-actions.pod:1153
8366 msgid "fallocate64"
8367 msgstr "fallocate64"
8368
8369 #. type: verbatim
8370 #: ../fish/guestfish-actions.pod:1155
8371 #, no-wrap
8372 msgid ""
8373 " fallocate64 path len\n"
8374 "\n"
8375 msgstr ""
8376 " fallocate64 шлях довжина\n"
8377 "\n"
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1161
8381 msgid ""
8382 "Note that this call allocates disk blocks for the file.  To create a sparse "
8383 "file use L</truncate-size> instead."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1164
8388 msgid ""
8389 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8390 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8391 "maximum size of files created through that call to 1GB."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8396 msgid ""
8397 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8398 "commands which create a file in the host and attach it as a device."
8399 msgstr ""
8400
8401 #. type: =head2
8402 #: ../fish/guestfish-actions.pod:1173
8403 msgid "fgrep"
8404 msgstr "fgrep"
8405
8406 #. type: verbatim
8407 #: ../fish/guestfish-actions.pod:1175
8408 #, no-wrap
8409 msgid ""
8410 " fgrep pattern path\n"
8411 "\n"
8412 msgstr ""
8413 " fgrep шаблон шлях\n"
8414 "\n"
8415
8416 #. type: textblock
8417 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8418 msgid ""
8419 "This calls the external C<fgrep> program and returns the matching lines."
8420 msgstr ""
8421
8422 #. type: =head2
8423 #: ../fish/guestfish-actions.pod:1183
8424 msgid "fgrepi"
8425 msgstr "fgrepi"
8426
8427 #. type: verbatim
8428 #: ../fish/guestfish-actions.pod:1185
8429 #, no-wrap
8430 msgid ""
8431 " fgrepi pattern path\n"
8432 "\n"
8433 msgstr ""
8434 " fgrepi шаблон шлях\n"
8435 "\n"
8436
8437 #. type: textblock
8438 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8439 msgid ""
8440 "This calls the external C<fgrep -i> program and returns the matching lines."
8441 msgstr ""
8442
8443 #. type: =head2
8444 #: ../fish/guestfish-actions.pod:1193
8445 msgid "file"
8446 msgstr "file"
8447
8448 #. type: verbatim
8449 #: ../fish/guestfish-actions.pod:1195
8450 #, no-wrap
8451 msgid ""
8452 " file path\n"
8453 "\n"
8454 msgstr ""
8455 " file шлях\n"
8456 "\n"
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8460 msgid ""
8461 "This call uses the standard L<file(1)> command to determine the type or "
8462 "contents of the file."
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8467 msgid ""
8468 "This call will also transparently look inside various types of compressed "
8469 "file."
8470 msgstr ""
8471
8472 #. type: textblock
8473 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8474 msgid ""
8475 "The exact command which runs is C<file -zb path>.  Note in particular that "
8476 "the filename is not prepended to the output (the I<-b> option)."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8481 msgid ""
8482 "The output depends on the output of the underlying L<file(1)> command and it "
8483 "can change in future in ways beyond our control.  In other words, the output "
8484 "is not guaranteed by the ABI."
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:1211
8489 msgid ""
8490 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8491 "(etc), L</is-zero>."
8492 msgstr ""
8493
8494 #. type: =head2
8495 #: ../fish/guestfish-actions.pod:1214
8496 msgid "file-architecture"
8497 msgstr "file-architecture"
8498
8499 #. type: verbatim
8500 #: ../fish/guestfish-actions.pod:1216
8501 #, no-wrap
8502 msgid ""
8503 " file-architecture filename\n"
8504 "\n"
8505 msgstr ""
8506 " file-architecture назва_файла\n"
8507 "\n"
8508
8509 #. type: textblock
8510 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8511 msgid ""
8512 "This detects the architecture of the binary C<filename>, and returns it if "
8513 "known."
8514 msgstr ""
8515
8516 #. type: textblock
8517 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8518 msgid "Currently defined architectures are:"
8519 msgstr ""
8520
8521 #. type: =item
8522 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8523 msgid "\"i386\""
8524 msgstr "\"i386\""
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8528 msgid ""
8529 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8530 "irrespective of the precise processor requirements of the binary."
8531 msgstr ""
8532
8533 #. type: =item
8534 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8535 msgid "\"x86_64\""
8536 msgstr "\"x86_64\""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8540 msgid "64 bit x86-64."
8541 msgstr ""
8542
8543 #. type: =item
8544 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8545 msgid "\"sparc\""
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8550 msgid "32 bit SPARC."
8551 msgstr ""
8552
8553 #. type: =item
8554 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8555 msgid "\"sparc64\""
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8560 msgid "64 bit SPARC V9 and above."
8561 msgstr ""
8562
8563 #. type: =item
8564 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8565 msgid "\"ia64\""
8566 msgstr "\"ia64\""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8570 msgid "Intel Itanium."
8571 msgstr "Intel Itanium."
8572
8573 #. type: =item
8574 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8575 msgid "\"ppc\""
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8580 msgid "32 bit Power PC."
8581 msgstr ""
8582
8583 #. type: =item
8584 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8585 msgid "\"ppc64\""
8586 msgstr ""
8587
8588 #. type: textblock
8589 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8590 msgid "64 bit Power PC."
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8595 msgid "Libguestfs may return other architecture strings in future."
8596 msgstr ""
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8600 msgid "The function works on at least the following types of files:"
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8605 msgid "many types of Un*x and Linux binary"
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8610 msgid "many types of Un*x and Linux shared library"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8615 msgid "Windows Win32 and Win64 binaries"
8616 msgstr ""
8617
8618 #. type: textblock
8619 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8620 msgid "Windows Win32 and Win64 DLLs"
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8625 msgid "Win32 binaries and DLLs return C<i386>."
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8630 msgid "Win64 binaries and DLLs return C<x86_64>."
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8635 msgid "Linux kernel modules"
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8640 msgid "Linux new-style initrd images"
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8645 msgid "some non-x86 Linux vmlinuz kernels"
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8650 msgid "What it can't do currently:"
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8655 msgid "static libraries (libfoo.a)"
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8660 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8661 msgstr ""
8662
8663 #. type: textblock
8664 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8665 msgid "x86 Linux vmlinuz kernels"
8666 msgstr ""
8667
8668 #. type: textblock
8669 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8670 msgid ""
8671 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8672 "compressed code, and are horribly hard to unpack.  If you want to find the "
8673 "architecture of a kernel, use the architecture of the associated initrd or "
8674 "kernel module(s) instead."
8675 msgstr ""
8676
8677 #. type: =head2
8678 #: ../fish/guestfish-actions.pod:1319
8679 msgid "filesize"
8680 msgstr "filesize"
8681
8682 #. type: verbatim
8683 #: ../fish/guestfish-actions.pod:1321
8684 #, no-wrap
8685 msgid ""
8686 " filesize file\n"
8687 "\n"
8688 msgstr ""
8689 " filesize файл\n"
8690 "\n"
8691
8692 #. type: textblock
8693 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8694 msgid "This command returns the size of C<file> in bytes."
8695 msgstr ""
8696
8697 #. type: textblock
8698 #: ../fish/guestfish-actions.pod:1325
8699 msgid ""
8700 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8701 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8702 msgstr ""
8703
8704 #. type: =head2
8705 #: ../fish/guestfish-actions.pod:1329
8706 msgid "fill"
8707 msgstr "fill"
8708
8709 #. type: verbatim
8710 #: ../fish/guestfish-actions.pod:1331
8711 #, no-wrap
8712 msgid ""
8713 " fill c len path\n"
8714 "\n"
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8719 msgid ""
8720 "This command creates a new file called C<path>.  The initial content of the "
8721 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8722 "[0..255]>."
8723 msgstr ""
8724
8725 #. type: textblock
8726 #: ../fish/guestfish-actions.pod:1337
8727 msgid ""
8728 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8729 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8730 "L</fill-pattern>."
8731 msgstr ""
8732
8733 #. type: =head2
8734 #: ../fish/guestfish-actions.pod:1342
8735 msgid "fill-pattern"
8736 msgstr "fill-pattern"
8737
8738 #. type: verbatim
8739 #: ../fish/guestfish-actions.pod:1344
8740 #, no-wrap
8741 msgid ""
8742 " fill-pattern pattern len path\n"
8743 "\n"
8744 msgstr ""
8745
8746 #. type: textblock
8747 #: ../fish/guestfish-actions.pod:1346
8748 msgid ""
8749 "This function is like L</fill> except that it creates a new file of length "
8750 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8751 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8752 "bytes."
8753 msgstr ""
8754
8755 #. type: =head2
8756 #: ../fish/guestfish-actions.pod:1351
8757 msgid "find"
8758 msgstr "find"
8759
8760 #. type: verbatim
8761 #: ../fish/guestfish-actions.pod:1353
8762 #, no-wrap
8763 msgid ""
8764 " find directory\n"
8765 "\n"
8766 msgstr ""
8767 " find каталог\n"
8768 "\n"
8769
8770 #. type: textblock
8771 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8772 msgid ""
8773 "This command lists out all files and directories, recursively, starting at "
8774 "C<directory>.  It is essentially equivalent to running the shell command "
8775 "C<find directory -print> but some post-processing happens on the output, "
8776 "described below."
8777 msgstr ""
8778
8779 #. type: textblock
8780 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8781 msgid ""
8782 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8783 "structure was:"
8784 msgstr ""
8785
8786 #. type: verbatim
8787 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8788 #, no-wrap
8789 msgid ""
8790 " /tmp/a\n"
8791 " /tmp/b\n"
8792 " /tmp/c/d\n"
8793 "\n"
8794 msgstr ""
8795
8796 #. type: textblock
8797 #: ../fish/guestfish-actions.pod:1367
8798 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8799 msgstr ""
8800
8801 #. type: verbatim
8802 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8803 #, no-wrap
8804 msgid ""
8805 " a\n"
8806 " b\n"
8807 " c\n"
8808 " c/d\n"
8809 "\n"
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8814 msgid "If C<directory> is not a directory, then this command returns an error."
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8819 msgid "The returned list is sorted."
8820 msgstr ""
8821
8822 #. type: textblock
8823 #: ../fish/guestfish-actions.pod:1380
8824 msgid "See also L</find0>."
8825 msgstr "Див. також L</find0>."
8826
8827 #. type: =head2
8828 #: ../fish/guestfish-actions.pod:1385
8829 msgid "find0"
8830 msgstr "find0"
8831
8832 #. type: verbatim
8833 #: ../fish/guestfish-actions.pod:1387
8834 #, no-wrap
8835 msgid ""
8836 " find0 directory (files|-)\n"
8837 "\n"
8838 msgstr ""
8839 " find0 каталог (файли|-)\n"
8840 "\n"
8841
8842 #. type: textblock
8843 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8844 msgid ""
8845 "This command lists out all files and directories, recursively, starting at "
8846 "C<directory>, placing the resulting list in the external file called "
8847 "C<files>."
8848 msgstr ""
8849
8850 #. type: textblock
8851 #: ../fish/guestfish-actions.pod:1393
8852 msgid ""
8853 "This command works the same way as L</find> with the following exceptions:"
8854 msgstr ""
8855
8856 #. type: textblock
8857 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8858 msgid "The resulting list is written to an external file."
8859 msgstr ""
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8863 msgid ""
8864 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8865 "L<find(1)> option I<-print0>."
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8870 msgid "This command is not limited in the number of names that it can return."
8871 msgstr ""
8872
8873 #. type: textblock
8874 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8875 msgid "The result list is not sorted."
8876 msgstr ""
8877
8878 #. type: =head2
8879 #: ../fish/guestfish-actions.pod:1420
8880 msgid "findfs-label"
8881 msgstr "findfs-label"
8882
8883 #. type: verbatim
8884 #: ../fish/guestfish-actions.pod:1422
8885 #, no-wrap
8886 msgid ""
8887 " findfs-label label\n"
8888 "\n"
8889 msgstr ""
8890 " findfs-label мітка\n"
8891 "\n"
8892
8893 #. type: textblock
8894 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8895 msgid ""
8896 "This command searches the filesystems and returns the one which has the "
8897 "given label.  An error is returned if no such filesystem can be found."
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../fish/guestfish-actions.pod:1428
8902 msgid "To find the label of a filesystem, use L</vfs-label>."
8903 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8904
8905 #. type: =head2
8906 #: ../fish/guestfish-actions.pod:1430
8907 msgid "findfs-uuid"
8908 msgstr "findfs-uuid"
8909
8910 #. type: verbatim
8911 #: ../fish/guestfish-actions.pod:1432
8912 #, no-wrap
8913 msgid ""
8914 " findfs-uuid uuid\n"
8915 "\n"
8916 msgstr ""
8917 " findfs-uuid uuid\n"
8918 "\n"
8919
8920 #. type: textblock
8921 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8922 msgid ""
8923 "This command searches the filesystems and returns the one which has the "
8924 "given UUID.  An error is returned if no such filesystem can be found."
8925 msgstr ""
8926
8927 #. type: textblock
8928 #: ../fish/guestfish-actions.pod:1438
8929 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8930 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8931
8932 #. type: =head2
8933 #: ../fish/guestfish-actions.pod:1440
8934 msgid "fsck"
8935 msgstr "fsck"
8936
8937 #. type: verbatim
8938 #: ../fish/guestfish-actions.pod:1442
8939 #, no-wrap
8940 msgid ""
8941 " fsck fstype device\n"
8942 "\n"
8943 msgstr ""
8944 " fsck тип_файлової_системи пристрій\n"
8945 "\n"
8946
8947 #. type: textblock
8948 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8949 msgid ""
8950 "This runs the filesystem checker (fsck) on C<device> which should have "
8951 "filesystem type C<fstype>."
8952 msgstr ""
8953
8954 #. type: textblock
8955 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8956 msgid ""
8957 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8958 "codes from C<fsck>."
8959 msgstr ""
8960
8961 #. type: textblock
8962 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8963 msgid "Multiple status codes can be summed together."
8964 msgstr ""
8965
8966 #. type: textblock
8967 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8968 msgid ""
8969 "A non-zero return code can mean \"success\", for example if errors have been "
8970 "corrected on the filesystem."
8971 msgstr ""
8972
8973 #. type: textblock
8974 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8975 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8976 msgstr ""
8977
8978 #. type: textblock
8979 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8980 msgid ""
8981 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8982 msgstr ""
8983
8984 #. type: =head2
8985 #: ../fish/guestfish-actions.pod:1472
8986 msgid "get-append"
8987 msgstr "get-append"
8988
8989 #. type: verbatim
8990 #: ../fish/guestfish-actions.pod:1474
8991 #, no-wrap
8992 msgid ""
8993 " get-append\n"
8994 "\n"
8995 msgstr ""
8996 " get-append\n"
8997 "\n"
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9001 msgid ""
9002 "Return the additional kernel options which are added to the guest kernel "
9003 "command line."
9004 msgstr ""
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9008 msgid "If C<NULL> then no options are added."
9009 msgstr ""
9010
9011 #. type: =head2
9012 #: ../fish/guestfish-actions.pod:1481
9013 msgid "get-attach-method"
9014 msgstr "get-attach-method"
9015
9016 #. type: verbatim
9017 #: ../fish/guestfish-actions.pod:1483
9018 #, no-wrap
9019 msgid ""
9020 " get-attach-method\n"
9021 "\n"
9022 msgstr ""
9023 " get-attach-method\n"
9024 "\n"
9025
9026 #. type: textblock
9027 #: ../fish/guestfish-actions.pod:1485
9028 msgid "Return the current attach method.  See L</set-attach-method>."
9029 msgstr ""
9030
9031 #. type: =head2
9032 #: ../fish/guestfish-actions.pod:1487
9033 msgid "get-autosync"
9034 msgstr "get-autosync"
9035
9036 #. type: verbatim
9037 #: ../fish/guestfish-actions.pod:1489
9038 #, no-wrap
9039 msgid ""
9040 " get-autosync\n"
9041 "\n"
9042 msgstr ""
9043 " get-autosync\n"
9044 "\n"
9045
9046 #. type: textblock
9047 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9048 msgid "Get the autosync flag."
9049 msgstr ""
9050
9051 #. type: =head2
9052 #: ../fish/guestfish-actions.pod:1493
9053 msgid "get-direct"
9054 msgstr "get-direct"
9055
9056 #. type: verbatim
9057 #: ../fish/guestfish-actions.pod:1495
9058 #, no-wrap
9059 msgid ""
9060 " get-direct\n"
9061 "\n"
9062 msgstr ""
9063 " get-direct\n"
9064 "\n"
9065
9066 #. type: textblock
9067 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9068 msgid "Return the direct appliance mode flag."
9069 msgstr ""
9070
9071 #. type: =head2
9072 #: ../fish/guestfish-actions.pod:1499
9073 msgid "get-e2label"
9074 msgstr "get-e2label"
9075
9076 #. type: verbatim
9077 #: ../fish/guestfish-actions.pod:1501
9078 #, no-wrap
9079 msgid ""
9080 " get-e2label device\n"
9081 "\n"
9082 msgstr ""
9083 " get-e2label пристрій\n"
9084 "\n"
9085
9086 #. type: textblock
9087 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9088 msgid ""
9089 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9090 msgstr ""
9091
9092 #. type: textblock
9093 #: ../fish/guestfish-actions.pod:1506
9094 msgid ""
9095 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9096 "instead."
9097 msgstr ""
9098
9099 #. type: =head2
9100 #: ../fish/guestfish-actions.pod:1513
9101 msgid "get-e2uuid"
9102 msgstr "get-e2uuid"
9103
9104 #. type: verbatim
9105 #: ../fish/guestfish-actions.pod:1515
9106 #, no-wrap
9107 msgid ""
9108 " get-e2uuid device\n"
9109 "\n"
9110 msgstr ""
9111 " get-e2uuid пристрій\n"
9112 "\n"
9113
9114 #. type: textblock
9115 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9116 msgid ""
9117 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../fish/guestfish-actions.pod:1520
9122 msgid ""
9123 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9124 "instead."
9125 msgstr ""
9126
9127 #. type: =head2
9128 #: ../fish/guestfish-actions.pod:1527
9129 msgid "get-memsize"
9130 msgstr "get-memsize"
9131
9132 #. type: verbatim
9133 #: ../fish/guestfish-actions.pod:1529
9134 #, no-wrap
9135 msgid ""
9136 " get-memsize\n"
9137 "\n"
9138 msgstr ""
9139 " get-memsize\n"
9140 "\n"
9141
9142 #. type: textblock
9143 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9144 msgid ""
9145 "This gets the memory size in megabytes allocated to the qemu subprocess."
9146 msgstr ""
9147
9148 #. type: textblock
9149 #: ../fish/guestfish-actions.pod:1534
9150 msgid ""
9151 "If L</set-memsize> was not called on this handle, and if "
9152 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9153 "value for memsize."
9154 msgstr ""
9155
9156 #. type: textblock
9157 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9158 #: ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4559
9159 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
9160 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:7030
9161 msgid ""
9162 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9163 msgstr ""
9164
9165 #. type: =head2
9166 #: ../fish/guestfish-actions.pod:1541
9167 msgid "get-network"
9168 msgstr "get-network"
9169
9170 #. type: verbatim
9171 #: ../fish/guestfish-actions.pod:1543
9172 #, no-wrap
9173 msgid ""
9174 " get-network\n"
9175 "\n"
9176 msgstr ""
9177 " get-network\n"
9178 "\n"
9179
9180 #. type: textblock
9181 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9182 msgid "This returns the enable network flag."
9183 msgstr ""
9184
9185 #. type: =head2
9186 #: ../fish/guestfish-actions.pod:1547
9187 msgid "get-path"
9188 msgstr "get-path"
9189
9190 #. type: verbatim
9191 #: ../fish/guestfish-actions.pod:1549
9192 #, no-wrap
9193 msgid ""
9194 " get-path\n"
9195 "\n"
9196 msgstr ""
9197 " get-path\n"
9198 "\n"
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9202 msgid "Return the current search path."
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9207 msgid ""
9208 "This is always non-NULL.  If it wasn't set already, then this will return "
9209 "the default path."
9210 msgstr ""
9211
9212 #. type: =head2
9213 #: ../fish/guestfish-actions.pod:1556
9214 msgid "get-pgroup"
9215 msgstr ""
9216
9217 #. type: verbatim
9218 #: ../fish/guestfish-actions.pod:1558
9219 #, no-wrap
9220 msgid ""
9221 " get-pgroup\n"
9222 "\n"
9223 msgstr ""
9224
9225 #. type: textblock
9226 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9227 msgid "This returns the process group flag."
9228 msgstr ""
9229
9230 #. type: =head2
9231 #: ../fish/guestfish-actions.pod:1562
9232 msgid "get-pid"
9233 msgstr "get-pid"
9234
9235 #. type: =head2
9236 #: ../fish/guestfish-actions.pod:1564
9237 msgid "pid"
9238 msgstr "PID"
9239
9240 #. type: verbatim
9241 #: ../fish/guestfish-actions.pod:1566
9242 #, no-wrap
9243 msgid ""
9244 " get-pid\n"
9245 "\n"
9246 msgstr ""
9247 " get-pid\n"
9248 "\n"
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9252 msgid ""
9253 "Return the process ID of the qemu subprocess.  If there is no qemu "
9254 "subprocess, then this will return an error."
9255 msgstr ""
9256
9257 #. type: textblock
9258 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9259 msgid "This is an internal call used for debugging and testing."
9260 msgstr ""
9261
9262 #. type: =head2
9263 #: ../fish/guestfish-actions.pod:1573
9264 msgid "get-qemu"
9265 msgstr "get-qemu"
9266
9267 #. type: verbatim
9268 #: ../fish/guestfish-actions.pod:1575
9269 #, no-wrap
9270 msgid ""
9271 " get-qemu\n"
9272 "\n"
9273 msgstr ""
9274 " get-qemu\n"
9275 "\n"
9276
9277 #. type: textblock
9278 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9279 msgid "Return the current qemu binary."
9280 msgstr ""
9281
9282 #. type: textblock
9283 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9284 msgid ""
9285 "This is always non-NULL.  If it wasn't set already, then this will return "
9286 "the default qemu binary name."
9287 msgstr ""
9288
9289 #. type: =head2
9290 #: ../fish/guestfish-actions.pod:1582
9291 msgid "get-recovery-proc"
9292 msgstr "get-recovery-proc"
9293
9294 #. type: verbatim
9295 #: ../fish/guestfish-actions.pod:1584
9296 #, no-wrap
9297 msgid ""
9298 " get-recovery-proc\n"
9299 "\n"
9300 msgstr ""
9301 " get-recovery-proc\n"
9302 "\n"
9303
9304 #. type: textblock
9305 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9306 msgid "Return the recovery process enabled flag."
9307 msgstr ""
9308
9309 #. type: =head2
9310 #: ../fish/guestfish-actions.pod:1588
9311 msgid "get-selinux"
9312 msgstr "get-selinux"
9313
9314 #. type: verbatim
9315 #: ../fish/guestfish-actions.pod:1590
9316 #, no-wrap
9317 msgid ""
9318 " get-selinux\n"
9319 "\n"
9320 msgstr ""
9321 " get-selinux\n"
9322 "\n"
9323
9324 #. type: textblock
9325 #: ../fish/guestfish-actions.pod:1592
9326 msgid ""
9327 "This returns the current setting of the selinux flag which is passed to the "
9328 "appliance at boot time.  See L</set-selinux>."
9329 msgstr ""
9330
9331 #. type: =head2
9332 #: ../fish/guestfish-actions.pod:1598
9333 msgid "get-smp"
9334 msgstr ""
9335
9336 #. type: verbatim
9337 #: ../fish/guestfish-actions.pod:1600
9338 #, no-wrap
9339 msgid ""
9340 " get-smp\n"
9341 "\n"
9342 msgstr ""
9343
9344 #. type: textblock
9345 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9346 msgid "This returns the number of virtual CPUs assigned to the appliance."
9347 msgstr ""
9348
9349 #. type: =head2
9350 #: ../fish/guestfish-actions.pod:1604
9351 msgid "get-state"
9352 msgstr "get-state"
9353
9354 #. type: verbatim
9355 #: ../fish/guestfish-actions.pod:1606
9356 #, no-wrap
9357 msgid ""
9358 " get-state\n"
9359 "\n"
9360 msgstr ""
9361 " get-state\n"
9362 "\n"
9363
9364 #. type: textblock
9365 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9366 msgid ""
9367 "This returns the current state as an opaque integer.  This is only useful "
9368 "for printing debug and internal error messages."
9369 msgstr ""
9370
9371 #. type: textblock
9372 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9373 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9374 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9375 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9376 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9377 msgid "For more information on states, see L<guestfs(3)>."
9378 msgstr ""
9379
9380 #. type: =head2
9381 #: ../fish/guestfish-actions.pod:1613
9382 msgid "get-trace"
9383 msgstr "get-trace"
9384
9385 #. type: verbatim
9386 #: ../fish/guestfish-actions.pod:1615
9387 #, no-wrap
9388 msgid ""
9389 " get-trace\n"
9390 "\n"
9391 msgstr ""
9392 " get-trace\n"
9393 "\n"
9394
9395 #. type: textblock
9396 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9397 msgid "Return the command trace flag."
9398 msgstr ""
9399
9400 #. type: =head2
9401 #: ../fish/guestfish-actions.pod:1619
9402 msgid "get-umask"
9403 msgstr "get-umask"
9404
9405 #. type: verbatim
9406 #: ../fish/guestfish-actions.pod:1621
9407 #, no-wrap
9408 msgid ""
9409 " get-umask\n"
9410 "\n"
9411 msgstr ""
9412 " get-umask\n"
9413 "\n"
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1623
9417 msgid ""
9418 "Return the current umask.  By default the umask is C<022> unless it has been "
9419 "set by calling L</umask>."
9420 msgstr ""
9421
9422 #. type: =head2
9423 #: ../fish/guestfish-actions.pod:1626
9424 msgid "get-verbose"
9425 msgstr "get-verbose"
9426
9427 #. type: verbatim
9428 #: ../fish/guestfish-actions.pod:1628
9429 #, no-wrap
9430 msgid ""
9431 " get-verbose\n"
9432 "\n"
9433 msgstr ""
9434 " get-verbose\n"
9435 "\n"
9436
9437 #. type: textblock
9438 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9439 msgid "This returns the verbose messages flag."
9440 msgstr ""
9441
9442 #. type: =head2
9443 #: ../fish/guestfish-actions.pod:1632
9444 msgid "getcon"
9445 msgstr "getcon"
9446
9447 #. type: verbatim
9448 #: ../fish/guestfish-actions.pod:1634
9449 #, no-wrap
9450 msgid ""
9451 " getcon\n"
9452 "\n"
9453 msgstr ""
9454 " getcon\n"
9455 "\n"
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9459 msgid "This gets the SELinux security context of the daemon."
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../fish/guestfish-actions.pod:1638
9464 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9465 msgstr ""
9466
9467 #. type: =head2
9468 #: ../fish/guestfish-actions.pod:1641
9469 msgid "getxattr"
9470 msgstr "getxattr"
9471
9472 #. type: verbatim
9473 #: ../fish/guestfish-actions.pod:1643
9474 #, no-wrap
9475 msgid ""
9476 " getxattr path name\n"
9477 "\n"
9478 msgstr ""
9479 " getxattr шлях назва\n"
9480 "\n"
9481
9482 #. type: textblock
9483 #: ../fish/guestfish-actions.pod:1645
9484 msgid ""
9485 "Get a single extended attribute from file C<path> named C<name>.  This call "
9486 "follows symlinks.  If you want to lookup an extended attribute for the "
9487 "symlink itself, use L</lgetxattr>."
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9492 msgid ""
9493 "Normally it is better to get all extended attributes from a file in one go "
9494 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9495 "buggy and do not provide a way to list out attributes.  For these "
9496 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9497 "attributes you want in advance and call this function."
9498 msgstr ""
9499
9500 #. type: textblock
9501 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9502 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9503 msgid ""
9504 "Extended attribute values are blobs of binary data.  If there is no extended "
9505 "attribute named C<name>, this returns an error."
9506 msgstr ""
9507
9508 #. type: textblock
9509 #: ../fish/guestfish-actions.pod:1659
9510 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9511 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9512
9513 #. type: =head2
9514 #: ../fish/guestfish-actions.pod:1661
9515 msgid "getxattrs"
9516 msgstr "getxattrs"
9517
9518 #. type: verbatim
9519 #: ../fish/guestfish-actions.pod:1663
9520 #, no-wrap
9521 msgid ""
9522 " getxattrs path\n"
9523 "\n"
9524 msgstr ""
9525 " getxattrs шлях\n"
9526 "\n"
9527
9528 #. type: textblock
9529 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9530 msgid ""
9531 "This call lists the extended attributes of the file or directory C<path>."
9532 msgstr ""
9533
9534 #. type: textblock
9535 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9536 msgid ""
9537 "At the system call level, this is a combination of the L<listxattr(2)> and "
9538 "L<getxattr(2)> calls."
9539 msgstr ""
9540
9541 #. type: textblock
9542 #: ../fish/guestfish-actions.pod:1671
9543 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9544 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9545
9546 #. type: =head2
9547 #: ../fish/guestfish-actions.pod:1673
9548 msgid "glob-expand"
9549 msgstr "glob-expand"
9550
9551 #. type: verbatim
9552 #: ../fish/guestfish-actions.pod:1675
9553 #, no-wrap
9554 msgid ""
9555 " glob-expand pattern\n"
9556 "\n"
9557 msgstr ""
9558 " glob-expand шаблон\n"
9559 "\n"
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9563 msgid ""
9564 "This command searches for all the pathnames matching C<pattern> according to "
9565 "the wildcard expansion rules used by the shell."
9566 msgstr ""
9567
9568 #. type: textblock
9569 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9570 msgid ""
9571 "If no paths match, then this returns an empty list (note: not an error)."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9576 msgid ""
9577 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9578 "GLOB_BRACE>.  See that manual page for more details."
9579 msgstr ""
9580
9581 #. type: =head2
9582 #: ../fish/guestfish-actions.pod:1688
9583 msgid "grep"
9584 msgstr "grep"
9585
9586 #. type: verbatim
9587 #: ../fish/guestfish-actions.pod:1690
9588 #, no-wrap
9589 msgid ""
9590 " grep regex path\n"
9591 "\n"
9592 msgstr ""
9593 " grepi формальний_вираз шлях\n"
9594 "\n"
9595
9596 #. type: textblock
9597 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9598 msgid "This calls the external C<grep> program and returns the matching lines."
9599 msgstr ""
9600
9601 #. type: =head2
9602 #: ../fish/guestfish-actions.pod:1698
9603 msgid "grepi"
9604 msgstr "grepi"
9605
9606 #. type: verbatim
9607 #: ../fish/guestfish-actions.pod:1700
9608 #, no-wrap
9609 msgid ""
9610 " grepi regex path\n"
9611 "\n"
9612 msgstr ""
9613 " grepi формальний_вираз шлях\n"
9614 "\n"
9615
9616 #. type: textblock
9617 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9618 msgid ""
9619 "This calls the external C<grep -i> program and returns the matching lines."
9620 msgstr ""
9621
9622 #. type: =head2
9623 #: ../fish/guestfish-actions.pod:1708
9624 msgid "grub-install"
9625 msgstr "grub-install"
9626
9627 #. type: verbatim
9628 #: ../fish/guestfish-actions.pod:1710
9629 #, no-wrap
9630 msgid ""
9631 " grub-install root device\n"
9632 "\n"
9633 msgstr ""
9634 " grub-install кореневий пристрій\n"
9635 "\n"
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9639 msgid ""
9640 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9641 "with the root directory being C<root>."
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9646 msgid ""
9647 "There is currently no way in the API to install grub2, which is used by most "
9648 "modern Linux guests.  It is possible to run the grub2 command from the "
9649 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9650 msgstr ""
9651
9652 #. type: textblock
9653 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9654 msgid ""
9655 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9656 "compatible with itself, so this only works in rather narrow circumstances.  "
9657 "Careful testing with each guest version is advisable."
9658 msgstr ""
9659
9660 #. type: textblock
9661 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9662 msgid ""
9663 "If grub-install reports the error \"No suitable drive was found in the "
9664 "generated device map.\" it may be that you need to create a C</boot/grub/"
9665 "device.map> file first that contains the mapping between grub device names "
9666 "and Linux device names.  It is usually sufficient to create a file "
9667 "containing:"
9668 msgstr ""
9669
9670 #. type: verbatim
9671 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9672 #, no-wrap
9673 msgid ""
9674 " (hd0) /dev/vda\n"
9675 "\n"
9676 msgstr ""
9677
9678 #. type: textblock
9679 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9680 msgid "replacing C</dev/vda> with the name of the installation device."
9681 msgstr ""
9682
9683 #. type: =head2
9684 #: ../fish/guestfish-actions.pod:1748
9685 msgid "head"
9686 msgstr "head"
9687
9688 #. type: verbatim
9689 #: ../fish/guestfish-actions.pod:1750
9690 #, no-wrap
9691 msgid ""
9692 " head path\n"
9693 "\n"
9694 msgstr ""
9695 " head шлях\n"
9696 "\n"
9697
9698 #. type: textblock
9699 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9700 msgid ""
9701 "This command returns up to the first 10 lines of a file as a list of strings."
9702 msgstr ""
9703
9704 #. type: =head2
9705 #: ../fish/guestfish-actions.pod:1758
9706 msgid "head-n"
9707 msgstr "head-n"
9708
9709 #. type: verbatim
9710 #: ../fish/guestfish-actions.pod:1760
9711 #, no-wrap
9712 msgid ""
9713 " head-n nrlines path\n"
9714 "\n"
9715 msgstr ""
9716
9717 #. type: textblock
9718 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9719 msgid ""
9720 "If the parameter C<nrlines> is a positive number, this returns the first "
9721 "C<nrlines> lines of the file C<path>."
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9726 msgid ""
9727 "If the parameter C<nrlines> is a negative number, this returns lines from "
9728 "the file C<path>, excluding the last C<nrlines> lines."
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4940
9733 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7609
9734 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9735 msgstr ""
9736
9737 #. type: =head2
9738 #: ../fish/guestfish-actions.pod:1773
9739 msgid "hexdump"
9740 msgstr "hexdump"
9741
9742 #. type: verbatim
9743 #: ../fish/guestfish-actions.pod:1775
9744 #, no-wrap
9745 msgid ""
9746 " hexdump path\n"
9747 "\n"
9748 msgstr ""
9749 " hexdump шлях\n"
9750 "\n"
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9754 msgid ""
9755 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9756 "readable, canonical hex dump of the file."
9757 msgstr ""
9758
9759 #. type: =head2
9760 #: ../fish/guestfish-actions.pod:1783
9761 msgid "initrd-cat"
9762 msgstr "initrd-cat"
9763
9764 #. type: verbatim
9765 #: ../fish/guestfish-actions.pod:1785
9766 #, no-wrap
9767 msgid ""
9768 " initrd-cat initrdpath filename\n"
9769 "\n"
9770 msgstr ""
9771 " initrd-cat шлях_initrd назва_файла\n"
9772 "\n"
9773
9774 #. type: textblock
9775 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9776 msgid ""
9777 "This command unpacks the file C<filename> from the initrd file called "
9778 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9779 "character."
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9784 msgid ""
9785 "For example, in guestfish you could use the following command to examine the "
9786 "boot script (usually called C</init>)  contained in a Linux initrd or "
9787 "initramfs image:"
9788 msgstr ""
9789
9790 #. type: verbatim
9791 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9792 #, no-wrap
9793 msgid ""
9794 " initrd-cat /boot/initrd-<version>.img init\n"
9795 "\n"
9796 msgstr ""
9797
9798 #. type: textblock
9799 #: ../fish/guestfish-actions.pod:1797
9800 msgid "See also L</initrd-list>."
9801 msgstr "Див. також L</initrd-list>."
9802
9803 #. type: =head2
9804 #: ../fish/guestfish-actions.pod:1802
9805 msgid "initrd-list"
9806 msgstr "initrd-list"
9807
9808 #. type: verbatim
9809 #: ../fish/guestfish-actions.pod:1804
9810 #, no-wrap
9811 msgid ""
9812 " initrd-list path\n"
9813 "\n"
9814 msgstr ""
9815 " initrd-list шлях\n"
9816 "\n"
9817
9818 #. type: textblock
9819 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9820 msgid "This command lists out files contained in an initrd."
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9825 msgid ""
9826 "The files are listed without any initial C</> character.  The files are "
9827 "listed in the order they appear (not necessarily alphabetical).  Directory "
9828 "names are listed as separate items."
9829 msgstr ""
9830
9831 #. type: textblock
9832 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9833 msgid ""
9834 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9835 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9836 "files)."
9837 msgstr ""
9838
9839 #. type: =head2
9840 #: ../fish/guestfish-actions.pod:1816
9841 msgid "inotify-add-watch"
9842 msgstr "inotify-add-watch"
9843
9844 #. type: verbatim
9845 #: ../fish/guestfish-actions.pod:1818
9846 #, no-wrap
9847 msgid ""
9848 " inotify-add-watch path mask\n"
9849 "\n"
9850 msgstr ""
9851 " inotify-add-watch шлях маска\n"
9852 "\n"
9853
9854 #. type: textblock
9855 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9856 msgid "Watch C<path> for the events listed in C<mask>."
9857 msgstr ""
9858
9859 #. type: textblock
9860 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9861 msgid ""
9862 "Note that if C<path> is a directory then events within that directory are "
9863 "watched, but this does I<not> happen recursively (in subdirectories)."
9864 msgstr ""
9865
9866 #. type: textblock
9867 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9868 msgid ""
9869 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9870 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9871 msgstr ""
9872
9873 #. type: =head2
9874 #: ../fish/guestfish-actions.pod:1830
9875 msgid "inotify-close"
9876 msgstr "inotify-close"
9877
9878 #. type: verbatim
9879 #: ../fish/guestfish-actions.pod:1832
9880 #, no-wrap
9881 msgid ""
9882 " inotify-close\n"
9883 "\n"
9884 msgstr ""
9885 " inotify-close\n"
9886 "\n"
9887
9888 #. type: textblock
9889 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9890 msgid ""
9891 "This closes the inotify handle which was previously opened by inotify_init.  "
9892 "It removes all watches, throws away any pending events, and deallocates all "
9893 "resources."
9894 msgstr ""
9895
9896 #. type: =head2
9897 #: ../fish/guestfish-actions.pod:1838
9898 msgid "inotify-files"
9899 msgstr "inotify-files"
9900
9901 #. type: verbatim
9902 #: ../fish/guestfish-actions.pod:1840
9903 #, no-wrap
9904 msgid ""
9905 " inotify-files\n"
9906 "\n"
9907 msgstr ""
9908 " inotify-files\n"
9909 "\n"
9910
9911 #. type: textblock
9912 #: ../fish/guestfish-actions.pod:1842
9913 msgid ""
9914 "This function is a helpful wrapper around L</inotify-read> which just "
9915 "returns a list of pathnames of objects that were touched.  The returned "
9916 "pathnames are sorted and deduplicated."
9917 msgstr ""
9918
9919 #. type: =head2
9920 #: ../fish/guestfish-actions.pod:1846
9921 msgid "inotify-init"
9922 msgstr "inotify-init"
9923
9924 #. type: verbatim
9925 #: ../fish/guestfish-actions.pod:1848
9926 #, no-wrap
9927 msgid ""
9928 " inotify-init maxevents\n"
9929 "\n"
9930 msgstr ""
9931
9932 #. type: textblock
9933 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9934 msgid ""
9935 "This command creates a new inotify handle.  The inotify subsystem can be "
9936 "used to notify events which happen to objects in the guest filesystem."
9937 msgstr ""
9938
9939 #. type: textblock
9940 #: ../fish/guestfish-actions.pod:1854
9941 msgid ""
9942 "C<maxevents> is the maximum number of events which will be queued up between "
9943 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9944 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9945 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9946 "but records the fact that it threw them away by setting a flag "
9947 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9948 msgstr ""
9949
9950 #. type: textblock
9951 #: ../fish/guestfish-actions.pod:1864
9952 msgid ""
9953 "Before any events are generated, you have to add some watches to the "
9954 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9955 "L</inotify-watch-all>."
9956 msgstr ""
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:1870
9960 msgid ""
9961 "Queued up events should be read periodically by calling L</inotify-read> (or "
9962 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9963 "If you don't read the events out often enough then you risk the internal "
9964 "queue overflowing."
9965 msgstr ""
9966
9967 #. type: textblock
9968 #: ../fish/guestfish-actions.pod:1877
9969 msgid ""
9970 "The handle should be closed after use by calling L</inotify-close>.  This "
9971 "also removes any watches automatically."
9972 msgstr ""
9973
9974 #. type: textblock
9975 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9976 msgid ""
9977 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9978 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9979 "that there is one global inotify handle per libguestfs instance."
9980 msgstr ""
9981
9982 #. type: =head2
9983 #: ../fish/guestfish-actions.pod:1886
9984 msgid "inotify-read"
9985 msgstr "inotify-read"
9986
9987 #. type: verbatim
9988 #: ../fish/guestfish-actions.pod:1888
9989 #, no-wrap
9990 msgid ""
9991 " inotify-read\n"
9992 "\n"
9993 msgstr ""
9994 " inotify-read\n"
9995 "\n"
9996
9997 #. type: textblock
9998 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9999 msgid ""
10000 "Return the complete queue of events that have happened since the previous "
10001 "read call."
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10006 msgid "If no events have happened, this returns an empty list."
10007 msgstr ""
10008
10009 #. type: textblock
10010 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10011 msgid ""
10012 "I<Note>: In order to make sure that all events have been read, you must call "
10013 "this function repeatedly until it returns an empty list.  The reason is that "
10014 "the call will read events up to the maximum appliance-to-host message size "
10015 "and leave remaining events in the queue."
10016 msgstr ""
10017
10018 #. type: =head2
10019 #: ../fish/guestfish-actions.pod:1901
10020 msgid "inotify-rm-watch"
10021 msgstr "inotify-rm-watch"
10022
10023 #. type: verbatim
10024 #: ../fish/guestfish-actions.pod:1903
10025 #, no-wrap
10026 msgid ""
10027 " inotify-rm-watch wd\n"
10028 "\n"
10029 msgstr ""
10030
10031 #. type: textblock
10032 #: ../fish/guestfish-actions.pod:1905
10033 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10034 msgstr ""
10035
10036 #. type: =head2
10037 #: ../fish/guestfish-actions.pod:1908
10038 msgid "inspect-get-arch"
10039 msgstr "inspect-get-arch"
10040
10041 #. type: verbatim
10042 #: ../fish/guestfish-actions.pod:1910
10043 #, no-wrap
10044 msgid ""
10045 " inspect-get-arch root\n"
10046 "\n"
10047 msgstr ""
10048 " inspect-get-arch корінь\n"
10049 "\n"
10050
10051 #. type: textblock
10052 #: ../fish/guestfish-actions.pod:1912
10053 msgid ""
10054 "This returns the architecture of the inspected operating system.  The "
10055 "possible return values are listed under L</file-architecture>."
10056 msgstr ""
10057
10058 #. type: textblock
10059 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10060 msgid ""
10061 "If the architecture could not be determined, then the string C<unknown> is "
10062 "returned."
10063 msgstr ""
10064
10065 #. type: textblock
10066 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10067 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10068 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10069 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10070 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10071 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10072 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10073 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10074 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10075 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10076 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10077 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10078 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10079 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10080 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10081 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10082 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10083 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10084 msgstr ""
10085
10086 #. type: =head2
10087 #: ../fish/guestfish-actions.pod:1921
10088 msgid "inspect-get-distro"
10089 msgstr "inspect-get-distro"
10090
10091 #. type: verbatim
10092 #: ../fish/guestfish-actions.pod:1923
10093 #, no-wrap
10094 msgid ""
10095 " inspect-get-distro root\n"
10096 "\n"
10097 msgstr ""
10098 " inspect-get-distro корінь\n"
10099 "\n"
10100
10101 #. type: textblock
10102 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10103 msgid ""
10104 "This returns the distro (distribution) of the inspected operating system."
10105 msgstr ""
10106
10107 #. type: textblock
10108 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10109 msgid "Currently defined distros are:"
10110 msgstr ""
10111
10112 #. type: =item
10113 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10114 msgid "\"archlinux\""
10115 msgstr "\"archlinux\""
10116
10117 #. type: textblock
10118 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10119 msgid "Arch Linux."
10120 msgstr "Arch Linux."
10121
10122 #. type: =item
10123 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10124 msgid "\"centos\""
10125 msgstr ""
10126
10127 #. type: textblock
10128 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10129 msgid "CentOS."
10130 msgstr ""
10131
10132 #. type: =item
10133 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10134 msgid "\"debian\""
10135 msgstr "\"debian\""
10136
10137 #. type: textblock
10138 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10139 msgid "Debian."
10140 msgstr "Debian."
10141
10142 #. type: =item
10143 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10144 msgid "\"fedora\""
10145 msgstr "\"fedora\""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10149 msgid "Fedora."
10150 msgstr "Fedora."
10151
10152 #. type: =item
10153 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10154 msgid "\"gentoo\""
10155 msgstr "\"gentoo\""
10156
10157 #. type: textblock
10158 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10159 msgid "Gentoo."
10160 msgstr "Gentoo."
10161
10162 #. type: =item
10163 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10164 msgid "\"linuxmint\""
10165 msgstr "\"linuxmint\""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10169 msgid "Linux Mint."
10170 msgstr "Linux Mint."
10171
10172 #. type: =item
10173 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10174 msgid "\"mageia\""
10175 msgstr ""
10176
10177 #. type: textblock
10178 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10179 msgid "Mageia."
10180 msgstr ""
10181
10182 #. type: =item
10183 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10184 msgid "\"mandriva\""
10185 msgstr "\"mandriva\""
10186
10187 #. type: textblock
10188 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10189 msgid "Mandriva."
10190 msgstr "Mandriva."
10191
10192 #. type: =item
10193 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10194 msgid "\"meego\""
10195 msgstr "\"meego\""
10196
10197 #. type: textblock
10198 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10199 msgid "MeeGo."
10200 msgstr "MeeGo."
10201
10202 #. type: =item
10203 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10204 msgid "\"opensuse\""
10205 msgstr ""
10206
10207 #. type: textblock
10208 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10209 msgid "OpenSUSE."
10210 msgstr ""
10211
10212 #. type: =item
10213 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10214 msgid "\"pardus\""
10215 msgstr "\"pardus\""
10216
10217 #. type: textblock
10218 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10219 msgid "Pardus."
10220 msgstr "Pardus."
10221
10222 #. type: =item
10223 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10224 msgid "\"redhat-based\""
10225 msgstr "\"redhat-based\""
10226
10227 #. type: textblock
10228 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10229 msgid "Some Red Hat-derived distro."
10230 msgstr "Дистрибутив, що походить від Red Hat."
10231
10232 #. type: =item
10233 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10234 msgid "\"rhel\""
10235 msgstr "\"rhel\""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10239 msgid "Red Hat Enterprise Linux."
10240 msgstr "Red Hat Enterprise Linux."
10241
10242 #. type: =item
10243 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10244 msgid "\"scientificlinux\""
10245 msgstr "\"scientificlinux\""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10249 msgid "Scientific Linux."
10250 msgstr "Scientific Linux."
10251
10252 #. type: =item
10253 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10254 msgid "\"slackware\""
10255 msgstr "\"slackware\""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10259 msgid "Slackware."
10260 msgstr "Slackware."
10261
10262 #. type: =item
10263 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10264 msgid "\"ttylinux\""
10265 msgstr ""
10266
10267 #. type: textblock
10268 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10269 msgid "ttylinux."
10270 msgstr ""
10271
10272 #. type: =item
10273 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10274 msgid "\"ubuntu\""
10275 msgstr "\"ubuntu\""
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10279 msgid "Ubuntu."
10280 msgstr "Ubuntu."
10281
10282 #. type: =item
10283 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10284 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10285 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10286 msgid "\"unknown\""
10287 msgstr "\"unknown\""
10288
10289 #. type: textblock
10290 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10291 msgid "The distro could not be determined."
10292 msgstr "Дистрибутив, тип якого не вдалося визначити."
10293
10294 #. type: =item
10295 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10296 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10297 msgid "\"windows\""
10298 msgstr "\"windows\""
10299
10300 #. type: textblock
10301 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10302 msgid ""
10303 "Windows does not have distributions.  This string is returned if the OS type "
10304 "is Windows."
10305 msgstr ""
10306
10307 #. type: textblock
10308 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10309 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10310 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10311 msgid ""
10312 "Future versions of libguestfs may return other strings here.  The caller "
10313 "should be prepared to handle any string."
10314 msgstr ""
10315
10316 #. type: =head2
10317 #: ../fish/guestfish-actions.pod:2016
10318 msgid "inspect-get-drive-mappings"
10319 msgstr ""
10320
10321 #. type: verbatim
10322 #: ../fish/guestfish-actions.pod:2018
10323 #, no-wrap
10324 msgid ""
10325 " inspect-get-drive-mappings root\n"
10326 "\n"
10327 msgstr ""
10328
10329 #. type: textblock
10330 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10331 msgid ""
10332 "This call is useful for Windows which uses a primitive system of assigning "
10333 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10334 "Windows Registry to find out how disks/partitions are mapped to drive "
10335 "letters, and returns a hash table as in the example below:"
10336 msgstr ""
10337
10338 #. type: verbatim
10339 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10340 #, no-wrap
10341 msgid ""
10342 " C      =>     /dev/vda2\n"
10343 " E      =>     /dev/vdb1\n"
10344 " F      =>     /dev/vdc1\n"
10345 "\n"
10346 msgstr ""
10347
10348 #. type: textblock
10349 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10350 msgid ""
10351 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10352 "and just contains the drive letter, without the customary colon separator "
10353 "character."
10354 msgstr ""
10355
10356 #. type: textblock
10357 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10358 msgid ""
10359 "In future we may support other operating systems that also used drive "
10360 "letters, but the keys for those might not be case insensitive and might be "
10361 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10362 "C<h1> etc."
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10367 msgid ""
10368 "For Windows guests, currently only hard drive mappings are returned.  "
10369 "Removable disks (eg. DVD-ROMs) are ignored."
10370 msgstr ""
10371
10372 #. type: textblock
10373 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10374 msgid ""
10375 "For guests that do not use drive mappings, or if the drive mappings could "
10376 "not be determined, this returns an empty hash table."
10377 msgstr ""
10378
10379 #. type: textblock
10380 #: ../fish/guestfish-actions.pod:2045
10381 msgid ""
10382 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10383 "get-mountpoints>, L</inspect-get-filesystems>."
10384 msgstr ""
10385
10386 #. type: =head2
10387 #: ../fish/guestfish-actions.pod:2049
10388 msgid "inspect-get-filesystems"
10389 msgstr "inspect-get-filesystems"
10390
10391 #. type: verbatim
10392 #: ../fish/guestfish-actions.pod:2051
10393 #, no-wrap
10394 msgid ""
10395 " inspect-get-filesystems root\n"
10396 "\n"
10397 msgstr ""
10398 " inspect-get-filesystems корінь\n"
10399 "\n"
10400
10401 #. type: textblock
10402 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10403 msgid ""
10404 "This returns a list of all the filesystems that we think are associated with "
10405 "this operating system.  This includes the root filesystem, other ordinary "
10406 "filesystems, and non-mounted devices like swap partitions."
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10411 msgid ""
10412 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10413 "to be shared between operating systems."
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:2061
10418 msgid ""
10419 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10420 "get-mountpoints>."
10421 msgstr ""
10422
10423 #. type: =head2
10424 #: ../fish/guestfish-actions.pod:2064
10425 msgid "inspect-get-format"
10426 msgstr "inspect-get-format"
10427
10428 #. type: verbatim
10429 #: ../fish/guestfish-actions.pod:2066
10430 #, no-wrap
10431 msgid ""
10432 " inspect-get-format root\n"
10433 "\n"
10434 msgstr ""
10435 " inspect-get-format корінь\n"
10436 "\n"
10437
10438 #. type: textblock
10439 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10440 msgid ""
10441 "This returns the format of the inspected operating system.  You can use it "
10442 "to detect install images, live CDs and similar."
10443 msgstr ""
10444
10445 #. type: textblock
10446 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10447 msgid "Currently defined formats are:"
10448 msgstr ""
10449
10450 #. type: =item
10451 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10452 msgid "\"installed\""
10453 msgstr "\"installed\""
10454
10455 #. type: textblock
10456 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10457 msgid "This is an installed operating system."
10458 msgstr "Це встановлена операційна система."
10459
10460 #. type: =item
10461 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10462 msgid "\"installer\""
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10467 msgid ""
10468 "The disk image being inspected is not an installed operating system, but a "
10469 "I<bootable> install disk, live CD, or similar."
10470 msgstr ""
10471
10472 #. type: textblock
10473 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10474 msgid "The format of this disk image is not known."
10475 msgstr ""
10476
10477 #. type: =head2
10478 #: ../fish/guestfish-actions.pod:2095
10479 msgid "inspect-get-hostname"
10480 msgstr "inspect-get-hostname"
10481
10482 #. type: verbatim
10483 #: ../fish/guestfish-actions.pod:2097
10484 #, no-wrap
10485 msgid ""
10486 " inspect-get-hostname root\n"
10487 "\n"
10488 msgstr ""
10489 " inspect-get-hostname корінь\n"
10490 "\n"
10491
10492 #. type: textblock
10493 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10494 msgid ""
10495 "This function returns the hostname of the operating system as found by "
10496 "inspection of the guest's configuration files."
10497 msgstr ""
10498
10499 #. type: textblock
10500 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10501 msgid ""
10502 "If the hostname could not be determined, then the string C<unknown> is "
10503 "returned."
10504 msgstr ""
10505
10506 #. type: =head2
10507 #: ../fish/guestfish-actions.pod:2107
10508 msgid "inspect-get-icon"
10509 msgstr ""
10510
10511 #. type: verbatim
10512 #: ../fish/guestfish-actions.pod:2109
10513 #, no-wrap
10514 msgid ""
10515 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10516 "\n"
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10521 msgid ""
10522 "This function returns an icon corresponding to the inspected operating "
10523 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10524 "to PNG if necessary)."
10525 msgstr ""
10526
10527 #. type: textblock
10528 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10529 msgid ""
10530 "If it was not possible to get an icon this function returns a zero-length "
10531 "(non-NULL) buffer.  I<Callers must check for this case>."
10532 msgstr ""
10533
10534 #. type: textblock
10535 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10536 msgid ""
10537 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10538 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10539 "this file will be returned.  You can disable favicons by passing the "
10540 "optional C<favicon> boolean as false (default is true)."
10541 msgstr ""
10542
10543 #. type: textblock
10544 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10545 msgid ""
10546 "If finding the favicon fails, then we look in other places in the guest for "
10547 "a suitable icon."
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10552 msgid ""
10553 "If the optional C<highquality> boolean is true then only high quality icons "
10554 "are returned, which means only icons of high resolution with an alpha "
10555 "channel.  The default (false) is to return any icon we can, even if it is of "
10556 "substandard quality."
10557 msgstr ""
10558
10559 #. type: textblock
10560 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10561 msgid ""
10562 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10563 "before you call this, since it needs to read information from the guest "
10564 "filesystem during the call."
10565 msgstr ""
10566
10567 #. type: textblock
10568 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10569 msgid ""
10570 "B<Security:> The icon data comes from the untrusted guest, and should be "
10571 "treated with caution.  PNG files have been known to contain exploits.  "
10572 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10573 "trying to process or display the icon."
10574 msgstr ""
10575
10576 #. type: textblock
10577 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10578 msgid ""
10579 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10580 "tries to return the largest, highest quality icon available.  The "
10581 "application must scale the icon to the required size."
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10586 msgid ""
10587 "Extracting icons from Windows guests requires the external C<wrestool> "
10588 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10589 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10590 "installed separately."
10591 msgstr ""
10592
10593 #. type: textblock
10594 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10595 msgid ""
10596 "Operating system icons are usually trademarks.  Seek legal advice before "
10597 "using trademarks in applications."
10598 msgstr ""
10599
10600 #. type: =head2
10601 #: ../fish/guestfish-actions.pod:2173
10602 msgid "inspect-get-major-version"
10603 msgstr "inspect-get-major-version"
10604
10605 #. type: verbatim
10606 #: ../fish/guestfish-actions.pod:2175
10607 #, no-wrap
10608 msgid ""
10609 " inspect-get-major-version root\n"
10610 "\n"
10611 msgstr ""
10612 " inspect-get-major-version корінь\n"
10613 "\n"
10614
10615 #. type: textblock
10616 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10617 msgid ""
10618 "This returns the major version number of the inspected operating system."
10619 msgstr ""
10620
10621 #. type: textblock
10622 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10623 msgid ""
10624 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10625 "popular public names used by the operating system.  Notably the operating "
10626 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10627 "1).  You can find out the real versions corresponding to releases of Windows "
10628 "by consulting Wikipedia or MSDN."
10629 msgstr ""
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10633 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10634 msgid "If the version could not be determined, then C<0> is returned."
10635 msgstr ""
10636
10637 #. type: =head2
10638 #: ../fish/guestfish-actions.pod:2191
10639 msgid "inspect-get-minor-version"
10640 msgstr "inspect-get-minor-version"
10641
10642 #. type: verbatim
10643 #: ../fish/guestfish-actions.pod:2193
10644 #, no-wrap
10645 msgid ""
10646 " inspect-get-minor-version root\n"
10647 "\n"
10648 msgstr ""
10649 " inspect-get-minor-version корінь\n"
10650 "\n"
10651
10652 #. type: textblock
10653 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10654 msgid ""
10655 "This returns the minor version number of the inspected operating system."
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:2200
10660 msgid ""
10661 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10662 "get-major-version>."
10663 msgstr ""
10664
10665 #. type: =head2
10666 #: ../fish/guestfish-actions.pod:2203
10667 msgid "inspect-get-mountpoints"
10668 msgstr "inspect-get-mountpoints"
10669
10670 #. type: verbatim
10671 #: ../fish/guestfish-actions.pod:2205
10672 #, no-wrap
10673 msgid ""
10674 " inspect-get-mountpoints root\n"
10675 "\n"
10676 msgstr ""
10677 " inspect-get-mountpoints корінь\n"
10678 "\n"
10679
10680 #. type: textblock
10681 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10682 msgid ""
10683 "This returns a hash of where we think the filesystems associated with this "
10684 "operating system should be mounted.  Callers should note that this is at "
10685 "best an educated guess made by reading configuration files such as C</etc/"
10686 "fstab>.  I<In particular note> that this may return filesystems which are "
10687 "non-existent or not mountable and callers should be prepared to handle or "
10688 "ignore failures if they try to mount them."
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10693 msgid ""
10694 "Each element in the returned hashtable has a key which is the path of the "
10695 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10696 "mounted there (eg. C</dev/sda1>)."
10697 msgstr ""
10698
10699 #. type: textblock
10700 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10701 msgid ""
10702 "Non-mounted devices such as swap devices are I<not> returned in this list."
10703 msgstr ""
10704
10705 #. type: textblock
10706 #: ../fish/guestfish-actions.pod:2224
10707 msgid ""
10708 "For operating systems like Windows which still use drive letters, this call "
10709 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10710 "information about the mapping of drive letters to partitions, see L</inspect-"
10711 "get-drive-mappings>."
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:2230
10716 msgid ""
10717 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10718 "get-filesystems>."
10719 msgstr ""
10720
10721 #. type: =head2
10722 #: ../fish/guestfish-actions.pod:2233
10723 msgid "inspect-get-package-format"
10724 msgstr "inspect-get-package-format"
10725
10726 #. type: verbatim
10727 #: ../fish/guestfish-actions.pod:2235
10728 #, no-wrap
10729 msgid ""
10730 " inspect-get-package-format root\n"
10731 "\n"
10732 msgstr ""
10733 " inspect-get-package-format корінь\n"
10734 "\n"
10735
10736 #. type: textblock
10737 #: ../fish/guestfish-actions.pod:2237
10738 msgid ""
10739 "This function and L</inspect-get-package-management> return the package "
10740 "format and package management tool used by the inspected operating system.  "
10741 "For example for Fedora these functions would return C<rpm> (package format) "
10742 "and C<yum> (package management)."
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10747 msgid ""
10748 "This returns the string C<unknown> if we could not determine the package "
10749 "format I<or> if the operating system does not have a real packaging system "
10750 "(eg. Windows)."
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10755 msgid ""
10756 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10757 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10758 msgstr ""
10759
10760 #. type: =head2
10761 #: ../fish/guestfish-actions.pod:2253
10762 msgid "inspect-get-package-management"
10763 msgstr "inspect-get-package-management"
10764
10765 #. type: verbatim
10766 #: ../fish/guestfish-actions.pod:2255
10767 #, no-wrap
10768 msgid ""
10769 " inspect-get-package-management root\n"
10770 "\n"
10771 msgstr ""
10772 " inspect-get-package-management корінь\n"
10773 "\n"
10774
10775 #. type: textblock
10776 #: ../fish/guestfish-actions.pod:2257
10777 msgid ""
10778 "L</inspect-get-package-format> and this function return the package format "
10779 "and package management tool used by the inspected operating system.  For "
10780 "example for Fedora these functions would return C<rpm> (package format) and "
10781 "C<yum> (package management)."
10782 msgstr ""
10783
10784 #. type: textblock
10785 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10786 msgid ""
10787 "This returns the string C<unknown> if we could not determine the package "
10788 "management tool I<or> if the operating system does not have a real packaging "
10789 "system (eg. Windows)."
10790 msgstr ""
10791
10792 #. type: textblock
10793 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10794 msgid ""
10795 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10796 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10797 "versions of libguestfs may return other strings."
10798 msgstr ""
10799
10800 #. type: =head2
10801 #: ../fish/guestfish-actions.pod:2274
10802 msgid "inspect-get-product-name"
10803 msgstr "inspect-get-product-name"
10804
10805 #. type: verbatim
10806 #: ../fish/guestfish-actions.pod:2276
10807 #, no-wrap
10808 msgid ""
10809 " inspect-get-product-name root\n"
10810 "\n"
10811 msgstr ""
10812 " inspect-get-product-name корінь\n"
10813 "\n"
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10817 msgid ""
10818 "This returns the product name of the inspected operating system.  The "
10819 "product name is generally some freeform string which can be displayed to the "
10820 "user, but should not be parsed by programs."
10821 msgstr ""
10822
10823 #. type: textblock
10824 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10825 msgid ""
10826 "If the product name could not be determined, then the string C<unknown> is "
10827 "returned."
10828 msgstr ""
10829
10830 #. type: =head2
10831 #: ../fish/guestfish-actions.pod:2288
10832 msgid "inspect-get-product-variant"
10833 msgstr ""
10834
10835 #. type: verbatim
10836 #: ../fish/guestfish-actions.pod:2290
10837 #, no-wrap
10838 msgid ""
10839 " inspect-get-product-variant root\n"
10840 "\n"
10841 msgstr ""
10842
10843 #. type: textblock
10844 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10845 msgid "This returns the product variant of the inspected operating system."
10846 msgstr ""
10847
10848 #. type: textblock
10849 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10850 msgid ""
10851 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10852 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10853 "is usually a string such as C<Client> or C<Server> (other values are "
10854 "possible).  This can be used to distinguish consumer and enterprise versions "
10855 "of Windows that have the same version number (for example, Windows 7 and "
10856 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10857 "the latter is C<Server>)."
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10862 msgid ""
10863 "For enterprise Linux guests, in future we intend this to return the product "
10864 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10865 "implemented at present."
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10870 msgid ""
10871 "If the product variant could not be determined, then the string C<unknown> "
10872 "is returned."
10873 msgstr ""
10874
10875 #. type: textblock
10876 #: ../fish/guestfish-actions.pod:2311
10877 msgid ""
10878 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10879 "get-product-name>, L</inspect-get-major-version>."
10880 msgstr ""
10881
10882 #. type: =head2
10883 #: ../fish/guestfish-actions.pod:2315
10884 msgid "inspect-get-roots"
10885 msgstr "inspect-get-roots"
10886
10887 #. type: verbatim
10888 #: ../fish/guestfish-actions.pod:2317
10889 #, no-wrap
10890 msgid ""
10891 " inspect-get-roots\n"
10892 "\n"
10893 msgstr ""
10894 " inspect-get-roots\n"
10895 "\n"
10896
10897 #. type: textblock
10898 #: ../fish/guestfish-actions.pod:2319
10899 msgid ""
10900 "This function is a convenient way to get the list of root devices, as "
10901 "returned from a previous call to L</inspect-os>, but without redoing the "
10902 "whole inspection process."
10903 msgstr ""
10904
10905 #. type: textblock
10906 #: ../fish/guestfish-actions.pod:2323
10907 msgid ""
10908 "This returns an empty list if either no root devices were found or the "
10909 "caller has not called L</inspect-os>."
10910 msgstr ""
10911
10912 #. type: =head2
10913 #: ../fish/guestfish-actions.pod:2328
10914 msgid "inspect-get-type"
10915 msgstr "inspect-get-type"
10916
10917 #. type: verbatim
10918 #: ../fish/guestfish-actions.pod:2330
10919 #, no-wrap
10920 msgid ""
10921 " inspect-get-type root\n"
10922 "\n"
10923 msgstr ""
10924 " inspect-get-type корінь\n"
10925 "\n"
10926
10927 #. type: textblock
10928 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10929 msgid ""
10930 "This returns the type of the inspected operating system.  Currently defined "
10931 "types are:"
10932 msgstr ""
10933
10934 #. type: =item
10935 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10936 msgid "\"linux\""
10937 msgstr "\"linux\""
10938
10939 #. type: textblock
10940 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10941 msgid "Any Linux-based operating system."
10942 msgstr ""
10943
10944 #. type: textblock
10945 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10946 msgid "Any Microsoft Windows operating system."
10947 msgstr ""
10948
10949 #. type: =item
10950 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10951 msgid "\"freebsd\""
10952 msgstr "\"freebsd\""
10953
10954 #. type: textblock
10955 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10956 msgid "FreeBSD."
10957 msgstr "FreeBSD."
10958
10959 #. type: =item
10960 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10961 msgid "\"netbsd\""
10962 msgstr ""
10963
10964 #. type: textblock
10965 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10966 msgid "NetBSD."
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10971 msgid "The operating system type could not be determined."
10972 msgstr ""
10973
10974 #. type: =head2
10975 #: ../fish/guestfish-actions.pod:2364
10976 msgid "inspect-get-windows-current-control-set"
10977 msgstr ""
10978
10979 #. type: verbatim
10980 #: ../fish/guestfish-actions.pod:2366
10981 #, no-wrap
10982 msgid ""
10983 " inspect-get-windows-current-control-set root\n"
10984 "\n"
10985 msgstr ""
10986
10987 #. type: textblock
10988 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10989 msgid ""
10990 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10991 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10992 msgstr ""
10993
10994 #. type: textblock
10995 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10996 msgid ""
10997 "This call assumes that the guest is Windows and that the Registry could be "
10998 "examined by inspection.  If this is not the case then an error is returned."
10999 msgstr ""
11000
11001 #. type: =head2
11002 #: ../fish/guestfish-actions.pod:2377
11003 msgid "inspect-get-windows-systemroot"
11004 msgstr "inspect-get-windows-systemroot"
11005
11006 #. type: verbatim
11007 #: ../fish/guestfish-actions.pod:2379
11008 #, no-wrap
11009 msgid ""
11010 " inspect-get-windows-systemroot root\n"
11011 "\n"
11012 msgstr ""
11013 " inspect-get-windows-systemroot корінь\n"
11014 "\n"
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11018 msgid ""
11019 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11020 "is a directory path such as C</WINDOWS>."
11021 msgstr ""
11022
11023 #. type: textblock
11024 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11025 msgid ""
11026 "This call assumes that the guest is Windows and that the systemroot could be "
11027 "determined by inspection.  If this is not the case then an error is returned."
11028 msgstr ""
11029
11030 #. type: =head2
11031 #: ../fish/guestfish-actions.pod:2390
11032 msgid "inspect-is-live"
11033 msgstr "inspect-is-live"
11034
11035 #. type: verbatim
11036 #: ../fish/guestfish-actions.pod:2392
11037 #, no-wrap
11038 msgid ""
11039 " inspect-is-live root\n"
11040 "\n"
11041 msgstr ""
11042 " inspect-is-live корінь\n"
11043 "\n"
11044
11045 #. type: textblock
11046 #: ../fish/guestfish-actions.pod:2394
11047 msgid ""
11048 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11049 "then this returns true if a live image was detected on the disk."
11050 msgstr ""
11051
11052 #. type: =head2
11053 #: ../fish/guestfish-actions.pod:2400
11054 msgid "inspect-is-multipart"
11055 msgstr "inspect-is-multipart"
11056
11057 #. type: verbatim
11058 #: ../fish/guestfish-actions.pod:2402
11059 #, no-wrap
11060 msgid ""
11061 " inspect-is-multipart root\n"
11062 "\n"
11063 msgstr ""
11064 " inspect-is-multipart корінь\n"
11065 "\n"
11066
11067 #. type: textblock
11068 #: ../fish/guestfish-actions.pod:2404
11069 msgid ""
11070 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11071 "then this returns true if the disk is part of a set."
11072 msgstr ""
11073
11074 #. type: =head2
11075 #: ../fish/guestfish-actions.pod:2410
11076 msgid "inspect-is-netinst"
11077 msgstr "inspect-is-netinst"
11078
11079 #. type: verbatim
11080 #: ../fish/guestfish-actions.pod:2412
11081 #, no-wrap
11082 msgid ""
11083 " inspect-is-netinst root\n"
11084 "\n"
11085 msgstr ""
11086 " inspect-is-netinst корінь\n"
11087 "\n"
11088
11089 #. type: textblock
11090 #: ../fish/guestfish-actions.pod:2414
11091 msgid ""
11092 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11093 "then this returns true if the disk is a network installer, ie. not a self-"
11094 "contained install CD but one which is likely to require network access to "
11095 "complete the install."
11096 msgstr ""
11097
11098 #. type: =head2
11099 #: ../fish/guestfish-actions.pod:2422
11100 msgid "inspect-list-applications"
11101 msgstr "inspect-list-applications"
11102
11103 #. type: verbatim
11104 #: ../fish/guestfish-actions.pod:2424
11105 #, no-wrap
11106 msgid ""
11107 " inspect-list-applications root\n"
11108 "\n"
11109 msgstr ""
11110 " inspect-list-applications кореневий_каталог\n"
11111 "\n"
11112
11113 #. type: textblock
11114 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11115 msgid "Return the list of applications installed in the operating system."
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:2428
11120 msgid ""
11121 "I<Note:> This call works differently from other parts of the inspection "
11122 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11123 "then mount up the disks, before calling this.  Listing applications is a "
11124 "significantly more difficult operation which requires access to the full "
11125 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11126 "are just returning data cached in the libguestfs handle, this call actually "
11127 "reads parts of the mounted filesystems during the call."
11128 msgstr ""
11129
11130 #. type: textblock
11131 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11132 msgid ""
11133 "This returns an empty list if the inspection code was not able to determine "
11134 "the list of applications."
11135 msgstr ""
11136
11137 #. type: textblock
11138 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11139 msgid "The application structure contains the following fields:"
11140 msgstr ""
11141
11142 #. type: =item
11143 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11144 msgid "C<app_name>"
11145 msgstr "C<app_name>"
11146
11147 #. type: textblock
11148 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
11149 msgid ""
11150 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11151 "guests, this is the package name."
11152 msgstr ""
11153
11154 #. type: =item
11155 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
11156 msgid "C<app_display_name>"
11157 msgstr "C<app_display_name>"
11158
11159 #. type: textblock
11160 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
11161 msgid ""
11162 "The display name of the application, sometimes localized to the install "
11163 "language of the guest operating system."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11168 msgid ""
11169 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11170 "to display something can use C<app_name> instead."
11171 msgstr ""
11172
11173 #. type: =item
11174 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11175 msgid "C<app_epoch>"
11176 msgstr "C<app_epoch>"
11177
11178 #. type: textblock
11179 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11180 msgid ""
11181 "For package managers which use epochs, this contains the epoch of the "
11182 "package (an integer).  If unavailable, this is returned as C<0>."
11183 msgstr ""
11184
11185 #. type: =item
11186 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11187 msgid "C<app_version>"
11188 msgstr "C<app_version>"
11189
11190 #. type: textblock
11191 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11192 msgid ""
11193 "The version string of the application or package.  If unavailable this is "
11194 "returned as an empty string C<\"\">."
11195 msgstr ""
11196
11197 #. type: =item
11198 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11199 msgid "C<app_release>"
11200 msgstr "C<app_release>"
11201
11202 #. type: textblock
11203 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11204 msgid ""
11205 "The release string of the application or package, for package managers that "
11206 "use this.  If unavailable this is returned as an empty string C<\"\">."
11207 msgstr ""
11208
11209 #. type: =item
11210 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11211 msgid "C<app_install_path>"
11212 msgstr "C<app_install_path>"
11213
11214 #. type: textblock
11215 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11216 msgid ""
11217 "The installation path of the application (on operating systems such as "
11218 "Windows which use installation paths).  This path is in the format used by "
11219 "the guest operating system, it is not a libguestfs path."
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11224 msgid "If unavailable this is returned as an empty string C<\"\">."
11225 msgstr ""
11226
11227 #. type: =item
11228 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11229 msgid "C<app_trans_path>"
11230 msgstr "C<app_trans_path>"
11231
11232 #. type: textblock
11233 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11234 msgid ""
11235 "The install path translated into a libguestfs path.  If unavailable this is "
11236 "returned as an empty string C<\"\">."
11237 msgstr ""
11238
11239 #. type: =item
11240 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11241 msgid "C<app_publisher>"
11242 msgstr "C<app_publisher>"
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11246 msgid ""
11247 "The name of the publisher of the application, for package managers that use "
11248 "this.  If unavailable this is returned as an empty string C<\"\">."
11249 msgstr ""
11250
11251 #. type: =item
11252 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11253 msgid "C<app_url>"
11254 msgstr "C<app_url>"
11255
11256 #. type: textblock
11257 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11258 msgid ""
11259 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11260 "returned as an empty string C<\"\">."
11261 msgstr ""
11262
11263 #. type: =item
11264 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11265 msgid "C<app_source_package>"
11266 msgstr "C<app_source_package>"
11267
11268 #. type: textblock
11269 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11270 msgid ""
11271 "For packaging systems which support this, the name of the source package.  "
11272 "If unavailable this is returned as an empty string C<\"\">."
11273 msgstr ""
11274
11275 #. type: =item
11276 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11277 msgid "C<app_summary>"
11278 msgstr "C<app_summary>"
11279
11280 #. type: textblock
11281 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11282 msgid ""
11283 "A short (usually one line) description of the application or package.  If "
11284 "unavailable this is returned as an empty string C<\"\">."
11285 msgstr ""
11286
11287 #. type: =item
11288 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11289 msgid "C<app_description>"
11290 msgstr "C<app_description>"
11291
11292 #. type: textblock
11293 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11294 msgid ""
11295 "A longer description of the application or package.  If unavailable this is "
11296 "returned as an empty string C<\"\">."
11297 msgstr ""
11298
11299 #. type: =head2
11300 #: ../fish/guestfish-actions.pod:2518
11301 msgid "inspect-os"
11302 msgstr "inspect-os"
11303
11304 #. type: verbatim
11305 #: ../fish/guestfish-actions.pod:2520
11306 #, no-wrap
11307 msgid ""
11308 " inspect-os\n"
11309 "\n"
11310 msgstr ""
11311 " inspect-os\n"
11312 "\n"
11313
11314 #. type: textblock
11315 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11316 msgid ""
11317 "This function uses other libguestfs functions and certain heuristics to "
11318 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11319 "for operating systems."
11320 msgstr ""
11321
11322 #. type: textblock
11323 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11324 msgid "The list returned is empty if no operating systems were found."
11325 msgstr ""
11326
11327 #. type: textblock
11328 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11329 msgid ""
11330 "If one operating system was found, then this returns a list with a single "
11331 "element, which is the name of the root filesystem of this operating system.  "
11332 "It is also possible for this function to return a list containing more than "
11333 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11334 "element being the root filesystem of one of the operating systems."
11335 msgstr ""
11336
11337 #. type: textblock
11338 #: ../fish/guestfish-actions.pod:2535
11339 msgid ""
11340 "You can pass the root string(s) returned to other L</inspect-get-*> "
11341 "functions in order to query further information about each operating system, "
11342 "such as the name and version."
11343 msgstr ""
11344
11345 #. type: textblock
11346 #: ../fish/guestfish-actions.pod:2540
11347 msgid ""
11348 "This function uses other libguestfs features such as L</mount-ro> and L</"
11349 "umount-all> in order to mount and unmount filesystems and look at the "
11350 "contents.  This should be called with no disks currently mounted.  The "
11351 "function may also use Augeas, so any existing Augeas handle will be closed."
11352 msgstr ""
11353
11354 #. type: textblock
11355 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11356 msgid ""
11357 "This function cannot decrypt encrypted disks.  The caller must do that first "
11358 "(supplying the necessary keys) if the disk is encrypted."
11359 msgstr ""
11360
11361 #. type: textblock
11362 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11363 #: ../fish/guestfish-actions.pod:2815
11364 msgid "See also L</list-filesystems>."
11365 msgstr "Див. також L</list-filesystems>."
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:2554
11369 msgid "is-blockdev"
11370 msgstr "is-blockdev"
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:2556
11374 #, no-wrap
11375 msgid ""
11376 " is-blockdev path\n"
11377 "\n"
11378 msgstr ""
11379 " is-blockdev шлях\n"
11380 "\n"
11381
11382 #. type: textblock
11383 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11384 msgid ""
11385 "This returns C<true> if and only if there is a block device with the given "
11386 "C<path> name."
11387 msgstr ""
11388
11389 #. type: textblock
11390 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11391 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11392 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11393 #: ../fish/guestfish-actions.pod:2660
11394 msgid "See also L</stat>."
11395 msgstr "Див. також L</stat>."
11396
11397 #. type: =head2
11398 #: ../fish/guestfish-actions.pod:2563
11399 msgid "is-busy"
11400 msgstr "is-busy"
11401
11402 #. type: verbatim
11403 #: ../fish/guestfish-actions.pod:2565
11404 #, no-wrap
11405 msgid ""
11406 " is-busy\n"
11407 "\n"
11408 msgstr ""
11409 " is-busy\n"
11410 "\n"
11411
11412 #. type: textblock
11413 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11414 msgid ""
11415 "This returns true iff this handle is busy processing a command (in the "
11416 "C<BUSY> state)."
11417 msgstr ""
11418
11419 #. type: =head2
11420 #: ../fish/guestfish-actions.pod:2572
11421 msgid "is-chardev"
11422 msgstr "is-chardev"
11423
11424 #. type: verbatim
11425 #: ../fish/guestfish-actions.pod:2574
11426 #, no-wrap
11427 msgid ""
11428 " is-chardev path\n"
11429 "\n"
11430 msgstr ""
11431 " is-chardev шлях\n"
11432 "\n"
11433
11434 #. type: textblock
11435 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11436 msgid ""
11437 "This returns C<true> if and only if there is a character device with the "
11438 "given C<path> name."
11439 msgstr ""
11440
11441 #. type: =head2
11442 #: ../fish/guestfish-actions.pod:2581
11443 msgid "is-config"
11444 msgstr "is-config"
11445
11446 #. type: verbatim
11447 #: ../fish/guestfish-actions.pod:2583
11448 #, no-wrap
11449 msgid ""
11450 " is-config\n"
11451 "\n"
11452 msgstr ""
11453 " is-config\n"
11454 "\n"
11455
11456 #. type: textblock
11457 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11458 msgid ""
11459 "This returns true iff this handle is being configured (in the C<CONFIG> "
11460 "state)."
11461 msgstr ""
11462
11463 #. type: =head2
11464 #: ../fish/guestfish-actions.pod:2590
11465 msgid "is-dir"
11466 msgstr "is-dir"
11467
11468 #. type: verbatim
11469 #: ../fish/guestfish-actions.pod:2592
11470 #, no-wrap
11471 msgid ""
11472 " is-dir path\n"
11473 "\n"
11474 msgstr ""
11475 " is-dir шлях\n"
11476 "\n"
11477
11478 #. type: textblock
11479 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11480 msgid ""
11481 "This returns C<true> if and only if there is a directory with the given "
11482 "C<path> name.  Note that it returns false for other objects like files."
11483 msgstr ""
11484
11485 #. type: =head2
11486 #: ../fish/guestfish-actions.pod:2600
11487 msgid "is-fifo"
11488 msgstr "is-fifo"
11489
11490 #. type: verbatim
11491 #: ../fish/guestfish-actions.pod:2602
11492 #, no-wrap
11493 msgid ""
11494 " is-fifo path\n"
11495 "\n"
11496 msgstr ""
11497 " is-fifo шлях\n"
11498 "\n"
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11502 msgid ""
11503 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11504 "given C<path> name."
11505 msgstr ""
11506
11507 #. type: =head2
11508 #: ../fish/guestfish-actions.pod:2609
11509 msgid "is-file"
11510 msgstr "is-file"
11511
11512 #. type: verbatim
11513 #: ../fish/guestfish-actions.pod:2611
11514 #, no-wrap
11515 msgid ""
11516 " is-file path\n"
11517 "\n"
11518 msgstr ""
11519 " is-file шлях\n"
11520 "\n"
11521
11522 #. type: textblock
11523 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11524 msgid ""
11525 "This returns C<true> if and only if there is a regular file with the given "
11526 "C<path> name.  Note that it returns false for other objects like directories."
11527 msgstr ""
11528
11529 #. type: =head2
11530 #: ../fish/guestfish-actions.pod:2619
11531 msgid "is-launching"
11532 msgstr "is-launching"
11533
11534 #. type: verbatim
11535 #: ../fish/guestfish-actions.pod:2621
11536 #, no-wrap
11537 msgid ""
11538 " is-launching\n"
11539 "\n"
11540 msgstr ""
11541 " is-launching\n"
11542 "\n"
11543
11544 #. type: textblock
11545 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11546 msgid ""
11547 "This returns true iff this handle is launching the subprocess (in the "
11548 "C<LAUNCHING> state)."
11549 msgstr ""
11550
11551 #. type: =head2
11552 #: ../fish/guestfish-actions.pod:2628
11553 msgid "is-lv"
11554 msgstr "is-lv"
11555
11556 #. type: verbatim
11557 #: ../fish/guestfish-actions.pod:2630
11558 #, no-wrap
11559 msgid ""
11560 " is-lv device\n"
11561 "\n"
11562 msgstr ""
11563 " is-lv пристрій\n"
11564 "\n"
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11568 msgid ""
11569 "This command tests whether C<device> is a logical volume, and returns true "
11570 "iff this is the case."
11571 msgstr ""
11572
11573 #. type: =head2
11574 #: ../fish/guestfish-actions.pod:2635
11575 msgid "is-ready"
11576 msgstr "is-ready"
11577
11578 #. type: verbatim
11579 #: ../fish/guestfish-actions.pod:2637
11580 #, no-wrap
11581 msgid ""
11582 " is-ready\n"
11583 "\n"
11584 msgstr ""
11585 " is-ready\n"
11586 "\n"
11587
11588 #. type: textblock
11589 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11590 msgid ""
11591 "This returns true iff this handle is ready to accept commands (in the "
11592 "C<READY> state)."
11593 msgstr ""
11594
11595 #. type: =head2
11596 #: ../fish/guestfish-actions.pod:2644
11597 msgid "is-socket"
11598 msgstr "is-socket"
11599
11600 #. type: verbatim
11601 #: ../fish/guestfish-actions.pod:2646
11602 #, no-wrap
11603 msgid ""
11604 " is-socket path\n"
11605 "\n"
11606 msgstr ""
11607 " is-socket шлях\n"
11608 "\n"
11609
11610 #. type: textblock
11611 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11612 msgid ""
11613 "This returns C<true> if and only if there is a Unix domain socket with the "
11614 "given C<path> name."
11615 msgstr ""
11616
11617 #. type: =head2
11618 #: ../fish/guestfish-actions.pod:2653
11619 msgid "is-symlink"
11620 msgstr "is-symlink"
11621
11622 #. type: verbatim
11623 #: ../fish/guestfish-actions.pod:2655
11624 #, no-wrap
11625 msgid ""
11626 " is-symlink path\n"
11627 "\n"
11628 msgstr ""
11629 " is-symlink шлях\n"
11630 "\n"
11631
11632 #. type: textblock
11633 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11634 msgid ""
11635 "This returns C<true> if and only if there is a symbolic link with the given "
11636 "C<path> name."
11637 msgstr ""
11638
11639 #. type: =head2
11640 #: ../fish/guestfish-actions.pod:2662
11641 msgid "is-zero"
11642 msgstr ""
11643
11644 #. type: verbatim
11645 #: ../fish/guestfish-actions.pod:2664
11646 #, no-wrap
11647 msgid ""
11648 " is-zero path\n"
11649 "\n"
11650 msgstr ""
11651
11652 #. type: textblock
11653 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11654 msgid ""
11655 "This returns true iff the file exists and the file is empty or it contains "
11656 "all zero bytes."
11657 msgstr ""
11658
11659 #. type: =head2
11660 #: ../fish/guestfish-actions.pod:2669
11661 msgid "is-zero-device"
11662 msgstr ""
11663
11664 #. type: verbatim
11665 #: ../fish/guestfish-actions.pod:2671
11666 #, no-wrap
11667 msgid ""
11668 " is-zero-device device\n"
11669 "\n"
11670 msgstr ""
11671
11672 #. type: textblock
11673 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11674 msgid "This returns true iff the device exists and contains all zero bytes."
11675 msgstr ""
11676
11677 #. type: textblock
11678 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11679 msgid "Note that for large devices this can take a long time to run."
11680 msgstr ""
11681
11682 #. type: =head2
11683 #: ../fish/guestfish-actions.pod:2677
11684 msgid "kill-subprocess"
11685 msgstr "kill-subprocess"
11686
11687 #. type: verbatim
11688 #: ../fish/guestfish-actions.pod:2679
11689 #, no-wrap
11690 msgid ""
11691 " kill-subprocess\n"
11692 "\n"
11693 msgstr ""
11694 " kill-subprocess\n"
11695 "\n"
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11699 msgid "This kills the qemu subprocess.  You should never need to call this."
11700 msgstr ""
11701
11702 #. type: =head2
11703 #: ../fish/guestfish-actions.pod:2683
11704 msgid "launch"
11705 msgstr "launch"
11706
11707 #. type: =head2
11708 #: ../fish/guestfish-actions.pod:2685
11709 msgid "run"
11710 msgstr ""
11711
11712 #. type: verbatim
11713 #: ../fish/guestfish-actions.pod:2687
11714 #, no-wrap
11715 msgid ""
11716 " launch\n"
11717 "\n"
11718 msgstr ""
11719 " launch\n"
11720 "\n"
11721
11722 #. type: textblock
11723 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11724 msgid ""
11725 "Internally libguestfs is implemented by running a virtual machine using "
11726 "L<qemu(1)>."
11727 msgstr ""
11728
11729 #. type: textblock
11730 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11731 msgid ""
11732 "You should call this after configuring the handle (eg. adding drives) but "
11733 "before performing any actions."
11734 msgstr ""
11735
11736 #. type: =head2
11737 #: ../fish/guestfish-actions.pod:2695
11738 msgid "lchown"
11739 msgstr "lchown"
11740
11741 #. type: verbatim
11742 #: ../fish/guestfish-actions.pod:2697
11743 #, no-wrap
11744 msgid ""
11745 " lchown owner group path\n"
11746 "\n"
11747 msgstr ""
11748 " lchown власник група шлях\n"
11749 "\n"
11750
11751 #. type: textblock
11752 #: ../fish/guestfish-actions.pod:2699
11753 msgid ""
11754 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11755 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11756 "target."
11757 msgstr ""
11758
11759 #. type: =head2
11760 #: ../fish/guestfish-actions.pod:2707
11761 msgid "lgetxattr"
11762 msgstr "lgetxattr"
11763
11764 #. type: verbatim
11765 #: ../fish/guestfish-actions.pod:2709
11766 #, no-wrap
11767 msgid ""
11768 " lgetxattr path name\n"
11769 "\n"
11770 msgstr ""
11771 " lgetxattr шлях назва\n"
11772 "\n"
11773
11774 #. type: textblock
11775 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11776 msgid ""
11777 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11778 "is a symlink, then this call returns an extended attribute from the symlink."
11779 msgstr ""
11780
11781 #. type: textblock
11782 #: ../fish/guestfish-actions.pod:2725
11783 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11784 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11785
11786 #. type: =head2
11787 #: ../fish/guestfish-actions.pod:2727
11788 msgid "lgetxattrs"
11789 msgstr "lgetxattrs"
11790
11791 #. type: verbatim
11792 #: ../fish/guestfish-actions.pod:2729
11793 #, no-wrap
11794 msgid ""
11795 " lgetxattrs path\n"
11796 "\n"
11797 msgstr ""
11798 " lgetxattrs шлях\n"
11799 "\n"
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:2731
11803 msgid ""
11804 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11805 "it returns the extended attributes of the link itself."
11806 msgstr ""
11807
11808 #. type: =head2
11809 #: ../fish/guestfish-actions.pod:2735
11810 msgid "list-9p"
11811 msgstr ""
11812
11813 #. type: verbatim
11814 #: ../fish/guestfish-actions.pod:2737
11815 #, no-wrap
11816 msgid ""
11817 " list-9p\n"
11818 "\n"
11819 msgstr ""
11820
11821 #. type: textblock
11822 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11823 msgid ""
11824 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11825 "returned."
11826 msgstr ""
11827
11828 #. type: =head2
11829 #: ../fish/guestfish-actions.pod:2742
11830 msgid "list-devices"
11831 msgstr "list-devices"
11832
11833 #. type: verbatim
11834 #: ../fish/guestfish-actions.pod:2744
11835 #, no-wrap
11836 msgid ""
11837 " list-devices\n"
11838 "\n"
11839 msgstr ""
11840 " list-devices\n"
11841 "\n"
11842
11843 #. type: textblock
11844 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11845 msgid "List all the block devices."
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11850 msgid "The full block device names are returned, eg. C</dev/sda>."
11851 msgstr ""
11852
11853 #. type: =head2
11854 #: ../fish/guestfish-actions.pod:2752
11855 msgid "list-dm-devices"
11856 msgstr ""
11857
11858 #. type: verbatim
11859 #: ../fish/guestfish-actions.pod:2754
11860 #, no-wrap
11861 msgid ""
11862 " list-dm-devices\n"
11863 "\n"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11868 msgid "List all device mapper devices."
11869 msgstr ""
11870
11871 #. type: textblock
11872 #: ../fish/guestfish-actions.pod:2758
11873 msgid ""
11874 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11875 "previous call to L</luks-open>."
11876 msgstr ""
11877
11878 #. type: textblock
11879 #: ../fish/guestfish-actions.pod:2761
11880 msgid ""
11881 "Device mapper devices which correspond to logical volumes are I<not> "
11882 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11883 msgstr ""
11884
11885 #. type: =head2
11886 #: ../fish/guestfish-actions.pod:2765
11887 msgid "list-filesystems"
11888 msgstr "list-filesystems"
11889
11890 #. type: verbatim
11891 #: ../fish/guestfish-actions.pod:2767
11892 #, no-wrap
11893 msgid ""
11894 " list-filesystems\n"
11895 "\n"
11896 msgstr ""
11897 " list-filesystems\n"
11898 "\n"
11899
11900 #. type: textblock
11901 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11902 msgid ""
11903 "This inspection command looks for filesystems on partitions, block devices "
11904 "and logical volumes, returning a list of devices containing filesystems and "
11905 "their type."
11906 msgstr ""
11907
11908 #. type: textblock
11909 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11910 msgid ""
11911 "The return value is a hash, where the keys are the devices containing "
11912 "filesystems, and the values are the filesystem types.  For example:"
11913 msgstr ""
11914
11915 #. type: verbatim
11916 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11917 #, no-wrap
11918 msgid ""
11919 " \"/dev/sda1\" => \"ntfs\"\n"
11920 " \"/dev/sda2\" => \"ext2\"\n"
11921 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11922 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11923 "\n"
11924 msgstr ""
11925
11926 #. type: textblock
11927 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11928 msgid ""
11929 "The value can have the special value \"unknown\", meaning the content of the "
11930 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11931 msgstr ""
11932
11933 #. type: textblock
11934 #: ../fish/guestfish-actions.pod:2786
11935 msgid ""
11936 "This command runs other libguestfs commands, which might include L</mount> "
11937 "and L</umount>, and therefore you should use this soon after launch and only "
11938 "when nothing is mounted."
11939 msgstr ""
11940
11941 #. type: textblock
11942 #: ../fish/guestfish-actions.pod:2790
11943 msgid ""
11944 "Not all of the filesystems returned will be mountable.  In particular, swap "
11945 "partitions are returned in the list.  Also this command does not check that "
11946 "each filesystem found is valid and mountable, and some filesystems might be "
11947 "mountable but require special options.  Filesystems may not all belong to a "
11948 "single logical operating system (use L</inspect-os> to look for OSes)."
11949 msgstr ""
11950
11951 #. type: =head2
11952 #: ../fish/guestfish-actions.pod:2798
11953 #, fuzzy
11954 #| msgid "list-devices"
11955 msgid "list-md-devices"
11956 msgstr "list-devices"
11957
11958 #. type: verbatim
11959 #: ../fish/guestfish-actions.pod:2800
11960 #, fuzzy, no-wrap
11961 #| msgid ""
11962 #| " list-devices\n"
11963 #| "\n"
11964 msgid ""
11965 " list-md-devices\n"
11966 "\n"
11967 msgstr ""
11968 " list-devices\n"
11969 "\n"
11970
11971 #. type: textblock
11972 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11973 msgid "List all Linux md devices."
11974 msgstr ""
11975
11976 #. type: =head2
11977 #: ../fish/guestfish-actions.pod:2804
11978 msgid "list-partitions"
11979 msgstr "list-partitions"
11980
11981 #. type: verbatim
11982 #: ../fish/guestfish-actions.pod:2806
11983 #, no-wrap
11984 msgid ""
11985 " list-partitions\n"
11986 "\n"
11987 msgstr ""
11988 " list-partitions\n"
11989 "\n"
11990
11991 #. type: textblock
11992 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4287
11993 msgid "List all the partitions detected on all block devices."
11994 msgstr ""
11995
11996 #. type: textblock
11997 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4289
11998 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:2812
12003 msgid ""
12004 "This does not return logical volumes.  For that you will need to call L</"
12005 "lvs>."
12006 msgstr ""
12007
12008 #. type: =head2
12009 #: ../fish/guestfish-actions.pod:2817
12010 msgid "ll"
12011 msgstr "ll"
12012
12013 #. type: verbatim
12014 #: ../fish/guestfish-actions.pod:2819
12015 #, no-wrap
12016 msgid ""
12017 " ll directory\n"
12018 "\n"
12019 msgstr ""
12020 " ll каталог\n"
12021 "\n"
12022
12023 #. type: textblock
12024 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4308
12025 msgid ""
12026 "List the files in C<directory> (relative to the root directory, there is no "
12027 "cwd) in the format of 'ls -la'."
12028 msgstr ""
12029
12030 #. type: textblock
12031 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4311
12032 msgid ""
12033 "This command is mostly useful for interactive sessions.  It is I<not> "
12034 "intended that you try to parse the output string."
12035 msgstr ""
12036
12037 #. type: =head2
12038 #: ../fish/guestfish-actions.pod:2827
12039 msgid "ln"
12040 msgstr "ln"
12041
12042 #. type: verbatim
12043 #: ../fish/guestfish-actions.pod:2829
12044 #, no-wrap
12045 msgid ""
12046 " ln target linkname\n"
12047 "\n"
12048 msgstr ""
12049 " ln призначення назва_посилання\n"
12050 "\n"
12051
12052 #. type: textblock
12053 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4326
12054 msgid "This command creates a hard link using the C<ln> command."
12055 msgstr ""
12056
12057 #. type: =head2
12058 #: ../fish/guestfish-actions.pod:2833
12059 msgid "ln-f"
12060 msgstr "ln-f"
12061
12062 #. type: verbatim
12063 #: ../fish/guestfish-actions.pod:2835
12064 #, no-wrap
12065 msgid ""
12066 " ln-f target linkname\n"
12067 "\n"
12068 msgstr ""
12069 " ln-f призначення назва_посилання\n"
12070 "\n"
12071
12072 #. type: textblock
12073 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4339
12074 msgid ""
12075 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12076 "option removes the link (C<linkname>) if it exists already."
12077 msgstr ""
12078
12079 #. type: =head2
12080 #: ../fish/guestfish-actions.pod:2840
12081 msgid "ln-s"
12082 msgstr "ln-s"
12083
12084 #. type: verbatim
12085 #: ../fish/guestfish-actions.pod:2842
12086 #, no-wrap
12087 msgid ""
12088 " ln-s target linkname\n"
12089 "\n"
12090 msgstr ""
12091 " ln-s призначення назва_посилання\n"
12092 "\n"
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4353
12096 msgid "This command creates a symbolic link using the C<ln -s> command."
12097 msgstr ""
12098
12099 #. type: =head2
12100 #: ../fish/guestfish-actions.pod:2846
12101 msgid "ln-sf"
12102 msgstr "ln-sf"
12103
12104 #. type: verbatim
12105 #: ../fish/guestfish-actions.pod:2848
12106 #, no-wrap
12107 msgid ""
12108 " ln-sf target linkname\n"
12109 "\n"
12110 msgstr ""
12111 " ln-sf призначення назва_посилання\n"
12112 "\n"
12113
12114 #. type: textblock
12115 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4366
12116 msgid ""
12117 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12118 "option removes the link (C<linkname>) if it exists already."
12119 msgstr ""
12120
12121 #. type: =head2
12122 #: ../fish/guestfish-actions.pod:2853
12123 msgid "lremovexattr"
12124 msgstr "lremovexattr"
12125
12126 #. type: verbatim
12127 #: ../fish/guestfish-actions.pod:2855
12128 #, no-wrap
12129 msgid ""
12130 " lremovexattr xattr path\n"
12131 "\n"
12132 msgstr ""
12133
12134 #. type: textblock
12135 #: ../fish/guestfish-actions.pod:2857
12136 msgid ""
12137 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12138 "it removes an extended attribute of the link itself."
12139 msgstr ""
12140
12141 #. type: =head2
12142 #: ../fish/guestfish-actions.pod:2861
12143 msgid "ls"
12144 msgstr "ls"
12145
12146 #. type: verbatim
12147 #: ../fish/guestfish-actions.pod:2863
12148 #, no-wrap
12149 msgid ""
12150 " ls directory\n"
12151 "\n"
12152 msgstr ""
12153 " ls каталог\n"
12154 "\n"
12155
12156 #. type: textblock
12157 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4394
12158 msgid ""
12159 "List the files in C<directory> (relative to the root directory, there is no "
12160 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../fish/guestfish-actions.pod:2869
12165 msgid ""
12166 "This command is mostly useful for interactive sessions.  Programs should "
12167 "probably use L</readdir> instead."
12168 msgstr ""
12169
12170 #. type: =head2
12171 #: ../fish/guestfish-actions.pod:2872
12172 msgid "lsetxattr"
12173 msgstr "lsetxattr"
12174
12175 #. type: verbatim
12176 #: ../fish/guestfish-actions.pod:2874
12177 #, no-wrap
12178 msgid ""
12179 " lsetxattr xattr val vallen path\n"
12180 "\n"
12181 msgstr ""
12182
12183 #. type: textblock
12184 #: ../fish/guestfish-actions.pod:2876
12185 msgid ""
12186 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12187 "sets an extended attribute of the link itself."
12188 msgstr ""
12189
12190 #. type: =head2
12191 #: ../fish/guestfish-actions.pod:2880
12192 msgid "lstat"
12193 msgstr "lstat"
12194
12195 #. type: verbatim
12196 #: ../fish/guestfish-actions.pod:2882
12197 #, no-wrap
12198 msgid ""
12199 " lstat path\n"
12200 "\n"
12201 msgstr ""
12202 " lstat шлях\n"
12203 "\n"
12204
12205 #. type: textblock
12206 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4775
12207 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:7349
12208 msgid "Returns file information for the given C<path>."
12209 msgstr ""
12210
12211 #. type: textblock
12212 #: ../fish/guestfish-actions.pod:2886
12213 msgid ""
12214 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12215 "the link is stat-ed, not the file it refers to."
12216 msgstr ""
12217
12218 #. type: textblock
12219 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4436
12220 msgid "This is the same as the C<lstat(2)> system call."
12221 msgstr ""
12222
12223 #. type: =head2
12224 #: ../fish/guestfish-actions.pod:2892
12225 msgid "lstatlist"
12226 msgstr "lstatlist"
12227
12228 #. type: verbatim
12229 #: ../fish/guestfish-actions.pod:2894
12230 #, no-wrap
12231 msgid ""
12232 " lstatlist path 'names ...'\n"
12233 "\n"
12234 msgstr ""
12235
12236 #. type: textblock
12237 #: ../fish/guestfish-actions.pod:2896
12238 msgid ""
12239 "This call allows you to perform the L</lstat> operation on multiple files, "
12240 "where all files are in the directory C<path>.  C<names> is the list of files "
12241 "from this directory."
12242 msgstr ""
12243
12244 #. type: textblock
12245 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4455
12246 msgid ""
12247 "On return you get a list of stat structs, with a one-to-one correspondence "
12248 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12249 "then the C<ino> field of that structure is set to C<-1>."
12250 msgstr ""
12251
12252 #. type: textblock
12253 #: ../fish/guestfish-actions.pod:2905
12254 msgid ""
12255 "This call is intended for programs that want to efficiently list a directory "
12256 "contents without making many round-trips.  See also L</lxattrlist> for a "
12257 "similarly efficient call for getting extended attributes.  Very long "
12258 "directory listings might cause the protocol message size to be exceeded, "
12259 "causing this call to fail.  The caller must split up such requests into "
12260 "smaller groups of names."
12261 msgstr ""
12262
12263 #. type: =head2
12264 #: ../fish/guestfish-actions.pod:2913
12265 msgid "luks-add-key"
12266 msgstr "luks-add-key"
12267
12268 #. type: verbatim
12269 #: ../fish/guestfish-actions.pod:2915
12270 #, no-wrap
12271 msgid ""
12272 " luks-add-key device keyslot\n"
12273 "\n"
12274 msgstr ""
12275
12276 #. type: textblock
12277 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4483
12278 msgid ""
12279 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12280 "existing key, and is used to access the device.  C<newkey> is the new key to "
12281 "add.  C<keyslot> is the key slot that will be replaced."
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:2922
12286 msgid ""
12287 "Note that if C<keyslot> already contains a key, then this command will "
12288 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12289 msgstr ""
12290
12291 #. type: textblock
12292 #: ../fish/guestfish-actions.pod:2926 ../fish/guestfish-actions.pod:2948
12293 #: ../fish/guestfish-actions.pod:2958 ../fish/guestfish-actions.pod:2969
12294 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
12295 msgid ""
12296 "This command has one or more key or passphrase parameters.  Guestfish will "
12297 "prompt for these separately."
12298 msgstr ""
12299
12300 #. type: =head2
12301 #: ../fish/guestfish-actions.pod:2929
12302 msgid "luks-close"
12303 msgstr "luks-close"
12304
12305 #. type: verbatim
12306 #: ../fish/guestfish-actions.pod:2931
12307 #, no-wrap
12308 msgid ""
12309 " luks-close device\n"
12310 "\n"
12311 msgstr ""
12312 " luks-close пристрій\n"
12313 "\n"
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:2933
12317 msgid ""
12318 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12319 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12320 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12321 "block device."
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../fish/guestfish-actions.pod:2939
12326 msgid "luks-format"
12327 msgstr "luks-format"
12328
12329 #. type: verbatim
12330 #: ../fish/guestfish-actions.pod:2941
12331 #, no-wrap
12332 msgid ""
12333 " luks-format device keyslot\n"
12334 "\n"
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4524
12339 msgid ""
12340 "This command erases existing data on C<device> and formats the device as a "
12341 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12342 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12343 msgstr ""
12344
12345 #. type: =head2
12346 #: ../fish/guestfish-actions.pod:2951
12347 msgid "luks-format-cipher"
12348 msgstr "luks-format-cipher"
12349
12350 #. type: verbatim
12351 #: ../fish/guestfish-actions.pod:2953
12352 #, no-wrap
12353 msgid ""
12354 " luks-format-cipher device keyslot cipher\n"
12355 "\n"
12356 msgstr ""
12357
12358 #. type: textblock
12359 #: ../fish/guestfish-actions.pod:2955
12360 msgid ""
12361 "This command is the same as L</luks-format> but it also allows you to set "
12362 "the C<cipher> used."
12363 msgstr ""
12364
12365 #. type: =head2
12366 #: ../fish/guestfish-actions.pod:2961
12367 msgid "luks-kill-slot"
12368 msgstr "luks-kill-slot"
12369
12370 #. type: verbatim
12371 #: ../fish/guestfish-actions.pod:2963
12372 #, no-wrap
12373 msgid ""
12374 " luks-kill-slot device keyslot\n"
12375 "\n"
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4565
12380 msgid ""
12381 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12382 "device C<device>.  C<key> must be one of the I<other> keys."
12383 msgstr ""
12384
12385 #. type: =head2
12386 #: ../fish/guestfish-actions.pod:2972
12387 msgid "luks-open"
12388 msgstr "luks-open"
12389
12390 #. type: verbatim
12391 #: ../fish/guestfish-actions.pod:2974
12392 #, no-wrap
12393 msgid ""
12394 " luks-open device mapname\n"
12395 "\n"
12396 msgstr ""
12397
12398 #. type: textblock
12399 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4585
12400 msgid ""
12401 "This command opens a block device which has been encrypted according to the "
12402 "Linux Unified Key Setup (LUKS) standard."
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4588
12407 msgid "C<device> is the encrypted block device or partition."
12408 msgstr ""
12409
12410 #. type: textblock
12411 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4590
12412 msgid ""
12413 "The caller must supply one of the keys associated with the LUKS block "
12414 "device, in the C<key> parameter."
12415 msgstr ""
12416
12417 #. type: textblock
12418 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4593
12419 msgid ""
12420 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12421 "writes to this block device are decrypted from and encrypted to the "
12422 "underlying C<device> respectively."
12423 msgstr ""
12424
12425 #. type: textblock
12426 #: ../fish/guestfish-actions.pod:2988
12427 msgid ""
12428 "If this block device contains LVM volume groups, then calling L</vgscan> "
12429 "followed by L</vg-activate-all> will make them visible."
12430 msgstr ""
12431
12432 #. type: textblock
12433 #: ../fish/guestfish-actions.pod:2992
12434 msgid "Use L</list-dm-devices> to list all device mapper devices."
12435 msgstr ""
12436
12437 #. type: =head2
12438 #: ../fish/guestfish-actions.pod:2998
12439 msgid "luks-open-ro"
12440 msgstr "luks-open-ro"
12441
12442 #. type: verbatim
12443 #: ../fish/guestfish-actions.pod:3000
12444 #, no-wrap
12445 msgid ""
12446 " luks-open-ro device mapname\n"
12447 "\n"
12448 msgstr ""
12449
12450 #. type: textblock
12451 #: ../fish/guestfish-actions.pod:3002
12452 msgid ""
12453 "This is the same as L</luks-open> except that a read-only mapping is created."
12454 msgstr ""
12455
12456 #. type: =head2
12457 #: ../fish/guestfish-actions.pod:3008
12458 msgid "lvcreate"
12459 msgstr "lvcreate"
12460
12461 #. type: verbatim
12462 #: ../fish/guestfish-actions.pod:3010
12463 #, no-wrap
12464 msgid ""
12465 " lvcreate logvol volgroup mbytes\n"
12466 "\n"
12467 msgstr ""
12468
12469 #. type: textblock
12470 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4639
12471 msgid ""
12472 "This creates an LVM logical volume called C<logvol> on the volume group "
12473 "C<volgroup>, with C<size> megabytes."
12474 msgstr ""
12475
12476 #. type: =head2
12477 #: ../fish/guestfish-actions.pod:3015
12478 msgid "lvm-canonical-lv-name"
12479 msgstr "lvm-canonical-lv-name"
12480
12481 #. type: verbatim
12482 #: ../fish/guestfish-actions.pod:3017
12483 #, no-wrap
12484 msgid ""
12485 " lvm-canonical-lv-name lvname\n"
12486 "\n"
12487 msgstr ""
12488
12489 #. type: textblock
12490 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4652
12491 msgid ""
12492 "This converts alternative naming schemes for LVs that you might find to the "
12493 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12494 "LV>."
12495 msgstr ""
12496
12497 #. type: textblock
12498 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4656
12499 msgid ""
12500 "This command returns an error if the C<lvname> parameter does not refer to a "
12501 "logical volume."
12502 msgstr ""
12503
12504 #. type: textblock
12505 #: ../fish/guestfish-actions.pod:3026
12506 msgid "See also L</is-lv>."
12507 msgstr "Див. також L</is-lv>."
12508
12509 #. type: =head2
12510 #: ../fish/guestfish-actions.pod:3028
12511 msgid "lvm-clear-filter"
12512 msgstr "lvm-clear-filter"
12513
12514 #. type: verbatim
12515 #: ../fish/guestfish-actions.pod:3030
12516 #, no-wrap
12517 msgid ""
12518 " lvm-clear-filter\n"
12519 "\n"
12520 msgstr ""
12521 " lvm-clear-filter\n"
12522 "\n"
12523
12524 #. type: textblock
12525 #: ../fish/guestfish-actions.pod:3032
12526 msgid ""
12527 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12528 "block device."
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063
12533 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4713
12534 msgid ""
12535 "This command also clears the LVM cache and performs a volume group scan."
12536 msgstr ""
12537
12538 #. type: =head2
12539 #: ../fish/guestfish-actions.pod:3038
12540 msgid "lvm-remove-all"
12541 msgstr "lvm-remove-all"
12542
12543 #. type: verbatim
12544 #: ../fish/guestfish-actions.pod:3040
12545 #, no-wrap
12546 msgid ""
12547 " lvm-remove-all\n"
12548 "\n"
12549 msgstr ""
12550 " lvm-remove-all\n"
12551 "\n"
12552
12553 #. type: textblock
12554 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4686
12555 msgid ""
12556 "This command removes all LVM logical volumes, volume groups and physical "
12557 "volumes."
12558 msgstr ""
12559
12560 #. type: =head2
12561 #: ../fish/guestfish-actions.pod:3045
12562 msgid "lvm-set-filter"
12563 msgstr "lvm-set-filter"
12564
12565 #. type: verbatim
12566 #: ../fish/guestfish-actions.pod:3047
12567 #, no-wrap
12568 msgid ""
12569 " lvm-set-filter 'devices ...'\n"
12570 "\n"
12571 msgstr ""
12572 " lvm-set-filter 'пристрої...'\n"
12573 "\n"
12574
12575 #. type: textblock
12576 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4699
12577 msgid ""
12578 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12579 "block devices in the list C<devices>, and will ignore all other attached "
12580 "block devices."
12581 msgstr ""
12582
12583 #. type: textblock
12584 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4703
12585 msgid ""
12586 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12587 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12588 "there are two types of duplication possible: either cloned PVs/VGs which "
12589 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12590 "same name.  In normal operation you cannot create this situation, but you "
12591 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12592 "inside the LVM metadata."
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4716
12597 msgid "You can filter whole block devices or individual partitions."
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4718
12602 msgid ""
12603 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12604 "filesystem), even if you are not filtering out that VG."
12605 msgstr ""
12606
12607 #. type: =head2
12608 #: ../fish/guestfish-actions.pod:3072
12609 msgid "lvremove"
12610 msgstr "lvremove"
12611
12612 #. type: verbatim
12613 #: ../fish/guestfish-actions.pod:3074
12614 #, no-wrap
12615 msgid ""
12616 " lvremove device\n"
12617 "\n"
12618 msgstr ""
12619 " lvremove пристрій\n"
12620 "\n"
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4732
12624 msgid ""
12625 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12626 "LV, such as C</dev/VG/LV>."
12627 msgstr ""
12628
12629 #. type: textblock
12630 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4735
12631 msgid ""
12632 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12633 "dev/VG>."
12634 msgstr ""
12635
12636 #. type: =head2
12637 #: ../fish/guestfish-actions.pod:3082
12638 msgid "lvrename"
12639 msgstr "lvrename"
12640
12641 #. type: verbatim
12642 #: ../fish/guestfish-actions.pod:3084
12643 #, no-wrap
12644 msgid ""
12645 " lvrename logvol newlogvol\n"
12646 "\n"
12647 msgstr ""
12648
12649 #. type: textblock
12650 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4749
12651 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12652 msgstr ""
12653
12654 #. type: =head2
12655 #: ../fish/guestfish-actions.pod:3088
12656 msgid "lvresize"
12657 msgstr "lvresize"
12658
12659 #. type: verbatim
12660 #: ../fish/guestfish-actions.pod:3090
12661 #, no-wrap
12662 msgid ""
12663 " lvresize device mbytes\n"
12664 "\n"
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4762
12669 msgid ""
12670 "This resizes (expands or shrinks) an existing LVM logical volume to "
12671 "C<mbytes>.  When reducing, data in the reduced part is lost."
12672 msgstr ""
12673
12674 #. type: =head2
12675 #: ../fish/guestfish-actions.pod:3096
12676 msgid "lvresize-free"
12677 msgstr "lvresize-free"
12678
12679 #. type: verbatim
12680 #: ../fish/guestfish-actions.pod:3098
12681 #, no-wrap
12682 msgid ""
12683 " lvresize-free lv percent\n"
12684 "\n"
12685 msgstr ""
12686
12687 #. type: textblock
12688 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4777
12689 msgid ""
12690 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12691 "remaining free space in the volume group.  Commonly you would call this with "
12692 "pc = 100 which expands the logical volume as much as possible, using all "
12693 "remaining free space in the volume group."
12694 msgstr ""
12695
12696 #. type: =head2
12697 #: ../fish/guestfish-actions.pod:3106
12698 msgid "lvs"
12699 msgstr "lvs"
12700
12701 #. type: verbatim
12702 #: ../fish/guestfish-actions.pod:3108
12703 #, no-wrap
12704 msgid ""
12705 " lvs\n"
12706 "\n"
12707 msgstr ""
12708 " lvs\n"
12709 "\n"
12710
12711 #. type: textblock
12712 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4792
12713 msgid ""
12714 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12715 "(8)> command."
12716 msgstr ""
12717
12718 #. type: textblock
12719 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4795
12720 msgid ""
12721 "This returns a list of the logical volume device names (eg. C</dev/"
12722 "VolGroup00/LogVol00>)."
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3116
12727 msgid "See also L</lvs-full>, L</list-filesystems>."
12728 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12729
12730 #. type: =head2
12731 #: ../fish/guestfish-actions.pod:3118
12732 msgid "lvs-full"
12733 msgstr "lvs-full"
12734
12735 #. type: verbatim
12736 #: ../fish/guestfish-actions.pod:3120
12737 #, no-wrap
12738 msgid ""
12739 " lvs-full\n"
12740 "\n"
12741 msgstr ""
12742 " lvs-full\n"
12743 "\n"
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4811
12747 msgid ""
12748 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12749 "(8)> command.  The \"full\" version includes all fields."
12750 msgstr ""
12751
12752 #. type: =head2
12753 #: ../fish/guestfish-actions.pod:3125
12754 msgid "lvuuid"
12755 msgstr "lvuuid"
12756
12757 #. type: verbatim
12758 #: ../fish/guestfish-actions.pod:3127
12759 #, no-wrap
12760 msgid ""
12761 " lvuuid device\n"
12762 "\n"
12763 msgstr ""
12764 " lvuuid пристрій\n"
12765 "\n"
12766
12767 #. type: textblock
12768 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4826
12769 msgid "This command returns the UUID of the LVM LV C<device>."
12770 msgstr ""
12771
12772 #. type: =head2
12773 #: ../fish/guestfish-actions.pod:3131
12774 msgid "lxattrlist"
12775 msgstr "lxattrlist"
12776
12777 #. type: verbatim
12778 #: ../fish/guestfish-actions.pod:3133
12779 #, no-wrap
12780 msgid ""
12781 " lxattrlist path 'names ...'\n"
12782 "\n"
12783 msgstr ""
12784
12785 #. type: textblock
12786 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4840
12787 msgid ""
12788 "This call allows you to get the extended attributes of multiple files, where "
12789 "all files are in the directory C<path>.  C<names> is the list of files from "
12790 "this directory."
12791 msgstr ""
12792
12793 #. type: textblock
12794 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4844
12795 msgid ""
12796 "On return you get a flat list of xattr structs which must be interpreted "
12797 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12798 "C<attrval> in this struct is zero-length to indicate there was an error "
12799 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12800 "number (the number of following attributes for this file, which could be C<"
12801 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12802 "for the first named file.  This repeats for the second and subsequent files."
12803 msgstr ""
12804
12805 #. type: textblock
12806 #: ../fish/guestfish-actions.pod:3149
12807 msgid ""
12808 "This call is intended for programs that want to efficiently list a directory "
12809 "contents without making many round-trips.  See also L</lstatlist> for a "
12810 "similarly efficient call for getting standard stats.  Very long directory "
12811 "listings might cause the protocol message size to be exceeded, causing this "
12812 "call to fail.  The caller must split up such requests into smaller groups of "
12813 "names."
12814 msgstr ""
12815
12816 #. type: =head2
12817 #: ../fish/guestfish-actions.pod:3157
12818 #, fuzzy
12819 #| msgid "lvcreate"
12820 msgid "mdadm-create"
12821 msgstr "lvcreate"
12822
12823 #. type: verbatim
12824 #: ../fish/guestfish-actions.pod:3159
12825 #, no-wrap
12826 msgid ""
12827 " mdadm-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
12828 "\n"
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4887
12833 msgid ""
12834 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12835 "C<devices>."
12836 msgstr ""
12837
12838 #. type: =item
12839 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4894
12840 msgid "C<missingbitmap>"
12841 msgstr ""
12842
12843 #. type: textblock
12844 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4896
12845 msgid ""
12846 "A bitmap of missing devices.  If a bit is set it means that a missing device "
12847 "is added to the array.  The least significant bit corresponds to the first "
12848 "device in the array."
12849 msgstr ""
12850
12851 #. type: textblock
12852 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4900
12853 #, fuzzy
12854 #| msgid "For example:"
12855 msgid "As examples:"
12856 msgstr "Приклад:"
12857
12858 #. type: textblock
12859 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4902
12860 msgid ""
12861 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12862 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12863 msgstr ""
12864
12865 #. type: textblock
12866 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4905
12867 msgid ""
12868 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12869 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12870 msgstr ""
12871
12872 #. type: textblock
12873 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4908
12874 msgid "This defaults to C<0> (no missing devices)."
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4910
12879 msgid ""
12880 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12881 "equal C<nrdevices> + C<spare>."
12882 msgstr ""
12883
12884 #. type: =item
12885 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4913
12886 #, fuzzy
12887 #| msgid "device"
12888 msgid "C<nrdevices>"
12889 msgstr "пристрій"
12890
12891 #. type: textblock
12892 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4915
12893 #, fuzzy
12894 #| msgid "The number of hard links."
12895 msgid "The number of active RAID devices."
12896 msgstr "Кількість жорстких посилань."
12897
12898 #. type: textblock
12899 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4917
12900 msgid ""
12901 "If not set, this defaults to the length of C<devices> plus the number of "
12902 "bits set in C<missingbitmap>."
12903 msgstr ""
12904
12905 #. type: =item
12906 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4920
12907 #, fuzzy
12908 #| msgid "sparse"
12909 msgid "C<spare>"
12910 msgstr "sparse"
12911
12912 #. type: textblock
12913 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4922
12914 #, fuzzy
12915 #| msgid "The number of hard links."
12916 msgid "The number of spare devices."
12917 msgstr "Кількість жорстких посилань."
12918
12919 #. type: textblock
12920 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4924
12921 msgid "If not set, this defaults to C<0>."
12922 msgstr ""
12923
12924 #. type: =item
12925 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4926
12926 msgid "C<chunk>"
12927 msgstr ""
12928
12929 #. type: textblock
12930 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4928
12931 #, fuzzy
12932 #| msgid "The size in SI 1000 byte units."
12933 msgid "The chunk size in bytes."
12934 msgstr "Розмір у одиницях СІ: 1000 байтів."
12935
12936 #. type: =item
12937 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226
12938 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4978
12939 msgid "C<level>"
12940 msgstr ""
12941
12942 #. type: textblock
12943 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4932
12944 msgid ""
12945 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12946 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12947 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
12948 "added in future."
12949 msgstr ""
12950
12951 #. type: textblock
12952 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4937
12953 msgid "If not set, this defaults to C<raid1>."
12954 msgstr ""
12955
12956 #. type: =head2
12957 #: ../fish/guestfish-actions.pod:3217
12958 msgid "mdadm-detail"
12959 msgstr ""
12960
12961 #. type: verbatim
12962 #: ../fish/guestfish-actions.pod:3219
12963 #, no-wrap
12964 msgid ""
12965 " mdadm-detail md\n"
12966 "\n"
12967 msgstr ""
12968
12969 #. type: textblock
12970 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4973
12971 msgid ""
12972 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12973 "are usually present in the returned hash. Other fields may also be present."
12974 msgstr ""
12975
12976 #. type: textblock
12977 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4980
12978 msgid "The raid level of the MD device."
12979 msgstr ""
12980
12981 #. type: =item
12982 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4982
12983 #, fuzzy
12984 #| msgid "device"
12985 msgid "C<devices>"
12986 msgstr "пристрій"
12987
12988 #. type: textblock
12989 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4984
12990 msgid "The number of underlying devices in the MD device."
12991 msgstr ""
12992
12993 #. type: =item
12994 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4986
12995 msgid "C<metadata>"
12996 msgstr ""
12997
12998 #. type: textblock
12999 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4988
13000 msgid "The metadata version used."
13001 msgstr ""
13002
13003 #. type: =item
13004 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4990
13005 #, fuzzy
13006 #| msgid "B<--uuid>"
13007 msgid "C<uuid>"
13008 msgstr "B<--uuid>"
13009
13010 #. type: textblock
13011 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4992
13012 msgid "The UUID of the MD device."
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4996
13017 #, fuzzy
13018 #| msgid "The time of last access."
13019 msgid "The name of the MD device."
13020 msgstr "Час останнього доступу."
13021
13022 #. type: =head2
13023 #: ../fish/guestfish-actions.pod:3248
13024 msgid "mkdir"
13025 msgstr "mkdir"
13026
13027 #. type: verbatim
13028 #: ../fish/guestfish-actions.pod:3250
13029 #, no-wrap
13030 msgid ""
13031 " mkdir path\n"
13032 "\n"
13033 msgstr ""
13034 " mkdir шлях\n"
13035 "\n"
13036
13037 #. type: textblock
13038 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5012
13039 msgid "Create a directory named C<path>."
13040 msgstr ""
13041
13042 #. type: =head2
13043 #: ../fish/guestfish-actions.pod:3254
13044 msgid "mkdir-mode"
13045 msgstr "mkdir-mode"
13046
13047 #. type: verbatim
13048 #: ../fish/guestfish-actions.pod:3256
13049 #, no-wrap
13050 msgid ""
13051 " mkdir-mode path mode\n"
13052 "\n"
13053 msgstr ""
13054 " mkdir-mode шлях режим\n"
13055 "\n"
13056
13057 #. type: textblock
13058 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5025
13059 msgid ""
13060 "This command creates a directory, setting the initial permissions of the "
13061 "directory to C<mode>."
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5028
13066 msgid ""
13067 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13068 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13069 "other ways."
13070 msgstr ""
13071
13072 #. type: textblock
13073 #: ../fish/guestfish-actions.pod:3265
13074 msgid "See also L</mkdir>, L</umask>"
13075 msgstr "Див. також L</mkdir>, L</umask>"
13076
13077 #. type: =head2
13078 #: ../fish/guestfish-actions.pod:3267
13079 msgid "mkdir-p"
13080 msgstr "mkdir-p"
13081
13082 #. type: verbatim
13083 #: ../fish/guestfish-actions.pod:3269
13084 #, no-wrap
13085 msgid ""
13086 " mkdir-p path\n"
13087 "\n"
13088 msgstr ""
13089 " mkdir-p шлях\n"
13090 "\n"
13091
13092 #. type: textblock
13093 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5044
13094 msgid ""
13095 "Create a directory named C<path>, creating any parent directories as "
13096 "necessary.  This is like the C<mkdir -p> shell command."
13097 msgstr ""
13098
13099 #. type: =head2
13100 #: ../fish/guestfish-actions.pod:3274
13101 msgid "mkdtemp"
13102 msgstr "mkdtemp"
13103
13104 #. type: verbatim
13105 #: ../fish/guestfish-actions.pod:3276
13106 #, no-wrap
13107 msgid ""
13108 " mkdtemp template\n"
13109 "\n"
13110 msgstr ""
13111 " mkdtemp шаблон\n"
13112 "\n"
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5057
13116 msgid ""
13117 "This command creates a temporary directory.  The C<template> parameter "
13118 "should be a full pathname for the temporary directory name with the final "
13119 "six characters being \"XXXXXX\"."
13120 msgstr ""
13121
13122 #. type: textblock
13123 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:5062
13124 msgid ""
13125 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13126 "being suitable for Windows filesystems."
13127 msgstr ""
13128
13129 #. type: textblock
13130 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5065
13131 msgid "The name of the temporary directory that was created is returned."
13132 msgstr ""
13133
13134 #. type: textblock
13135 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5068
13136 msgid "The temporary directory is created with mode 0700 and is owned by root."
13137 msgstr ""
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5071
13141 msgid ""
13142 "The caller is responsible for deleting the temporary directory and its "
13143 "contents after use."
13144 msgstr ""
13145
13146 #. type: textblock
13147 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5074
13148 msgid "See also: L<mkdtemp(3)>"
13149 msgstr "Див. також L<mkdtemp(3)>"
13150
13151 #. type: =head2
13152 #: ../fish/guestfish-actions.pod:3297
13153 msgid "mke2fs-J"
13154 msgstr "mke2fs-J"
13155
13156 #. type: verbatim
13157 #: ../fish/guestfish-actions.pod:3299
13158 #, no-wrap
13159 msgid ""
13160 " mke2fs-J fstype blocksize device journal\n"
13161 "\n"
13162 msgstr ""
13163
13164 #. type: textblock
13165 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5090
13166 msgid ""
13167 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13168 "C<journal>.  It is equivalent to the command:"
13169 msgstr ""
13170
13171 #. type: verbatim
13172 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5094
13173 #, no-wrap
13174 msgid ""
13175 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13176 "\n"
13177 msgstr ""
13178 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
13179 "\n"
13180
13181 #. type: textblock
13182 #: ../fish/guestfish-actions.pod:3307
13183 msgid "See also L</mke2journal>."
13184 msgstr "Див. також L</mke2journal>."
13185
13186 #. type: =head2
13187 #: ../fish/guestfish-actions.pod:3309
13188 msgid "mke2fs-JL"
13189 msgstr "mke2fs-JL"
13190
13191 #. type: verbatim
13192 #: ../fish/guestfish-actions.pod:3311
13193 #, no-wrap
13194 msgid ""
13195 " mke2fs-JL fstype blocksize device label\n"
13196 "\n"
13197 msgstr ""
13198
13199 #. type: textblock
13200 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5111
13201 msgid ""
13202 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13203 "the journal labeled C<label>."
13204 msgstr ""
13205
13206 #. type: textblock
13207 #: ../fish/guestfish-actions.pod:3316
13208 msgid "See also L</mke2journal-L>."
13209 msgstr "Див. також L</mke2journal-L>."
13210
13211 #. type: =head2
13212 #: ../fish/guestfish-actions.pod:3318
13213 msgid "mke2fs-JU"
13214 msgstr "mke2fs-JU"
13215
13216 #. type: verbatim
13217 #: ../fish/guestfish-actions.pod:3320
13218 #, no-wrap
13219 msgid ""
13220 " mke2fs-JU fstype blocksize device uuid\n"
13221 "\n"
13222 msgstr ""
13223
13224 #. type: textblock
13225 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5129
13226 msgid ""
13227 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13228 "the journal with UUID C<uuid>."
13229 msgstr ""
13230
13231 #. type: textblock
13232 #: ../fish/guestfish-actions.pod:3325
13233 msgid "See also L</mke2journal-U>."
13234 msgstr "Див. також L</mke2journal-U>."
13235
13236 #. type: =head2
13237 #: ../fish/guestfish-actions.pod:3327
13238 msgid "mke2journal"
13239 msgstr "mke2journal"
13240
13241 #. type: verbatim
13242 #: ../fish/guestfish-actions.pod:3329
13243 #, no-wrap
13244 msgid ""
13245 " mke2journal blocksize device\n"
13246 "\n"
13247 msgstr ""
13248
13249 #. type: textblock
13250 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5145
13251 msgid ""
13252 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13253 "command:"
13254 msgstr ""
13255
13256 #. type: verbatim
13257 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5148
13258 #, no-wrap
13259 msgid ""
13260 " mke2fs -O journal_dev -b blocksize device\n"
13261 "\n"
13262 msgstr ""
13263
13264 #. type: =head2
13265 #: ../fish/guestfish-actions.pod:3336
13266 msgid "mke2journal-L"
13267 msgstr "mke2journal-L"
13268
13269 #. type: verbatim
13270 #: ../fish/guestfish-actions.pod:3338
13271 #, no-wrap
13272 msgid ""
13273 " mke2journal-L blocksize label device\n"
13274 "\n"
13275 msgstr ""
13276
13277 #. type: textblock
13278 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5162
13279 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13280 msgstr ""
13281
13282 #. type: =head2
13283 #: ../fish/guestfish-actions.pod:3342
13284 msgid "mke2journal-U"
13285 msgstr "mke2journal-U"
13286
13287 #. type: verbatim
13288 #: ../fish/guestfish-actions.pod:3344
13289 #, no-wrap
13290 msgid ""
13291 " mke2journal-U blocksize uuid device\n"
13292 "\n"
13293 msgstr ""
13294
13295 #. type: textblock
13296 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5176
13297 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13298 msgstr ""
13299
13300 #. type: =head2
13301 #: ../fish/guestfish-actions.pod:3348
13302 msgid "mkfifo"
13303 msgstr "mkfifo"
13304
13305 #. type: verbatim
13306 #: ../fish/guestfish-actions.pod:3350
13307 #, no-wrap
13308 msgid ""
13309 " mkfifo mode path\n"
13310 "\n"
13311 msgstr ""
13312 " mkfifo режим шлях\n"
13313 "\n"
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:3352
13317 msgid ""
13318 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13319 "is just a convenient wrapper around L</mknod>."
13320 msgstr ""
13321
13322 #. type: =head2
13323 #: ../fish/guestfish-actions.pod:3358
13324 msgid "mkfs"
13325 msgstr "mkfs"
13326
13327 #. type: verbatim
13328 #: ../fish/guestfish-actions.pod:3360
13329 #, no-wrap
13330 msgid ""
13331 " mkfs fstype device\n"
13332 "\n"
13333 msgstr ""
13334 " mkfs тип_файлової_системи пристрій\n"
13335 "\n"
13336
13337 #. type: textblock
13338 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5206
13339 msgid ""
13340 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13341 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13342 msgstr ""
13343
13344 #. type: =head2
13345 #: ../fish/guestfish-actions.pod:3366
13346 msgid "mkfs-b"
13347 msgstr "mkfs-b"
13348
13349 #. type: verbatim
13350 #: ../fish/guestfish-actions.pod:3368
13351 #, no-wrap
13352 msgid ""
13353 " mkfs-b fstype blocksize device\n"
13354 "\n"
13355 msgstr ""
13356
13357 #. type: textblock
13358 #: ../fish/guestfish-actions.pod:3370
13359 msgid ""
13360 "This call is similar to L</mkfs>, but it allows you to control the block "
13361 "size of the resulting filesystem.  Supported block sizes depend on the "
13362 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13363 msgstr ""
13364
13365 #. type: textblock
13366 #: ../fish/guestfish-actions.pod:3375 ../fish/guestfish-actions.pod:3402
13367 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5272
13368 msgid ""
13369 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13370 "cluster size."
13371 msgstr ""
13372
13373 #. type: textblock
13374 #: ../fish/guestfish-actions.pod:3378
13375 msgid ""
13376 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13377 "instead."
13378 msgstr ""
13379
13380 #. type: =head2
13381 #: ../fish/guestfish-actions.pod:3385
13382 msgid "mkfs-opts"
13383 msgstr "mkfs-opts"
13384
13385 #. type: verbatim
13386 #: ../fish/guestfish-actions.pod:3387
13387 #, no-wrap
13388 msgid ""
13389 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13390 "\n"
13391 msgstr ""
13392
13393 #. type: textblock
13394 #: ../fish/guestfish-actions.pod:3389 ../src/guestfs-actions.pod:5259
13395 msgid ""
13396 "This function creates a filesystem on C<device>.  The filesystem type is "
13397 "C<fstype>, for example C<ext3>."
13398 msgstr ""
13399
13400 #. type: =item
13401 #: ../fish/guestfish-actions.pod:3396 ../src/guestfs-actions.pod:5266
13402 msgid "C<blocksize>"
13403 msgstr "C<blocksize>"
13404
13405 #. type: textblock
13406 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5268
13407 msgid ""
13408 "The filesystem block size.  Supported block sizes depend on the filesystem "
13409 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13410 "filesystems."
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5275
13415 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13416 msgstr ""
13417
13418 #. type: =item
13419 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5277
13420 msgid "C<features>"
13421 msgstr "C<features>"
13422
13423 #. type: textblock
13424 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5279
13425 msgid "This passes the I<-O> parameter to the external mkfs program."
13426 msgstr ""
13427
13428 #. type: textblock
13429 #: ../fish/guestfish-actions.pod:3411 ../src/guestfs-actions.pod:5281
13430 msgid ""
13431 "For certain filesystem types, this allows extra filesystem features to be "
13432 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13433 msgstr ""
13434
13435 #. type: textblock
13436 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5285
13437 msgid ""
13438 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13439 "type."
13440 msgstr ""
13441
13442 #. type: =item
13443 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5288
13444 msgid "C<inode>"
13445 msgstr "C<inode>"
13446
13447 #. type: textblock
13448 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5290
13449 msgid ""
13450 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13451 "sets the inode size (only for ext2/3/4 filesystems at present)."
13452 msgstr ""
13453
13454 #. type: =item
13455 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5293
13456 msgid "C<sectorsize>"
13457 msgstr "C<sectorsize>"
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:3425 ../src/guestfs-actions.pod:5295
13461 msgid ""
13462 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13463 "sets sector size for ufs filesystem."
13464 msgstr ""
13465
13466 #. type: =head2
13467 #: ../fish/guestfish-actions.pod:3432
13468 msgid "mkmountpoint"
13469 msgstr "mkmountpoint"
13470
13471 #. type: verbatim
13472 #: ../fish/guestfish-actions.pod:3434
13473 #, no-wrap
13474 msgid ""
13475 " mkmountpoint exemptpath\n"
13476 "\n"
13477 msgstr ""
13478
13479 #. type: textblock
13480 #: ../fish/guestfish-actions.pod:3436
13481 msgid ""
13482 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13483 "to create extra mountpoints before mounting the first filesystem."
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5338
13488 msgid ""
13489 "These calls are I<only> necessary in some very limited circumstances, mainly "
13490 "the case where you want to mount a mix of unrelated and/or read-only "
13491 "filesystems together."
13492 msgstr ""
13493
13494 #. type: textblock
13495 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5342
13496 msgid ""
13497 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13498 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13499 "inside that.  You can unpack this as follows in guestfish:"
13500 msgstr ""
13501
13502 #. type: verbatim
13503 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5347
13504 #, no-wrap
13505 msgid ""
13506 " add-ro Fedora-11-i686-Live.iso\n"
13507 " run\n"
13508 " mkmountpoint /cd\n"
13509 " mkmountpoint /sqsh\n"
13510 " mkmountpoint /ext3fs\n"
13511 " mount /dev/sda /cd\n"
13512 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13513 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13514 "\n"
13515 msgstr ""
13516 " add-ro Fedora-11-i686-Live.iso\n"
13517 " run\n"
13518 " mkmountpoint /cd\n"
13519 " mkmountpoint /sqsh\n"
13520 " mkmountpoint /ext3fs\n"
13521 " mount /dev/sda /cd\n"
13522 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13523 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13524 "\n"
13525
13526 #. type: textblock
13527 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5356
13528 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13529 msgstr ""
13530
13531 #. type: textblock
13532 #: ../fish/guestfish-actions.pod:3460
13533 msgid ""
13534 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13535 "unexpected errors if you try to mix these calls.  It is safest to manually "
13536 "unmount filesystems and remove mountpoints after use."
13537 msgstr ""
13538
13539 #. type: textblock
13540 #: ../fish/guestfish-actions.pod:3464
13541 msgid ""
13542 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13543 "for this to work for manual mountpoints, you must ensure that the innermost "
13544 "mountpoints have the longest pathnames, as in the example code above."
13545 msgstr ""
13546
13547 #. type: textblock
13548 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5367
13549 msgid ""
13550 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13551 msgstr ""
13552
13553 #. type: textblock
13554 #: ../fish/guestfish-actions.pod:3471
13555 msgid ""
13556 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13557 "L</umount-all> to be called when the handle is closed which can also trigger "
13558 "these issues."
13559 msgstr ""
13560
13561 #. type: =head2
13562 #: ../fish/guestfish-actions.pod:3475
13563 msgid "mknod"
13564 msgstr "mknod"
13565
13566 #. type: verbatim
13567 #: ../fish/guestfish-actions.pod:3477
13568 #, no-wrap
13569 msgid ""
13570 " mknod mode devmajor devminor path\n"
13571 "\n"
13572 msgstr ""
13573
13574 #. type: textblock
13575 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5386
13576 msgid ""
13577 "This call creates block or character special devices, or named pipes (FIFOs)."
13578 msgstr ""
13579
13580 #. type: textblock
13581 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5389
13582 msgid ""
13583 "The C<mode> parameter should be the mode, using the standard constants.  "
13584 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13585 "used when creating block and character special devices."
13586 msgstr ""
13587
13588 #. type: textblock
13589 #: ../fish/guestfish-actions.pod:3487
13590 msgid ""
13591 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13592 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13593 "regular file).  These constants are available in the standard Linux header "
13594 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13595 "wrappers around this command which bitwise OR in the appropriate constant "
13596 "for you."
13597 msgstr ""
13598
13599 #. type: =head2
13600 #: ../fish/guestfish-actions.pod:3497
13601 msgid "mknod-b"
13602 msgstr "mknod-b"
13603
13604 #. type: verbatim
13605 #: ../fish/guestfish-actions.pod:3499
13606 #, no-wrap
13607 msgid ""
13608 " mknod-b mode devmajor devminor path\n"
13609 "\n"
13610 msgstr ""
13611
13612 #. type: textblock
13613 #: ../fish/guestfish-actions.pod:3501
13614 msgid ""
13615 "This call creates a block device node called C<path> with mode C<mode> and "
13616 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13617 "wrapper around L</mknod>."
13618 msgstr ""
13619
13620 #. type: =head2
13621 #: ../fish/guestfish-actions.pod:3507
13622 msgid "mknod-c"
13623 msgstr "mknod-c"
13624
13625 #. type: verbatim
13626 #: ../fish/guestfish-actions.pod:3509
13627 #, no-wrap
13628 msgid ""
13629 " mknod-c mode devmajor devminor path\n"
13630 "\n"
13631 msgstr ""
13632
13633 #. type: textblock
13634 #: ../fish/guestfish-actions.pod:3511
13635 msgid ""
13636 "This call creates a char device node called C<path> with mode C<mode> and "
13637 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13638 "wrapper around L</mknod>."
13639 msgstr ""
13640
13641 #. type: =head2
13642 #: ../fish/guestfish-actions.pod:3517
13643 msgid "mkswap"
13644 msgstr "mkswap"
13645
13646 #. type: verbatim
13647 #: ../fish/guestfish-actions.pod:3519
13648 #, no-wrap
13649 msgid ""
13650 " mkswap device\n"
13651 "\n"
13652 msgstr ""
13653 " mkswap пристрій\n"
13654 "\n"
13655
13656 #. type: textblock
13657 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5452
13658 msgid "Create a swap partition on C<device>."
13659 msgstr ""
13660
13661 #. type: =head2
13662 #: ../fish/guestfish-actions.pod:3523
13663 msgid "mkswap-L"
13664 msgstr "mkswap-L"
13665
13666 #. type: verbatim
13667 #: ../fish/guestfish-actions.pod:3525
13668 #, no-wrap
13669 msgid ""
13670 " mkswap-L label device\n"
13671 "\n"
13672 msgstr ""
13673 " mkswap-L мітка пристрій\n"
13674 "\n"
13675
13676 #. type: textblock
13677 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5465
13678 msgid "Create a swap partition on C<device> with label C<label>."
13679 msgstr ""
13680
13681 #. type: textblock
13682 #: ../fish/guestfish-actions.pod:3529 ../src/guestfs-actions.pod:5467
13683 msgid ""
13684 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13685 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13686 "or swap tools."
13687 msgstr ""
13688
13689 #. type: =head2
13690 #: ../fish/guestfish-actions.pod:3533
13691 msgid "mkswap-U"
13692 msgstr "mkswap-U"
13693
13694 #. type: verbatim
13695 #: ../fish/guestfish-actions.pod:3535
13696 #, no-wrap
13697 msgid ""
13698 " mkswap-U uuid device\n"
13699 "\n"
13700 msgstr ""
13701 " mkswap-U uuid пристрій\n"
13702 "\n"
13703
13704 #. type: textblock
13705 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5482
13706 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13707 msgstr ""
13708
13709 #. type: =head2
13710 #: ../fish/guestfish-actions.pod:3539
13711 msgid "mkswap-file"
13712 msgstr "mkswap-file"
13713
13714 #. type: verbatim
13715 #: ../fish/guestfish-actions.pod:3541
13716 #, no-wrap
13717 msgid ""
13718 " mkswap-file path\n"
13719 "\n"
13720 msgstr ""
13721 " mkswap-file шлях\n"
13722 "\n"
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5494
13726 msgid "Create a swap file."
13727 msgstr "Створити файл резервної пам’яті."
13728
13729 #. type: textblock
13730 #: ../fish/guestfish-actions.pod:3545
13731 msgid ""
13732 "This command just writes a swap file signature to an existing file.  To "
13733 "create the file itself, use something like L</fallocate>."
13734 msgstr ""
13735
13736 #. type: =head2
13737 #: ../fish/guestfish-actions.pod:3548
13738 msgid "modprobe"
13739 msgstr "modprobe"
13740
13741 #. type: verbatim
13742 #: ../fish/guestfish-actions.pod:3550
13743 #, no-wrap
13744 msgid ""
13745 " modprobe modulename\n"
13746 "\n"
13747 msgstr ""
13748 " modprobe назва_модуля\n"
13749 "\n"
13750
13751 #. type: textblock
13752 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5509
13753 msgid "This loads a kernel module in the appliance."
13754 msgstr ""
13755
13756 #. type: textblock
13757 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
13758 msgid ""
13759 "The kernel module must have been whitelisted when libguestfs was built (see "
13760 "C<appliance/kmod.whitelist.in> in the source)."
13761 msgstr ""
13762
13763 #. type: =head2
13764 #: ../fish/guestfish-actions.pod:3557
13765 msgid "mount"
13766 msgstr "mount"
13767
13768 #. type: verbatim
13769 #: ../fish/guestfish-actions.pod:3559
13770 #, no-wrap
13771 msgid ""
13772 " mount device mountpoint\n"
13773 "\n"
13774 msgstr ""
13775 " mount пристрій точка_монтування\n"
13776 "\n"
13777
13778 #. type: textblock
13779 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5525
13780 msgid ""
13781 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13782 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13783 "those block devices contain partitions, they will have the usual names (eg. "
13784 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13785 msgstr ""
13786
13787 #. type: textblock
13788 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5531
13789 msgid ""
13790 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13791 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13792 "mounted on directories which already exist."
13793 msgstr ""
13794
13795 #. type: textblock
13796 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5536
13797 msgid ""
13798 "The mounted filesystem is writable, if we have sufficient permissions on the "
13799 "underlying device."
13800 msgstr ""
13801
13802 #. type: textblock
13803 #: ../fish/guestfish-actions.pod:3575
13804 msgid ""
13805 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13806 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13807 "problems for users.  If your program might need to work with older versions "
13808 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13809 "first parameter if you don't want any options)."
13810 msgstr ""
13811
13812 #. type: =head2
13813 #: ../fish/guestfish-actions.pod:3582
13814 msgid "mount-9p"
13815 msgstr ""
13816
13817 #. type: verbatim
13818 #: ../fish/guestfish-actions.pod:3584
13819 #, no-wrap
13820 msgid ""
13821 " mount-9p mounttag mountpoint [options:..]\n"
13822 "\n"
13823 msgstr ""
13824
13825 #. type: textblock
13826 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5565
13827 msgid ""
13828 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13829 "C<mountpoint>."
13830 msgstr ""
13831
13832 #. type: textblock
13833 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5568
13834 msgid ""
13835 "If required, C<trans=virtio> will be automatically added to the options.  "
13836 "Any other options required can be passed in the optional C<options> "
13837 "parameter."
13838 msgstr ""
13839
13840 #. type: =head2
13841 #: ../fish/guestfish-actions.pod:3595
13842 msgid "mount-loop"
13843 msgstr "mount-loop"
13844
13845 #. type: verbatim
13846 #: ../fish/guestfish-actions.pod:3597
13847 #, no-wrap
13848 msgid ""
13849 " mount-loop file mountpoint\n"
13850 "\n"
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5607
13855 msgid ""
13856 "This command lets you mount C<file> (a filesystem image in a file) on a "
13857 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13858 "mountpoint>."
13859 msgstr ""
13860
13861 #. type: =head2
13862 #: ../fish/guestfish-actions.pod:3603
13863 msgid "mount-options"
13864 msgstr "mount-options"
13865
13866 #. type: verbatim
13867 #: ../fish/guestfish-actions.pod:3605
13868 #, no-wrap
13869 msgid ""
13870 " mount-options options device mountpoint\n"
13871 "\n"
13872 msgstr ""
13873
13874 #. type: textblock
13875 #: ../fish/guestfish-actions.pod:3607
13876 msgid ""
13877 "This is the same as the L</mount> command, but it allows you to set the "
13878 "mount options as for the L<mount(8)> I<-o> flag."
13879 msgstr ""
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5627
13883 msgid ""
13884 "If the C<options> parameter is an empty string, then no options are passed "
13885 "(all options default to whatever the filesystem uses)."
13886 msgstr ""
13887
13888 #. type: =head2
13889 #: ../fish/guestfish-actions.pod:3615
13890 msgid "mount-ro"
13891 msgstr "mount-ro"
13892
13893 #. type: verbatim
13894 #: ../fish/guestfish-actions.pod:3617
13895 #, no-wrap
13896 msgid ""
13897 " mount-ro device mountpoint\n"
13898 "\n"
13899 msgstr ""
13900 " mount-ro пристрій точка_монтування\n"
13901 "\n"
13902
13903 #. type: textblock
13904 #: ../fish/guestfish-actions.pod:3619
13905 msgid ""
13906 "This is the same as the L</mount> command, but it mounts the filesystem with "
13907 "the read-only (I<-o ro>) flag."
13908 msgstr ""
13909
13910 #. type: =head2
13911 #: ../fish/guestfish-actions.pod:3622
13912 msgid "mount-vfs"
13913 msgstr "mount-vfs"
13914
13915 #. type: verbatim
13916 #: ../fish/guestfish-actions.pod:3624
13917 #, no-wrap
13918 msgid ""
13919 " mount-vfs options vfstype device mountpoint\n"
13920 "\n"
13921 msgstr ""
13922
13923 #. type: textblock
13924 #: ../fish/guestfish-actions.pod:3626
13925 msgid ""
13926 "This is the same as the L</mount> command, but it allows you to set both the "
13927 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13928 msgstr ""
13929
13930 #. type: =head2
13931 #: ../fish/guestfish-actions.pod:3630
13932 msgid "mountpoints"
13933 msgstr "mountpoints"
13934
13935 #. type: verbatim
13936 #: ../fish/guestfish-actions.pod:3632
13937 #, no-wrap
13938 msgid ""
13939 " mountpoints\n"
13940 "\n"
13941 msgstr ""
13942 " mountpoints\n"
13943 "\n"
13944
13945 #. type: textblock
13946 #: ../fish/guestfish-actions.pod:3634
13947 msgid ""
13948 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13949 "This one returns a hash table (map) of device name to directory where the "
13950 "device is mounted."
13951 msgstr ""
13952
13953 #. type: =head2
13954 #: ../fish/guestfish-actions.pod:3638
13955 msgid "mounts"
13956 msgstr "mounts"
13957
13958 #. type: verbatim
13959 #: ../fish/guestfish-actions.pod:3640
13960 #, no-wrap
13961 msgid ""
13962 " mounts\n"
13963 "\n"
13964 msgstr ""
13965 " mounts\n"
13966 "\n"
13967
13968 #. type: textblock
13969 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5688
13970 msgid ""
13971 "This returns the list of currently mounted filesystems.  It returns the list "
13972 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13973 msgstr ""
13974
13975 #. type: textblock
13976 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5691
13977 msgid "Some internal mounts are not shown."
13978 msgstr ""
13979
13980 #. type: textblock
13981 #: ../fish/guestfish-actions.pod:3647
13982 msgid "See also: L</mountpoints>"
13983 msgstr "Див. також L</mountpoints>"
13984
13985 #. type: =head2
13986 #: ../fish/guestfish-actions.pod:3649
13987 msgid "mv"
13988 msgstr "mv"
13989
13990 #. type: verbatim
13991 #: ../fish/guestfish-actions.pod:3651
13992 #, no-wrap
13993 msgid ""
13994 " mv src dest\n"
13995 "\n"
13996 msgstr ""
13997 " mv джерело призначення\n"
13998 "\n"
13999
14000 #. type: textblock
14001 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5708
14002 msgid ""
14003 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14004 "destination filename or destination directory."
14005 msgstr ""
14006
14007 #. type: =head2
14008 #: ../fish/guestfish-actions.pod:3656
14009 msgid "ntfs-3g-probe"
14010 msgstr "ntfs-3g-probe"
14011
14012 #. type: verbatim
14013 #: ../fish/guestfish-actions.pod:3658
14014 #, no-wrap
14015 msgid ""
14016 " ntfs-3g-probe true|false device\n"
14017 "\n"
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5722
14022 msgid ""
14023 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14024 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14025 "write, and some cannot be mounted at all)."
14026 msgstr ""
14027
14028 #. type: textblock
14029 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5726
14030 msgid ""
14031 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14032 "can be mounted read-write.  Set it to false if you want to test if the "
14033 "volume can be mounted read-only."
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5730
14038 msgid ""
14039 "The return value is an integer which C<0> if the operation would succeed, or "
14040 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14041 msgstr ""
14042
14043 #. type: =head2
14044 #: ../fish/guestfish-actions.pod:3672
14045 msgid "ntfsresize"
14046 msgstr "ntfsresize"
14047
14048 #. type: verbatim
14049 #: ../fish/guestfish-actions.pod:3674
14050 #, no-wrap
14051 msgid ""
14052 " ntfsresize device\n"
14053 "\n"
14054 msgstr ""
14055 " ntfsresize пристрій\n"
14056 "\n"
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:3676 ../fish/guestfish-actions.pod:3700
14060 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5783
14061 msgid ""
14062 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14063 "size of the underlying device."
14064 msgstr ""
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5754
14068 msgid ""
14069 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14070 "consistency check (for safety).  You have to boot into Windows to perform "
14071 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14072 "resize filesystems which have been marked in this way.  So in effect it is "
14073 "not possible to call ntfsresize multiple times on a single filesystem "
14074 "without booting into Windows between each resize."
14075 msgstr ""
14076
14077 #. type: textblock
14078 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3726
14079 #: ../src/guestfs-actions.pod:5762 ../src/guestfs-actions.pod:5809
14080 msgid "See also L<ntfsresize(8)>."
14081 msgstr "Див. також L<ntfsresize(8)>."
14082
14083 #. type: textblock
14084 #: ../fish/guestfish-actions.pod:3689 ../fish/guestfish-actions.pod:3737
14085 msgid ""
14086 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14087 "call instead."
14088 msgstr ""
14089
14090 #. type: =head2
14091 #: ../fish/guestfish-actions.pod:3696
14092 msgid "ntfsresize-opts"
14093 msgstr ""
14094
14095 #. type: verbatim
14096 #: ../fish/guestfish-actions.pod:3698
14097 #, no-wrap
14098 msgid ""
14099 " ntfsresize-opts device [size:N] [force:true|false]\n"
14100 "\n"
14101 msgstr ""
14102
14103 #. type: textblock
14104 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5792
14105 msgid ""
14106 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14107 "resized to fit the container (eg. partition)."
14108 msgstr ""
14109
14110 #. type: =item
14111 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:5033
14112 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7766
14113 msgid "C<force>"
14114 msgstr "C<force>"
14115
14116 #. type: textblock
14117 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5797
14118 msgid ""
14119 "If this option is true, then force the resize of the filesystem even if the "
14120 "filesystem is marked as requiring a consistency check."
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:3717
14125 msgid ""
14126 "After the resize operation, the filesystem is always marked as requiring a "
14127 "consistency check (for safety).  You have to boot into Windows to perform "
14128 "this check and clear this condition.  If you I<don't> set the C<force> "
14129 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14130 "a single filesystem without booting into Windows between each resize."
14131 msgstr ""
14132
14133 #. type: =head2
14134 #: ../fish/guestfish-actions.pod:3730
14135 msgid "ntfsresize-size"
14136 msgstr "ntfsresize-size"
14137
14138 #. type: verbatim
14139 #: ../fish/guestfish-actions.pod:3732
14140 #, no-wrap
14141 msgid ""
14142 " ntfsresize-size device size\n"
14143 "\n"
14144 msgstr ""
14145
14146 #. type: textblock
14147 #: ../fish/guestfish-actions.pod:3734
14148 msgid ""
14149 "This command is the same as L</ntfsresize> except that it allows you to "
14150 "specify the new size (in bytes) explicitly."
14151 msgstr ""
14152
14153 #. type: =head2
14154 #: ../fish/guestfish-actions.pod:3744
14155 msgid "part-add"
14156 msgstr "part-add"
14157
14158 #. type: verbatim
14159 #: ../fish/guestfish-actions.pod:3746
14160 #, no-wrap
14161 msgid ""
14162 " part-add device prlogex startsect endsect\n"
14163 "\n"
14164 msgstr ""
14165
14166 #. type: textblock
14167 #: ../fish/guestfish-actions.pod:3748
14168 msgid ""
14169 "This command adds a partition to C<device>.  If there is no partition table "
14170 "on the device, call L</part-init> first."
14171 msgstr ""
14172
14173 #. type: textblock
14174 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5870
14175 msgid ""
14176 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14177 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14178 "C<logical>) and C<e> (or C<extended>) partition types."
14179 msgstr ""
14180
14181 #. type: textblock
14182 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5875
14183 msgid ""
14184 "C<startsect> and C<endsect> are the start and end of the partition in "
14185 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14186 "from the end of the disk (C<-1> is the last sector)."
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:3760
14191 msgid ""
14192 "Creating a partition which covers the whole disk is not so easy.  Use L</"
14193 "part-disk> to do that."
14194 msgstr ""
14195
14196 #. type: =head2
14197 #: ../fish/guestfish-actions.pod:3763
14198 msgid "part-del"
14199 msgstr "part-del"
14200
14201 #. type: verbatim
14202 #: ../fish/guestfish-actions.pod:3765
14203 #, no-wrap
14204 msgid ""
14205 " part-del device partnum\n"
14206 "\n"
14207 msgstr ""
14208
14209 #. type: textblock
14210 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5893
14211 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14212 msgstr ""
14213
14214 #. type: textblock
14215 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5895
14216 msgid ""
14217 "Note that in the case of MBR partitioning, deleting an extended partition "
14218 "also deletes any logical partitions it contains."
14219 msgstr ""
14220
14221 #. type: =head2
14222 #: ../fish/guestfish-actions.pod:3773
14223 msgid "part-disk"
14224 msgstr "part-disk"
14225
14226 #. type: verbatim
14227 #: ../fish/guestfish-actions.pod:3775
14228 #, no-wrap
14229 msgid ""
14230 " part-disk device parttype\n"
14231 "\n"
14232 msgstr ""
14233 " part-disk пристрій тип_розділу\n"
14234 "\n"
14235
14236 #. type: textblock
14237 #: ../fish/guestfish-actions.pod:3777
14238 msgid ""
14239 "This command is simply a combination of L</part-init> followed by L</part-"
14240 "add> to create a single primary partition covering the whole disk."
14241 msgstr ""
14242
14243 #. type: textblock
14244 #: ../fish/guestfish-actions.pod:3781
14245 msgid ""
14246 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14247 "possible values are described in L</part-init>."
14248 msgstr ""
14249
14250 #. type: =head2
14251 #: ../fish/guestfish-actions.pod:3784
14252 msgid "part-get-bootable"
14253 msgstr "part-get-bootable"
14254
14255 #. type: verbatim
14256 #: ../fish/guestfish-actions.pod:3786
14257 #, no-wrap
14258 msgid ""
14259 " part-get-bootable device partnum\n"
14260 "\n"
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5928
14265 msgid ""
14266 "This command returns true if the partition C<partnum> on C<device> has the "
14267 "bootable flag set."
14268 msgstr ""
14269
14270 #. type: textblock
14271 #: ../fish/guestfish-actions.pod:3791
14272 msgid "See also L</part-set-bootable>."
14273 msgstr "Див. також L</part-set-bootable>."
14274
14275 #. type: =head2
14276 #: ../fish/guestfish-actions.pod:3793
14277 msgid "part-get-mbr-id"
14278 msgstr "part-get-mbr-id"
14279
14280 #. type: verbatim
14281 #: ../fish/guestfish-actions.pod:3795
14282 #, no-wrap
14283 msgid ""
14284 " part-get-mbr-id device partnum\n"
14285 "\n"
14286 msgstr ""
14287
14288 #. type: textblock
14289 #: ../fish/guestfish-actions.pod:3797 ../src/guestfs-actions.pod:5944
14290 msgid ""
14291 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14292 "partition C<partnum>."
14293 msgstr ""
14294
14295 #. type: textblock
14296 #: ../fish/guestfish-actions.pod:3800 ../fish/guestfish-actions.pod:3944
14297 msgid ""
14298 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14299 "undefined results for other partition table types (see L</part-get-"
14300 "parttype>)."
14301 msgstr ""
14302
14303 #. type: =head2
14304 #: ../fish/guestfish-actions.pod:3804
14305 msgid "part-get-parttype"
14306 msgstr "part-get-parttype"
14307
14308 #. type: verbatim
14309 #: ../fish/guestfish-actions.pod:3806
14310 #, no-wrap
14311 msgid ""
14312 " part-get-parttype device\n"
14313 "\n"
14314 msgstr ""
14315 " part-get-parttype пристрій\n"
14316 "\n"
14317
14318 #. type: textblock
14319 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
14320 msgid ""
14321 "This command examines the partition table on C<device> and returns the "
14322 "partition table type (format) being used."
14323 msgstr ""
14324
14325 #. type: textblock
14326 #: ../fish/guestfish-actions.pod:3811
14327 msgid ""
14328 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14329 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14330 "possible, although unusual.  See L</part-init> for a full list."
14331 msgstr ""
14332
14333 #. type: =head2
14334 #: ../fish/guestfish-actions.pod:3816
14335 msgid "part-init"
14336 msgstr "part-init"
14337
14338 #. type: verbatim
14339 #: ../fish/guestfish-actions.pod:3818
14340 #, no-wrap
14341 msgid ""
14342 " part-init device parttype\n"
14343 "\n"
14344 msgstr ""
14345
14346 #. type: textblock
14347 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5981
14348 msgid ""
14349 "This creates an empty partition table on C<device> of one of the partition "
14350 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14351 "(for large disks)."
14352 msgstr ""
14353
14354 #. type: textblock
14355 #: ../fish/guestfish-actions.pod:3824
14356 msgid ""
14357 "Initially there are no partitions.  Following this, you should call L</part-"
14358 "add> for each partition required."
14359 msgstr ""
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5988
14363 msgid "Possible values for C<parttype> are:"
14364 msgstr ""
14365
14366 #. type: =item
14367 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5992
14368 msgid "B<efi>"
14369 msgstr "B<efi>"
14370
14371 #. type: =item
14372 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5994
14373 msgid "B<gpt>"
14374 msgstr "B<gpt>"
14375
14376 #. type: textblock
14377 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5996
14378 msgid "Intel EFI / GPT partition table."
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5998
14383 msgid ""
14384 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14385 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14386 "the C<mbr> format."
14387 msgstr ""
14388
14389 #. type: =item
14390 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:6002
14391 msgid "B<mbr>"
14392 msgstr "B<mbr>"
14393
14394 #. type: =item
14395 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:6004
14396 msgid "B<msdos>"
14397 msgstr "B<msdos>"
14398
14399 #. type: textblock
14400 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:6006
14401 msgid ""
14402 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14403 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14404 "TB.  For large disks we recommend using C<gpt>."
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6013
14409 msgid ""
14410 "Other partition table types that may work but are not supported include:"
14411 msgstr ""
14412
14413 #. type: =item
14414 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:6018
14415 msgid "B<aix>"
14416 msgstr "B<aix>"
14417
14418 #. type: textblock
14419 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:6020
14420 msgid "AIX disk labels."
14421 msgstr "Мітки дисків AIX."
14422
14423 #. type: =item
14424 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:6022
14425 msgid "B<amiga>"
14426 msgstr "B<amiga>"
14427
14428 #. type: =item
14429 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6024
14430 msgid "B<rdb>"
14431 msgstr "B<rdb>"
14432
14433 #. type: textblock
14434 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6026
14435 msgid "Amiga \"Rigid Disk Block\" format."
14436 msgstr "Формат \"Rigid Disk Block\" Amiga."
14437
14438 #. type: =item
14439 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6028
14440 msgid "B<bsd>"
14441 msgstr "B<bsd>"
14442
14443 #. type: textblock
14444 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6030
14445 msgid "BSD disk labels."
14446 msgstr "Мітки дисків BSD."
14447
14448 #. type: =item
14449 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:6032
14450 msgid "B<dasd>"
14451 msgstr "B<dasd>"
14452
14453 #. type: textblock
14454 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6034
14455 msgid "DASD, used on IBM mainframes."
14456 msgstr "DASD, використовувалися у мейнфреймах IBM."
14457
14458 #. type: =item
14459 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6036
14460 msgid "B<dvh>"
14461 msgstr "B<dvh>"
14462
14463 #. type: textblock
14464 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6038
14465 msgid "MIPS/SGI volumes."
14466 msgstr "Томи MIPS/SGI."
14467
14468 #. type: =item
14469 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6040
14470 msgid "B<mac>"
14471 msgstr "B<mac>"
14472
14473 #. type: textblock
14474 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:6042
14475 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14476 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14477
14478 #. type: =item
14479 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6044
14480 msgid "B<pc98>"
14481 msgstr "B<pc98>"
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6046
14485 msgid "NEC PC-98 format, common in Japan apparently."
14486 msgstr "Формат NEC PC-98, поширений у Японії."
14487
14488 #. type: =item
14489 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6048
14490 msgid "B<sun>"
14491 msgstr "B<sun>"
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:6050
14495 msgid "Sun disk labels."
14496 msgstr "Мітки дисків Sun."
14497
14498 #. type: =head2
14499 #: ../fish/guestfish-actions.pod:3893
14500 msgid "part-list"
14501 msgstr "part-list"
14502
14503 #. type: verbatim
14504 #: ../fish/guestfish-actions.pod:3895
14505 #, no-wrap
14506 msgid ""
14507 " part-list device\n"
14508 "\n"
14509 msgstr ""
14510 " part-list device\n"
14511 "\n"
14512
14513 #. type: textblock
14514 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:6064
14515 msgid ""
14516 "This command parses the partition table on C<device> and returns the list of "
14517 "partitions found."
14518 msgstr ""
14519
14520 #. type: textblock
14521 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14522 msgid "The fields in the returned structure are:"
14523 msgstr ""
14524
14525 #. type: =item
14526 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
14527 msgid "B<part_num>"
14528 msgstr "B<part_num>"
14529
14530 #. type: textblock
14531 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
14532 msgid "Partition number, counting from 1."
14533 msgstr ""
14534
14535 #. type: =item
14536 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6075
14537 msgid "B<part_start>"
14538 msgstr "B<part_start>"
14539
14540 #. type: textblock
14541 #: ../fish/guestfish-actions.pod:3910
14542 msgid ""
14543 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14544 "the device's sector size, see L</blockdev-getss>."
14545 msgstr ""
14546
14547 #. type: =item
14548 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6080
14549 msgid "B<part_end>"
14550 msgstr "B<part_end>"
14551
14552 #. type: textblock
14553 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6082
14554 msgid "End of the partition in bytes."
14555 msgstr ""
14556
14557 #. type: =item
14558 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6084
14559 msgid "B<part_size>"
14560 msgstr "B<part_size>"
14561
14562 #. type: textblock
14563 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6086
14564 msgid "Size of the partition in bytes."
14565 msgstr ""
14566
14567 #. type: =head2
14568 #: ../fish/guestfish-actions.pod:3923
14569 msgid "part-set-bootable"
14570 msgstr "part-set-bootable"
14571
14572 #. type: verbatim
14573 #: ../fish/guestfish-actions.pod:3925
14574 #, no-wrap
14575 msgid ""
14576 " part-set-bootable device partnum true|false\n"
14577 "\n"
14578 msgstr ""
14579
14580 #. type: textblock
14581 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6104
14582 msgid ""
14583 "This sets the bootable flag on partition numbered C<partnum> on device "
14584 "C<device>.  Note that partitions are numbered from 1."
14585 msgstr ""
14586
14587 #. type: textblock
14588 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6107
14589 msgid ""
14590 "The bootable flag is used by some operating systems (notably Windows) to "
14591 "determine which partition to boot from.  It is by no means universally "
14592 "recognized."
14593 msgstr ""
14594
14595 #. type: =head2
14596 #: ../fish/guestfish-actions.pod:3934
14597 msgid "part-set-mbr-id"
14598 msgstr "part-set-mbr-id"
14599
14600 #. type: verbatim
14601 #: ../fish/guestfish-actions.pod:3936
14602 #, no-wrap
14603 msgid ""
14604 " part-set-mbr-id device partnum idbyte\n"
14605 "\n"
14606 msgstr ""
14607
14608 #. type: textblock
14609 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6123
14610 msgid ""
14611 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14612 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14613 "documentation are in fact hexadecimal numbers, but usually documented "
14614 "without any leading \"0x\" which might be confusing."
14615 msgstr ""
14616
14617 #. type: =head2
14618 #: ../fish/guestfish-actions.pod:3948
14619 msgid "part-set-name"
14620 msgstr "part-set-name"
14621
14622 #. type: verbatim
14623 #: ../fish/guestfish-actions.pod:3950
14624 #, no-wrap
14625 msgid ""
14626 " part-set-name device partnum name\n"
14627 "\n"
14628 msgstr ""
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6145
14632 msgid ""
14633 "This sets the partition name on partition numbered C<partnum> on device "
14634 "C<device>.  Note that partitions are numbered from 1."
14635 msgstr ""
14636
14637 #. type: textblock
14638 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6148
14639 msgid ""
14640 "The partition name can only be set on certain types of partition table.  "
14641 "This works on C<gpt> but not on C<mbr> partitions."
14642 msgstr ""
14643
14644 #. type: =head2
14645 #: ../fish/guestfish-actions.pod:3958
14646 msgid "part-to-dev"
14647 msgstr "part-to-dev"
14648
14649 #. type: verbatim
14650 #: ../fish/guestfish-actions.pod:3960
14651 #, no-wrap
14652 msgid ""
14653 " part-to-dev partition\n"
14654 "\n"
14655 msgstr ""
14656 " part-to-dev розділ\n"
14657 "\n"
14658
14659 #. type: textblock
14660 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6161
14661 msgid ""
14662 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14663 "partition number, returning the device name (eg. \"/dev/sdb\")."
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:3978
14668 msgid ""
14669 "The named partition must exist, for example as a string returned from L</"
14670 "list-partitions>."
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:3969
14675 msgid "See also L</part-to-partnum>."
14676 msgstr ""
14677
14678 #. type: =head2
14679 #: ../fish/guestfish-actions.pod:3971
14680 msgid "part-to-partnum"
14681 msgstr ""
14682
14683 #. type: verbatim
14684 #: ../fish/guestfish-actions.pod:3973
14685 #, no-wrap
14686 msgid ""
14687 " part-to-partnum partition\n"
14688 "\n"
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6181
14693 msgid ""
14694 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14695 "partition number (eg. C<1>)."
14696 msgstr ""
14697
14698 #. type: textblock
14699 #: ../fish/guestfish-actions.pod:3981
14700 msgid "See also L</part-to-dev>."
14701 msgstr ""
14702
14703 #. type: =head2
14704 #: ../fish/guestfish-actions.pod:3983
14705 msgid "ping-daemon"
14706 msgstr "ping-daemon"
14707
14708 #. type: verbatim
14709 #: ../fish/guestfish-actions.pod:3985
14710 #, no-wrap
14711 msgid ""
14712 " ping-daemon\n"
14713 "\n"
14714 msgstr ""
14715 " ping-daemon\n"
14716 "\n"
14717
14718 #. type: textblock
14719 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6198
14720 msgid ""
14721 "This is a test probe into the guestfs daemon running inside the qemu "
14722 "subprocess.  Calling this function checks that the daemon responds to the "
14723 "ping message, without affecting the daemon or attached block device(s) in "
14724 "any other way."
14725 msgstr ""
14726
14727 #. type: =head2
14728 #: ../fish/guestfish-actions.pod:3992
14729 msgid "pread"
14730 msgstr "pread"
14731
14732 #. type: verbatim
14733 #: ../fish/guestfish-actions.pod:3994
14734 #, no-wrap
14735 msgid ""
14736 " pread path count offset\n"
14737 "\n"
14738 msgstr ""
14739
14740 #. type: textblock
14741 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6216
14742 msgid ""
14743 "This command lets you read part of a file.  It reads C<count> bytes of the "
14744 "file, starting at C<offset>, from file C<path>."
14745 msgstr ""
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:3999 ../fish/guestfish-actions.pod:4014
14749 #: ../src/guestfs-actions.pod:6219 ../src/guestfs-actions.pod:6245
14750 msgid ""
14751 "This may read fewer bytes than requested.  For further details see the "
14752 "L<pread(2)> system call."
14753 msgstr ""
14754
14755 #. type: textblock
14756 #: ../fish/guestfish-actions.pod:4002
14757 msgid "See also L</pwrite>, L</pread-device>."
14758 msgstr "Див. також L</pwrite>, L</pread-device>."
14759
14760 #. type: =head2
14761 #: ../fish/guestfish-actions.pod:4007
14762 msgid "pread-device"
14763 msgstr "pread-device"
14764
14765 #. type: verbatim
14766 #: ../fish/guestfish-actions.pod:4009
14767 #, no-wrap
14768 msgid ""
14769 " pread-device device count offset\n"
14770 "\n"
14771 msgstr ""
14772
14773 #. type: textblock
14774 #: ../fish/guestfish-actions.pod:4011 ../src/guestfs-actions.pod:6242
14775 msgid ""
14776 "This command lets you read part of a file.  It reads C<count> bytes of "
14777 "C<device>, starting at C<offset>."
14778 msgstr ""
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:4017
14782 msgid "See also L</pread>."
14783 msgstr "Див. також L</pread>."
14784
14785 #. type: =head2
14786 #: ../fish/guestfish-actions.pod:4022
14787 msgid "pvcreate"
14788 msgstr "pvcreate"
14789
14790 #. type: verbatim
14791 #: ../fish/guestfish-actions.pod:4024
14792 #, no-wrap
14793 msgid ""
14794 " pvcreate device\n"
14795 "\n"
14796 msgstr ""
14797 " pvcreate пристрій\n"
14798 "\n"
14799
14800 #. type: textblock
14801 #: ../fish/guestfish-actions.pod:4026 ../src/guestfs-actions.pod:6265
14802 msgid ""
14803 "This creates an LVM physical volume on the named C<device>, where C<device> "
14804 "should usually be a partition name such as C</dev/sda1>."
14805 msgstr ""
14806
14807 #. type: =head2
14808 #: ../fish/guestfish-actions.pod:4030
14809 msgid "pvremove"
14810 msgstr "pvremove"
14811
14812 #. type: verbatim
14813 #: ../fish/guestfish-actions.pod:4032
14814 #, no-wrap
14815 msgid ""
14816 " pvremove device\n"
14817 "\n"
14818 msgstr ""
14819 " pvremove пристрій\n"
14820 "\n"
14821
14822 #. type: textblock
14823 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6279
14824 msgid ""
14825 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14826 "it."
14827 msgstr ""
14828
14829 #. type: textblock
14830 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
14831 msgid ""
14832 "The implementation uses the C<pvremove> command which refuses to wipe "
14833 "physical volumes that contain any volume groups, so you have to remove those "
14834 "first."
14835 msgstr ""
14836
14837 #. type: =head2
14838 #: ../fish/guestfish-actions.pod:4041
14839 msgid "pvresize"
14840 msgstr "pvresize"
14841
14842 #. type: verbatim
14843 #: ../fish/guestfish-actions.pod:4043
14844 #, no-wrap
14845 msgid ""
14846 " pvresize device\n"
14847 "\n"
14848 msgstr ""
14849 " pvresize пристрій\n"
14850 "\n"
14851
14852 #. type: textblock
14853 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
14854 msgid ""
14855 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14856 "the new size of the underlying device."
14857 msgstr ""
14858
14859 #. type: =head2
14860 #: ../fish/guestfish-actions.pod:4048
14861 msgid "pvresize-size"
14862 msgstr "pvresize-size"
14863
14864 #. type: verbatim
14865 #: ../fish/guestfish-actions.pod:4050
14866 #, no-wrap
14867 msgid ""
14868 " pvresize-size device size\n"
14869 "\n"
14870 msgstr ""
14871
14872 #. type: textblock
14873 #: ../fish/guestfish-actions.pod:4052
14874 msgid ""
14875 "This command is the same as L</pvresize> except that it allows you to "
14876 "specify the new size (in bytes) explicitly."
14877 msgstr ""
14878
14879 #. type: =head2
14880 #: ../fish/guestfish-actions.pod:4055
14881 msgid "pvs"
14882 msgstr "pvs"
14883
14884 #. type: verbatim
14885 #: ../fish/guestfish-actions.pod:4057
14886 #, no-wrap
14887 msgid ""
14888 " pvs\n"
14889 "\n"
14890 msgstr ""
14891 " pvs\n"
14892 "\n"
14893
14894 #. type: textblock
14895 #: ../fish/guestfish-actions.pod:4059 ../src/guestfs-actions.pod:6322
14896 msgid ""
14897 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14898 "(8)> command."
14899 msgstr ""
14900
14901 #. type: textblock
14902 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6325
14903 msgid ""
14904 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14905 "sda2>)."
14906 msgstr ""
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-actions.pod:4065
14910 msgid "See also L</pvs-full>."
14911 msgstr "Див. також L</pvs-full>."
14912
14913 #. type: =head2
14914 #: ../fish/guestfish-actions.pod:4067
14915 msgid "pvs-full"
14916 msgstr "pvs-full"
14917
14918 #. type: verbatim
14919 #: ../fish/guestfish-actions.pod:4069
14920 #, no-wrap
14921 msgid ""
14922 " pvs-full\n"
14923 "\n"
14924 msgstr ""
14925 " pvs-full\n"
14926 "\n"
14927
14928 #. type: textblock
14929 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6341
14930 msgid ""
14931 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14932 "(8)> command.  The \"full\" version includes all fields."
14933 msgstr ""
14934
14935 #. type: =head2
14936 #: ../fish/guestfish-actions.pod:4074
14937 msgid "pvuuid"
14938 msgstr "pvuuid"
14939
14940 #. type: verbatim
14941 #: ../fish/guestfish-actions.pod:4076
14942 #, no-wrap
14943 msgid ""
14944 " pvuuid device\n"
14945 "\n"
14946 msgstr ""
14947 " pvuuid пристрій\n"
14948 "\n"
14949
14950 #. type: textblock
14951 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6356
14952 msgid "This command returns the UUID of the LVM PV C<device>."
14953 msgstr ""
14954
14955 #. type: =head2
14956 #: ../fish/guestfish-actions.pod:4080
14957 msgid "pwrite"
14958 msgstr "pwrite"
14959
14960 #. type: verbatim
14961 #: ../fish/guestfish-actions.pod:4082
14962 #, no-wrap
14963 msgid ""
14964 " pwrite path content offset\n"
14965 "\n"
14966 msgstr ""
14967
14968 #. type: textblock
14969 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6372
14970 msgid ""
14971 "This command writes to part of a file.  It writes the data buffer C<content> "
14972 "to the file C<path> starting at offset C<offset>."
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6375
14977 msgid ""
14978 "This command implements the L<pwrite(2)> system call, and like that system "
14979 "call it may not write the full data requested.  The return value is the "
14980 "number of bytes that were actually written to the file.  This could even be "
14981 "0, although short writes are unlikely for regular files in ordinary "
14982 "circumstances."
14983 msgstr ""
14984
14985 #. type: textblock
14986 #: ../fish/guestfish-actions.pod:4093
14987 msgid "See also L</pread>, L</pwrite-device>."
14988 msgstr "Див. також L</pread>, L</pwrite-device>."
14989
14990 #. type: =head2
14991 #: ../fish/guestfish-actions.pod:4098
14992 msgid "pwrite-device"
14993 msgstr "pwrite-device"
14994
14995 #. type: verbatim
14996 #: ../fish/guestfish-actions.pod:4100
14997 #, no-wrap
14998 msgid ""
14999 " pwrite-device device content offset\n"
15000 "\n"
15001 msgstr ""
15002
15003 #. type: textblock
15004 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6399
15005 msgid ""
15006 "This command writes to part of a device.  It writes the data buffer "
15007 "C<content> to C<device> starting at offset C<offset>."
15008 msgstr ""
15009
15010 #. type: textblock
15011 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6402
15012 msgid ""
15013 "This command implements the L<pwrite(2)> system call, and like that system "
15014 "call it may not write the full data requested (although short writes to disk "
15015 "devices and partitions are probably impossible with standard Linux kernels)."
15016 msgstr ""
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4110
15020 msgid "See also L</pwrite>."
15021 msgstr "Див. також L</pwrite>."
15022
15023 #. type: =head2
15024 #: ../fish/guestfish-actions.pod:4115
15025 msgid "read-file"
15026 msgstr "read-file"
15027
15028 #. type: verbatim
15029 #: ../fish/guestfish-actions.pod:4117
15030 #, no-wrap
15031 msgid ""
15032 " read-file path\n"
15033 "\n"
15034 msgstr ""
15035 " read-file шлях\n"
15036 "\n"
15037
15038 #. type: textblock
15039 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6423
15040 msgid "This calls returns the contents of the file C<path> as a buffer."
15041 msgstr ""
15042
15043 #. type: textblock
15044 #: ../fish/guestfish-actions.pod:4122
15045 msgid ""
15046 "Unlike L</cat>, this function can correctly handle files that contain "
15047 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15048 "is limited in the total size of file that can be handled."
15049 msgstr ""
15050
15051 #. type: =head2
15052 #: ../fish/guestfish-actions.pod:4130
15053 msgid "read-lines"
15054 msgstr "read-lines"
15055
15056 #. type: verbatim
15057 #: ../fish/guestfish-actions.pod:4132
15058 #, no-wrap
15059 msgid ""
15060 " read-lines path\n"
15061 "\n"
15062 msgstr ""
15063 " read-lines шлях\n"
15064 "\n"
15065
15066 #. type: textblock
15067 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6448
15068 msgid ""
15069 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15070 "C<CRLF> character sequences are I<not> returned."
15071 msgstr ""
15072
15073 #. type: textblock
15074 #: ../fish/guestfish-actions.pod:4139
15075 msgid ""
15076 "Note that this function cannot correctly handle binary files (specifically, "
15077 "files containing C<\\0> character which is treated as end of line).  For "
15078 "those you need to use the L</read-file> function which has a more complex "
15079 "interface."
15080 msgstr ""
15081
15082 #. type: =head2
15083 #: ../fish/guestfish-actions.pod:4144
15084 msgid "readdir"
15085 msgstr "readdir"
15086
15087 #. type: verbatim
15088 #: ../fish/guestfish-actions.pod:4146
15089 #, no-wrap
15090 msgid ""
15091 " readdir dir\n"
15092 "\n"
15093 msgstr ""
15094 " readdir каталог\n"
15095 "\n"
15096
15097 #. type: textblock
15098 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6468
15099 msgid "This returns the list of directory entries in directory C<dir>."
15100 msgstr ""
15101
15102 #. type: textblock
15103 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6470
15104 msgid ""
15105 "All entries in the directory are returned, including C<.> and C<..>.  The "
15106 "entries are I<not> sorted, but returned in the same order as the underlying "
15107 "filesystem."
15108 msgstr ""
15109
15110 #. type: textblock
15111 #: ../fish/guestfish-actions.pod:4154 ../src/guestfs-actions.pod:6474
15112 msgid ""
15113 "Also this call returns basic file type information about each file.  The "
15114 "C<ftyp> field will contain one of the following characters:"
15115 msgstr ""
15116
15117 #. type: =item
15118 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6479
15119 msgid "'b'"
15120 msgstr "'b'"
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6481
15124 msgid "Block special"
15125 msgstr "Блоковий особливий"
15126
15127 #. type: =item
15128 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6483
15129 msgid "'c'"
15130 msgstr "'c'"
15131
15132 #. type: textblock
15133 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6485
15134 msgid "Char special"
15135 msgstr "Символьний особливий"
15136
15137 #. type: =item
15138 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6487
15139 msgid "'d'"
15140 msgstr "'d'"
15141
15142 #. type: textblock
15143 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6489
15144 msgid "Directory"
15145 msgstr "Каталог"
15146
15147 #. type: =item
15148 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6491
15149 msgid "'f'"
15150 msgstr "'f'"
15151
15152 #. type: textblock
15153 #: ../fish/guestfish-actions.pod:4173 ../src/guestfs-actions.pod:6493
15154 msgid "FIFO (named pipe)"
15155 msgstr "FIFO (іменований канал)"
15156
15157 #. type: =item
15158 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6495
15159 msgid "'l'"
15160 msgstr "'l'"
15161
15162 #. type: textblock
15163 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6497
15164 msgid "Symbolic link"
15165 msgstr "Символічне посилання"
15166
15167 #. type: =item
15168 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6499
15169 msgid "'r'"
15170 msgstr "'r'"
15171
15172 #. type: textblock
15173 #: ../fish/guestfish-actions.pod:4181 ../src/guestfs-actions.pod:6501
15174 msgid "Regular file"
15175 msgstr "Звичайний файл"
15176
15177 #. type: =item
15178 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6503
15179 msgid "'s'"
15180 msgstr "'s'"
15181
15182 #. type: textblock
15183 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6505
15184 msgid "Socket"
15185 msgstr "Сокет"
15186
15187 #. type: =item
15188 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6507
15189 msgid "'u'"
15190 msgstr "'u'"
15191
15192 #. type: textblock
15193 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6509
15194 msgid "Unknown file type"
15195 msgstr "Невідомий тип файла"
15196
15197 #. type: =item
15198 #: ../fish/guestfish-actions.pod:4191 ../src/guestfs-actions.pod:6511
15199 msgid "'?'"
15200 msgstr ""
15201
15202 #. type: textblock
15203 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6513
15204 msgid ""
15205 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15206 msgstr ""
15207
15208 #. type: textblock
15209 #: ../fish/guestfish-actions.pod:4198
15210 msgid ""
15211 "This function is primarily intended for use by programs.  To get a simple "
15212 "list of names, use L</ls>.  To get a printable directory for human "
15213 "consumption, use L</ll>."
15214 msgstr ""
15215
15216 #. type: =head2
15217 #: ../fish/guestfish-actions.pod:4202
15218 msgid "readlink"
15219 msgstr "readlink"
15220
15221 #. type: verbatim
15222 #: ../fish/guestfish-actions.pod:4204
15223 #, no-wrap
15224 msgid ""
15225 " readlink path\n"
15226 "\n"
15227 msgstr ""
15228 " readlink шлях\n"
15229 "\n"
15230
15231 #. type: textblock
15232 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6534
15233 msgid "This command reads the target of a symbolic link."
15234 msgstr ""
15235
15236 #. type: =head2
15237 #: ../fish/guestfish-actions.pod:4208
15238 msgid "readlinklist"
15239 msgstr "readlinklist"
15240
15241 #. type: verbatim
15242 #: ../fish/guestfish-actions.pod:4210
15243 #, no-wrap
15244 msgid ""
15245 " readlinklist path 'names ...'\n"
15246 "\n"
15247 msgstr ""
15248
15249 #. type: textblock
15250 #: ../fish/guestfish-actions.pod:4212 ../src/guestfs-actions.pod:6548
15251 msgid ""
15252 "This call allows you to do a C<readlink> operation on multiple files, where "
15253 "all files are in the directory C<path>.  C<names> is the list of files from "
15254 "this directory."
15255 msgstr ""
15256
15257 #. type: textblock
15258 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6552
15259 msgid ""
15260 "On return you get a list of strings, with a one-to-one correspondence to the "
15261 "C<names> list.  Each string is the value of the symbolic link."
15262 msgstr ""
15263
15264 #. type: textblock
15265 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6556
15266 msgid ""
15267 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15268 "result string is the empty string C<\"\">.  However the whole operation is "
15269 "completed even if there were C<readlink(2)> errors, and so you can call this "
15270 "function with names where you don't know if they are symbolic links already "
15271 "(albeit slightly less efficient)."
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6563
15276 msgid ""
15277 "This call is intended for programs that want to efficiently list a directory "
15278 "contents without making many round-trips.  Very long directory listings "
15279 "might cause the protocol message size to be exceeded, causing this call to "
15280 "fail.  The caller must split up such requests into smaller groups of names."
15281 msgstr ""
15282
15283 #. type: =head2
15284 #: ../fish/guestfish-actions.pod:4234
15285 msgid "realpath"
15286 msgstr "realpath"
15287
15288 #. type: verbatim
15289 #: ../fish/guestfish-actions.pod:4236
15290 #, no-wrap
15291 msgid ""
15292 " realpath path\n"
15293 "\n"
15294 msgstr ""
15295 " realpath шлях\n"
15296 "\n"
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6582
15300 msgid ""
15301 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15302 "has no C<.>, C<..> or symbolic link path elements."
15303 msgstr ""
15304
15305 #. type: =head2
15306 #: ../fish/guestfish-actions.pod:4241
15307 msgid "removexattr"
15308 msgstr "removexattr"
15309
15310 #. type: verbatim
15311 #: ../fish/guestfish-actions.pod:4243
15312 #, no-wrap
15313 msgid ""
15314 " removexattr xattr path\n"
15315 "\n"
15316 msgstr ""
15317
15318 #. type: textblock
15319 #: ../fish/guestfish-actions.pod:4245 ../src/guestfs-actions.pod:6597
15320 msgid ""
15321 "This call removes the extended attribute named C<xattr> of the file C<path>."
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../fish/guestfish-actions.pod:4248
15326 msgid "See also: L</lremovexattr>, L<attr(5)>."
15327 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15328
15329 #. type: =head2
15330 #: ../fish/guestfish-actions.pod:4250
15331 msgid "resize2fs"
15332 msgstr "resize2fs"
15333
15334 #. type: verbatim
15335 #: ../fish/guestfish-actions.pod:4252
15336 #, no-wrap
15337 msgid ""
15338 " resize2fs device\n"
15339 "\n"
15340 msgstr ""
15341 " resize2fs пристрій\n"
15342 "\n"
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6612
15346 msgid ""
15347 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15348 "underlying device."
15349 msgstr ""
15350
15351 #. type: textblock
15352 #: ../fish/guestfish-actions.pod:4257
15353 msgid ""
15354 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15355 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15356 "gives an error about this and sometimes not.  In any case, it is always safe "
15357 "to call L</e2fsck-f> before calling this function."
15358 msgstr ""
15359
15360 #. type: =head2
15361 #: ../fish/guestfish-actions.pod:4263
15362 msgid "resize2fs-M"
15363 msgstr "resize2fs-M"
15364
15365 #. type: verbatim
15366 #: ../fish/guestfish-actions.pod:4265
15367 #, no-wrap
15368 msgid ""
15369 " resize2fs-M device\n"
15370 "\n"
15371 msgstr ""
15372 " resize2fs-M пристрій\n"
15373 "\n"
15374
15375 #. type: textblock
15376 #: ../fish/guestfish-actions.pod:4267
15377 msgid ""
15378 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15379 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15380 "command."
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../fish/guestfish-actions.pod:4271
15385 msgid ""
15386 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15387 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15388 "multiplied together, give the resulting size of the minimal filesystem in "
15389 "bytes."
15390 msgstr ""
15391
15392 #. type: =head2
15393 #: ../fish/guestfish-actions.pod:4276
15394 msgid "resize2fs-size"
15395 msgstr "resize2fs-size"
15396
15397 #. type: verbatim
15398 #: ../fish/guestfish-actions.pod:4278
15399 #, no-wrap
15400 msgid ""
15401 " resize2fs-size device size\n"
15402 "\n"
15403 msgstr ""
15404
15405 #. type: textblock
15406 #: ../fish/guestfish-actions.pod:4280
15407 msgid ""
15408 "This command is the same as L</resize2fs> except that it allows you to "
15409 "specify the new size (in bytes) explicitly."
15410 msgstr ""
15411
15412 #. type: =head2
15413 #: ../fish/guestfish-actions.pod:4283
15414 msgid "rm"
15415 msgstr "rm"
15416
15417 #. type: verbatim
15418 #: ../fish/guestfish-actions.pod:4285
15419 #, no-wrap
15420 msgid ""
15421 " rm path\n"
15422 "\n"
15423 msgstr ""
15424 " rm шлях\n"
15425 "\n"
15426
15427 #. type: textblock
15428 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6664
15429 msgid "Remove the single file C<path>."
15430 msgstr ""
15431
15432 #. type: =head2
15433 #: ../fish/guestfish-actions.pod:4289
15434 msgid "rm-rf"
15435 msgstr "rm-rf"
15436
15437 #. type: verbatim
15438 #: ../fish/guestfish-actions.pod:4291
15439 #, no-wrap
15440 msgid ""
15441 " rm-rf path\n"
15442 "\n"
15443 msgstr ""
15444 " rm-rf шлях\n"
15445 "\n"
15446
15447 #. type: textblock
15448 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6676
15449 msgid ""
15450 "Remove the file or directory C<path>, recursively removing the contents if "
15451 "its a directory.  This is like the C<rm -rf> shell command."
15452 msgstr ""
15453
15454 #. type: =head2
15455 #: ../fish/guestfish-actions.pod:4297
15456 msgid "rmdir"
15457 msgstr "rmdir"
15458
15459 #. type: verbatim
15460 #: ../fish/guestfish-actions.pod:4299
15461 #, no-wrap
15462 msgid ""
15463 " rmdir path\n"
15464 "\n"
15465 msgstr ""
15466 " rmdir шлях\n"
15467 "\n"
15468
15469 #. type: textblock
15470 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6690
15471 msgid "Remove the single directory C<path>."
15472 msgstr ""
15473
15474 #. type: =head2
15475 #: ../fish/guestfish-actions.pod:4303
15476 msgid "rmmountpoint"
15477 msgstr "rmmountpoint"
15478
15479 #. type: verbatim
15480 #: ../fish/guestfish-actions.pod:4305
15481 #, no-wrap
15482 msgid ""
15483 " rmmountpoint exemptpath\n"
15484 "\n"
15485 msgstr ""
15486
15487 #. type: textblock
15488 #: ../fish/guestfish-actions.pod:4307
15489 msgid ""
15490 "This calls removes a mountpoint that was previously created with L</"
15491 "mkmountpoint>.  See L</mkmountpoint> for full details."
15492 msgstr ""
15493
15494 #. type: =head2
15495 #: ../fish/guestfish-actions.pod:4311
15496 msgid "scrub-device"
15497 msgstr "scrub-device"
15498
15499 #. type: verbatim
15500 #: ../fish/guestfish-actions.pod:4313
15501 #, no-wrap
15502 msgid ""
15503 " scrub-device device\n"
15504 "\n"
15505 msgstr ""
15506 " scrub-device пристрій\n"
15507 "\n"
15508
15509 #. type: textblock
15510 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6716
15511 msgid ""
15512 "This command writes patterns over C<device> to make data retrieval more "
15513 "difficult."
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-actions.pod:4318 ../fish/guestfish-actions.pod:4330
15518 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6719
15519 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6756
15520 msgid ""
15521 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15522 "more details."
15523 msgstr ""
15524
15525 #. type: =head2
15526 #: ../fish/guestfish-actions.pod:4321
15527 msgid "scrub-file"
15528 msgstr "scrub-file"
15529
15530 #. type: verbatim
15531 #: ../fish/guestfish-actions.pod:4323
15532 #, no-wrap
15533 msgid ""
15534 " scrub-file file\n"
15535 "\n"
15536 msgstr ""
15537 " scrub-file файл\n"
15538 "\n"
15539
15540 #. type: textblock
15541 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6732
15542 msgid ""
15543 "This command writes patterns over a file to make data retrieval more "
15544 "difficult."
15545 msgstr ""
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4328 ../src/guestfs-actions.pod:6735
15549 msgid "The file is I<removed> after scrubbing."
15550 msgstr ""
15551
15552 #. type: =head2
15553 #: ../fish/guestfish-actions.pod:4333
15554 msgid "scrub-freespace"
15555 msgstr "scrub-freespace"
15556
15557 #. type: verbatim
15558 #: ../fish/guestfish-actions.pod:4335
15559 #, no-wrap
15560 msgid ""
15561 " scrub-freespace dir\n"
15562 "\n"
15563 msgstr ""
15564 " scrub-freespace каталог\n"
15565 "\n"
15566
15567 #. type: textblock
15568 #: ../fish/guestfish-actions.pod:4337
15569 msgid ""
15570 "This command creates the directory C<dir> and then fills it with files until "
15571 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15572 "deletes them.  The intention is to scrub any free space on the partition "
15573 "containing C<dir>."
15574 msgstr ""
15575
15576 #. type: =head2
15577 #: ../fish/guestfish-actions.pod:4346
15578 msgid "set-append"
15579 msgstr "set-append"
15580
15581 #. type: =head2
15582 #: ../fish/guestfish-actions.pod:4348
15583 msgid "append"
15584 msgstr ""
15585
15586 #. type: verbatim
15587 #: ../fish/guestfish-actions.pod:4350
15588 #, no-wrap
15589 msgid ""
15590 " set-append append\n"
15591 "\n"
15592 msgstr ""
15593
15594 #. type: textblock
15595 #: ../fish/guestfish-actions.pod:4352 ../src/guestfs-actions.pod:6769
15596 msgid ""
15597 "This function is used to add additional options to the guest kernel command "
15598 "line."
15599 msgstr ""
15600
15601 #. type: textblock
15602 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6772
15603 msgid ""
15604 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15605 "environment variable."
15606 msgstr ""
15607
15608 #. type: textblock
15609 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6775
15610 msgid ""
15611 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15612 "(libguestfs always adds a few of its own)."
15613 msgstr ""
15614
15615 #. type: =head2
15616 #: ../fish/guestfish-actions.pod:4361
15617 msgid "set-attach-method"
15618 msgstr "set-attach-method"
15619
15620 #. type: =head2
15621 #: ../fish/guestfish-actions.pod:4363
15622 msgid "attach-method"
15623 msgstr ""
15624
15625 #. type: verbatim
15626 #: ../fish/guestfish-actions.pod:4365
15627 #, no-wrap
15628 msgid ""
15629 " set-attach-method attachmethod\n"
15630 "\n"
15631 msgstr ""
15632
15633 #. type: textblock
15634 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
15635 msgid ""
15636 "Set the method that libguestfs uses to connect to the back end guestfsd "
15637 "daemon.  Possible methods are:"
15638 msgstr ""
15639
15640 #. type: =item
15641 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6793
15642 #: ../src/guestfs.pod:2916
15643 msgid "C<appliance>"
15644 msgstr "C<appliance>"
15645
15646 #. type: textblock
15647 #: ../fish/guestfish-actions.pod:4374 ../src/guestfs-actions.pod:6795
15648 msgid ""
15649 "Launch an appliance and connect to it.  This is the ordinary method and the "
15650 "default."
15651 msgstr ""
15652
15653 #. type: =item
15654 #: ../fish/guestfish-actions.pod:4377 ../src/guestfs-actions.pod:6798
15655 msgid "C<unix:I<path>>"
15656 msgstr "C<unix:I<шлях>>"
15657
15658 #. type: textblock
15659 #: ../fish/guestfish-actions.pod:4379 ../src/guestfs-actions.pod:6800
15660 msgid "Connect to the Unix domain socket I<path>."
15661 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15662
15663 #. type: textblock
15664 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6802
15665 msgid ""
15666 "This method lets you connect to an existing daemon or (using virtio-serial) "
15667 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15668 "RUNNING DAEMONS>."
15669 msgstr ""
15670
15671 #. type: =head2
15672 #: ../fish/guestfish-actions.pod:4387
15673 msgid "set-autosync"
15674 msgstr "set-autosync"
15675
15676 #. type: =head2
15677 #: ../fish/guestfish-actions.pod:4389
15678 msgid "autosync"
15679 msgstr "autosync"
15680
15681 #. type: verbatim
15682 #: ../fish/guestfish-actions.pod:4391
15683 #, no-wrap
15684 msgid ""
15685 " set-autosync true|false\n"
15686 "\n"
15687 msgstr ""
15688 " set-autosync true|false\n"
15689 "\n"
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4393 ../src/guestfs-actions.pod:6818
15693 msgid ""
15694 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15695 "effort attempt to make filesystems consistent and synchronized when the "
15696 "handle is closed (also if the program exits without closing handles)."
15697 msgstr ""
15698
15699 #. type: textblock
15700 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6823
15701 msgid ""
15702 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15703 "disabled by default)."
15704 msgstr ""
15705
15706 #. type: =head2
15707 #: ../fish/guestfish-actions.pod:4401
15708 msgid "set-direct"
15709 msgstr "set-direct"
15710
15711 #. type: =head2
15712 #: ../fish/guestfish-actions.pod:4403
15713 msgid "direct"
15714 msgstr "direct"
15715
15716 #. type: verbatim
15717 #: ../fish/guestfish-actions.pod:4405
15718 #, no-wrap
15719 msgid ""
15720 " set-direct true|false\n"
15721 "\n"
15722 msgstr ""
15723 " set-direct true|false\n"
15724 "\n"
15725
15726 #. type: textblock
15727 #: ../fish/guestfish-actions.pod:4407 ../src/guestfs-actions.pod:6836
15728 msgid ""
15729 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15730 "passed directly through to the appliance once it is launched."
15731 msgstr ""
15732
15733 #. type: textblock
15734 #: ../fish/guestfish-actions.pod:4411
15735 msgid ""
15736 "One consequence of this is that log messages aren't caught by the library "
15737 "and handled by L</set-log-message-callback>, but go straight to stdout."
15738 msgstr ""
15739
15740 #. type: textblock
15741 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6844
15742 msgid "You probably don't want to use this unless you know what you are doing."
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6847
15747 msgid "The default is disabled."
15748 msgstr ""
15749
15750 #. type: =head2
15751 #: ../fish/guestfish-actions.pod:4420
15752 msgid "set-e2label"
15753 msgstr "set-e2label"
15754
15755 #. type: verbatim
15756 #: ../fish/guestfish-actions.pod:4422
15757 #, no-wrap
15758 msgid ""
15759 " set-e2label device label\n"
15760 "\n"
15761 msgstr ""
15762
15763 #. type: textblock
15764 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6860
15765 msgid ""
15766 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15767 "C<label>.  Filesystem labels are limited to 16 characters."
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-actions.pod:4428
15772 msgid ""
15773 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15774 "label on a filesystem."
15775 msgstr ""
15776
15777 #. type: =head2
15778 #: ../fish/guestfish-actions.pod:4431
15779 msgid "set-e2uuid"
15780 msgstr "set-e2uuid"
15781
15782 #. type: verbatim
15783 #: ../fish/guestfish-actions.pod:4433
15784 #, no-wrap
15785 msgid ""
15786 " set-e2uuid device uuid\n"
15787 "\n"
15788 msgstr ""
15789
15790 #. type: textblock
15791 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6878
15792 msgid ""
15793 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15794 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15795 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15796 msgstr ""
15797
15798 #. type: textblock
15799 #: ../fish/guestfish-actions.pod:4440
15800 msgid ""
15801 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15802 "UUID of a filesystem."
15803 msgstr ""
15804
15805 #. type: =head2
15806 #: ../fish/guestfish-actions.pod:4443
15807 msgid "set-memsize"
15808 msgstr "set-memsize"
15809
15810 #. type: =head2
15811 #: ../fish/guestfish-actions.pod:4445
15812 msgid "memsize"
15813 msgstr ""
15814
15815 #. type: verbatim
15816 #: ../fish/guestfish-actions.pod:4447
15817 #, no-wrap
15818 msgid ""
15819 " set-memsize memsize\n"
15820 "\n"
15821 msgstr ""
15822
15823 #. type: textblock
15824 #: ../fish/guestfish-actions.pod:4449
15825 msgid ""
15826 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15827 "This only has any effect if called before L</launch>."
15828 msgstr ""
15829
15830 #. type: textblock
15831 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6900
15832 msgid ""
15833 "You can also change this by setting the environment variable "
15834 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15835 msgstr ""
15836
15837 #. type: =head2
15838 #: ../fish/guestfish-actions.pod:4460
15839 msgid "set-network"
15840 msgstr "set-network"
15841
15842 #. type: =head2
15843 #: ../fish/guestfish-actions.pod:4462
15844 msgid "network"
15845 msgstr "network"
15846
15847 #. type: verbatim
15848 #: ../fish/guestfish-actions.pod:4464
15849 #, no-wrap
15850 msgid ""
15851 " set-network true|false\n"
15852 "\n"
15853 msgstr ""
15854 " set-network true|false\n"
15855 "\n"
15856
15857 #. type: textblock
15858 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6917
15859 msgid ""
15860 "If C<network> is true, then the network is enabled in the libguestfs "
15861 "appliance.  The default is false."
15862 msgstr ""
15863
15864 #. type: textblock
15865 #: ../fish/guestfish-actions.pod:4469 ../src/guestfs-actions.pod:6920
15866 msgid ""
15867 "This affects whether commands are able to access the network (see L<guestfs"
15868 "(3)/RUNNING COMMANDS>)."
15869 msgstr ""
15870
15871 #. type: textblock
15872 #: ../fish/guestfish-actions.pod:4472
15873 msgid ""
15874 "You must call this before calling L</launch>, otherwise it has no effect."
15875 msgstr ""
15876
15877 #. type: =head2
15878 #: ../fish/guestfish-actions.pod:4475
15879 msgid "set-path"
15880 msgstr "set-path"
15881
15882 #. type: verbatim
15883 #: ../fish/guestfish-actions.pod:4479
15884 #, no-wrap
15885 msgid ""
15886 " set-path searchpath\n"
15887 "\n"
15888 msgstr ""
15889
15890 #. type: textblock
15891 #: ../fish/guestfish-actions.pod:4481 ../src/guestfs-actions.pod:6936
15892 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15893 msgstr ""
15894
15895 #. type: textblock
15896 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6938
15897 msgid ""
15898 "The default is C<$libdir/guestfs> unless overridden by setting "
15899 "C<LIBGUESTFS_PATH> environment variable."
15900 msgstr ""
15901
15902 #. type: textblock
15903 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6941
15904 msgid "Setting C<path> to C<NULL> restores the default path."
15905 msgstr ""
15906
15907 #. type: =head2
15908 #: ../fish/guestfish-actions.pod:4488
15909 msgid "set-pgroup"
15910 msgstr ""
15911
15912 #. type: =head2
15913 #: ../fish/guestfish-actions.pod:4490
15914 msgid "pgroup"
15915 msgstr ""
15916
15917 #. type: verbatim
15918 #: ../fish/guestfish-actions.pod:4492
15919 #, no-wrap
15920 msgid ""
15921 " set-pgroup true|false\n"
15922 "\n"
15923 msgstr ""
15924
15925 #. type: textblock
15926 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6953
15927 msgid ""
15928 "If C<pgroup> is true, child processes are placed into their own process "
15929 "group."
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6956
15934 msgid ""
15935 "The practical upshot of this is that signals like C<SIGINT> (from users "
15936 "pressing C<^C>) won't be received by the child process."
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6959
15941 msgid ""
15942 "The default for this flag is false, because usually you want C<^C> to kill "
15943 "the subprocess."
15944 msgstr ""
15945
15946 #. type: =head2
15947 #: ../fish/guestfish-actions.pod:4503
15948 msgid "set-qemu"
15949 msgstr "set-qemu"
15950
15951 #. type: =head2
15952 #: ../fish/guestfish-actions.pod:4505
15953 msgid "qemu"
15954 msgstr "qemu"
15955
15956 #. type: verbatim
15957 #: ../fish/guestfish-actions.pod:4507
15958 #, no-wrap
15959 msgid ""
15960 " set-qemu qemu\n"
15961 "\n"
15962 msgstr ""
15963 " set-qemu qemu\n"
15964 "\n"
15965
15966 #. type: textblock
15967 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6972
15968 msgid "Set the qemu binary that we will use."
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6974
15973 msgid ""
15974 "The default is chosen when the library was compiled by the configure script."
15975 msgstr ""
15976
15977 #. type: textblock
15978 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6977
15979 msgid ""
15980 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15981 "variable."
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6980
15986 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15987 msgstr ""
15988
15989 #. type: textblock
15990 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6982
15991 msgid ""
15992 "Note that you should call this function as early as possible after creating "
15993 "the handle.  This is because some pre-launch operations depend on testing "
15994 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15995 "don't retest features, and so you might see inconsistent results.  Using the "
15996 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15997 "the qemu binary at the same time as the handle is created."
15998 msgstr ""
15999
16000 #. type: =head2
16001 #: ../fish/guestfish-actions.pod:4527
16002 msgid "set-recovery-proc"
16003 msgstr "set-recovery-proc"
16004
16005 #. type: =head2
16006 #: ../fish/guestfish-actions.pod:4529
16007 msgid "recovery-proc"
16008 msgstr "recovery-proc"
16009
16010 #. type: verbatim
16011 #: ../fish/guestfish-actions.pod:4531
16012 #, no-wrap
16013 msgid ""
16014 " set-recovery-proc true|false\n"
16015 "\n"
16016 msgstr ""
16017 " set-recovery-proc true|false\n"
16018 "\n"
16019
16020 #. type: textblock
16021 #: ../fish/guestfish-actions.pod:4533
16022 msgid ""
16023 "If this is called with the parameter C<false> then L</launch> does not "
16024 "create a recovery process.  The purpose of the recovery process is to stop "
16025 "runaway qemu processes in the case where the main program aborts abruptly."
16026 msgstr ""
16027
16028 #. type: textblock
16029 #: ../fish/guestfish-actions.pod:4538
16030 msgid ""
16031 "This only has any effect if called before L</launch>, and the default is "
16032 "true."
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:7008
16037 msgid ""
16038 "About the only time when you would want to disable this is if the main "
16039 "process will fork itself into the background (\"daemonize\" itself).  In "
16040 "this case the recovery process thinks that the main program has disappeared "
16041 "and so kills qemu, which is not very helpful."
16042 msgstr ""
16043
16044 #. type: =head2
16045 #: ../fish/guestfish-actions.pod:4547
16046 msgid "set-selinux"
16047 msgstr "set-selinux"
16048
16049 #. type: =head2
16050 #: ../fish/guestfish-actions.pod:4549
16051 msgid "selinux"
16052 msgstr "selinux"
16053
16054 #. type: verbatim
16055 #: ../fish/guestfish-actions.pod:4551
16056 #, no-wrap
16057 msgid ""
16058 " set-selinux true|false\n"
16059 "\n"
16060 msgstr ""
16061 " set-selinux true|false\n"
16062 "\n"
16063
16064 #. type: textblock
16065 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7024
16066 msgid ""
16067 "This sets the selinux flag that is passed to the appliance at boot time.  "
16068 "The default is C<selinux=0> (disabled)."
16069 msgstr ""
16070
16071 #. type: textblock
16072 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7027
16073 msgid ""
16074 "Note that if SELinux is enabled, it is always in Permissive mode "
16075 "(C<enforcing=0>)."
16076 msgstr ""
16077
16078 #. type: =head2
16079 #: ../fish/guestfish-actions.pod:4562
16080 msgid "set-smp"
16081 msgstr ""
16082
16083 #. type: =head2
16084 #: ../fish/guestfish-actions.pod:4564
16085 msgid "smp"
16086 msgstr ""
16087
16088 #. type: verbatim
16089 #: ../fish/guestfish-actions.pod:4566
16090 #, no-wrap
16091 msgid ""
16092 " set-smp smp\n"
16093 "\n"
16094 msgstr ""
16095
16096 #. type: textblock
16097 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:7043
16098 msgid ""
16099 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16100 "C<1>.  Increasing this may improve performance, though often it has no "
16101 "effect."
16102 msgstr ""
16103
16104 #. type: textblock
16105 #: ../fish/guestfish-actions.pod:4572
16106 msgid "This function must be called before L</launch>."
16107 msgstr ""
16108
16109 #. type: =head2
16110 #: ../fish/guestfish-actions.pod:4574
16111 msgid "set-trace"
16112 msgstr "set-trace"
16113
16114 #. type: =head2
16115 #: ../fish/guestfish-actions.pod:4576
16116 msgid "trace"
16117 msgstr "trace"
16118
16119 #. type: verbatim
16120 #: ../fish/guestfish-actions.pod:4578
16121 #, no-wrap
16122 msgid ""
16123 " set-trace true|false\n"
16124 "\n"
16125 msgstr ""
16126 " set-trace true|false\n"
16127 "\n"
16128
16129 #. type: textblock
16130 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:7059
16131 msgid ""
16132 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16133 "return values are traced."
16134 msgstr ""
16135
16136 #. type: textblock
16137 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7062
16138 msgid ""
16139 "If you want to trace C API calls into libguestfs (and other libraries) then "
16140 "possibly a better way is to use the external ltrace(1) command."
16141 msgstr ""
16142
16143 #. type: textblock
16144 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:7066
16145 msgid ""
16146 "Command traces are disabled unless the environment variable "
16147 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16148 msgstr ""
16149
16150 #. type: textblock
16151 #: ../fish/guestfish-actions.pod:4590
16152 msgid ""
16153 "Trace messages are normally sent to C<stderr>, unless you register a "
16154 "callback to send them somewhere else (see L</set-event-callback>)."
16155 msgstr ""
16156
16157 #. type: =head2
16158 #: ../fish/guestfish-actions.pod:4594
16159 msgid "set-verbose"
16160 msgstr "set-verbose"
16161
16162 #. type: =head2
16163 #: ../fish/guestfish-actions.pod:4596
16164 msgid "verbose"
16165 msgstr "verbose"
16166
16167 #. type: verbatim
16168 #: ../fish/guestfish-actions.pod:4598
16169 #, no-wrap
16170 msgid ""
16171 " set-verbose true|false\n"
16172 "\n"
16173 msgstr ""
16174 " set-verbose true|false\n"
16175 "\n"
16176
16177 #. type: textblock
16178 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7083
16179 msgid "If C<verbose> is true, this turns on verbose messages."
16180 msgstr ""
16181
16182 #. type: textblock
16183 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:7085
16184 msgid ""
16185 "Verbose messages are disabled unless the environment variable "
16186 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16187 msgstr ""
16188
16189 #. type: textblock
16190 #: ../fish/guestfish-actions.pod:4605
16191 msgid ""
16192 "Verbose messages are normally sent to C<stderr>, unless you register a "
16193 "callback to send them somewhere else (see L</set-event-callback>)."
16194 msgstr ""
16195
16196 #. type: =head2
16197 #: ../fish/guestfish-actions.pod:4609
16198 msgid "setcon"
16199 msgstr "setcon"
16200
16201 #. type: verbatim
16202 #: ../fish/guestfish-actions.pod:4611
16203 #, no-wrap
16204 msgid ""
16205 " setcon context\n"
16206 "\n"
16207 msgstr ""
16208 " setcon контекст\n"
16209 "\n"
16210
16211 #. type: textblock
16212 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
16213 msgid ""
16214 "This sets the SELinux security context of the daemon to the string "
16215 "C<context>."
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:7105
16220 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16221 msgstr ""
16222
16223 #. type: =head2
16224 #: ../fish/guestfish-actions.pod:4618
16225 msgid "setxattr"
16226 msgstr "setxattr"
16227
16228 #. type: verbatim
16229 #: ../fish/guestfish-actions.pod:4620
16230 #, no-wrap
16231 msgid ""
16232 " setxattr xattr val vallen path\n"
16233 "\n"
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7120
16238 msgid ""
16239 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16240 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16241 msgstr ""
16242
16243 #. type: textblock
16244 #: ../fish/guestfish-actions.pod:4626
16245 msgid "See also: L</lsetxattr>, L<attr(5)>."
16246 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16247
16248 #. type: =head2
16249 #: ../fish/guestfish-actions.pod:4628
16250 msgid "sfdisk"
16251 msgstr "sfdisk"
16252
16253 #. type: verbatim
16254 #: ../fish/guestfish-actions.pod:4630
16255 #, no-wrap
16256 msgid ""
16257 " sfdisk device cyls heads sectors 'lines ...'\n"
16258 "\n"
16259 msgstr ""
16260
16261 #. type: textblock
16262 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:7147
16263 msgid ""
16264 "This is a direct interface to the L<sfdisk(8)> program for creating "
16265 "partitions on block devices."
16266 msgstr ""
16267
16268 #. type: textblock
16269 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:7150
16270 msgid "C<device> should be a block device, for example C</dev/sda>."
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:7152
16275 msgid ""
16276 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16277 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16278 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16279 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16280 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16281 "the kernel) cannot work out the right geometry and you will need to tell it."
16282 msgstr ""
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:7160
16286 msgid ""
16287 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16288 "refer to the L<sfdisk(8)> manpage."
16289 msgstr ""
16290
16291 #. type: textblock
16292 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7163
16293 msgid ""
16294 "To create a single partition occupying the whole disk, you would pass "
16295 "C<lines> as a single element list, when the single element being the string "
16296 "C<,> (comma)."
16297 msgstr ""
16298
16299 #. type: textblock
16300 #: ../fish/guestfish-actions.pod:4652
16301 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16302 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16303
16304 #. type: textblock
16305 #: ../fish/guestfish-actions.pod:4655 ../fish/guestfish-actions.pod:4675
16306 #: ../fish/guestfish-actions.pod:4694
16307 msgid ""
16308 "I<This function is deprecated.> In new code, use the L</part_add> call "
16309 "instead."
16310 msgstr ""
16311
16312 #. type: =head2
16313 #: ../fish/guestfish-actions.pod:4662
16314 msgid "sfdiskM"
16315 msgstr "sfdiskM"
16316
16317 #. type: verbatim
16318 #: ../fish/guestfish-actions.pod:4664
16319 #, no-wrap
16320 msgid ""
16321 " sfdiskM device 'lines ...'\n"
16322 "\n"
16323 msgstr ""
16324
16325 #. type: textblock
16326 #: ../fish/guestfish-actions.pod:4666
16327 msgid ""
16328 "This is a simplified interface to the L</sfdisk> command, where partition "
16329 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16330 "you don't need to specify the cyls, heads and sectors parameters which were "
16331 "rarely if ever used anyway."
16332 msgstr ""
16333
16334 #. type: textblock
16335 #: ../fish/guestfish-actions.pod:4672
16336 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16337 msgstr ""
16338 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16339
16340 #. type: =head2
16341 #: ../fish/guestfish-actions.pod:4682
16342 msgid "sfdisk-N"
16343 msgstr "sfdisk-N"
16344
16345 #. type: verbatim
16346 #: ../fish/guestfish-actions.pod:4684
16347 #, no-wrap
16348 msgid ""
16349 " sfdisk-N device partnum cyls heads sectors line\n"
16350 "\n"
16351 msgstr ""
16352
16353 #. type: textblock
16354 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7219
16355 msgid ""
16356 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16357 "(note: C<n> counts from 1)."
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish-actions.pod:4689
16362 msgid ""
16363 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16364 "cyls/heads/sectors parameters."
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish-actions.pod:4692
16369 msgid "See also: L</part-add>"
16370 msgstr "Див. також L</part-add>"
16371
16372 #. type: =head2
16373 #: ../fish/guestfish-actions.pod:4701
16374 msgid "sfdisk-disk-geometry"
16375 msgstr "sfdisk-disk-geometry"
16376
16377 #. type: verbatim
16378 #: ../fish/guestfish-actions.pod:4703
16379 #, no-wrap
16380 msgid ""
16381 " sfdisk-disk-geometry device\n"
16382 "\n"
16383 msgstr ""
16384 " sfdisk-disk-geometry пристрій\n"
16385 "\n"
16386
16387 #. type: textblock
16388 #: ../fish/guestfish-actions.pod:4705
16389 msgid ""
16390 "This displays the disk geometry of C<device> read from the partition table.  "
16391 "Especially in the case where the underlying block device has been resized, "
16392 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16393 "kernel-geometry>)."
16394 msgstr ""
16395
16396 #. type: textblock
16397 #: ../fish/guestfish-actions.pod:4710 ../fish/guestfish-actions.pod:4719
16398 #: ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7258
16399 msgid "The result is in human-readable format, and not designed to be parsed."
16400 msgstr ""
16401
16402 #. type: =head2
16403 #: ../fish/guestfish-actions.pod:4713
16404 msgid "sfdisk-kernel-geometry"
16405 msgstr "sfdisk-kernel-geometry"
16406
16407 #. type: verbatim
16408 #: ../fish/guestfish-actions.pod:4715
16409 #, no-wrap
16410 msgid ""
16411 " sfdisk-kernel-geometry device\n"
16412 "\n"
16413 msgstr ""
16414 " sfdisk-kernel-geometry пристрій\n"
16415 "\n"
16416
16417 #. type: textblock
16418 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7256
16419 msgid "This displays the kernel's idea of the geometry of C<device>."
16420 msgstr ""
16421
16422 #. type: =head2
16423 #: ../fish/guestfish-actions.pod:4722
16424 msgid "sfdisk-l"
16425 msgstr "sfdisk-l"
16426
16427 #. type: verbatim
16428 #: ../fish/guestfish-actions.pod:4724
16429 #, no-wrap
16430 msgid ""
16431 " sfdisk-l device\n"
16432 "\n"
16433 msgstr ""
16434 " sfdisk-l пристрій\n"
16435 "\n"
16436
16437 #. type: textblock
16438 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7279
16439 msgid ""
16440 "This displays the partition table on C<device>, in the human-readable output "
16441 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish-actions.pod:4730
16446 msgid "See also: L</part-list>"
16447 msgstr "Див. також L</part-list>"
16448
16449 #. type: textblock
16450 #: ../fish/guestfish-actions.pod:4732
16451 msgid ""
16452 "I<This function is deprecated.> In new code, use the L</part_list> call "
16453 "instead."
16454 msgstr ""
16455
16456 #. type: =head2
16457 #: ../fish/guestfish-actions.pod:4739
16458 msgid "sh"
16459 msgstr "sh"
16460
16461 #. type: verbatim
16462 #: ../fish/guestfish-actions.pod:4741
16463 #, no-wrap
16464 msgid ""
16465 " sh command\n"
16466 "\n"
16467 msgstr ""
16468 " sh команда\n"
16469 "\n"
16470
16471 #. type: textblock
16472 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7296
16473 msgid ""
16474 "This call runs a command from the guest filesystem via the guest's C</bin/"
16475 "sh>."
16476 msgstr ""
16477
16478 #. type: textblock
16479 #: ../fish/guestfish-actions.pod:4746
16480 msgid "This is like L</command>, but passes the command to:"
16481 msgstr ""
16482
16483 #. type: verbatim
16484 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7301
16485 #, no-wrap
16486 msgid ""
16487 " /bin/sh -c \"command\"\n"
16488 "\n"
16489 msgstr ""
16490
16491 #. type: textblock
16492 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7303
16493 msgid ""
16494 "Depending on the guest's shell, this usually results in wildcards being "
16495 "expanded, shell expressions being interpolated and so on."
16496 msgstr ""
16497
16498 #. type: textblock
16499 #: ../fish/guestfish-actions.pod:4754
16500 msgid "All the provisos about L</command> apply to this call."
16501 msgstr ""
16502
16503 #. type: =head2
16504 #: ../fish/guestfish-actions.pod:4756
16505 msgid "sh-lines"
16506 msgstr "sh-lines"
16507
16508 #. type: verbatim
16509 #: ../fish/guestfish-actions.pod:4758
16510 #, no-wrap
16511 msgid ""
16512 " sh-lines command\n"
16513 "\n"
16514 msgstr ""
16515 " sh-lines команда\n"
16516 "\n"
16517
16518 #. type: textblock
16519 #: ../fish/guestfish-actions.pod:4760
16520 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16521 msgstr ""
16522
16523 #. type: textblock
16524 #: ../fish/guestfish-actions.pod:4763
16525 msgid "See also: L</command-lines>"
16526 msgstr "Див. також L</command-lines>"
16527
16528 #. type: =head2
16529 #: ../fish/guestfish-actions.pod:4765
16530 msgid "sleep"
16531 msgstr "sleep"
16532
16533 #. type: verbatim
16534 #: ../fish/guestfish-actions.pod:4767
16535 #, no-wrap
16536 msgid ""
16537 " sleep secs\n"
16538 "\n"
16539 msgstr ""
16540 " sleep час_у_секундах\n"
16541 "\n"
16542
16543 #. type: textblock
16544 #: ../fish/guestfish-actions.pod:4769 ../src/guestfs-actions.pod:7337
16545 msgid "Sleep for C<secs> seconds."
16546 msgstr ""
16547
16548 #. type: =head2
16549 #: ../fish/guestfish-actions.pod:4771
16550 msgid "stat"
16551 msgstr "stat"
16552
16553 #. type: verbatim
16554 #: ../fish/guestfish-actions.pod:4773
16555 #, no-wrap
16556 msgid ""
16557 " stat path\n"
16558 "\n"
16559 msgstr ""
16560 " stat шлях\n"
16561 "\n"
16562
16563 #. type: textblock
16564 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7351
16565 msgid "This is the same as the C<stat(2)> system call."
16566 msgstr ""
16567
16568 #. type: =head2
16569 #: ../fish/guestfish-actions.pod:4779
16570 msgid "statvfs"
16571 msgstr "statvfs"
16572
16573 #. type: verbatim
16574 #: ../fish/guestfish-actions.pod:4781
16575 #, no-wrap
16576 msgid ""
16577 " statvfs path\n"
16578 "\n"
16579 msgstr ""
16580 " statvfs шлях\n"
16581 "\n"
16582
16583 #. type: textblock
16584 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7365
16585 msgid ""
16586 "Returns file system statistics for any mounted file system.  C<path> should "
16587 "be a file or directory in the mounted file system (typically it is the mount "
16588 "point itself, but it doesn't need to be)."
16589 msgstr ""
16590
16591 #. type: textblock
16592 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7369
16593 msgid "This is the same as the C<statvfs(2)> system call."
16594 msgstr ""
16595
16596 #. type: =head2
16597 #: ../fish/guestfish-actions.pod:4789
16598 msgid "strings"
16599 msgstr "strings"
16600
16601 #. type: verbatim
16602 #: ../fish/guestfish-actions.pod:4791
16603 #, no-wrap
16604 msgid ""
16605 " strings path\n"
16606 "\n"
16607 msgstr ""
16608 " strings шлях\n"
16609 "\n"
16610
16611 #. type: textblock
16612 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7383
16613 msgid ""
16614 "This runs the L<strings(1)> command on a file and returns the list of "
16615 "printable strings found."
16616 msgstr ""
16617
16618 #. type: =head2
16619 #: ../fish/guestfish-actions.pod:4799
16620 msgid "strings-e"
16621 msgstr "strings-e"
16622
16623 #. type: verbatim
16624 #: ../fish/guestfish-actions.pod:4801
16625 #, no-wrap
16626 msgid ""
16627 " strings-e encoding path\n"
16628 "\n"
16629 msgstr ""
16630 " strings-e кодування шлях\n"
16631 "\n"
16632
16633 #. type: textblock
16634 #: ../fish/guestfish-actions.pod:4803
16635 msgid ""
16636 "This is like the L</strings> command, but allows you to specify the encoding "
16637 "of strings that are looked for in the source file C<path>."
16638 msgstr ""
16639
16640 #. type: textblock
16641 #: ../fish/guestfish-actions.pod:4807 ../src/guestfs-actions.pod:7406
16642 msgid "Allowed encodings are:"
16643 msgstr "Можливими кодуваннями є:"
16644
16645 #. type: =item
16646 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7410
16647 msgid "s"
16648 msgstr "s"
16649
16650 #. type: textblock
16651 #: ../fish/guestfish-actions.pod:4813
16652 msgid ""
16653 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16654 "ISO-8859-X (this is what L</strings> uses)."
16655 msgstr ""
16656
16657 #. type: =item
16658 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7415
16659 msgid "S"
16660 msgstr "S"
16661
16662 #. type: textblock
16663 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7417
16664 msgid "Single 8-bit-byte characters."
16665 msgstr "Окремі 8-бітові-байтові символи."
16666
16667 #. type: =item
16668 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7419
16669 msgid "b"
16670 msgstr "b"
16671
16672 #. type: textblock
16673 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7421
16674 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16675 msgstr ""
16676
16677 #. type: =item
16678 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7424
16679 msgid "l (lower case letter L)"
16680 msgstr ""
16681
16682 #. type: textblock
16683 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7426
16684 msgid ""
16685 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16686 "examining binaries in Windows guests."
16687 msgstr ""
16688
16689 #. type: =item
16690 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7429
16691 msgid "B"
16692 msgstr "B"
16693
16694 #. type: textblock
16695 #: ../fish/guestfish-actions.pod:4832 ../src/guestfs-actions.pod:7431
16696 msgid "32-bit big endian such as UCS-4BE."
16697 msgstr ""
16698
16699 #. type: =item
16700 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7433
16701 msgid "L"
16702 msgstr "L"
16703
16704 #. type: textblock
16705 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7435
16706 msgid "32-bit little endian such as UCS-4LE."
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7439
16711 msgid "The returned strings are transcoded to UTF-8."
16712 msgstr ""
16713
16714 #. type: =head2
16715 #: ../fish/guestfish-actions.pod:4845
16716 msgid "swapoff-device"
16717 msgstr "swapoff-device"
16718
16719 #. type: verbatim
16720 #: ../fish/guestfish-actions.pod:4847
16721 #, no-wrap
16722 msgid ""
16723 " swapoff-device device\n"
16724 "\n"
16725 msgstr ""
16726 " swapoff-device пристрій\n"
16727 "\n"
16728
16729 #. type: textblock
16730 #: ../fish/guestfish-actions.pod:4849
16731 msgid ""
16732 "This command disables the libguestfs appliance swap device or partition "
16733 "named C<device>.  See L</swapon-device>."
16734 msgstr ""
16735
16736 #. type: =head2
16737 #: ../fish/guestfish-actions.pod:4853
16738 msgid "swapoff-file"
16739 msgstr "swapoff-file"
16740
16741 #. type: verbatim
16742 #: ../fish/guestfish-actions.pod:4855
16743 #, no-wrap
16744 msgid ""
16745 " swapoff-file file\n"
16746 "\n"
16747 msgstr ""
16748 " swapoff-file файл\n"
16749 "\n"
16750
16751 #. type: textblock
16752 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7470
16753 msgid "This command disables the libguestfs appliance swap on file."
16754 msgstr ""
16755
16756 #. type: =head2
16757 #: ../fish/guestfish-actions.pod:4859
16758 msgid "swapoff-label"
16759 msgstr "swapoff-label"
16760
16761 #. type: verbatim
16762 #: ../fish/guestfish-actions.pod:4861
16763 #, no-wrap
16764 msgid ""
16765 " swapoff-label label\n"
16766 "\n"
16767 msgstr ""
16768 " swapoff-label мітка\n"
16769 "\n"
16770
16771 #. type: textblock
16772 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7482
16773 msgid ""
16774 "This command disables the libguestfs appliance swap on labeled swap "
16775 "partition."
16776 msgstr ""
16777
16778 #. type: =head2
16779 #: ../fish/guestfish-actions.pod:4866
16780 msgid "swapoff-uuid"
16781 msgstr "swapoff-uuid"
16782
16783 #. type: verbatim
16784 #: ../fish/guestfish-actions.pod:4868
16785 #, no-wrap
16786 msgid ""
16787 " swapoff-uuid uuid\n"
16788 "\n"
16789 msgstr ""
16790 " swapoff-uuid uuid\n"
16791 "\n"
16792
16793 #. type: textblock
16794 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7495
16795 msgid ""
16796 "This command disables the libguestfs appliance swap partition with the given "
16797 "UUID."
16798 msgstr ""
16799
16800 #. type: =head2
16801 #: ../fish/guestfish-actions.pod:4873
16802 msgid "swapon-device"
16803 msgstr "swapon-device"
16804
16805 #. type: verbatim
16806 #: ../fish/guestfish-actions.pod:4875
16807 #, no-wrap
16808 msgid ""
16809 " swapon-device device\n"
16810 "\n"
16811 msgstr ""
16812 " swapon-device пристрій\n"
16813 "\n"
16814
16815 #. type: textblock
16816 #: ../fish/guestfish-actions.pod:4877
16817 msgid ""
16818 "This command enables the libguestfs appliance to use the swap device or "
16819 "partition named C<device>.  The increased memory is made available for all "
16820 "commands, for example those run using L</command> or L</sh>."
16821 msgstr ""
16822
16823 #. type: textblock
16824 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7513
16825 msgid ""
16826 "Note that you should not swap to existing guest swap partitions unless you "
16827 "know what you are doing.  They may contain hibernation information, or other "
16828 "information that the guest doesn't want you to trash.  You also risk leaking "
16829 "information about the host to the guest this way.  Instead, attach a new "
16830 "host device to the guest and swap on that."
16831 msgstr ""
16832
16833 #. type: =head2
16834 #: ../fish/guestfish-actions.pod:4889
16835 msgid "swapon-file"
16836 msgstr "swapon-file"
16837
16838 #. type: verbatim
16839 #: ../fish/guestfish-actions.pod:4891
16840 #, no-wrap
16841 msgid ""
16842 " swapon-file file\n"
16843 "\n"
16844 msgstr ""
16845 " swapon-file файл\n"
16846 "\n"
16847
16848 #. type: textblock
16849 #: ../fish/guestfish-actions.pod:4893
16850 msgid ""
16851 "This command enables swap to a file.  See L</swapon-device> for other notes."
16852 msgstr ""
16853
16854 #. type: =head2
16855 #: ../fish/guestfish-actions.pod:4896
16856 msgid "swapon-label"
16857 msgstr "swapon-label"
16858
16859 #. type: verbatim
16860 #: ../fish/guestfish-actions.pod:4898
16861 #, no-wrap
16862 msgid ""
16863 " swapon-label label\n"
16864 "\n"
16865 msgstr ""
16866 " swapon-label мітка\n"
16867 "\n"
16868
16869 #. type: textblock
16870 #: ../fish/guestfish-actions.pod:4900
16871 msgid ""
16872 "This command enables swap to a labeled swap partition.  See L</swapon-"
16873 "device> for other notes."
16874 msgstr ""
16875
16876 #. type: =head2
16877 #: ../fish/guestfish-actions.pod:4903
16878 msgid "swapon-uuid"
16879 msgstr "swapon-uuid"
16880
16881 #. type: verbatim
16882 #: ../fish/guestfish-actions.pod:4905
16883 #, no-wrap
16884 msgid ""
16885 " swapon-uuid uuid\n"
16886 "\n"
16887 msgstr ""
16888 " swapon-uuid uuid\n"
16889 "\n"
16890
16891 #. type: textblock
16892 #: ../fish/guestfish-actions.pod:4907
16893 msgid ""
16894 "This command enables swap to a swap partition with the given UUID.  See L</"
16895 "swapon-device> for other notes."
16896 msgstr ""
16897
16898 #. type: =head2
16899 #: ../fish/guestfish-actions.pod:4910
16900 msgid "sync"
16901 msgstr "sync"
16902
16903 #. type: verbatim
16904 #: ../fish/guestfish-actions.pod:4912
16905 #, no-wrap
16906 msgid ""
16907 " sync\n"
16908 "\n"
16909 msgstr ""
16910 " sync\n"
16911 "\n"
16912
16913 #. type: textblock
16914 #: ../fish/guestfish-actions.pod:4914 ../src/guestfs-actions.pod:7568
16915 msgid ""
16916 "This syncs the disk, so that any writes are flushed through to the "
16917 "underlying disk image."
16918 msgstr ""
16919
16920 #. type: textblock
16921 #: ../fish/guestfish-actions.pod:4917 ../src/guestfs-actions.pod:7571
16922 msgid ""
16923 "You should always call this if you have modified a disk image, before "
16924 "closing the handle."
16925 msgstr ""
16926
16927 #. type: =head2
16928 #: ../fish/guestfish-actions.pod:4920
16929 msgid "tail"
16930 msgstr "tail"
16931
16932 #. type: verbatim
16933 #: ../fish/guestfish-actions.pod:4922
16934 #, no-wrap
16935 msgid ""
16936 " tail path\n"
16937 "\n"
16938 msgstr ""
16939 " tail шлях\n"
16940 "\n"
16941
16942 #. type: textblock
16943 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7584
16944 msgid ""
16945 "This command returns up to the last 10 lines of a file as a list of strings."
16946 msgstr ""
16947
16948 #. type: =head2
16949 #: ../fish/guestfish-actions.pod:4930
16950 msgid "tail-n"
16951 msgstr "tail-n"
16952
16953 #. type: verbatim
16954 #: ../fish/guestfish-actions.pod:4932
16955 #, no-wrap
16956 msgid ""
16957 " tail-n nrlines path\n"
16958 "\n"
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7603
16963 msgid ""
16964 "If the parameter C<nrlines> is a positive number, this returns the last "
16965 "C<nrlines> lines of the file C<path>."
16966 msgstr ""
16967
16968 #. type: textblock
16969 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7606
16970 msgid ""
16971 "If the parameter C<nrlines> is a negative number, this returns lines from "
16972 "the file C<path>, starting with the C<-nrlines>th line."
16973 msgstr ""
16974
16975 #. type: =head2
16976 #: ../fish/guestfish-actions.pod:4945
16977 msgid "tar-in"
16978 msgstr "tar-in"
16979
16980 #. type: verbatim
16981 #: ../fish/guestfish-actions.pod:4947
16982 #, no-wrap
16983 msgid ""
16984 " tar-in (tarfile|-) directory\n"
16985 "\n"
16986 msgstr ""
16987 " tar-in (файл_tar|-) каталог\n"
16988 "\n"
16989
16990 #. type: textblock
16991 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7627
16992 msgid ""
16993 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16994 "tar file) into C<directory>."
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish-actions.pod:4952
16999 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17000 msgstr ""
17001
17002 #. type: =head2
17003 #: ../fish/guestfish-actions.pod:4957
17004 msgid "tar-out"
17005 msgstr "tar-out"
17006
17007 #. type: verbatim
17008 #: ../fish/guestfish-actions.pod:4959
17009 #, no-wrap
17010 msgid ""
17011 " tar-out directory (tarfile|-)\n"
17012 "\n"
17013 msgstr ""
17014 " tar-out каталог (файл tar|-)\n"
17015 "\n"
17016
17017 #. type: textblock
17018 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7644
17019 msgid ""
17020 "This command packs the contents of C<directory> and downloads it to local "
17021 "file C<tarfile>."
17022 msgstr ""
17023
17024 #. type: textblock
17025 #: ../fish/guestfish-actions.pod:4964
17026 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17027 msgstr ""
17028
17029 #. type: =head2
17030 #: ../fish/guestfish-actions.pod:4969
17031 msgid "tgz-in"
17032 msgstr "tgz-in"
17033
17034 #. type: verbatim
17035 #: ../fish/guestfish-actions.pod:4971
17036 #, no-wrap
17037 msgid ""
17038 " tgz-in (tarball|-) directory\n"
17039 "\n"
17040 msgstr ""
17041 " tgz-in (архів tar|-) каталог\n"
17042 "\n"
17043
17044 #. type: textblock
17045 #: ../fish/guestfish-actions.pod:4973 ../src/guestfs-actions.pod:7661
17046 msgid ""
17047 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17048 "tar file) into C<directory>."
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../fish/guestfish-actions.pod:4976
17053 msgid "To upload an uncompressed tarball, use L</tar-in>."
17054 msgstr ""
17055
17056 #. type: =head2
17057 #: ../fish/guestfish-actions.pod:4980
17058 msgid "tgz-out"
17059 msgstr "tgz-out"
17060
17061 #. type: verbatim
17062 #: ../fish/guestfish-actions.pod:4982
17063 #, no-wrap
17064 msgid ""
17065 " tgz-out directory (tarball|-)\n"
17066 "\n"
17067 msgstr ""
17068 " tgz-out каталог (архів tar|-)\n"
17069 "\n"
17070
17071 #. type: textblock
17072 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7677
17073 msgid ""
17074 "This command packs the contents of C<directory> and downloads it to local "
17075 "file C<tarball>."
17076 msgstr ""
17077
17078 #. type: textblock
17079 #: ../fish/guestfish-actions.pod:4987
17080 msgid "To download an uncompressed tarball, use L</tar-out>."
17081 msgstr ""
17082
17083 #. type: =head2
17084 #: ../fish/guestfish-actions.pod:4991
17085 msgid "touch"
17086 msgstr "touch"
17087
17088 #. type: verbatim
17089 #: ../fish/guestfish-actions.pod:4993
17090 #, no-wrap
17091 msgid ""
17092 " touch path\n"
17093 "\n"
17094 msgstr ""
17095 " touch шлях\n"
17096 "\n"
17097
17098 #. type: textblock
17099 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7692
17100 msgid ""
17101 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17102 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17103 "length file."
17104 msgstr ""
17105
17106 #. type: textblock
17107 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7696
17108 msgid ""
17109 "This command only works on regular files, and will fail on other file types "
17110 "such as directories, symbolic links, block special etc."
17111 msgstr ""
17112
17113 #. type: =head2
17114 #: ../fish/guestfish-actions.pod:5002
17115 msgid "truncate"
17116 msgstr "truncate"
17117
17118 #. type: verbatim
17119 #: ../fish/guestfish-actions.pod:5004
17120 #, no-wrap
17121 msgid ""
17122 " truncate path\n"
17123 "\n"
17124 msgstr ""
17125 " truncate шлях\n"
17126 "\n"
17127
17128 #. type: textblock
17129 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
17130 msgid ""
17131 "This command truncates C<path> to a zero-length file.  The file must exist "
17132 "already."
17133 msgstr ""
17134
17135 #. type: =head2
17136 #: ../fish/guestfish-actions.pod:5009
17137 msgid "truncate-size"
17138 msgstr "truncate-size"
17139
17140 #. type: verbatim
17141 #: ../fish/guestfish-actions.pod:5011
17142 #, no-wrap
17143 msgid ""
17144 " truncate-size path size\n"
17145 "\n"
17146 msgstr ""
17147 " truncate-size шлях розмір\n"
17148 "\n"
17149
17150 #. type: textblock
17151 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7723
17152 msgid ""
17153 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17154 "already."
17155 msgstr ""
17156
17157 #. type: textblock
17158 #: ../fish/guestfish-actions.pod:5016
17159 msgid ""
17160 "If the current file size is less than C<size> then the file is extended to "
17161 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17162 "blocks are not allocated for the file until you write to it).  To create a "
17163 "non-sparse file of zeroes, use L</fallocate64> instead."
17164 msgstr ""
17165
17166 #. type: =head2
17167 #: ../fish/guestfish-actions.pod:5022
17168 #, fuzzy
17169 #| msgid "tune2fs-l"
17170 msgid "tune2fs"
17171 msgstr "tune2fs-l"
17172
17173 #. type: verbatim
17174 #: ../fish/guestfish-actions.pod:5024
17175 #, no-wrap
17176 msgid ""
17177 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
17178 "\n"
17179 msgstr ""
17180
17181 #. type: textblock
17182 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7759
17183 msgid ""
17184 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
17185 "ext4 filesystem called C<device>."
17186 msgstr ""
17187
17188 #. type: textblock
17189 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7768
17190 msgid ""
17191 "Force tune2fs to complete the operation even in the face of errors.  This is "
17192 "the same as the tune2fs C<-f> option."
17193 msgstr ""
17194
17195 #. type: =item
17196 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7771
17197 #, fuzzy
17198 #| msgid "mkmountpoint"
17199 msgid "C<maxmountcount>"
17200 msgstr "mkmountpoint"
17201
17202 #. type: textblock
17203 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7773
17204 msgid ""
17205 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
17206 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
17207 "same as the tune2fs C<-c> option."
17208 msgstr ""
17209
17210 #. type: =item
17211 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7777
17212 #, fuzzy
17213 #| msgid "mountpoints"
17214 msgid "C<mountcount>"
17215 msgstr "mountpoints"
17216
17217 #. type: textblock
17218 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7779
17219 msgid ""
17220 "Set the number of times the filesystem has been mounted.  This is the same "
17221 "as the tune2fs C<-C> option."
17222 msgstr ""
17223
17224 #. type: =item
17225 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7782
17226 msgid "C<errorbehavior>"
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7784
17231 msgid ""
17232 "Change the behavior of the kernel code when errors are detected.  Possible "
17233 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
17234 "these options don't really make any difference, particularly for write "
17235 "errors."
17236 msgstr ""
17237
17238 #. type: textblock
17239 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7789
17240 msgid "This is the same as the tune2fs C<-e> option."
17241 msgstr ""
17242
17243 #. type: =item
17244 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7791
17245 #, fuzzy
17246 #| msgid "B<--volgroups>"
17247 msgid "C<group>"
17248 msgstr "B<--volgroups>"
17249
17250 #. type: textblock
17251 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7793
17252 msgid ""
17253 "Set the group which can use reserved filesystem blocks.  This is the same as "
17254 "the tune2fs C<-g> option except that it can only be specified as a number."
17255 msgstr ""
17256
17257 #. type: =item
17258 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7797
17259 msgid "C<intervalbetweenchecks>"
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7799
17264 msgid ""
17265 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
17266 "option is passed as C<0> then time-dependent checking is disabled."
17267 msgstr ""
17268
17269 #. type: textblock
17270 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7803
17271 msgid "This is the same as the tune2fs C<-i> option."
17272 msgstr ""
17273
17274 #. type: =item
17275 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7805
17276 msgid "C<reservedblockspercentage>"
17277 msgstr ""
17278
17279 #. type: textblock
17280 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7807
17281 msgid ""
17282 "Set the percentage of the filesystem which may only be allocated by "
17283 "privileged processes.  This is the same as the tune2fs C<-m> option."
17284 msgstr ""
17285
17286 #. type: =item
17287 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7811
17288 msgid "C<lastmounteddirectory>"
17289 msgstr ""
17290
17291 #. type: textblock
17292 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7813
17293 msgid ""
17294 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
17295 "option."
17296 msgstr ""
17297
17298 #. type: =item
17299 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7816
17300 msgid ""
17301 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
17302 "is the same as the tune2fs C<-r> option."
17303 msgstr ""
17304
17305 #. type: =item
17306 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7820
17307 msgid "C<user>"
17308 msgstr ""
17309
17310 #. type: textblock
17311 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7822
17312 msgid ""
17313 "Set the user who can use the reserved filesystem blocks.  This is the same "
17314 "as the tune2fs C<-u> option except that it can only be specified as a number."
17315 msgstr ""
17316
17317 #. type: textblock
17318 #: ../fish/guestfish-actions.pod:5095
17319 msgid ""
17320 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
17321 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
17322 msgstr ""
17323
17324 #. type: =head2
17325 #: ../fish/guestfish-actions.pod:5101
17326 msgid "tune2fs-l"
17327 msgstr "tune2fs-l"
17328
17329 #. type: verbatim
17330 #: ../fish/guestfish-actions.pod:5103
17331 #, no-wrap
17332 msgid ""
17333 " tune2fs-l device\n"
17334 "\n"
17335 msgstr ""
17336 " tune2fs-l пристрій\n"
17337 "\n"
17338
17339 #. type: textblock
17340 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7862
17341 msgid ""
17342 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17343 "C<device>."
17344 msgstr ""
17345
17346 #. type: textblock
17347 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7865
17348 msgid ""
17349 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17350 "for more details.  The list of fields returned isn't clearly defined, and "
17351 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17352 "and the filesystem itself."
17353 msgstr ""
17354
17355 #. type: =head2
17356 #: ../fish/guestfish-actions.pod:5113
17357 msgid "txz-in"
17358 msgstr "txz-in"
17359
17360 #. type: verbatim
17361 #: ../fish/guestfish-actions.pod:5115
17362 #, no-wrap
17363 msgid ""
17364 " txz-in (tarball|-) directory\n"
17365 "\n"
17366 msgstr ""
17367 " txz-in (архів tar|-) каталог\n"
17368 "\n"
17369
17370 #. type: textblock
17371 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7885
17372 msgid ""
17373 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17374 "tar file) into C<directory>."
17375 msgstr ""
17376
17377 #. type: =head2
17378 #: ../fish/guestfish-actions.pod:5122
17379 msgid "txz-out"
17380 msgstr "txz-out"
17381
17382 #. type: verbatim
17383 #: ../fish/guestfish-actions.pod:5124
17384 #, no-wrap
17385 msgid ""
17386 " txz-out directory (tarball|-)\n"
17387 "\n"
17388 msgstr ""
17389 " txz-out каталог (архів tar|-)\n"
17390 "\n"
17391
17392 #. type: textblock
17393 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7899
17394 msgid ""
17395 "This command packs the contents of C<directory> and downloads it to local "
17396 "file C<tarball> (as an xz compressed tar archive)."
17397 msgstr ""
17398
17399 #. type: =head2
17400 #: ../fish/guestfish-actions.pod:5131
17401 msgid "umask"
17402 msgstr "umask"
17403
17404 #. type: verbatim
17405 #: ../fish/guestfish-actions.pod:5133
17406 #, no-wrap
17407 msgid ""
17408 " umask mask\n"
17409 "\n"
17410 msgstr ""
17411 " umask маска\n"
17412 "\n"
17413
17414 #. type: textblock
17415 #: ../fish/guestfish-actions.pod:5135 ../src/guestfs-actions.pod:7912
17416 msgid ""
17417 "This function sets the mask used for creating new files and device nodes to "
17418 "C<mask & 0777>."
17419 msgstr ""
17420
17421 #. type: textblock
17422 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7915
17423 msgid ""
17424 "Typical umask values would be C<022> which creates new files with "
17425 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17426 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17427 msgstr ""
17428
17429 #. type: textblock
17430 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7920
17431 msgid ""
17432 "The default umask is C<022>.  This is important because it means that "
17433 "directories and device nodes will be created with C<0644> or C<0755> mode "
17434 "even if you specify C<0777>."
17435 msgstr ""
17436
17437 #. type: textblock
17438 #: ../fish/guestfish-actions.pod:5147
17439 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17440 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17441
17442 #. type: textblock
17443 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7927
17444 msgid "This call returns the previous umask."
17445 msgstr ""
17446
17447 #. type: =head2
17448 #: ../fish/guestfish-actions.pod:5152
17449 msgid "umount"
17450 msgstr "umount"
17451
17452 #. type: =head2
17453 #: ../fish/guestfish-actions.pod:5154
17454 msgid "unmount"
17455 msgstr "unmount"
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish-actions.pod:5156
17459 #, no-wrap
17460 msgid ""
17461 " umount pathordevice\n"
17462 "\n"
17463 msgstr ""
17464 " umount шлях_або_пристрій\n"
17465 "\n"
17466
17467 #. type: textblock
17468 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
17469 msgid ""
17470 "This unmounts the given filesystem.  The filesystem may be specified either "
17471 "by its mountpoint (path) or the device which contains the filesystem."
17472 msgstr ""
17473
17474 #. type: =head2
17475 #: ../fish/guestfish-actions.pod:5162
17476 msgid "umount-all"
17477 msgstr "umount-all"
17478
17479 #. type: =head2
17480 #: ../fish/guestfish-actions.pod:5164
17481 msgid "unmount-all"
17482 msgstr "unmount-all"
17483
17484 #. type: verbatim
17485 #: ../fish/guestfish-actions.pod:5166
17486 #, no-wrap
17487 msgid ""
17488 " umount-all\n"
17489 "\n"
17490 msgstr ""
17491 " umount-all\n"
17492 "\n"
17493
17494 #. type: textblock
17495 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7952
17496 msgid "This unmounts all mounted filesystems."
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7954
17501 msgid "Some internal mounts are not unmounted by this call."
17502 msgstr ""
17503
17504 #. type: =head2
17505 #: ../fish/guestfish-actions.pod:5172
17506 msgid "upload"
17507 msgstr "upload"
17508
17509 #. type: verbatim
17510 #: ../fish/guestfish-actions.pod:5174
17511 #, no-wrap
17512 msgid ""
17513 " upload (filename|-) remotefilename\n"
17514 "\n"
17515 msgstr ""
17516 " upload (назва_файла|-) назва_віддаленого_файла\n"
17517 "\n"
17518
17519 #. type: textblock
17520 #: ../fish/guestfish-actions.pod:5176 ../fish/guestfish-actions.pod:5189
17521 #: ../src/guestfs-actions.pod:7967 ../src/guestfs-actions.pod:7991
17522 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17523 msgstr ""
17524
17525 #. type: textblock
17526 #: ../fish/guestfish-actions.pod:5181
17527 msgid "See also L</download>."
17528 msgstr "Див. також L</download>."
17529
17530 #. type: =head2
17531 #: ../fish/guestfish-actions.pod:5185
17532 msgid "upload-offset"
17533 msgstr "upload-offset"
17534
17535 #. type: verbatim
17536 #: ../fish/guestfish-actions.pod:5187
17537 #, no-wrap
17538 msgid ""
17539 " upload-offset (filename|-) remotefilename offset\n"
17540 "\n"
17541 msgstr ""
17542 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17543 "\n"
17544
17545 #. type: textblock
17546 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7994
17547 msgid ""
17548 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17549 "The intention is to overwrite parts of existing files or devices, although "
17550 "if a non-existant file is specified then it is created with a \"hole\" "
17551 "before C<offset>.  The size of the data written is implicit in the size of "
17552 "the source C<filename>."
17553 msgstr ""
17554
17555 #. type: textblock
17556 #: ../fish/guestfish-actions.pod:5199
17557 msgid ""
17558 "Note that there is no limit on the amount of data that can be uploaded with "
17559 "this call, unlike with L</pwrite>, and this call always writes the full "
17560 "amount unless an error occurs."
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../fish/guestfish-actions.pod:5204
17565 msgid "See also L</upload>, L</pwrite>."
17566 msgstr "Див. також L</upload>, L</pwrite>."
17567
17568 #. type: =head2
17569 #: ../fish/guestfish-actions.pod:5208
17570 msgid "utimens"
17571 msgstr "utimens"
17572
17573 #. type: verbatim
17574 #: ../fish/guestfish-actions.pod:5210
17575 #, no-wrap
17576 msgid ""
17577 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17578 "\n"
17579 msgstr ""
17580
17581 #. type: textblock
17582 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8027
17583 msgid "This command sets the timestamps of a file with nanosecond precision."
17584 msgstr ""
17585
17586 #. type: textblock
17587 #: ../fish/guestfish-actions.pod:5215 ../src/guestfs-actions.pod:8030
17588 msgid ""
17589 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17590 "from the epoch."
17591 msgstr ""
17592
17593 #. type: textblock
17594 #: ../fish/guestfish-actions.pod:5218 ../src/guestfs-actions.pod:8033
17595 msgid ""
17596 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17597 "nanoseconds from the epoch."
17598 msgstr ""
17599
17600 #. type: textblock
17601 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:8036
17602 msgid ""
17603 "If the C<*nsecs> field contains the special value C<-1> then the "
17604 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17605 "ignored in this case)."
17606 msgstr ""
17607
17608 #. type: textblock
17609 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8040
17610 msgid ""
17611 "If the C<*nsecs> field contains the special value C<-2> then the "
17612 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17613 "in this case)."
17614 msgstr ""
17615
17616 #. type: =head2
17617 #: ../fish/guestfish-actions.pod:5229
17618 msgid "version"
17619 msgstr "version"
17620
17621 #. type: verbatim
17622 #: ../fish/guestfish-actions.pod:5231
17623 #, no-wrap
17624 msgid ""
17625 " version\n"
17626 "\n"
17627 msgstr ""
17628 " version\n"
17629 "\n"
17630
17631 #. type: textblock
17632 #: ../fish/guestfish-actions.pod:5233 ../src/guestfs-actions.pod:8053
17633 msgid ""
17634 "Return the libguestfs version number that the program is linked against."
17635 msgstr ""
17636
17637 #. type: textblock
17638 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8056
17639 msgid ""
17640 "Note that because of dynamic linking this is not necessarily the version of "
17641 "libguestfs that you compiled against.  You can compile the program, and then "
17642 "at runtime dynamically link against a completely different C<libguestfs.so> "
17643 "library."
17644 msgstr ""
17645
17646 #. type: textblock
17647 #: ../fish/guestfish-actions.pod:5241 ../src/guestfs-actions.pod:8061
17648 msgid ""
17649 "This call was added in version C<1.0.58>.  In previous versions of "
17650 "libguestfs there was no way to get the version number.  From C code you can "
17651 "use dynamic linker functions to find out if this symbol exists (if it "
17652 "doesn't, then it's an earlier version)."
17653 msgstr ""
17654
17655 #. type: textblock
17656 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8067
17657 msgid ""
17658 "The call returns a structure with four elements.  The first three (C<major>, "
17659 "C<minor> and C<release>) are numbers and correspond to the usual version "
17660 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17661 "but may be used for distro-specific information."
17662 msgstr ""
17663
17664 #. type: textblock
17665 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8073
17666 msgid ""
17667 "To construct the original version string: C<$major.$minor.$release$extra>"
17668 msgstr ""
17669
17670 #. type: textblock
17671 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8076
17672 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17673 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17674
17675 #. type: textblock
17676 #: ../fish/guestfish-actions.pod:5258
17677 msgid ""
17678 "I<Note:> Don't use this call to test for availability of features.  In "
17679 "enterprise distributions we backport features from later versions into "
17680 "earlier versions, making this an unreliable way to test for features.  Use "
17681 "L</available> instead."
17682 msgstr ""
17683
17684 #. type: =head2
17685 #: ../fish/guestfish-actions.pod:5264
17686 msgid "vfs-label"
17687 msgstr "vfs-label"
17688
17689 #. type: verbatim
17690 #: ../fish/guestfish-actions.pod:5266
17691 #, no-wrap
17692 msgid ""
17693 " vfs-label device\n"
17694 "\n"
17695 msgstr ""
17696 " vfs-label пристрій\n"
17697 "\n"
17698
17699 #. type: textblock
17700 #: ../fish/guestfish-actions.pod:5268 ../src/guestfs-actions.pod:8096
17701 msgid "This returns the filesystem label of the filesystem on C<device>."
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../fish/guestfish-actions.pod:5271 ../src/guestfs-actions.pod:8099
17706 msgid "If the filesystem is unlabeled, this returns the empty string."
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../fish/guestfish-actions.pod:5273
17711 msgid "To find a filesystem from the label, use L</findfs-label>."
17712 msgstr ""
17713
17714 #. type: =head2
17715 #: ../fish/guestfish-actions.pod:5275
17716 msgid "vfs-type"
17717 msgstr "vfs-type"
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish-actions.pod:5277
17721 #, no-wrap
17722 msgid ""
17723 " vfs-type device\n"
17724 "\n"
17725 msgstr ""
17726 " vfs-type пристрій\n"
17727 "\n"
17728
17729 #. type: textblock
17730 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8114
17731 msgid ""
17732 "This command gets the filesystem type corresponding to the filesystem on "
17733 "C<device>."
17734 msgstr ""
17735
17736 #. type: textblock
17737 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8117
17738 msgid ""
17739 "For most filesystems, the result is the name of the Linux VFS module which "
17740 "would be used to mount this filesystem if you mounted it without specifying "
17741 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17742 msgstr ""
17743
17744 #. type: =head2
17745 #: ../fish/guestfish-actions.pod:5287
17746 msgid "vfs-uuid"
17747 msgstr "vfs-uuid"
17748
17749 #. type: verbatim
17750 #: ../fish/guestfish-actions.pod:5289
17751 #, no-wrap
17752 msgid ""
17753 " vfs-uuid device\n"
17754 "\n"
17755 msgstr ""
17756 " vfs-uuid пристрій\n"
17757 "\n"
17758
17759 #. type: textblock
17760 #: ../fish/guestfish-actions.pod:5291 ../src/guestfs-actions.pod:8133
17761 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8136
17766 msgid "If the filesystem does not have a UUID, this returns the empty string."
17767 msgstr ""
17768
17769 #. type: textblock
17770 #: ../fish/guestfish-actions.pod:5296
17771 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17772 msgstr ""
17773
17774 #. type: =head2
17775 #: ../fish/guestfish-actions.pod:5298
17776 msgid "vg-activate"
17777 msgstr "vg-activate"
17778
17779 #. type: verbatim
17780 #: ../fish/guestfish-actions.pod:5300
17781 #, no-wrap
17782 msgid ""
17783 " vg-activate true|false 'volgroups ...'\n"
17784 "\n"
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
17789 msgid ""
17790 "This command activates or (if C<activate> is false) deactivates all logical "
17791 "volumes in the listed volume groups C<volgroups>."
17792 msgstr ""
17793
17794 #. type: textblock
17795 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
17796 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17797 msgstr ""
17798
17799 #. type: textblock
17800 #: ../fish/guestfish-actions.pod:5307 ../src/guestfs-actions.pod:8157
17801 msgid ""
17802 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17803 "activated or deactivated."
17804 msgstr ""
17805
17806 #. type: =head2
17807 #: ../fish/guestfish-actions.pod:5310
17808 msgid "vg-activate-all"
17809 msgstr "vg-activate-all"
17810
17811 #. type: verbatim
17812 #: ../fish/guestfish-actions.pod:5312
17813 #, no-wrap
17814 msgid ""
17815 " vg-activate-all true|false\n"
17816 "\n"
17817 msgstr ""
17818 " vg-activate-all true|false\n"
17819 "\n"
17820
17821 #. type: textblock
17822 #: ../fish/guestfish-actions.pod:5314 ../src/guestfs-actions.pod:8170
17823 msgid ""
17824 "This command activates or (if C<activate> is false) deactivates all logical "
17825 "volumes in all volume groups."
17826 msgstr ""
17827
17828 #. type: textblock
17829 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8173
17830 msgid "This command is the same as running C<vgchange -a y|n>"
17831 msgstr ""
17832
17833 #. type: =head2
17834 #: ../fish/guestfish-actions.pod:5319
17835 msgid "vgcreate"
17836 msgstr "vgcreate"
17837
17838 #. type: verbatim
17839 #: ../fish/guestfish-actions.pod:5321
17840 #, no-wrap
17841 msgid ""
17842 " vgcreate volgroup 'physvols ...'\n"
17843 "\n"
17844 msgstr ""
17845
17846 #. type: textblock
17847 #: ../fish/guestfish-actions.pod:5323 ../src/guestfs-actions.pod:8186
17848 msgid ""
17849 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17850 "of physical volumes C<physvols>."
17851 msgstr ""
17852
17853 #. type: =head2
17854 #: ../fish/guestfish-actions.pod:5326
17855 msgid "vglvuuids"
17856 msgstr "vglvuuids"
17857
17858 #. type: verbatim
17859 #: ../fish/guestfish-actions.pod:5328
17860 #, no-wrap
17861 msgid ""
17862 " vglvuuids vgname\n"
17863 "\n"
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8199
17868 msgid ""
17869 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17870 "volumes created in this volume group."
17871 msgstr ""
17872
17873 #. type: textblock
17874 #: ../fish/guestfish-actions.pod:5333
17875 msgid ""
17876 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17877 "logical volumes and volume groups."
17878 msgstr ""
17879
17880 #. type: textblock
17881 #: ../fish/guestfish-actions.pod:5336
17882 msgid "See also L</vgpvuuids>."
17883 msgstr "Див. також L</vgpvuuids>."
17884
17885 #. type: =head2
17886 #: ../fish/guestfish-actions.pod:5338
17887 msgid "vgpvuuids"
17888 msgstr "vgpvuuids"
17889
17890 #. type: verbatim
17891 #: ../fish/guestfish-actions.pod:5340
17892 #, no-wrap
17893 msgid ""
17894 " vgpvuuids vgname\n"
17895 "\n"
17896 msgstr ""
17897
17898 #. type: textblock
17899 #: ../fish/guestfish-actions.pod:5342 ../src/guestfs-actions.pod:8219
17900 msgid ""
17901 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17902 "volumes that this volume group resides on."
17903 msgstr ""
17904
17905 #. type: textblock
17906 #: ../fish/guestfish-actions.pod:5345
17907 msgid ""
17908 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17909 "physical volumes and volume groups."
17910 msgstr ""
17911
17912 #. type: textblock
17913 #: ../fish/guestfish-actions.pod:5348
17914 msgid "See also L</vglvuuids>."
17915 msgstr "Див. також L</vglvuuids>."
17916
17917 #. type: =head2
17918 #: ../fish/guestfish-actions.pod:5350
17919 msgid "vgremove"
17920 msgstr "vgremove"
17921
17922 #. type: verbatim
17923 #: ../fish/guestfish-actions.pod:5352
17924 #, no-wrap
17925 msgid ""
17926 " vgremove vgname\n"
17927 "\n"
17928 msgstr ""
17929
17930 #. type: textblock
17931 #: ../fish/guestfish-actions.pod:5354 ../src/guestfs-actions.pod:8239
17932 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17933 msgstr ""
17934
17935 #. type: textblock
17936 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8241
17937 msgid ""
17938 "This also forcibly removes all logical volumes in the volume group (if any)."
17939 msgstr ""
17940
17941 #. type: =head2
17942 #: ../fish/guestfish-actions.pod:5359
17943 msgid "vgrename"
17944 msgstr "vgrename"
17945
17946 #. type: verbatim
17947 #: ../fish/guestfish-actions.pod:5361
17948 #, no-wrap
17949 msgid ""
17950 " vgrename volgroup newvolgroup\n"
17951 "\n"
17952 msgstr ""
17953
17954 #. type: textblock
17955 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8255
17956 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17957 msgstr ""
17958
17959 #. type: =head2
17960 #: ../fish/guestfish-actions.pod:5365
17961 msgid "vgs"
17962 msgstr "vgs"
17963
17964 #. type: verbatim
17965 #: ../fish/guestfish-actions.pod:5367
17966 #, no-wrap
17967 msgid ""
17968 " vgs\n"
17969 "\n"
17970 msgstr ""
17971 " vgs\n"
17972 "\n"
17973
17974 #. type: textblock
17975 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8266
17976 msgid ""
17977 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17978 "> command."
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8269
17983 msgid ""
17984 "This returns a list of just the volume group names that were detected (eg. "
17985 "C<VolGroup00>)."
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../fish/guestfish-actions.pod:5375
17990 msgid "See also L</vgs-full>."
17991 msgstr "Див. також L</vgs-full>."
17992
17993 #. type: =head2
17994 #: ../fish/guestfish-actions.pod:5377
17995 msgid "vgs-full"
17996 msgstr "vgs-full"
17997
17998 #. type: verbatim
17999 #: ../fish/guestfish-actions.pod:5379
18000 #, no-wrap
18001 msgid ""
18002 " vgs-full\n"
18003 "\n"
18004 msgstr ""
18005 " vgs-full\n"
18006 "\n"
18007
18008 #. type: textblock
18009 #: ../fish/guestfish-actions.pod:5381 ../src/guestfs-actions.pod:8285
18010 msgid ""
18011 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18012 "> command.  The \"full\" version includes all fields."
18013 msgstr ""
18014
18015 #. type: =head2
18016 #: ../fish/guestfish-actions.pod:5384
18017 msgid "vgscan"
18018 msgstr "vgscan"
18019
18020 #. type: verbatim
18021 #: ../fish/guestfish-actions.pod:5386
18022 #, no-wrap
18023 msgid ""
18024 " vgscan\n"
18025 "\n"
18026 msgstr ""
18027 " vgscan\n"
18028 "\n"
18029
18030 #. type: textblock
18031 #: ../fish/guestfish-actions.pod:5388 ../src/guestfs-actions.pod:8299
18032 msgid ""
18033 "This rescans all block devices and rebuilds the list of LVM physical "
18034 "volumes, volume groups and logical volumes."
18035 msgstr ""
18036
18037 #. type: =head2
18038 #: ../fish/guestfish-actions.pod:5391
18039 msgid "vguuid"
18040 msgstr "vguuid"
18041
18042 #. type: verbatim
18043 #: ../fish/guestfish-actions.pod:5393
18044 #, no-wrap
18045 msgid ""
18046 " vguuid vgname\n"
18047 "\n"
18048 msgstr ""
18049
18050 #. type: textblock
18051 #: ../fish/guestfish-actions.pod:5395 ../src/guestfs-actions.pod:8312
18052 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18053 msgstr ""
18054
18055 #. type: =head2
18056 #: ../fish/guestfish-actions.pod:5397
18057 msgid "wc-c"
18058 msgstr "wc-c"
18059
18060 #. type: verbatim
18061 #: ../fish/guestfish-actions.pod:5399
18062 #, no-wrap
18063 msgid ""
18064 " wc-c path\n"
18065 "\n"
18066 msgstr ""
18067 " wc-c шлях\n"
18068 "\n"
18069
18070 #. type: textblock
18071 #: ../fish/guestfish-actions.pod:5401 ../src/guestfs-actions.pod:8352
18072 msgid ""
18073 "This command counts the characters in a file, using the C<wc -c> external "
18074 "command."
18075 msgstr ""
18076
18077 #. type: =head2
18078 #: ../fish/guestfish-actions.pod:5404
18079 msgid "wc-l"
18080 msgstr "wc-l"
18081
18082 #. type: verbatim
18083 #: ../fish/guestfish-actions.pod:5406
18084 #, no-wrap
18085 msgid ""
18086 " wc-l path\n"
18087 "\n"
18088 msgstr ""
18089 " wc-l шлях\n"
18090 "\n"
18091
18092 #. type: textblock
18093 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8365
18094 msgid ""
18095 "This command counts the lines in a file, using the C<wc -l> external command."
18096 msgstr ""
18097
18098 #. type: =head2
18099 #: ../fish/guestfish-actions.pod:5411
18100 msgid "wc-w"
18101 msgstr "wc-w"
18102
18103 #. type: verbatim
18104 #: ../fish/guestfish-actions.pod:5413
18105 #, no-wrap
18106 msgid ""
18107 " wc-w path\n"
18108 "\n"
18109 msgstr ""
18110 " wc-w шлях\n"
18111 "\n"
18112
18113 #. type: textblock
18114 #: ../fish/guestfish-actions.pod:5415 ../src/guestfs-actions.pod:8378
18115 msgid ""
18116 "This command counts the words in a file, using the C<wc -w> external command."
18117 msgstr ""
18118
18119 #. type: =head2
18120 #: ../fish/guestfish-actions.pod:5418
18121 msgid "write"
18122 msgstr "write"
18123
18124 #. type: verbatim
18125 #: ../fish/guestfish-actions.pod:5420
18126 #, no-wrap
18127 msgid ""
18128 " write path content\n"
18129 "\n"
18130 msgstr ""
18131 " write шлях дані\n"
18132 "\n"
18133
18134 #. type: textblock
18135 #: ../fish/guestfish-actions.pod:5422 ../src/guestfs-actions.pod:8393
18136 msgid ""
18137 "This call creates a file called C<path>.  The content of the file is the "
18138 "string C<content> (which can contain any 8 bit data)."
18139 msgstr ""
18140
18141 #. type: textblock
18142 #: ../fish/guestfish-actions.pod:5425
18143 msgid "See also L</write-append>."
18144 msgstr "Див. також L</write-append>."
18145
18146 #. type: =head2
18147 #: ../fish/guestfish-actions.pod:5430
18148 msgid "write-append"
18149 msgstr ""
18150
18151 #. type: verbatim
18152 #: ../fish/guestfish-actions.pod:5432
18153 #, no-wrap
18154 msgid ""
18155 " write-append path content\n"
18156 "\n"
18157 msgstr ""
18158
18159 #. type: textblock
18160 #: ../fish/guestfish-actions.pod:5434 ../src/guestfs-actions.pod:8413
18161 msgid ""
18162 "This call appends C<content> to the end of file C<path>.  If C<path> does "
18163 "not exist, then a new file is created."
18164 msgstr ""
18165
18166 #. type: textblock
18167 #: ../fish/guestfish-actions.pod:5437
18168 msgid "See also L</write>."
18169 msgstr "Див. також L</write>."
18170
18171 #. type: =head2
18172 #: ../fish/guestfish-actions.pod:5442
18173 msgid "write-file"
18174 msgstr "write-file"
18175
18176 #. type: verbatim
18177 #: ../fish/guestfish-actions.pod:5444
18178 #, no-wrap
18179 msgid ""
18180 " write-file path content size\n"
18181 "\n"
18182 msgstr ""
18183
18184 #. type: textblock
18185 #: ../fish/guestfish-actions.pod:5446 ../src/guestfs-actions.pod:8440
18186 msgid ""
18187 "This call creates a file called C<path>.  The contents of the file is the "
18188 "string C<content> (which can contain any 8 bit data), with length C<size>."
18189 msgstr ""
18190
18191 #. type: textblock
18192 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8444
18193 msgid ""
18194 "As a special case, if C<size> is C<0> then the length is calculated using "
18195 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18196 msgstr ""
18197
18198 #. type: textblock
18199 #: ../fish/guestfish-actions.pod:5454 ../src/guestfs-actions.pod:8448
18200 msgid ""
18201 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18202 "I<not> work, even if the length is specified."
18203 msgstr ""
18204
18205 #. type: textblock
18206 #: ../fish/guestfish-actions.pod:5460
18207 msgid ""
18208 "I<This function is deprecated.> In new code, use the L</write> call instead."
18209 msgstr ""
18210
18211 #. type: =head2
18212 #: ../fish/guestfish-actions.pod:5467
18213 msgid "zegrep"
18214 msgstr "zegrep"
18215
18216 #. type: verbatim
18217 #: ../fish/guestfish-actions.pod:5469
18218 #, no-wrap
18219 msgid ""
18220 " zegrep regex path\n"
18221 "\n"
18222 msgstr ""
18223 " zegrep формальний_вираз шлях\n"
18224 "\n"
18225
18226 #. type: textblock
18227 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8465
18228 msgid ""
18229 "This calls the external C<zegrep> program and returns the matching lines."
18230 msgstr ""
18231
18232 #. type: =head2
18233 #: ../fish/guestfish-actions.pod:5477
18234 msgid "zegrepi"
18235 msgstr "zegrepi"
18236
18237 #. type: verbatim
18238 #: ../fish/guestfish-actions.pod:5479
18239 #, no-wrap
18240 msgid ""
18241 " zegrepi regex path\n"
18242 "\n"
18243 msgstr ""
18244
18245 #. type: textblock
18246 #: ../fish/guestfish-actions.pod:5481 ../src/guestfs-actions.pod:8484
18247 msgid ""
18248 "This calls the external C<zegrep -i> program and returns the matching lines."
18249 msgstr ""
18250
18251 #. type: =head2
18252 #: ../fish/guestfish-actions.pod:5487
18253 msgid "zero"
18254 msgstr "zero"
18255
18256 #. type: verbatim
18257 #: ../fish/guestfish-actions.pod:5489
18258 #, no-wrap
18259 msgid ""
18260 " zero device\n"
18261 "\n"
18262 msgstr ""
18263 " zero пристрій\n"
18264 "\n"
18265
18266 #. type: textblock
18267 #: ../fish/guestfish-actions.pod:5491 ../src/guestfs-actions.pod:8502
18268 msgid "This command writes zeroes over the first few blocks of C<device>."
18269 msgstr ""
18270
18271 #. type: textblock
18272 #: ../fish/guestfish-actions.pod:5493 ../src/guestfs-actions.pod:8504
18273 msgid ""
18274 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18275 "securely wipe the device).  It should be sufficient to remove any partition "
18276 "tables, filesystem superblocks and so on."
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../fish/guestfish-actions.pod:5497 ../fish/guestfish-actions.pod:5512
18281 #: ../src/guestfs-actions.pod:8508 ../src/guestfs-actions.pod:8534
18282 msgid ""
18283 "If blocks are already zero, then this command avoids writing zeroes.  This "
18284 "prevents the underlying device from becoming non-sparse or growing "
18285 "unnecessarily."
18286 msgstr ""
18287
18288 #. type: textblock
18289 #: ../fish/guestfish-actions.pod:5501
18290 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18291 msgstr ""
18292
18293 #. type: =head2
18294 #: ../fish/guestfish-actions.pod:5504
18295 msgid "zero-device"
18296 msgstr "zero-device"
18297
18298 #. type: verbatim
18299 #: ../fish/guestfish-actions.pod:5506
18300 #, no-wrap
18301 msgid ""
18302 " zero-device device\n"
18303 "\n"
18304 msgstr ""
18305 " zero-device пристрій\n"
18306 "\n"
18307
18308 #. type: textblock
18309 #: ../fish/guestfish-actions.pod:5508
18310 msgid ""
18311 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
18312 "which just zeroes the first few blocks of a device."
18313 msgstr ""
18314
18315 #. type: =head2
18316 #: ../fish/guestfish-actions.pod:5516
18317 msgid "zerofree"
18318 msgstr "zerofree"
18319
18320 #. type: verbatim
18321 #: ../fish/guestfish-actions.pod:5518
18322 #, no-wrap
18323 msgid ""
18324 " zerofree device\n"
18325 "\n"
18326 msgstr ""
18327 " zerofree пристрій\n"
18328 "\n"
18329
18330 #. type: textblock
18331 #: ../fish/guestfish-actions.pod:5520 ../src/guestfs-actions.pod:8553
18332 msgid ""
18333 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18334 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18335 "possible to compress the filesystem more effectively."
18336 msgstr ""
18337
18338 #. type: textblock
18339 #: ../fish/guestfish-actions.pod:5525 ../src/guestfs-actions.pod:8558
18340 msgid "You should B<not> run this program if the filesystem is mounted."
18341 msgstr ""
18342
18343 #. type: textblock
18344 #: ../fish/guestfish-actions.pod:5528 ../src/guestfs-actions.pod:8561
18345 msgid ""
18346 "It is possible that using this program can damage the filesystem or data on "
18347 "the filesystem."
18348 msgstr ""
18349
18350 #. type: =head2
18351 #: ../fish/guestfish-actions.pod:5531
18352 msgid "zfgrep"
18353 msgstr "zfgrep"
18354
18355 #. type: verbatim
18356 #: ../fish/guestfish-actions.pod:5533
18357 #, no-wrap
18358 msgid ""
18359 " zfgrep pattern path\n"
18360 "\n"
18361 msgstr ""
18362 " zfgrep шаблон шлях\n"
18363 "\n"
18364
18365 #. type: textblock
18366 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8575
18367 msgid ""
18368 "This calls the external C<zfgrep> program and returns the matching lines."
18369 msgstr ""
18370
18371 #. type: =head2
18372 #: ../fish/guestfish-actions.pod:5541
18373 msgid "zfgrepi"
18374 msgstr "zfgrepi"
18375
18376 #. type: verbatim
18377 #: ../fish/guestfish-actions.pod:5543
18378 #, no-wrap
18379 msgid ""
18380 " zfgrepi pattern path\n"
18381 "\n"
18382 msgstr ""
18383 " zfgrepi шаблон шлях\n"
18384 "\n"
18385
18386 #. type: textblock
18387 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8594
18388 msgid ""
18389 "This calls the external C<zfgrep -i> program and returns the matching lines."
18390 msgstr ""
18391
18392 #. type: =head2
18393 #: ../fish/guestfish-actions.pod:5551
18394 msgid "zfile"
18395 msgstr "zfile"
18396
18397 #. type: verbatim
18398 #: ../fish/guestfish-actions.pod:5553
18399 #, no-wrap
18400 msgid ""
18401 " zfile meth path\n"
18402 "\n"
18403 msgstr ""
18404 " zfile метод шлях\n"
18405 "\n"
18406
18407 #. type: textblock
18408 #: ../fish/guestfish-actions.pod:5555 ../src/guestfs-actions.pod:8620
18409 msgid ""
18410 "This command runs C<file> after first decompressing C<path> using C<method>."
18411 msgstr ""
18412
18413 #. type: textblock
18414 #: ../fish/guestfish-actions.pod:5558 ../src/guestfs-actions.pod:8623
18415 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18416 msgstr ""
18417
18418 #. type: textblock
18419 #: ../fish/guestfish-actions.pod:5560
18420 msgid ""
18421 "Since 1.0.63, use L</file> instead which can now process compressed files."
18422 msgstr ""
18423
18424 #. type: textblock
18425 #: ../fish/guestfish-actions.pod:5563
18426 msgid ""
18427 "I<This function is deprecated.> In new code, use the L</file> call instead."
18428 msgstr ""
18429
18430 #. type: =head2
18431 #: ../fish/guestfish-actions.pod:5570
18432 msgid "zgrep"
18433 msgstr "zgrep"
18434
18435 #. type: verbatim
18436 #: ../fish/guestfish-actions.pod:5572
18437 #, no-wrap
18438 msgid ""
18439 " zgrep regex path\n"
18440 "\n"
18441 msgstr ""
18442 " zgrep формальний_вираз шлях\n"
18443 "\n"
18444
18445 #. type: textblock
18446 #: ../fish/guestfish-actions.pod:5574 ../src/guestfs-actions.pod:8640
18447 msgid ""
18448 "This calls the external C<zgrep> program and returns the matching lines."
18449 msgstr ""
18450
18451 #. type: =head2
18452 #: ../fish/guestfish-actions.pod:5580
18453 msgid "zgrepi"
18454 msgstr "zgrepi"
18455
18456 #. type: verbatim
18457 #: ../fish/guestfish-actions.pod:5582
18458 #, no-wrap
18459 msgid ""
18460 " zgrepi regex path\n"
18461 "\n"
18462 msgstr ""
18463 " zgrepi формальний_вираз шлях\n"
18464 "\n"
18465
18466 #. type: textblock
18467 #: ../fish/guestfish-actions.pod:5584 ../src/guestfs-actions.pod:8659
18468 msgid ""
18469 "This calls the external C<zgrep -i> program and returns the matching lines."
18470 msgstr ""
18471
18472 #. type: =head2
18473 #: ../fish/guestfish-commands.pod:1
18474 msgid "alloc"
18475 msgstr "alloc"
18476
18477 #. type: =head2
18478 #: ../fish/guestfish-commands.pod:3
18479 msgid "allocate"
18480 msgstr ""
18481
18482 #. type: verbatim
18483 #: ../fish/guestfish-commands.pod:5
18484 #, no-wrap
18485 msgid ""
18486 " alloc filename size\n"
18487 "\n"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fish/guestfish-commands.pod:7
18492 msgid ""
18493 "This creates an empty (zeroed) file of the given size, and then adds so it "
18494 "can be further examined."
18495 msgstr ""
18496
18497 #. type: textblock
18498 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18499 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18500 msgstr ""
18501
18502 #. type: textblock
18503 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18504 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18505 msgstr ""
18506
18507 #. type: textblock
18508 #: ../fish/guestfish-commands.pod:14
18509 msgid ""
18510 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18511 "image, see L</PREPARED DISK IMAGES>."
18512 msgstr ""
18513
18514 #. type: =head2
18515 #: ../fish/guestfish-commands.pod:17
18516 msgid "copy-in"
18517 msgstr "copy-in"
18518
18519 #. type: verbatim
18520 #: ../fish/guestfish-commands.pod:19
18521 #, no-wrap
18522 msgid ""
18523 " copy-in local [local ...] /remotedir\n"
18524 "\n"
18525 msgstr ""
18526
18527 #. type: textblock
18528 #: ../fish/guestfish-commands.pod:21
18529 msgid ""
18530 "C<copy-in> copies local files or directories recursively into the disk "
18531 "image, placing them in the directory called C</remotedir> (which must "
18532 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18533 "other commands as necessary."
18534 msgstr ""
18535
18536 #. type: textblock
18537 #: ../fish/guestfish-commands.pod:26
18538 msgid ""
18539 "Multiple local files and directories can be specified, but the last "
18540 "parameter must always be a remote directory.  Wildcards cannot be used."
18541 msgstr ""
18542
18543 #. type: =head2
18544 #: ../fish/guestfish-commands.pod:30
18545 msgid "copy-out"
18546 msgstr "copy-out"
18547
18548 #. type: verbatim
18549 #: ../fish/guestfish-commands.pod:32
18550 #, no-wrap
18551 msgid ""
18552 " copy-out remote [remote ...] localdir\n"
18553 "\n"
18554 msgstr ""
18555
18556 #. type: textblock
18557 #: ../fish/guestfish-commands.pod:34
18558 msgid ""
18559 "C<copy-out> copies remote files or directories recursively out of the disk "
18560 "image, placing them on the host disk in a local directory called C<localdir> "
18561 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18562 "download>, L</tar-out> and other commands as necessary."
18563 msgstr ""
18564
18565 #. type: textblock
18566 #: ../fish/guestfish-commands.pod:40
18567 msgid ""
18568 "Multiple remote files and directories can be specified, but the last "
18569 "parameter must always be a local directory.  To download to the current "
18570 "directory, use C<.> as in:"
18571 msgstr ""
18572
18573 #. type: verbatim
18574 #: ../fish/guestfish-commands.pod:44
18575 #, no-wrap
18576 msgid ""
18577 " copy-out /home .\n"
18578 "\n"
18579 msgstr ""
18580 " copy-out /home .\n"
18581 "\n"
18582
18583 #. type: textblock
18584 #: ../fish/guestfish-commands.pod:46
18585 msgid ""
18586 "Wildcards cannot be used in the ordinary command, but you can use them with "
18587 "the help of L</glob> like this:"
18588 msgstr ""
18589
18590 #. type: verbatim
18591 #: ../fish/guestfish-commands.pod:49
18592 #, no-wrap
18593 msgid ""
18594 " glob copy-out /home/* .\n"
18595 "\n"
18596 msgstr ""
18597 " glob copy-out /home/* .\n"
18598 "\n"
18599
18600 #. type: =head2
18601 #: ../fish/guestfish-commands.pod:51
18602 msgid "display"
18603 msgstr ""
18604
18605 #. type: verbatim
18606 #: ../fish/guestfish-commands.pod:53
18607 #, no-wrap
18608 msgid ""
18609 " display filename\n"
18610 "\n"
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fish/guestfish-commands.pod:55
18615 msgid ""
18616 "Use C<display> (a graphical display program) to display an image file.  It "
18617 "downloads the file, and runs C<display> on it."
18618 msgstr ""
18619
18620 #. type: textblock
18621 #: ../fish/guestfish-commands.pod:58
18622 msgid ""
18623 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18624 "environment variable.  For example to use the GNOME display program:"
18625 msgstr ""
18626
18627 #. type: verbatim
18628 #: ../fish/guestfish-commands.pod:61
18629 #, no-wrap
18630 msgid ""
18631 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18632 "\n"
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/guestfish-commands.pod:63
18637 msgid "See also L<display(1)>."
18638 msgstr "Див. також L<display(1)>."
18639
18640 #. type: =head2
18641 #: ../fish/guestfish-commands.pod:65
18642 msgid "echo"
18643 msgstr "echo"
18644
18645 #. type: verbatim
18646 #: ../fish/guestfish-commands.pod:67
18647 #, no-wrap
18648 msgid ""
18649 " echo [params ...]\n"
18650 "\n"
18651 msgstr ""
18652 " echo [параметри...]\n"
18653 "\n"
18654
18655 #. type: textblock
18656 #: ../fish/guestfish-commands.pod:69
18657 msgid "This echos the parameters to the terminal."
18658 msgstr ""
18659
18660 #. type: =head2
18661 #: ../fish/guestfish-commands.pod:71
18662 msgid "edit"
18663 msgstr "edit"
18664
18665 #. type: =head2
18666 #: ../fish/guestfish-commands.pod:73
18667 msgid "vi"
18668 msgstr "vi"
18669
18670 #. type: =head2
18671 #: ../fish/guestfish-commands.pod:75
18672 msgid "emacs"
18673 msgstr "emacs"
18674
18675 #. type: verbatim
18676 #: ../fish/guestfish-commands.pod:77
18677 #, no-wrap
18678 msgid ""
18679 " edit filename\n"
18680 "\n"
18681 msgstr ""
18682 " edit назва_файла\n"
18683 "\n"
18684
18685 #. type: textblock
18686 #: ../fish/guestfish-commands.pod:79
18687 msgid ""
18688 "This is used to edit a file.  It downloads the file, edits it locally using "
18689 "your editor, then uploads the result."
18690 msgstr ""
18691
18692 #. type: textblock
18693 #: ../fish/guestfish-commands.pod:82
18694 msgid ""
18695 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18696 "or C<emacs> you will get those corresponding editors."
18697 msgstr ""
18698
18699 #. type: =head2
18700 #: ../fish/guestfish-commands.pod:86
18701 msgid "glob"
18702 msgstr "glob"
18703
18704 #. type: verbatim
18705 #: ../fish/guestfish-commands.pod:88
18706 #, no-wrap
18707 msgid ""
18708 " glob command args...\n"
18709 "\n"
18710 msgstr ""
18711 " glob команда параметри...\n"
18712 "\n"
18713
18714 #. type: textblock
18715 #: ../fish/guestfish-commands.pod:90
18716 msgid ""
18717 "Expand wildcards in any paths in the args list, and run C<command> "
18718 "repeatedly on each matching path."
18719 msgstr ""
18720
18721 #. type: textblock
18722 #: ../fish/guestfish-commands.pod:93
18723 msgid "See L</WILDCARDS AND GLOBBING>."
18724 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18725
18726 #. type: =head2
18727 #: ../fish/guestfish-commands.pod:95
18728 msgid "hexedit"
18729 msgstr "hexedit"
18730
18731 #. type: verbatim
18732 #: ../fish/guestfish-commands.pod:97
18733 #, no-wrap
18734 msgid ""
18735 " hexedit <filename|device>\n"
18736 " hexedit <filename|device> <max>\n"
18737 " hexedit <filename|device> <start> <max>\n"
18738 "\n"
18739 msgstr ""
18740
18741 #. type: textblock
18742 #: ../fish/guestfish-commands.pod:101
18743 msgid ""
18744 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18745 "device."
18746 msgstr ""
18747
18748 #. type: textblock
18749 #: ../fish/guestfish-commands.pod:104
18750 msgid ""
18751 "This command works by downloading potentially the whole file or device, "
18752 "editing it locally, then uploading it.  If the file or device is large, you "
18753 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18754 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18755 "usual modifiers allowed such as C<1M> (1 megabyte)."
18756 msgstr ""
18757
18758 #. type: textblock
18759 #: ../fish/guestfish-commands.pod:111
18760 msgid "For example to edit the first few sectors of a disk you might do:"
18761 msgstr ""
18762
18763 #. type: verbatim
18764 #: ../fish/guestfish-commands.pod:114
18765 #, no-wrap
18766 msgid ""
18767 " hexedit /dev/sda 1M\n"
18768 "\n"
18769 msgstr ""
18770 " hexedit /dev/sda 1M\n"
18771 "\n"
18772
18773 #. type: textblock
18774 #: ../fish/guestfish-commands.pod:116
18775 msgid ""
18776 "which would allow you to edit anywhere within the first megabyte of the disk."
18777 msgstr ""
18778
18779 #. type: textblock
18780 #: ../fish/guestfish-commands.pod:119
18781 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18782 msgstr ""
18783
18784 #. type: verbatim
18785 #: ../fish/guestfish-commands.pod:121
18786 #, no-wrap
18787 msgid ""
18788 " hexedit /dev/sda1 0x400 0x400\n"
18789 "\n"
18790 msgstr ""
18791 " hexedit /dev/sda1 0x400 0x400\n"
18792 "\n"
18793
18794 #. type: textblock
18795 #: ../fish/guestfish-commands.pod:123
18796 msgid "(assuming the superblock is in the standard location)."
18797 msgstr ""
18798
18799 #. type: textblock
18800 #: ../fish/guestfish-commands.pod:125
18801 msgid ""
18802 "This command requires the external L<hexedit(1)> program.  You can specify "
18803 "another program to use by setting the C<HEXEDITOR> environment variable."
18804 msgstr ""
18805
18806 #. type: textblock
18807 #: ../fish/guestfish-commands.pod:129
18808 msgid "See also L</hexdump>."
18809 msgstr "Див. також L</hexdump>."
18810
18811 #. type: =head2
18812 #: ../fish/guestfish-commands.pod:131
18813 msgid "lcd"
18814 msgstr "lcd"
18815
18816 #. type: verbatim
18817 #: ../fish/guestfish-commands.pod:133
18818 #, no-wrap
18819 msgid ""
18820 " lcd directory\n"
18821 "\n"
18822 msgstr ""
18823
18824 #. type: textblock
18825 #: ../fish/guestfish-commands.pod:135
18826 msgid ""
18827 "Change the local directory, ie. the current directory of guestfish itself."
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fish/guestfish-commands.pod:138
18832 msgid "Note that C<!cd> won't do what you might expect."
18833 msgstr ""
18834
18835 #. type: =head2
18836 #: ../fish/guestfish-commands.pod:140
18837 msgid "man"
18838 msgstr "man"
18839
18840 #. type: =head2
18841 #: ../fish/guestfish-commands.pod:142
18842 msgid "manual"
18843 msgstr "підручник"
18844
18845 #. type: verbatim
18846 #: ../fish/guestfish-commands.pod:144
18847 #, no-wrap
18848 msgid ""
18849 "  man\n"
18850 "\n"
18851 msgstr ""
18852 "  man\n"
18853 "\n"
18854
18855 #. type: textblock
18856 #: ../fish/guestfish-commands.pod:146
18857 msgid "Opens the manual page for guestfish."
18858 msgstr ""
18859
18860 #. type: =head2
18861 #: ../fish/guestfish-commands.pod:148
18862 msgid "more"
18863 msgstr "more"
18864
18865 #. type: =head2
18866 #: ../fish/guestfish-commands.pod:150
18867 msgid "less"
18868 msgstr "less"
18869
18870 #. type: verbatim
18871 #: ../fish/guestfish-commands.pod:152
18872 #, no-wrap
18873 msgid ""
18874 " more filename\n"
18875 "\n"
18876 msgstr ""
18877
18878 #. type: verbatim
18879 #: ../fish/guestfish-commands.pod:154
18880 #, no-wrap
18881 msgid ""
18882 " less filename\n"
18883 "\n"
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish-commands.pod:156
18888 msgid "This is used to view a file."
18889 msgstr ""
18890
18891 #. type: textblock
18892 #: ../fish/guestfish-commands.pod:158
18893 msgid ""
18894 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18895 "C<less> you will get the C<less> command specifically."
18896 msgstr ""
18897
18898 #. type: =head2
18899 #: ../fish/guestfish-commands.pod:161
18900 msgid "reopen"
18901 msgstr "reopen"
18902
18903 #. type: verbatim
18904 #: ../fish/guestfish-commands.pod:163
18905 #, no-wrap
18906 msgid ""
18907 "  reopen\n"
18908 "\n"
18909 msgstr ""
18910
18911 #. type: textblock
18912 #: ../fish/guestfish-commands.pod:165
18913 msgid ""
18914 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18915 "normally, because the handle is closed properly when guestfish exits.  "
18916 "However this is occasionally useful for testing."
18917 msgstr ""
18918
18919 #. type: =head2
18920 #: ../fish/guestfish-commands.pod:169
18921 msgid "setenv"
18922 msgstr ""
18923
18924 #. type: verbatim
18925 #: ../fish/guestfish-commands.pod:171
18926 #, no-wrap
18927 msgid ""
18928 "  setenv VAR value\n"
18929 "\n"
18930 msgstr ""
18931
18932 #. type: textblock
18933 #: ../fish/guestfish-commands.pod:173
18934 msgid "Set the environment variable C<VAR> to the string C<value>."
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/guestfish-commands.pod:175
18939 msgid ""
18940 "To print the value of an environment variable use a shell command such as:"
18941 msgstr ""
18942
18943 #. type: verbatim
18944 #: ../fish/guestfish-commands.pod:178
18945 #, no-wrap
18946 msgid ""
18947 " !echo $VAR\n"
18948 "\n"
18949 msgstr ""
18950
18951 #. type: =head2
18952 #: ../fish/guestfish-commands.pod:180
18953 msgid "sparse"
18954 msgstr "sparse"
18955
18956 #. type: verbatim
18957 #: ../fish/guestfish-commands.pod:182
18958 #, no-wrap
18959 msgid ""
18960 " sparse filename size\n"
18961 "\n"
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/guestfish-commands.pod:184
18966 msgid ""
18967 "This creates an empty sparse file of the given size, and then adds so it can "
18968 "be further examined."
18969 msgstr ""
18970
18971 #. type: textblock
18972 #: ../fish/guestfish-commands.pod:187
18973 msgid ""
18974 "In all respects it works the same as the L</alloc> command, except that the "
18975 "image file is allocated sparsely, which means that disk blocks are not "
18976 "assigned to the file until they are needed.  Sparse disk files only use "
18977 "space when written to, but they are slower and there is a danger you could "
18978 "run out of real disk space during a write operation."
18979 msgstr ""
18980
18981 #. type: =head2
18982 #: ../fish/guestfish-commands.pod:197
18983 msgid "supported"
18984 msgstr "supported"
18985
18986 #. type: verbatim
18987 #: ../fish/guestfish-commands.pod:199
18988 #, no-wrap
18989 msgid ""
18990 " supported\n"
18991 "\n"
18992 msgstr ""
18993 " supported\n"
18994 "\n"
18995
18996 #. type: textblock
18997 #: ../fish/guestfish-commands.pod:201
18998 msgid ""
18999 "This command returns a list of the optional groups known to the daemon, and "
19000 "indicates which ones are supported by this build of the libguestfs appliance."
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fish/guestfish-commands.pod:205
19005 msgid "See also L<guestfs(3)/AVAILABILITY>."
19006 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
19007
19008 #. type: =head2
19009 #: ../fish/guestfish-commands.pod:207
19010 msgid "time"
19011 msgstr "time"
19012
19013 #. type: verbatim
19014 #: ../fish/guestfish-commands.pod:209
19015 #, no-wrap
19016 msgid ""
19017 " time command args...\n"
19018 "\n"
19019 msgstr ""
19020
19021 #. type: textblock
19022 #: ../fish/guestfish-commands.pod:211
19023 msgid ""
19024 "Run the command as usual, but print the elapsed time afterwards.  This can "
19025 "be useful for benchmarking operations."
19026 msgstr ""
19027
19028 #. type: =head2
19029 #: ../fish/guestfish-commands.pod:214
19030 msgid "unsetenv"
19031 msgstr ""
19032
19033 #. type: verbatim
19034 #: ../fish/guestfish-commands.pod:216
19035 #, no-wrap
19036 msgid ""
19037 "  unsetenv VAR\n"
19038 "\n"
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish-commands.pod:218
19043 msgid "Remove C<VAR> from the environment."
19044 msgstr ""
19045
19046 #. type: textblock
19047 #: ../fish/guestfish.pod:5
19048 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19049 msgstr ""
19050
19051 #. type: verbatim
19052 #: ../fish/guestfish.pod:9
19053 #, no-wrap
19054 msgid ""
19055 " guestfish [--options] [commands]\n"
19056 "\n"
19057 msgstr ""
19058
19059 #. type: verbatim
19060 #: ../fish/guestfish.pod:11
19061 #, no-wrap
19062 msgid ""
19063 " guestfish\n"
19064 "\n"
19065 msgstr ""
19066
19067 #. type: verbatim
19068 #: ../fish/guestfish.pod:13
19069 #, no-wrap
19070 msgid ""
19071 " guestfish [--ro|--rw] -a disk.img\n"
19072 "\n"
19073 msgstr ""
19074
19075 #. type: verbatim
19076 #: ../fish/guestfish.pod:15
19077 #, no-wrap
19078 msgid ""
19079 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19080 "\n"
19081 msgstr ""
19082
19083 #. type: verbatim
19084 #: ../fish/guestfish.pod:17
19085 #, no-wrap
19086 msgid ""
19087 " guestfish -d libvirt-domain\n"
19088 "\n"
19089 msgstr ""
19090
19091 #. type: verbatim
19092 #: ../fish/guestfish.pod:19
19093 #, no-wrap
19094 msgid ""
19095 " guestfish [--ro|--rw] -a disk.img -i\n"
19096 "\n"
19097 msgstr ""
19098
19099 #. type: verbatim
19100 #: ../fish/guestfish.pod:21
19101 #, no-wrap
19102 msgid ""
19103 " guestfish -d libvirt-domain -i\n"
19104 "\n"
19105 msgstr ""
19106
19107 #. type: textblock
19108 #: ../fish/guestfish.pod:25
19109 msgid ""
19110 "Using guestfish in read/write mode on live virtual machines can be "
19111 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19112 "option to use guestfish safely if the disk image or virtual machine might be "
19113 "live."
19114 msgstr ""
19115
19116 #. type: textblock
19117 #: ../fish/guestfish.pod:32
19118 msgid ""
19119 "Guestfish is a shell and command-line tool for examining and modifying "
19120 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19121 "functionality of the guestfs API, see L<guestfs(3)>."
19122 msgstr ""
19123
19124 #. type: textblock
19125 #: ../fish/guestfish.pod:36
19126 msgid ""
19127 "Guestfish gives you structured access to the libguestfs API, from shell "
19128 "scripts or the command line or interactively.  If you want to rescue a "
19129 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19130 "command."
19131 msgstr ""
19132
19133 #. type: =head2
19134 #: ../fish/guestfish.pod:43
19135 msgid "As an interactive shell"
19136 msgstr ""
19137
19138 #. type: verbatim
19139 #: ../fish/guestfish.pod:45
19140 #, no-wrap
19141 msgid ""
19142 " $ guestfish\n"
19143 " \n"
19144 msgstr ""
19145
19146 #. type: verbatim
19147 #: ../fish/guestfish.pod:47
19148 #, no-wrap
19149 msgid ""
19150 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19151 " editing virtual machine filesystems.\n"
19152 " \n"
19153 msgstr ""
19154
19155 #. type: verbatim
19156 #: ../fish/guestfish.pod:50
19157 #, no-wrap
19158 msgid ""
19159 " Type: 'help' for a list of commands\n"
19160 "       'man' to read the manual\n"
19161 "       'quit' to quit the shell\n"
19162 " \n"
19163 msgstr ""
19164
19165 #. type: verbatim
19166 #: ../fish/guestfish.pod:54
19167 #, no-wrap
19168 msgid ""
19169 " ><fs> add-ro disk.img\n"
19170 " ><fs> run\n"
19171 " ><fs> list-filesystems\n"
19172 " /dev/sda1: ext4\n"
19173 " /dev/vg_guest/lv_root: ext4\n"
19174 " /dev/vg_guest/lv_swap: swap\n"
19175 " ><fs> mount /dev/vg_guest/lv_root /\n"
19176 " ><fs> cat /etc/fstab\n"
19177 " # /etc/fstab\n"
19178 " # Created by anaconda\n"
19179 " [...]\n"
19180 " ><fs> exit\n"
19181 "\n"
19182 msgstr ""
19183
19184 #. type: =head2
19185 #: ../fish/guestfish.pod:67
19186 msgid "From shell scripts"
19187 msgstr ""
19188
19189 #. type: textblock
19190 #: ../fish/guestfish.pod:69
19191 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19192 msgstr ""
19193
19194 #. type: verbatim
19195 #: ../fish/guestfish.pod:71
19196 #, no-wrap
19197 msgid ""
19198 " guestfish <<_EOF_\n"
19199 " add disk.img\n"
19200 " run\n"
19201 " mount /dev/vg_guest/lv_root /\n"
19202 " write /etc/motd \"Welcome, new users\"\n"
19203 " _EOF_\n"
19204 "\n"
19205 msgstr ""
19206
19207 #. type: textblock
19208 #: ../fish/guestfish.pod:78
19209 msgid "List the LVM logical volumes in a disk image:"
19210 msgstr ""
19211
19212 #. type: verbatim
19213 #: ../fish/guestfish.pod:80
19214 #, no-wrap
19215 msgid ""
19216 " guestfish -a disk.img --ro <<_EOF_\n"
19217 " run\n"
19218 " lvs\n"
19219 " _EOF_\n"
19220 "\n"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:85
19225 msgid "List all the filesystems in a disk image:"
19226 msgstr ""
19227
19228 #. type: verbatim
19229 #: ../fish/guestfish.pod:87
19230 #, no-wrap
19231 msgid ""
19232 " guestfish -a disk.img --ro <<_EOF_\n"
19233 " run\n"
19234 " list-filesystems\n"
19235 " _EOF_\n"
19236 "\n"
19237 msgstr ""
19238
19239 #. type: =head2
19240 #: ../fish/guestfish.pod:92
19241 msgid "On one command line"
19242 msgstr ""
19243
19244 #. type: textblock
19245 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19246 msgid "Update C</etc/resolv.conf> in a guest:"
19247 msgstr ""
19248
19249 #. type: verbatim
19250 #: ../fish/guestfish.pod:96
19251 #, no-wrap
19252 msgid ""
19253 " guestfish \\\n"
19254 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19255 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19256 "\n"
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../fish/guestfish.pod:100
19261 msgid "Edit C</boot/grub/grub.conf> interactively:"
19262 msgstr ""
19263
19264 #. type: verbatim
19265 #: ../fish/guestfish.pod:102
19266 #, no-wrap
19267 msgid ""
19268 " guestfish --rw --add disk.img \\\n"
19269 "   --mount /dev/vg_guest/lv_root \\\n"
19270 "   --mount /dev/sda1:/boot \\\n"
19271 "   edit /boot/grub/grub.conf\n"
19272 "\n"
19273 msgstr ""
19274
19275 #. type: =head2
19276 #: ../fish/guestfish.pod:107
19277 msgid "Mount disks automatically"
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:109
19282 msgid ""
19283 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19284 msgstr ""
19285
19286 #. type: verbatim
19287 #: ../fish/guestfish.pod:112
19288 #, no-wrap
19289 msgid ""
19290 " guestfish --ro -a disk.img -i cat /etc/group\n"
19291 "\n"
19292 msgstr ""
19293
19294 #. type: verbatim
19295 #: ../fish/guestfish.pod:114
19296 #, no-wrap
19297 msgid ""
19298 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19299 "\n"
19300 msgstr ""
19301
19302 #. type: textblock
19303 #: ../fish/guestfish.pod:116
19304 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19305 msgstr ""
19306
19307 #. type: verbatim
19308 #: ../fish/guestfish.pod:118
19309 #, no-wrap
19310 msgid ""
19311 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19312 "\n"
19313 msgstr ""
19314
19315 #. type: =head2
19316 #: ../fish/guestfish.pod:120
19317 msgid "As a script interpreter"
19318 msgstr ""
19319
19320 #. type: textblock
19321 #: ../fish/guestfish.pod:122
19322 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19323 msgstr ""
19324
19325 #. type: verbatim
19326 #: ../fish/guestfish.pod:124
19327 #, no-wrap
19328 msgid ""
19329 " #!/usr/bin/guestfish -f\n"
19330 " sparse test1.img 100M\n"
19331 " run\n"
19332 " part-disk /dev/sda mbr\n"
19333 " mkfs ext2 /dev/sda1\n"
19334 "\n"
19335 msgstr ""
19336
19337 #. type: =head2
19338 #: ../fish/guestfish.pod:130
19339 msgid "Start with a prepared disk"
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/guestfish.pod:132
19344 msgid ""
19345 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19346 "single ext2-formatted partition:"
19347 msgstr ""
19348
19349 #. type: verbatim
19350 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19351 #, no-wrap
19352 msgid ""
19353 " guestfish -N fs\n"
19354 "\n"
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../fish/guestfish.pod:137
19359 msgid "To list what is available do:"
19360 msgstr ""
19361
19362 #. type: verbatim
19363 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19364 #, no-wrap
19365 msgid ""
19366 " guestfish -N help | less\n"
19367 "\n"
19368 msgstr ""
19369
19370 #. type: =head2
19371 #: ../fish/guestfish.pod:141
19372 msgid "Remote control"
19373 msgstr "Дистанційне керування"
19374
19375 #. type: verbatim
19376 #: ../fish/guestfish.pod:143
19377 #, no-wrap
19378 msgid ""
19379 " eval \"`guestfish --listen`\"\n"
19380 " guestfish --remote add-ro disk.img\n"
19381 " guestfish --remote run\n"
19382 " guestfish --remote lvs\n"
19383 "\n"
19384 msgstr ""
19385 " eval \"`guestfish --listen`\"\n"
19386 " guestfish --remote add-ro disk.img\n"
19387 " guestfish --remote run\n"
19388 " guestfish --remote lvs\n"
19389 "\n"
19390
19391 #. type: textblock
19392 #: ../fish/guestfish.pod:154
19393 msgid "Displays general help on options."
19394 msgstr ""
19395
19396 #. type: =item
19397 #: ../fish/guestfish.pod:158
19398 msgid "B<--cmd-help>"
19399 msgstr "B<--cmd-help>"
19400
19401 #. type: textblock
19402 #: ../fish/guestfish.pod:160
19403 msgid "Lists all available guestfish commands."
19404 msgstr ""
19405
19406 #. type: =item
19407 #: ../fish/guestfish.pod:162
19408 msgid "B<-h cmd>"
19409 msgstr "B<-h команда>"
19410
19411 #. type: =item
19412 #: ../fish/guestfish.pod:164
19413 msgid "B<--cmd-help cmd>"
19414 msgstr "B<--cmd-help команда>"
19415
19416 #. type: textblock
19417 #: ../fish/guestfish.pod:166
19418 msgid "Displays detailed help on a single command C<cmd>."
19419 msgstr ""
19420
19421 #. type: =item
19422 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19423 msgid "B<-a image>"
19424 msgstr "B<-a образ>"
19425
19426 #. type: =item
19427 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19428 msgid "B<--add image>"
19429 msgstr "B<--add образ>"
19430
19431 #. type: textblock
19432 #: ../fish/guestfish.pod:172
19433 msgid "Add a block device or virtual machine image to the shell."
19434 msgstr ""
19435
19436 #. type: textblock
19437 #: ../fish/guestfish.pod:177
19438 msgid ""
19439 "Using this flag is mostly equivalent to using the C<add> command, with "
19440 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19441 "the I<--format=...> flag was given."
19442 msgstr ""
19443
19444 #. type: textblock
19445 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19446 msgid ""
19447 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19448 "URI to use.  The default is to use the default libvirt connection."
19449 msgstr ""
19450
19451 #. type: =item
19452 #: ../fish/guestfish.pod:189
19453 msgid "B<--csh>"
19454 msgstr "B<--csh>"
19455
19456 #. type: textblock
19457 #: ../fish/guestfish.pod:191
19458 msgid ""
19459 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19460 "section L</REMOTE CONTROL AND CSH> below."
19461 msgstr ""
19462
19463 #. type: =item
19464 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19465 msgid "B<-d libvirt-domain>"
19466 msgstr "B<-d домен-libvirt>"
19467
19468 #. type: =item
19469 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19470 msgid "B<--domain libvirt-domain>"
19471 msgstr "B<--domain домен-libvirt>"
19472
19473 #. type: textblock
19474 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19475 msgid ""
19476 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19477 "used, then any libvirt domain can be used.  However in write mode, only "
19478 "libvirt domains which are shut down can be named here."
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19483 msgid "Domain UUIDs can be used instead of names."
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fish/guestfish.pod:204
19488 msgid ""
19489 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19490 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19491 "if the I<--format:...> flag was given."
19492 msgstr ""
19493
19494 #. type: =item
19495 #: ../fish/guestfish.pod:208
19496 msgid "B<-D>"
19497 msgstr "B<-D>"
19498
19499 #. type: =item
19500 #: ../fish/guestfish.pod:210
19501 msgid "B<--no-dest-paths>"
19502 msgstr "B<--no-dest-paths>"
19503
19504 #. type: textblock
19505 #: ../fish/guestfish.pod:212
19506 msgid ""
19507 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19508 "to hit the tab key to complete paths on the guest filesystem, but this "
19509 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19510 "allow this feature to be disabled."
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19515 msgid ""
19516 "When prompting for keys and passphrases, guestfish normally turns echoing "
19517 "off so you cannot see what you are typing.  If you are not worried about "
19518 "Tempest attacks and there is no one else in the room you can specify this "
19519 "flag to see what you are typing."
19520 msgstr ""
19521
19522 #. type: =item
19523 #: ../fish/guestfish.pod:224
19524 msgid "B<-f file>"
19525 msgstr "B<-f файл>"
19526
19527 #. type: =item
19528 #: ../fish/guestfish.pod:226
19529 msgid "B<--file file>"
19530 msgstr "B<--file файл>"
19531
19532 #. type: textblock
19533 #: ../fish/guestfish.pod:228
19534 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19535 msgstr ""
19536
19537 #. type: verbatim
19538 #: ../fish/guestfish.pod:231
19539 #, no-wrap
19540 msgid ""
19541 " #!/usr/bin/guestfish -f\n"
19542 "\n"
19543 msgstr ""
19544 " #!/usr/bin/guestfish -f\n"
19545 "\n"
19546
19547 #. type: verbatim
19548 #: ../fish/guestfish.pod:244
19549 #, no-wrap
19550 msgid ""
19551 " guestfish --format=raw -a disk.img\n"
19552 "\n"
19553 msgstr ""
19554 " guestfish --format=raw -a disk.img\n"
19555 "\n"
19556
19557 #. type: verbatim
19558 #: ../fish/guestfish.pod:248
19559 #, no-wrap
19560 msgid ""
19561 " guestfish --format=raw -a disk.img --format -a another.img\n"
19562 "\n"
19563 msgstr ""
19564 " guestfish --format=raw -a disk.img --format -a another.img\n"
19565 "\n"
19566
19567 #. type: textblock
19568 #: ../fish/guestfish.pod:253
19569 msgid ""
19570 "If you have untrusted raw-format guest disk images, you should use this "
19571 "option to specify the disk format.  This avoids a possible security problem "
19572 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19573 msgstr ""
19574
19575 #. type: =item
19576 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19577 msgid "B<--inspector>"
19578 msgstr "B<--inspector>"
19579
19580 #. type: textblock
19581 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19582 msgid ""
19583 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19584 "system and mount filesystems as they would be mounted on the real virtual "
19585 "machine."
19586 msgstr ""
19587
19588 #. type: textblock
19589 #: ../fish/guestfish.pod:266
19590 msgid "Typical usage is either:"
19591 msgstr ""
19592
19593 #. type: verbatim
19594 #: ../fish/guestfish.pod:268
19595 #, no-wrap
19596 msgid ""
19597 " guestfish -d myguest -i\n"
19598 "\n"
19599 msgstr ""
19600 " guestfish -d myguest -i\n"
19601 "\n"
19602
19603 #. type: textblock
19604 #: ../fish/guestfish.pod:270
19605 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19606 msgstr ""
19607
19608 #. type: verbatim
19609 #: ../fish/guestfish.pod:272
19610 #, no-wrap
19611 msgid ""
19612 " guestfish --ro -d myguest -i\n"
19613 "\n"
19614 msgstr ""
19615 " guestfish --ro -d myguest -i\n"
19616 "\n"
19617
19618 #. type: textblock
19619 #: ../fish/guestfish.pod:274
19620 msgid "(for active domains, readonly), or specify the block device directly:"
19621 msgstr ""
19622
19623 #. type: verbatim
19624 #: ../fish/guestfish.pod:276
19625 #, no-wrap
19626 msgid ""
19627 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19628 "\n"
19629 msgstr ""
19630 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19631 "\n"
19632
19633 #. type: textblock
19634 #: ../fish/guestfish.pod:278
19635 msgid ""
19636 "Note that the command line syntax changed slightly over older versions of "
19637 "guestfish.  You can still use the old syntax:"
19638 msgstr ""
19639
19640 #. type: verbatim
19641 #: ../fish/guestfish.pod:281
19642 #, no-wrap
19643 msgid ""
19644 " guestfish [--ro] -i disk.img\n"
19645 "\n"
19646 msgstr ""
19647 " guestfish [--ro] -i disk.img\n"
19648 "\n"
19649
19650 #. type: verbatim
19651 #: ../fish/guestfish.pod:283
19652 #, no-wrap
19653 msgid ""
19654 " guestfish [--ro] -i libvirt-domain\n"
19655 "\n"
19656 msgstr ""
19657
19658 #. type: textblock
19659 #: ../fish/guestfish.pod:285
19660 msgid ""
19661 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19662 "then using other commands to mount the filesystems that were found."
19663 msgstr ""
19664
19665 #. type: =item
19666 #: ../fish/guestfish.pod:294
19667 msgid "B<--listen>"
19668 msgstr "B<--listen>"
19669
19670 #. type: textblock
19671 #: ../fish/guestfish.pod:296
19672 msgid ""
19673 "Fork into the background and listen for remote commands.  See section L</"
19674 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19675 msgstr ""
19676
19677 #. type: =item
19678 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19679 msgid "B<--live>"
19680 msgstr "B<--live>"
19681
19682 #. type: textblock
19683 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19684 msgid ""
19685 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19686 "ATTACHING TO RUNNING DAEMONS>)."
19687 msgstr ""
19688
19689 #. type: =item
19690 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19691 msgid "B<-m dev[:mountpoint[:options]]>"
19692 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19693
19694 #. type: =item
19695 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19696 msgid "B<--mount dev[:mountpoint[:options]]>"
19697 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:308
19701 msgid "Mount the named partition or logical volume on the given mountpoint."
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../fish/guestfish.pod:310
19706 msgid "If the mountpoint is omitted, it defaults to C</>."
19707 msgstr ""
19708
19709 #. type: textblock
19710 #: ../fish/guestfish.pod:312
19711 msgid "You have to mount something on C</> before most commands will work."
19712 msgstr ""
19713
19714 #. type: textblock
19715 #: ../fish/guestfish.pod:314
19716 msgid ""
19717 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19718 "launched."
19719 msgstr ""
19720
19721 #. type: textblock
19722 #: ../fish/guestfish.pod:317
19723 msgid ""
19724 "If you don't know what filesystems a disk image contains, you can either run "
19725 "guestfish without this option, then list the partitions, filesystems and LVs "
19726 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19727 "commands), or you can use the L<virt-filesystems(1)> program."
19728 msgstr ""
19729
19730 #. type: textblock
19731 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19732 msgid ""
19733 "The third (and rarely used) part of the mount parameter is the list of mount "
19734 "options used to mount the underlying filesystem.  If this is not given, then "
19735 "the mount options are either the empty string or C<ro> (the latter if the "
19736 "I<--ro> flag is used).  By specifying the mount options, you override this "
19737 "default choice.  Probably the only time you would use this is to enable ACLs "
19738 "and/or extended attributes if the filesystem can support them:"
19739 msgstr ""
19740
19741 #. type: verbatim
19742 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19743 #, no-wrap
19744 msgid ""
19745 " -m /dev/sda1:/:acl,user_xattr\n"
19746 "\n"
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:333
19751 msgid "Using this flag is equivalent to using the C<mount-options> command."
19752 msgstr ""
19753
19754 #. type: =item
19755 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19756 #: ../resize/virt-resize.pod:435
19757 msgid "B<-n>"
19758 msgstr "B<-n>"
19759
19760 #. type: =item
19761 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19762 msgid "B<--no-sync>"
19763 msgstr "B<--no-sync>"
19764
19765 #. type: textblock
19766 #: ../fish/guestfish.pod:339
19767 msgid ""
19768 "Disable autosync.  This is enabled by default.  See the discussion of "
19769 "autosync in the L<guestfs(3)> manpage."
19770 msgstr ""
19771
19772 #. type: =item
19773 #: ../fish/guestfish.pod:342
19774 msgid "B<-N type>"
19775 msgstr "B<-N тип>"
19776
19777 #. type: =item
19778 #: ../fish/guestfish.pod:344
19779 msgid "B<--new type>"
19780 msgstr "B<--new тип>"
19781
19782 #. type: =item
19783 #: ../fish/guestfish.pod:346
19784 msgid "B<-N help>"
19785 msgstr "B<-N help>"
19786
19787 #. type: textblock
19788 #: ../fish/guestfish.pod:348
19789 msgid ""
19790 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19791 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19792 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19793 "IMAGES> below."
19794 msgstr ""
19795
19796 #. type: =item
19797 #: ../fish/guestfish.pod:353
19798 msgid "B<--progress-bars>"
19799 msgstr "B<--progress-bars>"
19800
19801 #. type: textblock
19802 #: ../fish/guestfish.pod:355
19803 msgid "Enable progress bars, even when guestfish is used non-interactively."
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:357
19808 msgid ""
19809 "Progress bars are enabled by default when guestfish is used as an "
19810 "interactive shell."
19811 msgstr ""
19812
19813 #. type: =item
19814 #: ../fish/guestfish.pod:360
19815 msgid "B<--no-progress-bars>"
19816 msgstr "B<--no-progress-bars>"
19817
19818 #. type: textblock
19819 #: ../fish/guestfish.pod:362
19820 msgid "Disable progress bars."
19821 msgstr ""
19822
19823 #. type: =item
19824 #: ../fish/guestfish.pod:364
19825 msgid "B<--remote[=pid]>"
19826 msgstr "B<--remote[=pid]>"
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:366
19830 msgid ""
19831 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19832 "CONTROL GUESTFISH OVER A SOCKET> below."
19833 msgstr ""
19834
19835 #. type: =item
19836 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19837 #: ../rescue/virt-rescue.pod:189
19838 msgid "B<-r>"
19839 msgstr "B<-r>"
19840
19841 #. type: =item
19842 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19843 #: ../rescue/virt-rescue.pod:191
19844 msgid "B<--ro>"
19845 msgstr "B<--ro>"
19846
19847 #. type: textblock
19848 #: ../fish/guestfish.pod:373
19849 msgid ""
19850 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19851 "mounts are done read-only."
19852 msgstr ""
19853
19854 #. type: textblock
19855 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19856 msgid ""
19857 "The option must always be used if the disk image or virtual machine might be "
19858 "running, and is generally recommended in cases where you don't need write "
19859 "access to the disk."
19860 msgstr ""
19861
19862 #. type: textblock
19863 #: ../fish/guestfish.pod:380
19864 msgid ""
19865 "Note that prepared disk images created with I<-N> are not affected by this "
19866 "option.  Also commands like C<add> are not affected - you have to specify "
19867 "the C<readonly:true> option explicitly if you need it."
19868 msgstr ""
19869
19870 #. type: textblock
19871 #: ../fish/guestfish.pod:384
19872 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19873 msgstr ""
19874
19875 #. type: =item
19876 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19877 #: ../rescue/virt-rescue.pod:201
19878 msgid "B<--selinux>"
19879 msgstr "B<--selinux>"
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:388
19883 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../fish/guestfish.pod:394
19888 msgid ""
19889 "Enable very verbose messages.  This is particularly useful if you find a bug."
19890 msgstr ""
19891
19892 #. type: textblock
19893 #: ../fish/guestfish.pod:401
19894 msgid "Display the guestfish / libguestfs version number and exit."
19895 msgstr ""
19896
19897 #. type: =item
19898 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19899 #: ../rescue/virt-rescue.pod:231
19900 msgid "B<-w>"
19901 msgstr "B<-w>"
19902
19903 #. type: =item
19904 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19905 #: ../rescue/virt-rescue.pod:233
19906 msgid "B<--rw>"
19907 msgstr "B<--rw>"
19908
19909 #. type: textblock
19910 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19911 msgid ""
19912 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19913 "mounts are done read-write."
19914 msgstr ""
19915
19916 #. type: textblock
19917 #: ../fish/guestfish.pod:410
19918 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19919 msgstr ""
19920
19921 #. type: textblock
19922 #: ../fish/guestfish.pod:414
19923 msgid "Echo each command before executing it."
19924 msgstr ""
19925
19926 #. type: =head1
19927 #: ../fish/guestfish.pod:418
19928 msgid "COMMANDS ON COMMAND LINE"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:420
19933 msgid ""
19934 "Any additional (non-option) arguments are treated as commands to execute."
19935 msgstr ""
19936
19937 #. type: textblock
19938 #: ../fish/guestfish.pod:423
19939 msgid ""
19940 "Commands to execute should be separated by a colon (C<:>), where the colon "
19941 "is a separate parameter.  Thus:"
19942 msgstr ""
19943
19944 #. type: verbatim
19945 #: ../fish/guestfish.pod:426
19946 #, no-wrap
19947 msgid ""
19948 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19949 "\n"
19950 msgstr ""
19951
19952 #. type: textblock
19953 #: ../fish/guestfish.pod:428
19954 msgid ""
19955 "If there are no additional arguments, then we enter a shell, either an "
19956 "interactive shell with a prompt (if the input is a terminal) or a non-"
19957 "interactive shell."
19958 msgstr ""
19959
19960 #. type: textblock
19961 #: ../fish/guestfish.pod:432
19962 msgid ""
19963 "In either command line mode or non-interactive shell, the first command that "
19964 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19965 "prompt) if a command fails, you can continue to enter commands."
19966 msgstr ""
19967
19968 #. type: =head1
19969 #: ../fish/guestfish.pod:437
19970 msgid "USING launch (OR run)"
19971 msgstr ""
19972
19973 #. type: textblock
19974 #: ../fish/guestfish.pod:439
19975 msgid ""
19976 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19977 "then launch it, then mount any disks you need, and finally issue actions/"
19978 "commands.  So the general order of the day is:"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../fish/guestfish.pod:447
19983 msgid "add or -a/--add"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../fish/guestfish.pod:451
19988 msgid "launch (aka run)"
19989 msgstr ""
19990
19991 #. type: textblock
19992 #: ../fish/guestfish.pod:455
19993 msgid "mount or -m/--mount"
19994 msgstr ""
19995
19996 #. type: textblock
19997 #: ../fish/guestfish.pod:459
19998 msgid "any other commands"
19999 msgstr ""
20000
20001 #. type: textblock
20002 #: ../fish/guestfish.pod:463
20003 msgid ""
20004 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20005 "guest before mounting or performing any other commands."
20006 msgstr ""
20007
20008 #. type: textblock
20009 #: ../fish/guestfish.pod:466
20010 msgid ""
20011 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20012 "I<--new> options were given then C<run> is done automatically, simply "
20013 "because guestfish can't perform the action you asked for without doing this."
20014 msgstr ""
20015
20016 #. type: =head1
20017 #: ../fish/guestfish.pod:471
20018 msgid "OPENING DISKS FOR READ AND WRITE"
20019 msgstr ""
20020
20021 #. type: textblock
20022 #: ../fish/guestfish.pod:473
20023 msgid ""
20024 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20025 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20026 "I<-i> and I<-m> open disk images read-only or for writing."
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fish/guestfish.pod:478
20031 msgid ""
20032 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20033 "opening disk images supplied on the command line for write.  To open a disk "
20034 "image read-only you have to do I<-a image --ro>."
20035 msgstr ""
20036
20037 #. type: textblock
20038 #: ../fish/guestfish.pod:482
20039 msgid ""
20040 "This matters: If you accidentally open a live VM disk image writable then "
20041 "you will cause irreversible disk corruption."
20042 msgstr ""
20043
20044 #. type: textblock
20045 #: ../fish/guestfish.pod:485
20046 msgid ""
20047 "In a future libguestfs we intend to change the default the other way.  Disk "
20048 "images will be opened read-only.  You will have to either specify "
20049 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20050 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20051 "access for disk images specified by those other command line options."
20052 msgstr ""
20053
20054 #. type: textblock
20055 #: ../fish/guestfish.pod:492
20056 msgid ""
20057 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20058 "which does nothing (it is already the default).  However it is highly "
20059 "recommended that you use this option to indicate that you need write access, "
20060 "and prepare your scripts for the day when this option will be required for "
20061 "write access."
20062 msgstr ""
20063
20064 #. type: textblock
20065 #: ../fish/guestfish.pod:498
20066 msgid ""
20067 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20068 "other libguestfs program apart from guestfish and guestmount."
20069 msgstr ""
20070
20071 #. type: =head1
20072 #: ../fish/guestfish.pod:501
20073 msgid "QUOTING"
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../fish/guestfish.pod:503
20078 msgid ""
20079 "You can quote ordinary parameters using either single or double quotes.  For "
20080 "example:"
20081 msgstr ""
20082
20083 #. type: verbatim
20084 #: ../fish/guestfish.pod:506
20085 #, no-wrap
20086 msgid ""
20087 " add \"file with a space.img\"\n"
20088 "\n"
20089 msgstr ""
20090
20091 #. type: verbatim
20092 #: ../fish/guestfish.pod:508
20093 #, no-wrap
20094 msgid ""
20095 " rm '/file name'\n"
20096 "\n"
20097 msgstr ""
20098
20099 #. type: verbatim
20100 #: ../fish/guestfish.pod:510
20101 #, no-wrap
20102 msgid ""
20103 " rm '/\"'\n"
20104 "\n"
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../fish/guestfish.pod:512
20109 msgid ""
20110 "A few commands require a list of strings to be passed.  For these, use a "
20111 "whitespace-separated list, enclosed in quotes.  Strings containing "
20112 "whitespace to be passed through must be enclosed in single quotes.  A "
20113 "literal single quote must be escaped with a backslash."
20114 msgstr ""
20115
20116 #. type: verbatim
20117 #: ../fish/guestfish.pod:517
20118 #, no-wrap
20119 msgid ""
20120 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20121 " command \"/bin/echo 'foo      bar'\"\n"
20122 " command \"/bin/echo \\'foo\\'\"\n"
20123 "\n"
20124 msgstr ""
20125
20126 #. type: =head2
20127 #: ../fish/guestfish.pod:521
20128 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20129 msgstr ""
20130
20131 #. type: textblock
20132 #: ../fish/guestfish.pod:523
20133 msgid ""
20134 "In double-quoted arguments (only) use backslash to insert special characters:"
20135 msgstr ""
20136
20137 #. type: =item
20138 #: ../fish/guestfish.pod:528
20139 msgid "C<\\a>"
20140 msgstr "C<\\a>"
20141
20142 #. type: textblock
20143 #: ../fish/guestfish.pod:530
20144 msgid "Alert (bell) character."
20145 msgstr "Символ гудка (дзвінка)."
20146
20147 #. type: =item
20148 #: ../fish/guestfish.pod:532
20149 msgid "C<\\b>"
20150 msgstr "C<\\b>"
20151
20152 #. type: textblock
20153 #: ../fish/guestfish.pod:534
20154 msgid "Backspace character."
20155 msgstr ""
20156
20157 #. type: =item
20158 #: ../fish/guestfish.pod:536
20159 msgid "C<\\f>"
20160 msgstr "C<\\f>"
20161
20162 #. type: textblock
20163 #: ../fish/guestfish.pod:538
20164 msgid "Form feed character."
20165 msgstr ""
20166
20167 #. type: =item
20168 #: ../fish/guestfish.pod:540
20169 msgid "C<\\n>"
20170 msgstr "C<\\n>"
20171
20172 #. type: textblock
20173 #: ../fish/guestfish.pod:542
20174 msgid "Newline character."
20175 msgstr ""
20176
20177 #. type: =item
20178 #: ../fish/guestfish.pod:544
20179 msgid "C<\\r>"
20180 msgstr "C<\\r>"
20181
20182 #. type: textblock
20183 #: ../fish/guestfish.pod:546
20184 msgid "Carriage return character."
20185 msgstr "Символ повернення каретки."
20186
20187 #. type: =item
20188 #: ../fish/guestfish.pod:548
20189 msgid "C<\\t>"
20190 msgstr "C<\\t>"
20191
20192 #. type: textblock
20193 #: ../fish/guestfish.pod:550
20194 msgid "Horizontal tab character."
20195 msgstr "Символ горизонтальної табуляції"
20196
20197 #. type: =item
20198 #: ../fish/guestfish.pod:552
20199 msgid "C<\\v>"
20200 msgstr "C<\\v>"
20201
20202 #. type: textblock
20203 #: ../fish/guestfish.pod:554
20204 msgid "Vertical tab character."
20205 msgstr "Символ вертикальної табуляції."
20206
20207 #. type: =item
20208 #: ../fish/guestfish.pod:556
20209 msgid "C<\\\">"
20210 msgstr "C<\\\">"
20211
20212 #. type: textblock
20213 #: ../fish/guestfish.pod:558
20214 msgid "A literal double quote character."
20215 msgstr ""
20216
20217 #. type: =item
20218 #: ../fish/guestfish.pod:560
20219 msgid "C<\\ooo>"
20220 msgstr "C<\\ooo>"
20221
20222 #. type: textblock
20223 #: ../fish/guestfish.pod:562
20224 msgid ""
20225 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20226 "(unlike C)."
20227 msgstr ""
20228
20229 #. type: =item
20230 #: ../fish/guestfish.pod:565
20231 msgid "C<\\xhh>"
20232 msgstr "C<\\xhh>"
20233
20234 #. type: textblock
20235 #: ../fish/guestfish.pod:567
20236 msgid ""
20237 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20238 msgstr ""
20239
20240 #. type: textblock
20241 #: ../fish/guestfish.pod:570
20242 msgid ""
20243 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20244 "strings."
20245 msgstr ""
20246
20247 #. type: =item
20248 #: ../fish/guestfish.pod:573
20249 msgid "C<\\\\>"
20250 msgstr "C<\\\\>"
20251
20252 #. type: textblock
20253 #: ../fish/guestfish.pod:575
20254 msgid "A literal backslash character."
20255 msgstr ""
20256
20257 #. type: =head1
20258 #: ../fish/guestfish.pod:579
20259 msgid "OPTIONAL ARGUMENTS"
20260 msgstr ""
20261
20262 #. type: textblock
20263 #: ../fish/guestfish.pod:581
20264 msgid ""
20265 "Some commands take optional arguments.  These arguments appear in this "
20266 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20267 msgstr ""
20268
20269 #. type: verbatim
20270 #: ../fish/guestfish.pod:585
20271 #, no-wrap
20272 msgid ""
20273 " add-drive-opts filename\n"
20274 "\n"
20275 msgstr ""
20276
20277 #. type: verbatim
20278 #: ../fish/guestfish.pod:587
20279 #, no-wrap
20280 msgid ""
20281 " add-drive-opts filename readonly:true\n"
20282 "\n"
20283 msgstr ""
20284
20285 #. type: verbatim
20286 #: ../fish/guestfish.pod:589
20287 #, no-wrap
20288 msgid ""
20289 " add-drive-opts filename format:qcow2 readonly:false\n"
20290 "\n"
20291 msgstr ""
20292
20293 #. type: textblock
20294 #: ../fish/guestfish.pod:591
20295 msgid ""
20296 "Each optional argument can appear at most once.  All optional arguments must "
20297 "appear after the required ones."
20298 msgstr ""
20299
20300 #. type: =head1
20301 #: ../fish/guestfish.pod:594
20302 msgid "NUMBERS"
20303 msgstr "ЧИСЛА"
20304
20305 #. type: textblock
20306 #: ../fish/guestfish.pod:596
20307 msgid ""
20308 "This section applies to all commands which can take integers as parameters."
20309 msgstr ""
20310
20311 #. type: =head2
20312 #: ../fish/guestfish.pod:599
20313 msgid "SIZE SUFFIX"
20314 msgstr ""
20315
20316 #. type: textblock
20317 #: ../fish/guestfish.pod:601
20318 msgid ""
20319 "When the command takes a parameter measured in bytes, you can use one of the "
20320 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20321 msgstr ""
20322
20323 #. type: =item
20324 #: ../fish/guestfish.pod:607
20325 msgid "B<k> or B<K> or B<KiB>"
20326 msgstr "B<k>, B<K> або B<KiB>"
20327
20328 #. type: textblock
20329 #: ../fish/guestfish.pod:609
20330 msgid "The size in kilobytes (multiplied by 1024)."
20331 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
20332
20333 #. type: =item
20334 #: ../fish/guestfish.pod:611
20335 msgid "B<KB>"
20336 msgstr "B<KB>"
20337
20338 #. type: textblock
20339 #: ../fish/guestfish.pod:613
20340 msgid "The size in SI 1000 byte units."
20341 msgstr "Розмір у одиницях СІ: 1000 байтів."
20342
20343 #. type: =item
20344 #: ../fish/guestfish.pod:615
20345 msgid "B<M> or B<MiB>"
20346 msgstr "B<M> або B<MiB>"
20347
20348 #. type: textblock
20349 #: ../fish/guestfish.pod:617
20350 msgid "The size in megabytes (multiplied by 1048576)."
20351 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
20352
20353 #. type: =item
20354 #: ../fish/guestfish.pod:619
20355 msgid "B<MB>"
20356 msgstr "B<MB>"
20357
20358 #. type: textblock
20359 #: ../fish/guestfish.pod:621
20360 msgid "The size in SI 1000000 byte units."
20361 msgstr "Розмір у одиницях СІ: 1000000 байтів."
20362
20363 #. type: =item
20364 #: ../fish/guestfish.pod:623
20365 msgid "B<G> or B<GiB>"
20366 msgstr "B<G> або B<GiB>"
20367
20368 #. type: textblock
20369 #: ../fish/guestfish.pod:625
20370 msgid "The size in gigabytes (multiplied by 2**30)."
20371 msgstr "Розмір у гігабайтах (з множником 2**30)."
20372
20373 #. type: =item
20374 #: ../fish/guestfish.pod:627
20375 msgid "B<GB>"
20376 msgstr "B<GB>"
20377
20378 #. type: textblock
20379 #: ../fish/guestfish.pod:629
20380 msgid "The size in SI 10**9 byte units."
20381 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20382
20383 #. type: =item
20384 #: ../fish/guestfish.pod:631
20385 msgid "B<T> or B<TiB>"
20386 msgstr "B<T> або B<TiB>"
20387
20388 #. type: textblock
20389 #: ../fish/guestfish.pod:633
20390 msgid "The size in terabytes (multiplied by 2**40)."
20391 msgstr "Розмір у терабайтах (з множником 2**40)."
20392
20393 #. type: =item
20394 #: ../fish/guestfish.pod:635
20395 msgid "B<TB>"
20396 msgstr "B<TB>"
20397
20398 #. type: textblock
20399 #: ../fish/guestfish.pod:637
20400 msgid "The size in SI 10**12 byte units."
20401 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20402
20403 #. type: =item
20404 #: ../fish/guestfish.pod:639
20405 msgid "B<P> or B<PiB>"
20406 msgstr "B<P> або B<PiB>"
20407
20408 #. type: textblock
20409 #: ../fish/guestfish.pod:641
20410 msgid "The size in petabytes (multiplied by 2**50)."
20411 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20412
20413 #. type: =item
20414 #: ../fish/guestfish.pod:643
20415 msgid "B<PB>"
20416 msgstr "B<PB>"
20417
20418 #. type: textblock
20419 #: ../fish/guestfish.pod:645
20420 msgid "The size in SI 10**15 byte units."
20421 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20422
20423 #. type: =item
20424 #: ../fish/guestfish.pod:647
20425 msgid "B<E> or B<EiB>"
20426 msgstr "B<E> або B<EiB>"
20427
20428 #. type: textblock
20429 #: ../fish/guestfish.pod:649
20430 msgid "The size in exabytes (multiplied by 2**60)."
20431 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20432
20433 #. type: =item
20434 #: ../fish/guestfish.pod:651
20435 msgid "B<EB>"
20436 msgstr "B<EB>"
20437
20438 #. type: textblock
20439 #: ../fish/guestfish.pod:653
20440 msgid "The size in SI 10**18 byte units."
20441 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20442
20443 #. type: =item
20444 #: ../fish/guestfish.pod:655
20445 msgid "B<Z> or B<ZiB>"
20446 msgstr "B<Z> або B<ZiB>"
20447
20448 #. type: textblock
20449 #: ../fish/guestfish.pod:657
20450 msgid "The size in zettabytes (multiplied by 2**70)."
20451 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20452
20453 #. type: =item
20454 #: ../fish/guestfish.pod:659
20455 msgid "B<ZB>"
20456 msgstr "B<ZB>"
20457
20458 #. type: textblock
20459 #: ../fish/guestfish.pod:661
20460 msgid "The size in SI 10**21 byte units."
20461 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20462
20463 #. type: =item
20464 #: ../fish/guestfish.pod:663
20465 msgid "B<Y> or B<YiB>"
20466 msgstr "B<Y> або B<YiB>"
20467
20468 #. type: textblock
20469 #: ../fish/guestfish.pod:665
20470 msgid "The size in yottabytes (multiplied by 2**80)."
20471 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20472
20473 #. type: =item
20474 #: ../fish/guestfish.pod:667
20475 msgid "B<YB>"
20476 msgstr "B<YB>"
20477
20478 #. type: textblock
20479 #: ../fish/guestfish.pod:669
20480 msgid "The size in SI 10**24 byte units."
20481 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20482
20483 #. type: verbatim
20484 #: ../fish/guestfish.pod:675
20485 #, no-wrap
20486 msgid ""
20487 " truncate-size /file 1G\n"
20488 "\n"
20489 msgstr ""
20490
20491 #. type: textblock
20492 #: ../fish/guestfish.pod:677
20493 msgid "would truncate the file to 1 gigabyte."
20494 msgstr ""
20495
20496 #. type: textblock
20497 #: ../fish/guestfish.pod:679
20498 msgid ""
20499 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20500 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20501 "suffix will probably not do what you expect."
20502 msgstr ""
20503
20504 #. type: =head2
20505 #: ../fish/guestfish.pod:683
20506 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20507 msgstr ""
20508
20509 #. type: textblock
20510 #: ../fish/guestfish.pod:685
20511 msgid ""
20512 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20513 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20514 msgstr ""
20515
20516 #. type: verbatim
20517 #: ../fish/guestfish.pod:688
20518 #, no-wrap
20519 msgid ""
20520 " 1234      decimal number 1234\n"
20521 " 02322     octal number, equivalent to decimal 1234\n"
20522 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20523 "\n"
20524 msgstr ""
20525
20526 #. type: textblock
20527 #: ../fish/guestfish.pod:692
20528 msgid ""
20529 "When using the C<chmod> command, you almost always want to specify an octal "
20530 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20531 "L<chmod(1)> program):"
20532 msgstr ""
20533
20534 #. type: verbatim
20535 #: ../fish/guestfish.pod:696
20536 #, no-wrap
20537 msgid ""
20538 " chmod 0777 /public  # OK\n"
20539 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20540 "\n"
20541 msgstr ""
20542
20543 #. type: textblock
20544 #: ../fish/guestfish.pod:699
20545 msgid ""
20546 "Commands that return numbers usually print them in decimal, but some "
20547 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20548 "octal, preceeded by C<0>)."
20549 msgstr ""
20550
20551 #. type: =head1
20552 #: ../fish/guestfish.pod:703
20553 msgid "WILDCARDS AND GLOBBING"
20554 msgstr ""
20555
20556 #. type: textblock
20557 #: ../fish/guestfish.pod:705
20558 msgid ""
20559 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20560 "(globbing) by default.  So for example the following will not do what you "
20561 "expect:"
20562 msgstr ""
20563
20564 #. type: verbatim
20565 #: ../fish/guestfish.pod:709
20566 #, no-wrap
20567 msgid ""
20568 " rm-rf /home/*\n"
20569 "\n"
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../fish/guestfish.pod:711
20574 msgid ""
20575 "Assuming you don't have a directory called literally C</home/*> then the "
20576 "above command will return an error."
20577 msgstr ""
20578
20579 #. type: textblock
20580 #: ../fish/guestfish.pod:714
20581 msgid "To perform wildcard expansion, use the C<glob> command."
20582 msgstr ""
20583
20584 #. type: verbatim
20585 #: ../fish/guestfish.pod:716
20586 #, no-wrap
20587 msgid ""
20588 " glob rm-rf /home/*\n"
20589 "\n"
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../fish/guestfish.pod:718
20594 msgid ""
20595 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20596 "many times), equivalent to:"
20597 msgstr ""
20598
20599 #. type: verbatim
20600 #: ../fish/guestfish.pod:721
20601 #, no-wrap
20602 msgid ""
20603 " rm-rf /home/jim\n"
20604 " rm-rf /home/joe\n"
20605 " rm-rf /home/mary\n"
20606 "\n"
20607 msgstr ""
20608
20609 #. type: textblock
20610 #: ../fish/guestfish.pod:725
20611 msgid "C<glob> only works on simple guest paths and not on device names."
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fish/guestfish.pod:727
20616 msgid ""
20617 "If you have several parameters, each containing a wildcard, then glob will "
20618 "perform a Cartesian product."
20619 msgstr ""
20620
20621 #. type: =head1
20622 #: ../fish/guestfish.pod:730
20623 msgid "COMMENTS"
20624 msgstr "КОМЕНТАРІ"
20625
20626 #. type: textblock
20627 #: ../fish/guestfish.pod:732
20628 msgid ""
20629 "Any line which starts with a I<#> character is treated as a comment and "
20630 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20631 "a command.  For example:"
20632 msgstr ""
20633
20634 #. type: verbatim
20635 #: ../fish/guestfish.pod:736
20636 #, no-wrap
20637 msgid ""
20638 " # this is a comment\n"
20639 "         # this is a comment\n"
20640 " foo # NOT a comment\n"
20641 "\n"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fish/guestfish.pod:740
20646 msgid "Blank lines are also ignored."
20647 msgstr ""
20648
20649 #. type: =head1
20650 #: ../fish/guestfish.pod:742
20651 msgid "RUNNING COMMANDS LOCALLY"
20652 msgstr ""
20653
20654 #. type: textblock
20655 #: ../fish/guestfish.pod:744
20656 msgid ""
20657 "Any line which starts with a I<!> character is treated as a command sent to "
20658 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20659 msgstr ""
20660
20661 #. type: verbatim
20662 #: ../fish/guestfish.pod:748
20663 #, no-wrap
20664 msgid ""
20665 " !mkdir local\n"
20666 " tgz-out /remote local/remote-data.tar.gz\n"
20667 "\n"
20668 msgstr ""
20669
20670 #. type: textblock
20671 #: ../fish/guestfish.pod:751
20672 msgid ""
20673 "will create a directory C<local> on the host, and then export the contents "
20674 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20675 "(See C<tgz-out>)."
20676 msgstr ""
20677
20678 #. type: textblock
20679 #: ../fish/guestfish.pod:755
20680 msgid ""
20681 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20682 "effect, due to the way that subprocesses work in Unix."
20683 msgstr ""
20684
20685 #. type: =head2
20686 #: ../fish/guestfish.pod:758
20687 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../fish/guestfish.pod:760
20692 msgid ""
20693 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20694 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20695 "and executed as guestfish commands."
20696 msgstr ""
20697
20698 #. type: textblock
20699 #: ../fish/guestfish.pod:764
20700 msgid ""
20701 "Thus you can use shell script to construct arbitrary guestfish commands "
20702 "which are then parsed by guestfish."
20703 msgstr ""
20704
20705 #. type: textblock
20706 #: ../fish/guestfish.pod:767
20707 msgid ""
20708 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20709 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20710 "if we use a shell script to create the guestfish commands for us:"
20711 msgstr ""
20712
20713 #. type: verbatim
20714 #: ../fish/guestfish.pod:772
20715 #, no-wrap
20716 msgid ""
20717 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20718 "\n"
20719 msgstr ""
20720
20721 #. type: textblock
20722 #: ../fish/guestfish.pod:774
20723 msgid "or with names like C</foo.001>:"
20724 msgstr ""
20725
20726 #. type: verbatim
20727 #: ../fish/guestfish.pod:776
20728 #, no-wrap
20729 msgid ""
20730 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20731 "\n"
20732 msgstr ""
20733
20734 #. type: textblock
20735 #: ../fish/guestfish.pod:778
20736 msgid ""
20737 "When using guestfish interactively it can be helpful to just run the shell "
20738 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20739 "ordinary I<!> local command), see what guestfish commands it would run, and "
20740 "when you are happy with those prepend the C<E<lt>> character to run the "
20741 "guestfish commands for real."
20742 msgstr ""
20743
20744 #. type: =head1
20745 #: ../fish/guestfish.pod:784
20746 msgid "PIPES"
20747 msgstr "КАНАЛИ"
20748
20749 #. type: textblock
20750 #: ../fish/guestfish.pod:786
20751 msgid ""
20752 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20753 "command (a guestfish command) to the second command (any host command).  For "
20754 "example:"
20755 msgstr ""
20756
20757 #. type: verbatim
20758 #: ../fish/guestfish.pod:790
20759 #, no-wrap
20760 msgid ""
20761 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20762 "\n"
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../fish/guestfish.pod:792
20767 msgid ""
20768 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20769 "program).  The above command would list all accounts in the guest filesystem "
20770 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20771 msgstr ""
20772
20773 #. type: verbatim
20774 #: ../fish/guestfish.pod:797
20775 #, no-wrap
20776 msgid ""
20777 " hexdump /bin/ls | head\n"
20778 " list-devices | tail -1\n"
20779 " tgz-out / - | tar ztf -\n"
20780 "\n"
20781 msgstr ""
20782
20783 #. type: textblock
20784 #: ../fish/guestfish.pod:801
20785 msgid ""
20786 "The space before the pipe symbol is required, any space after the pipe "
20787 "symbol is optional.  Everything after the pipe symbol is just passed "
20788 "straight to the host shell, so it can contain redirections, globs and "
20789 "anything else that makes sense on the host side."
20790 msgstr ""
20791
20792 #. type: textblock
20793 #: ../fish/guestfish.pod:806
20794 msgid ""
20795 "To use a literal argument which begins with a pipe symbol, you have to quote "
20796 "it, eg:"
20797 msgstr ""
20798
20799 #. type: verbatim
20800 #: ../fish/guestfish.pod:809
20801 #, no-wrap
20802 msgid ""
20803 " echo \"|\"\n"
20804 "\n"
20805 msgstr ""
20806
20807 #. type: =head1
20808 #: ../fish/guestfish.pod:811
20809 msgid "HOME DIRECTORIES"
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../fish/guestfish.pod:813
20814 msgid ""
20815 "If a parameter starts with the character C<~> then the tilde may be expanded "
20816 "as a home directory path (either C<~> for the current user's home directory, "
20817 "or C<~user> for another user)."
20818 msgstr ""
20819
20820 #. type: textblock
20821 #: ../fish/guestfish.pod:817
20822 msgid ""
20823 "Note that home directory expansion happens for users known I<on the host>, "
20824 "not in the guest filesystem."
20825 msgstr ""
20826
20827 #. type: textblock
20828 #: ../fish/guestfish.pod:820
20829 msgid ""
20830 "To use a literal argument which begins with a tilde, you have to quote it, "
20831 "eg:"
20832 msgstr ""
20833
20834 #. type: verbatim
20835 #: ../fish/guestfish.pod:823
20836 #, no-wrap
20837 msgid ""
20838 " echo \"~\"\n"
20839 "\n"
20840 msgstr ""
20841
20842 #. type: =head2
20843 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20844 msgid "ENCRYPTED DISKS"
20845 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20846
20847 #. type: textblock
20848 #: ../fish/guestfish.pod:827
20849 msgid ""
20850 "Libguestfs has some support for Linux guests encrypted according to the "
20851 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20852 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20853 "LUKS is supported."
20854 msgstr ""
20855
20856 #. type: textblock
20857 #: ../fish/guestfish.pod:832
20858 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20859 msgstr ""
20860
20861 #. type: verbatim
20862 #: ../fish/guestfish.pod:834
20863 #, no-wrap
20864 msgid ""
20865 " ><fs> vfs-type /dev/sda2\n"
20866 " crypto_LUKS\n"
20867 "\n"
20868 msgstr ""
20869
20870 #. type: textblock
20871 #: ../fish/guestfish.pod:837
20872 msgid ""
20873 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20874 "device called C</dev/mapper/luksdev>."
20875 msgstr ""
20876
20877 #. type: verbatim
20878 #: ../fish/guestfish.pod:840
20879 #, no-wrap
20880 msgid ""
20881 " ><fs> luks-open /dev/sda2 luksdev\n"
20882 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20883 "\n"
20884 msgstr ""
20885
20886 #. type: textblock
20887 #: ../fish/guestfish.pod:843
20888 msgid ""
20889 "Finally you have to tell LVM to scan for volume groups on the newly created "
20890 "mapper device:"
20891 msgstr ""
20892
20893 #. type: verbatim
20894 #: ../fish/guestfish.pod:846
20895 #, no-wrap
20896 msgid ""
20897 " vgscan\n"
20898 " vg-activate-all true\n"
20899 "\n"
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../fish/guestfish.pod:849
20904 msgid "The logical volume(s) can now be mounted in the usual way."
20905 msgstr ""
20906
20907 #. type: textblock
20908 #: ../fish/guestfish.pod:851
20909 msgid ""
20910 "Before closing a LUKS device you must unmount any logical volumes on it and "
20911 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20912 "one.  Then you can close the mapper device:"
20913 msgstr ""
20914
20915 #. type: verbatim
20916 #: ../fish/guestfish.pod:855
20917 #, no-wrap
20918 msgid ""
20919 " vg-activate false /dev/VG\n"
20920 " luks-close /dev/mapper/luksdev\n"
20921 "\n"
20922 msgstr ""
20923
20924 #. type: textblock
20925 #: ../fish/guestfish.pod:860
20926 msgid ""
20927 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20928 "letters and paths (with some limitations).  The following commands are "
20929 "equivalent:"
20930 msgstr ""
20931
20932 #. type: verbatim
20933 #: ../fish/guestfish.pod:864
20934 #, no-wrap
20935 msgid ""
20936 " file /WINDOWS/system32/config/system.LOG\n"
20937 "\n"
20938 msgstr ""
20939
20940 #. type: verbatim
20941 #: ../fish/guestfish.pod:866
20942 #, no-wrap
20943 msgid ""
20944 " file win:\\windows\\system32\\config\\system.log\n"
20945 "\n"
20946 msgstr ""
20947
20948 #. type: verbatim
20949 #: ../fish/guestfish.pod:868
20950 #, no-wrap
20951 msgid ""
20952 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20953 "\n"
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../fish/guestfish.pod:870
20958 msgid ""
20959 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20960 "where the drive is mounted, prepending that to the path, changing all "
20961 "backslash characters to forward slash, then resolving the result using L</"
20962 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20963 "the parameter might be rewritten like this:"
20964 msgstr ""
20965
20966 #. type: verbatim
20967 #: ../fish/guestfish.pod:876
20968 #, no-wrap
20969 msgid ""
20970 " win:e:\\foo\\bar => /e/FOO/bar\n"
20971 "\n"
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../fish/guestfish.pod:878
20976 msgid "This only works in argument positions that expect a path."
20977 msgstr ""
20978
20979 #. type: =head1
20980 #: ../fish/guestfish.pod:880
20981 msgid "UPLOADING AND DOWNLOADING FILES"
20982 msgstr ""
20983
20984 #. type: textblock
20985 #: ../fish/guestfish.pod:882
20986 msgid ""
20987 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20988 "others which upload from or download to a local file, you can use the "
20989 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20990 msgstr ""
20991
20992 #. type: verbatim
20993 #: ../fish/guestfish.pod:886
20994 #, no-wrap
20995 msgid ""
20996 " upload - /foo\n"
20997 "\n"
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../fish/guestfish.pod:888
21002 msgid ""
21003 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21004 msgstr ""
21005
21006 #. type: verbatim
21007 #: ../fish/guestfish.pod:891
21008 #, no-wrap
21009 msgid ""
21010 " tar-out /etc - | tar tf -\n"
21011 "\n"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../fish/guestfish.pod:893
21016 msgid ""
21017 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21018 "command (see L</PIPES>)."
21019 msgstr ""
21020
21021 #. type: textblock
21022 #: ../fish/guestfish.pod:896
21023 msgid ""
21024 "When using C<-> to read from stdin, the input is read up to the end of "
21025 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21026 "some arbitrary end marker:"
21027 msgstr ""
21028
21029 #. type: verbatim
21030 #: ../fish/guestfish.pod:900
21031 #, no-wrap
21032 msgid ""
21033 " upload -<<END /foo\n"
21034 " input line 1\n"
21035 " input line 2\n"
21036 " input line 3\n"
21037 " END\n"
21038 "\n"
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../fish/guestfish.pod:906
21043 msgid ""
21044 "Any string of characters can be used instead of C<END>.  The end marker must "
21045 "appear on a line of its own, without any preceeding or following characters "
21046 "(not even spaces)."
21047 msgstr ""
21048
21049 #. type: textblock
21050 #: ../fish/guestfish.pod:910
21051 msgid ""
21052 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21053 "upload local files (so-called \"FileIn\" parameters in the generator)."
21054 msgstr ""
21055
21056 #. type: =head1
21057 #: ../fish/guestfish.pod:913
21058 msgid "EXIT ON ERROR BEHAVIOUR"
21059 msgstr ""
21060
21061 #. type: textblock
21062 #: ../fish/guestfish.pod:915
21063 msgid ""
21064 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21065 "taking commands from a human over a tty), and will exit on the first error "
21066 "in non-interactive mode (scripts, commands given on the command line)."
21067 msgstr ""
21068
21069 #. type: textblock
21070 #: ../fish/guestfish.pod:920
21071 msgid ""
21072 "If you prefix a command with a I<-> character, then that command will not "
21073 "cause guestfish to exit, even if that (one) command returns an error."
21074 msgstr ""
21075
21076 #. type: =head1
21077 #: ../fish/guestfish.pod:924
21078 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21079 msgstr ""
21080
21081 #. type: textblock
21082 #: ../fish/guestfish.pod:926
21083 msgid ""
21084 "Guestfish can be remote-controlled over a socket.  This is useful "
21085 "particularly in shell scripts where you want to make several different "
21086 "changes to a filesystem, but you don't want the overhead of starting up a "
21087 "guestfish process each time."
21088 msgstr ""
21089
21090 #. type: textblock
21091 #: ../fish/guestfish.pod:931
21092 msgid "Start a guestfish server process using:"
21093 msgstr ""
21094
21095 #. type: verbatim
21096 #: ../fish/guestfish.pod:933
21097 #, no-wrap
21098 msgid ""
21099 " eval \"`guestfish --listen`\"\n"
21100 "\n"
21101 msgstr ""
21102
21103 #. type: textblock
21104 #: ../fish/guestfish.pod:935
21105 msgid "and then send it commands by doing:"
21106 msgstr ""
21107
21108 #. type: verbatim
21109 #: ../fish/guestfish.pod:937
21110 #, no-wrap
21111 msgid ""
21112 " guestfish --remote cmd [...]\n"
21113 "\n"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../fish/guestfish.pod:939
21118 msgid "To cause the server to exit, send it the exit command:"
21119 msgstr ""
21120
21121 #. type: textblock
21122 #: ../fish/guestfish.pod:943
21123 msgid ""
21124 "Note that the server will normally exit if there is an error in a command.  "
21125 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21126 "BEHAVIOUR>."
21127 msgstr ""
21128
21129 #. type: =head2
21130 #: ../fish/guestfish.pod:947
21131 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21132 msgstr ""
21133
21134 #. type: textblock
21135 #: ../fish/guestfish.pod:949
21136 msgid ""
21137 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21138 "is how the I<--remote> option knows where to send the commands.  You can "
21139 "have several guestfish listener processes running using:"
21140 msgstr ""
21141
21142 #. type: verbatim
21143 #: ../fish/guestfish.pod:953
21144 #, no-wrap
21145 msgid ""
21146 " eval \"`guestfish --listen`\"\n"
21147 " pid1=$GUESTFISH_PID\n"
21148 " eval \"`guestfish --listen`\"\n"
21149 " pid2=$GUESTFISH_PID\n"
21150 " ...\n"
21151 " guestfish --remote=$pid1 cmd\n"
21152 " guestfish --remote=$pid2 cmd\n"
21153 "\n"
21154 msgstr ""
21155
21156 #. type: =head2
21157 #: ../fish/guestfish.pod:961
21158 msgid "REMOTE CONTROL AND CSH"
21159 msgstr ""
21160
21161 #. type: textblock
21162 #: ../fish/guestfish.pod:963
21163 msgid ""
21164 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21165 "option:"
21166 msgstr ""
21167
21168 #. type: verbatim
21169 #: ../fish/guestfish.pod:966
21170 #, no-wrap
21171 msgid ""
21172 " eval \"`guestfish --listen --csh`\"\n"
21173 "\n"
21174 msgstr ""
21175
21176 #. type: =head2
21177 #: ../fish/guestfish.pod:968
21178 msgid "REMOTE CONTROL DETAILS"
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../fish/guestfish.pod:970
21183 msgid ""
21184 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21185 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21186 "and C<$PID> is the process ID of the server."
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fish/guestfish.pod:974
21191 msgid "Guestfish client and server versions must match exactly."
21192 msgstr ""
21193
21194 #. type: =head2
21195 #: ../fish/guestfish.pod:976
21196 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21197 msgstr ""
21198
21199 #. type: textblock
21200 #: ../fish/guestfish.pod:978
21201 msgid ""
21202 "From Bash, you can use the following code which creates a guestfish "
21203 "instance, correctly quotes the command line, handles failure to start, and "
21204 "cleans up guestfish when the script exits:"
21205 msgstr ""
21206
21207 #. type: verbatim
21208 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21209 #, no-wrap
21210 msgid ""
21211 " #!/bin/bash -\n"
21212 " \n"
21213 msgstr ""
21214
21215 #. type: verbatim
21216 #: ../fish/guestfish.pod:986
21217 #, no-wrap
21218 msgid ""
21219 " guestfish[0]=\"guestfish\"\n"
21220 " guestfish[1]=\"--listen\"\n"
21221 " guestfish[2]=\"--ro\"\n"
21222 " guestfish[3]=\"-a\"\n"
21223 " guestfish[4]=\"disk.img\"\n"
21224 " \n"
21225 msgstr ""
21226
21227 #. type: verbatim
21228 #: ../fish/guestfish.pod:992
21229 #, no-wrap
21230 msgid ""
21231 " GUESTFISH_PID=\n"
21232 " eval $(\"${guestfish[@]}\")\n"
21233 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21234 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21235 "     exit 1\n"
21236 " fi\n"
21237 " \n"
21238 msgstr ""
21239
21240 #. type: verbatim
21241 #: ../fish/guestfish.pod:999
21242 #, no-wrap
21243 msgid ""
21244 " cleanup_guestfish ()\n"
21245 " {\n"
21246 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21247 " }\n"
21248 " trap cleanup_guestfish EXIT ERR\n"
21249 " \n"
21250 msgstr ""
21251
21252 #. type: verbatim
21253 #: ../fish/guestfish.pod:1005
21254 #, no-wrap
21255 msgid ""
21256 " guestfish --remote -- run\n"
21257 " \n"
21258 msgstr ""
21259
21260 #. type: verbatim
21261 #: ../fish/guestfish.pod:1007
21262 #, no-wrap
21263 msgid ""
21264 " # ...\n"
21265 "\n"
21266 msgstr ""
21267
21268 #. type: =head2
21269 #: ../fish/guestfish.pod:1009
21270 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../fish/guestfish.pod:1011
21275 msgid ""
21276 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21277 "context hangs, ie. don't do (note the backquotes):"
21278 msgstr ""
21279
21280 #. type: verbatim
21281 #: ../fish/guestfish.pod:1014
21282 #, no-wrap
21283 msgid ""
21284 " a=`guestfish --remote run`\n"
21285 "\n"
21286 msgstr ""
21287
21288 #. type: textblock
21289 #: ../fish/guestfish.pod:1016
21290 msgid ""
21291 "Since the C<run> command produces no output on stdout, this is not useful "
21292 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21293 "cgi?id=592910>."
21294 msgstr ""
21295
21296 #. type: =head1
21297 #: ../fish/guestfish.pod:1020
21298 msgid "PREPARED DISK IMAGES"
21299 msgstr ""
21300
21301 #. type: textblock
21302 #: ../fish/guestfish.pod:1022
21303 msgid ""
21304 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21305 "preformatted disk images that guestfish can make for you to save typing.  "
21306 "This is particularly useful for testing purposes.  This option is used "
21307 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21308 "can be mixed with I<-a>)."
21309 msgstr ""
21310
21311 #. type: textblock
21312 #: ../fish/guestfish.pod:1028
21313 msgid ""
21314 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21315 "the second and so on.  Existing files in the current directory are "
21316 "I<overwritten>."
21317 msgstr ""
21318
21319 #. type: textblock
21320 #: ../fish/guestfish.pod:1032
21321 msgid ""
21322 "The type briefly describes how the disk should be sized, partitioned, how "
21323 "filesystem(s) should be created, and how content should be added.  "
21324 "Optionally the type can be followed by extra parameters, separated by C<:> "
21325 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21326 "allocated disk, containing a single partition, with the partition formatted "
21327 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21328 "disk instead."
21329 msgstr ""
21330
21331 #. type: textblock
21332 #: ../fish/guestfish.pod:1040
21333 msgid "To list the available types and any extra parameters they take, run:"
21334 msgstr ""
21335
21336 #. type: textblock
21337 #: ../fish/guestfish.pod:1044
21338 msgid ""
21339 "Note that the prepared filesystem is not mounted.  You would usually have to "
21340 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21341 msgstr ""
21342
21343 #. type: textblock
21344 #: ../fish/guestfish.pod:1048
21345 msgid ""
21346 "If any I<-N> or I<--new> options are given, the guest is automatically "
21347 "launched."
21348 msgstr ""
21349
21350 #. type: textblock
21351 #: ../fish/guestfish.pod:1053
21352 msgid "Create a 100MB disk with an ext4-formatted partition:"
21353 msgstr ""
21354
21355 #. type: verbatim
21356 #: ../fish/guestfish.pod:1055
21357 #, no-wrap
21358 msgid ""
21359 " guestfish -N fs:ext4\n"
21360 "\n"
21361 msgstr ""
21362
21363 #. type: textblock
21364 #: ../fish/guestfish.pod:1057
21365 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21366 msgstr ""
21367
21368 #. type: verbatim
21369 #: ../fish/guestfish.pod:1059
21370 #, no-wrap
21371 msgid ""
21372 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21373 "\n"
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../fish/guestfish.pod:1061
21378 msgid "Create a blank 200MB disk:"
21379 msgstr ""
21380
21381 #. type: verbatim
21382 #: ../fish/guestfish.pod:1063
21383 #, no-wrap
21384 msgid ""
21385 " guestfish -N disk:200M\n"
21386 "\n"
21387 msgstr ""
21388
21389 #. type: =head1
21390 #: ../fish/guestfish.pod:1065
21391 msgid "PROGRESS BARS"
21392 msgstr ""
21393
21394 #. type: textblock
21395 #: ../fish/guestfish.pod:1067
21396 msgid ""
21397 "Some (not all) long-running commands send progress notification messages as "
21398 "they are running.  Guestfish turns these messages into progress bars."
21399 msgstr ""
21400
21401 #. type: textblock
21402 #: ../fish/guestfish.pod:1071
21403 msgid ""
21404 "When a command that supports progress bars takes longer than two seconds to "
21405 "run, and if progress bars are enabled, then you will see one appearing below "
21406 "the command:"
21407 msgstr ""
21408
21409 #. type: verbatim
21410 #: ../fish/guestfish.pod:1075
21411 #, no-wrap
21412 msgid ""
21413 " ><fs> copy-size /large-file /another-file 2048M\n"
21414 " / 10% [#####-----------------------------------------] 00:30\n"
21415 "\n"
21416 msgstr ""
21417
21418 #. type: textblock
21419 #: ../fish/guestfish.pod:1078
21420 msgid ""
21421 "The spinner on the left hand side moves round once for every progress "
21422 "notification received from the backend.  This is a (reasonably) golden "
21423 "assurance that the command is \"doing something\" even if the progress bar "
21424 "is not moving, because the command is able to send the progress "
21425 "notifications.  When the bar reaches 100% and the command finishes, the "
21426 "spinner disappears."
21427 msgstr ""
21428
21429 #. type: textblock
21430 #: ../fish/guestfish.pod:1085
21431 msgid ""
21432 "Progress bars are enabled by default when guestfish is used interactively.  "
21433 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21434 "and you can disable them completely using I<--no-progress-bars>."
21435 msgstr ""
21436
21437 #. type: =head1
21438 #: ../fish/guestfish.pod:1090
21439 msgid "GUESTFISH COMMANDS"
21440 msgstr ""
21441
21442 #. type: textblock
21443 #: ../fish/guestfish.pod:1092
21444 msgid ""
21445 "The commands in this section are guestfish convenience commands, in other "
21446 "words, they are not part of the L<guestfs(3)> API."
21447 msgstr ""
21448
21449 #. type: =head2
21450 #: ../fish/guestfish.pod:1095
21451 msgid "help"
21452 msgstr "help"
21453
21454 #. type: verbatim
21455 #: ../fish/guestfish.pod:1097
21456 #, no-wrap
21457 msgid ""
21458 " help\n"
21459 " help cmd\n"
21460 "\n"
21461 msgstr ""
21462 " help\n"
21463 " help команда\n"
21464 "\n"
21465
21466 #. type: textblock
21467 #: ../fish/guestfish.pod:1100
21468 msgid "Without any parameter, this provides general help."
21469 msgstr "Без параметра показує загальну довідкову інформацію."
21470
21471 #. type: textblock
21472 #: ../fish/guestfish.pod:1102
21473 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21474 msgstr ""
21475
21476 #. type: =head2
21477 #: ../fish/guestfish.pod:1104
21478 msgid "quit | exit"
21479 msgstr ""
21480
21481 #. type: textblock
21482 #: ../fish/guestfish.pod:1106
21483 msgid "This exits guestfish.  You can also use C<^D> key."
21484 msgstr ""
21485
21486 #. type: textblock
21487 #: ../fish/guestfish.pod:1108
21488 msgid "@FISH_COMMANDS@"
21489 msgstr ""
21490
21491 #. type: =head1
21492 #: ../fish/guestfish.pod:1110
21493 msgid "COMMANDS"
21494 msgstr "КОМАНДИ"
21495
21496 #. type: textblock
21497 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21498 msgid "@ACTIONS@"
21499 msgstr "@ACTIONS@"
21500
21501 #. type: textblock
21502 #: ../fish/guestfish.pod:1116
21503 msgid ""
21504 "guestfish returns 0 if the commands completed without error, or 1 if there "
21505 "was an error."
21506 msgstr ""
21507
21508 #. type: =item
21509 #: ../fish/guestfish.pod:1123
21510 msgid "EDITOR"
21511 msgstr "РЕДАКТОР"
21512
21513 #. type: textblock
21514 #: ../fish/guestfish.pod:1125
21515 msgid ""
21516 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21517 "C<vi>."
21518 msgstr ""
21519
21520 #. type: =item
21521 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21522 msgid "FEBOOTSTRAP_KERNEL"
21523 msgstr ""
21524
21525 #. type: =item
21526 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21527 msgid "FEBOOTSTRAP_MODULES"
21528 msgstr ""
21529
21530 #. type: textblock
21531 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21532 msgid ""
21533 "These two environment variables allow the kernel that libguestfs uses in the "
21534 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21535 "most recent host kernel is chosen.  For more information about kernel "
21536 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21537 "available in febootstrap E<ge> 3.8."
21538 msgstr ""
21539
21540 #. type: =item
21541 #: ../fish/guestfish.pod:1138
21542 msgid "GUESTFISH_DISPLAY_IMAGE"
21543 msgstr ""
21544
21545 #. type: textblock
21546 #: ../fish/guestfish.pod:1140
21547 msgid ""
21548 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21549 "If not set, it uses L<display(1)>."
21550 msgstr ""
21551
21552 #. type: =item
21553 #: ../fish/guestfish.pod:1143
21554 msgid "GUESTFISH_PID"
21555 msgstr ""
21556
21557 #. type: textblock
21558 #: ../fish/guestfish.pod:1145
21559 msgid ""
21560 "Used with the I<--remote> option to specify the remote guestfish process to "
21561 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21562 msgstr ""
21563
21564 #. type: =item
21565 #: ../fish/guestfish.pod:1149
21566 msgid "HEXEDITOR"
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fish/guestfish.pod:1151
21571 msgid ""
21572 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21573 "not specified, the external L<hexedit(1)> program is used."
21574 msgstr ""
21575
21576 #. type: =item
21577 #: ../fish/guestfish.pod:1155
21578 msgid "HOME"
21579 msgstr "ДОМІВКА"
21580
21581 #. type: textblock
21582 #: ../fish/guestfish.pod:1157
21583 msgid ""
21584 "If compiled with GNU readline support, various files in the home directory "
21585 "can be used.  See L</FILES>."
21586 msgstr ""
21587
21588 #. type: =item
21589 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21590 msgid "LIBGUESTFS_APPEND"
21591 msgstr ""
21592
21593 #. type: textblock
21594 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21595 msgid "Pass additional options to the guest kernel."
21596 msgstr ""
21597
21598 #. type: =item
21599 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21600 msgid "LIBGUESTFS_DEBUG"
21601 msgstr "LIBGUESTFS_DEBUG"
21602
21603 #. type: textblock
21604 #: ../fish/guestfish.pod:1166
21605 msgid ""
21606 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21607 "effect as using the B<-v> option."
21608 msgstr ""
21609
21610 #. type: =item
21611 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21612 msgid "LIBGUESTFS_MEMSIZE"
21613 msgstr "LIBGUESTFS_MEMSIZE"
21614
21615 #. type: textblock
21616 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21617 msgid ""
21618 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21619 msgstr ""
21620
21621 #. type: verbatim
21622 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21623 #, no-wrap
21624 msgid ""
21625 " LIBGUESTFS_MEMSIZE=700\n"
21626 "\n"
21627 msgstr ""
21628 " LIBGUESTFS_MEMSIZE=700\n"
21629 "\n"
21630
21631 #. type: =item
21632 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21633 msgid "LIBGUESTFS_PATH"
21634 msgstr ""
21635
21636 #. type: textblock
21637 #: ../fish/guestfish.pod:1178
21638 msgid ""
21639 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21640 "the discussion of paths in L<guestfs(3)>."
21641 msgstr ""
21642
21643 #. type: =item
21644 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21645 msgid "LIBGUESTFS_QEMU"
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21650 msgid ""
21651 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21652 "which was found at compile time by the configure script is used."
21653 msgstr ""
21654
21655 #. type: =item
21656 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21657 msgid "LIBGUESTFS_TRACE"
21658 msgstr ""
21659
21660 #. type: textblock
21661 #: ../fish/guestfish.pod:1189
21662 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21663 msgstr ""
21664
21665 #. type: =item
21666 #: ../fish/guestfish.pod:1191
21667 msgid "PAGER"
21668 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21669
21670 #. type: textblock
21671 #: ../fish/guestfish.pod:1193
21672 msgid ""
21673 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21674 "C<more>."
21675 msgstr ""
21676
21677 #. type: =item
21678 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21679 #: ../src/guestfs.pod:3257
21680 msgid "TMPDIR"
21681 msgstr ""
21682
21683 #. type: textblock
21684 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21685 msgid ""
21686 "Location of temporary directory, defaults to C</tmp> except for the cached "
21687 "supermin appliance which defaults to C</var/tmp>."
21688 msgstr ""
21689
21690 #. type: textblock
21691 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21692 msgid ""
21693 "If libguestfs was compiled to use the supermin appliance then the real "
21694 "appliance is cached in this directory, shared between all handles belonging "
21695 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21696 "use in case C</var/tmp> is not large enough."
21697 msgstr ""
21698
21699 #. type: =head1
21700 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21701 #: ../rescue/virt-rescue.pod:310
21702 msgid "FILES"
21703 msgstr "ФАЙЛИ"
21704
21705 #. type: =item
21706 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21707 #: ../rescue/virt-rescue.pod:314
21708 msgid "$HOME/.libguestfs-tools.rc"
21709 msgstr ""
21710
21711 #. type: =item
21712 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21713 #: ../rescue/virt-rescue.pod:316
21714 msgid "/etc/libguestfs-tools.conf"
21715 msgstr ""
21716
21717 #. type: textblock
21718 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21719 #: ../rescue/virt-rescue.pod:318
21720 msgid ""
21721 "This configuration file controls the default read-only or read-write mode "
21722 "(I<--ro> or I<--rw>)."
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fish/guestfish.pod:1220
21727 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21728 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21729
21730 #. type: =item
21731 #: ../fish/guestfish.pod:1222
21732 msgid "$HOME/.guestfish"
21733 msgstr ""
21734
21735 #. type: textblock
21736 #: ../fish/guestfish.pod:1224
21737 msgid ""
21738 "If compiled with GNU readline support, then the command history is saved in "
21739 "this file."
21740 msgstr ""
21741
21742 #. type: =item
21743 #: ../fish/guestfish.pod:1227
21744 msgid "$HOME/.inputrc"
21745 msgstr ""
21746
21747 #. type: =item
21748 #: ../fish/guestfish.pod:1229
21749 msgid "/etc/inputrc"
21750 msgstr ""
21751
21752 #. type: textblock
21753 #: ../fish/guestfish.pod:1231
21754 msgid ""
21755 "If compiled with GNU readline support, then these files can be used to "
21756 "configure readline.  For further information, please see L<readline(3)/"
21757 "INITIALIZATION FILE>."
21758 msgstr ""
21759
21760 #. type: textblock
21761 #: ../fish/guestfish.pod:1235
21762 msgid "To write rules which only apply to guestfish, use:"
21763 msgstr ""
21764
21765 #. type: verbatim
21766 #: ../fish/guestfish.pod:1237
21767 #, no-wrap
21768 msgid ""
21769 " $if guestfish\n"
21770 " ...\n"
21771 " $endif\n"
21772 "\n"
21773 msgstr ""
21774
21775 #. type: textblock
21776 #: ../fish/guestfish.pod:1241
21777 msgid ""
21778 "Variables that you can set in inputrc that change the behaviour of guestfish "
21779 "in useful ways include:"
21780 msgstr ""
21781
21782 #. type: =item
21783 #: ../fish/guestfish.pod:1246
21784 msgid "completion-ignore-case (default: on)"
21785 msgstr ""
21786
21787 #. type: textblock
21788 #: ../fish/guestfish.pod:1248
21789 msgid ""
21790 "By default, guestfish will ignore case when tab-completing paths on the "
21791 "disk.  Use:"
21792 msgstr ""
21793
21794 #. type: verbatim
21795 #: ../fish/guestfish.pod:1251
21796 #, no-wrap
21797 msgid ""
21798 " set completion-ignore-case off\n"
21799 "\n"
21800 msgstr ""
21801
21802 #. type: textblock
21803 #: ../fish/guestfish.pod:1253
21804 msgid "to make guestfish case sensitive."
21805 msgstr ""
21806
21807 #. type: =item
21808 #: ../fish/guestfish.pod:1257
21809 msgid "test1.img"
21810 msgstr ""
21811
21812 #. type: =item
21813 #: ../fish/guestfish.pod:1259
21814 msgid "test2.img (etc)"
21815 msgstr ""
21816
21817 #. type: textblock
21818 #: ../fish/guestfish.pod:1261
21819 msgid ""
21820 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21821 "will be created in the file C<test1.img> in the current directory.  The "
21822 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21823 "the same name will be overwritten."
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../fish/guestfish.pod:1270
21828 msgid ""
21829 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21830 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21831 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21832 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21833 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21834 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21835 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21836 msgstr ""
21837
21838 #. type: textblock
21839 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21840 #: ../test-tool/libguestfs-test-tool.pod:112
21841 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21842 msgstr ""
21843
21844 #. type: textblock
21845 #: ../fish/virt-copy-in.pod:5
21846 msgid ""
21847 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21848 msgstr ""
21849
21850 #. type: verbatim
21851 #: ../fish/virt-copy-in.pod:9
21852 #, no-wrap
21853 msgid ""
21854 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21855 "\n"
21856 msgstr ""
21857
21858 #. type: verbatim
21859 #: ../fish/virt-copy-in.pod:11
21860 #, no-wrap
21861 msgid ""
21862 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21863 "\n"
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../fish/virt-copy-in.pod:15
21868 msgid ""
21869 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21870 "causing disk corruption.  The virtual machine must be shut down before you "
21871 "use this command."
21872 msgstr ""
21873
21874 #. type: textblock
21875 #: ../fish/virt-copy-in.pod:21
21876 msgid ""
21877 "C<virt-copy-in> copies files and directories from the local disk into a "
21878 "virtual machine disk image or named libvirt domain."
21879 msgstr ""
21880
21881 #. type: textblock
21882 #: ../fish/virt-copy-in.pod:24
21883 msgid ""
21884 "You can give one of more filenames and directories on the command line.  "
21885 "Directories are copied in recursively.  The final parameter must be the "
21886 "destination directory in the disk image which must be an absolute path "
21887 "starting with a C</> character."
21888 msgstr ""
21889
21890 #. type: verbatim
21891 #: ../fish/virt-copy-in.pod:33
21892 #, no-wrap
21893 msgid ""
21894 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21895 "\n"
21896 msgstr ""
21897
21898 #. type: textblock
21899 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21900 msgid "Upload a home directory to a guest:"
21901 msgstr ""
21902
21903 #. type: verbatim
21904 #: ../fish/virt-copy-in.pod:37
21905 #, no-wrap
21906 msgid ""
21907 " virt-copy-in -d MyGuest skel /home\n"
21908 "\n"
21909 msgstr ""
21910
21911 #. type: =head1
21912 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21913 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21914 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../fish/virt-copy-in.pod:41
21919 msgid ""
21920 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21921 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21922 "are probably better off using guestfish directly."
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21927 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21928 msgid ""
21929 "Since the shell script just passes options straight to guestfish, read "
21930 "L<guestfish(1)> to see the full list of options."
21931 msgstr ""
21932
21933 #. type: textblock
21934 #: ../fish/virt-copy-in.pod:52
21935 msgid ""
21936 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21937 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21938 msgstr ""
21939
21940 #. type: textblock
21941 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21942 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21943 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21944 msgstr ""
21945
21946 #. type: textblock
21947 #: ../fish/virt-copy-out.pod:5
21948 msgid ""
21949 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21950 "image."
21951 msgstr ""
21952
21953 #. type: verbatim
21954 #: ../fish/virt-copy-out.pod:9
21955 #, no-wrap
21956 msgid ""
21957 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21958 "\n"
21959 msgstr ""
21960
21961 #. type: verbatim
21962 #: ../fish/virt-copy-out.pod:11
21963 #, no-wrap
21964 msgid ""
21965 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21966 "\n"
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../fish/virt-copy-out.pod:15
21971 msgid ""
21972 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21973 "image or named libvirt domain."
21974 msgstr ""
21975
21976 #. type: textblock
21977 #: ../fish/virt-copy-out.pod:18
21978 msgid ""
21979 "You can give one of more filenames and directories on the command line.  "
21980 "Directories are copied out recursively."
21981 msgstr ""
21982
21983 #. type: textblock
21984 #: ../fish/virt-copy-out.pod:23
21985 msgid "Download the home directories from a virtual machine:"
21986 msgstr ""
21987
21988 #. type: verbatim
21989 #: ../fish/virt-copy-out.pod:25
21990 #, no-wrap
21991 msgid ""
21992 " mkdir homes\n"
21993 " virt-copy-out -d MyGuest /home homes\n"
21994 "\n"
21995 msgstr ""
21996
21997 #. type: textblock
21998 #: ../fish/virt-copy-out.pod:30
21999 msgid ""
22000 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22001 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22002 "are probably better off using guestfish directly."
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../fish/virt-copy-out.pod:41
22007 msgid ""
22008 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22009 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22010 msgstr ""
22011
22012 #. type: textblock
22013 #: ../fish/virt-tar-in.pod:5
22014 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22015 msgstr ""
22016
22017 #. type: verbatim
22018 #: ../fish/virt-tar-in.pod:9
22019 #, no-wrap
22020 msgid ""
22021 " virt-tar-in -a disk.img data.tar /destination\n"
22022 "\n"
22023 msgstr ""
22024
22025 #. type: verbatim
22026 #: ../fish/virt-tar-in.pod:11
22027 #, no-wrap
22028 msgid ""
22029 " virt-tar-in -d domain data.tar /destination\n"
22030 "\n"
22031 msgstr ""
22032
22033 #. type: verbatim
22034 #: ../fish/virt-tar-in.pod:13
22035 #, no-wrap
22036 msgid ""
22037 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22038 "\n"
22039 msgstr ""
22040
22041 #. type: textblock
22042 #: ../fish/virt-tar-in.pod:17
22043 msgid ""
22044 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22045 "causing disk corruption.  The virtual machine must be shut down before you "
22046 "use this command."
22047 msgstr ""
22048
22049 #. type: textblock
22050 #: ../fish/virt-tar-in.pod:23
22051 msgid ""
22052 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22053 "image or named libvirt domain."
22054 msgstr ""
22055
22056 #. type: textblock
22057 #: ../fish/virt-tar-in.pod:26
22058 msgid ""
22059 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22060 "standard input.  The second parameter is the absolute target directory to "
22061 "unpack into."
22062 msgstr ""
22063
22064 #. type: verbatim
22065 #: ../fish/virt-tar-in.pod:34
22066 #, no-wrap
22067 msgid ""
22068 " virt-tar-in -d MyGuest homes.tar /home\n"
22069 "\n"
22070 msgstr ""
22071
22072 #. type: textblock
22073 #: ../fish/virt-tar-in.pod:38
22074 msgid ""
22075 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22076 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22077 "probably better off using guestfish directly."
22078 msgstr ""
22079
22080 #. type: textblock
22081 #: ../fish/virt-tar-in.pod:49
22082 msgid ""
22083 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22084 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22085 "org/>."
22086 msgstr ""
22087
22088 #. type: textblock
22089 #: ../fish/virt-tar-out.pod:5
22090 msgid ""
22091 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22092 msgstr ""
22093
22094 #. type: verbatim
22095 #: ../fish/virt-tar-out.pod:9
22096 #, no-wrap
22097 msgid ""
22098 " virt-tar-out -a disk.img /dir files.tar\n"
22099 "\n"
22100 msgstr ""
22101
22102 #. type: verbatim
22103 #: ../fish/virt-tar-out.pod:11
22104 #, no-wrap
22105 msgid ""
22106 " virt-tar-out -d domain /dir files.tar\n"
22107 "\n"
22108 msgstr ""
22109
22110 #. type: verbatim
22111 #: ../fish/virt-tar-out.pod:13
22112 #, no-wrap
22113 msgid ""
22114 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22115 "\n"
22116 msgstr ""
22117
22118 #. type: textblock
22119 #: ../fish/virt-tar-out.pod:17
22120 msgid ""
22121 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22122 msgstr ""
22123
22124 #. type: textblock
22125 #: ../fish/virt-tar-out.pod:20
22126 msgid ""
22127 "The first parameter is the absolute path of the virtual machine directory.  "
22128 "The second parameter is the tar file to write.  Use C<-> to write to "
22129 "standard output."
22130 msgstr ""
22131
22132 #. type: textblock
22133 #: ../fish/virt-tar-out.pod:26
22134 msgid "Download the home directories from a guest:"
22135 msgstr ""
22136
22137 #. type: verbatim
22138 #: ../fish/virt-tar-out.pod:28
22139 #, no-wrap
22140 msgid ""
22141 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22142 "\n"
22143 msgstr ""
22144
22145 #. type: textblock
22146 #: ../fish/virt-tar-out.pod:32
22147 msgid ""
22148 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22149 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
22150 "are probably better off using guestfish directly."
22151 msgstr ""
22152
22153 #. type: textblock
22154 #: ../fish/virt-tar-out.pod:43
22155 msgid ""
22156 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22157 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22158 msgstr ""
22159
22160 #. type: textblock
22161 #: ../fuse/guestmount.pod:5
22162 msgid ""
22163 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22164 msgstr ""
22165
22166 #. type: verbatim
22167 #: ../fuse/guestmount.pod:9
22168 #, no-wrap
22169 msgid ""
22170 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22171 "\n"
22172 msgstr ""
22173
22174 #. type: verbatim
22175 #: ../fuse/guestmount.pod:11
22176 #, no-wrap
22177 msgid ""
22178 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22179 "\n"
22180 msgstr ""
22181
22182 #. type: verbatim
22183 #: ../fuse/guestmount.pod:13
22184 #, no-wrap
22185 msgid ""
22186 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22187 "\n"
22188 msgstr ""
22189
22190 #. type: textblock
22191 #: ../fuse/guestmount.pod:17
22192 msgid ""
22193 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22194 "machines.  If you do this, you risk disk corruption in the VM."
22195 msgstr ""
22196
22197 #. type: textblock
22198 #: ../fuse/guestmount.pod:22
22199 msgid ""
22200 "The guestmount program can be used to mount virtual machine filesystems and "
22201 "other disk images on the host.  It uses libguestfs for access to the guest "
22202 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22203 "a mountable device."
22204 msgstr ""
22205
22206 #. type: textblock
22207 #: ../fuse/guestmount.pod:27
22208 msgid ""
22209 "Along with other options, you have to give at least one device (I<-a> "
22210 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22211 "option) or use the I<-i> inspection option or the I<--live> option.  How "
22212 "this works is better explained in the L<guestfish(1)> manual page, or by "
22213 "looking at the examples below."
22214 msgstr ""
22215
22216 #. type: textblock
22217 #: ../fuse/guestmount.pod:33
22218 msgid ""
22219 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22220 "by you, and the filesystem will not be visible to any other users unless you "
22221 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22222 "the filesystem, use the C<fusermount -u> command."
22223 msgstr ""
22224
22225 #. type: textblock
22226 #: ../fuse/guestmount.pod:41
22227 msgid ""
22228 "For a typical Windows guest which has its main filesystem on the first "
22229 "partition:"
22230 msgstr ""
22231
22232 #. type: verbatim
22233 #: ../fuse/guestmount.pod:44
22234 #, no-wrap
22235 msgid ""
22236 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22237 "\n"
22238 msgstr ""
22239
22240 #. type: textblock
22241 #: ../fuse/guestmount.pod:46
22242 msgid ""
22243 "For a typical Linux guest which has a /boot filesystem on the first "
22244 "partition, and the root filesystem on a logical volume:"
22245 msgstr ""
22246
22247 #. type: verbatim
22248 #: ../fuse/guestmount.pod:49
22249 #, no-wrap
22250 msgid ""
22251 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22252 "\n"
22253 msgstr ""
22254
22255 #. type: textblock
22256 #: ../fuse/guestmount.pod:51
22257 msgid "To get libguestfs to detect guest mountpoints for you:"
22258 msgstr ""
22259
22260 #. type: verbatim
22261 #: ../fuse/guestmount.pod:53
22262 #, no-wrap
22263 msgid ""
22264 " guestmount -a guest.img -i --ro /mnt\n"
22265 "\n"
22266 msgstr ""
22267
22268 #. type: textblock
22269 #: ../fuse/guestmount.pod:55
22270 msgid "For a libvirt guest called \"Guest\" you could do:"
22271 msgstr ""
22272
22273 #. type: verbatim
22274 #: ../fuse/guestmount.pod:57
22275 #, no-wrap
22276 msgid ""
22277 " guestmount -d Guest -i --ro /mnt\n"
22278 "\n"
22279 msgstr ""
22280
22281 #. type: textblock
22282 #: ../fuse/guestmount.pod:59
22283 msgid ""
22284 "If you don't know what filesystems are contained in a guest or disk image, "
22285 "use L<virt-filesystems(1)> first:"
22286 msgstr ""
22287
22288 #. type: verbatim
22289 #: ../fuse/guestmount.pod:62
22290 #, no-wrap
22291 msgid ""
22292 " virt-filesystems MyGuest\n"
22293 "\n"
22294 msgstr ""
22295
22296 #. type: textblock
22297 #: ../fuse/guestmount.pod:64
22298 msgid ""
22299 "If you want to trace the libguestfs calls but without excessive debugging "
22300 "information, we recommend:"
22301 msgstr ""
22302
22303 #. type: verbatim
22304 #: ../fuse/guestmount.pod:67
22305 #, no-wrap
22306 msgid ""
22307 " guestmount [...] --trace /mnt\n"
22308 "\n"
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../fuse/guestmount.pod:69
22313 msgid "If you want to debug the program, we recommend:"
22314 msgstr ""
22315
22316 #. type: verbatim
22317 #: ../fuse/guestmount.pod:71
22318 #, no-wrap
22319 msgid ""
22320 " guestmount [...] --trace --verbose /mnt\n"
22321 "\n"
22322 msgstr ""
22323
22324 #. type: =head1
22325 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
22326 #: ../resize/virt-resize.pod:621
22327 msgid "NOTES"
22328 msgstr "ПРИМІТКИ"
22329
22330 #. type: =head2
22331 #: ../fuse/guestmount.pod:75
22332 msgid "Other users cannot see the filesystem by default"
22333 msgstr ""
22334
22335 #. type: textblock
22336 #: ../fuse/guestmount.pod:77
22337 msgid ""
22338 "If you mount a filesystem as one user (eg. root), then other users will not "
22339 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22340 "option when mounting:"
22341 msgstr ""
22342
22343 #. type: verbatim
22344 #: ../fuse/guestmount.pod:81
22345 #, no-wrap
22346 msgid ""
22347 " sudo guestmount [...] -o allow_other /mnt\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: =head2
22352 #: ../fuse/guestmount.pod:83
22353 msgid "Enabling FUSE"
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../fuse/guestmount.pod:85
22358 msgid ""
22359 "On some distros, you may need to add yourself to a special group (eg. "
22360 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22361 "Debian and derivatives."
22362 msgstr ""
22363
22364 #. type: textblock
22365 #: ../fuse/guestmount.pod:89
22366 msgid ""
22367 "On other distros, no special group is required.  It is not necessary on "
22368 "Fedora or Red Hat Enterprise Linux."
22369 msgstr ""
22370
22371 #. type: textblock
22372 #: ../fuse/guestmount.pod:100
22373 msgid "Add a block device or virtual machine image."
22374 msgstr ""
22375
22376 #. type: =item
22377 #: ../fuse/guestmount.pod:123
22378 msgid "B<--dir-cache-timeout N>"
22379 msgstr "B<--dir-cache-timeout N>"
22380
22381 #. type: textblock
22382 #: ../fuse/guestmount.pod:125
22383 msgid ""
22384 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22385 "seconds.  The readdir cache [actually, there are several semi-independent "
22386 "caches] is populated after a readdir(2) call with the stat and extended "
22387 "attributes of the files in the directory, in anticipation that they will be "
22388 "requested soon after."
22389 msgstr ""
22390
22391 #. type: textblock
22392 #: ../fuse/guestmount.pod:131
22393 msgid ""
22394 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22395 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22396 "requests, only cache existing ones."
22397 msgstr ""
22398
22399 #. type: textblock
22400 #: ../fuse/guestmount.pod:151
22401 msgid ""
22402 "If you have untrusted raw-format guest disk images, you should use this "
22403 "option to specify the disk format.  This avoids a possible security problem "
22404 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22405 "guestfs_add_drive_opts>."
22406 msgstr ""
22407
22408 #. type: =item
22409 #: ../fuse/guestmount.pod:156
22410 msgid "B<--fuse-help>"
22411 msgstr "B<--fuse-help>"
22412
22413 #. type: textblock
22414 #: ../fuse/guestmount.pod:158
22415 msgid "Display help on special FUSE options (see I<-o> below)."
22416 msgstr ""
22417
22418 #. type: textblock
22419 #: ../fuse/guestmount.pod:162
22420 msgid "Display brief help and exit."
22421 msgstr ""
22422
22423 #. type: textblock
22424 #: ../fuse/guestmount.pod:186
22425 msgid ""
22426 "Mount the named partition or logical volume on the given mountpoint B<in the "
22427 "guest> (this has nothing to do with mountpoints in the host)."
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../fuse/guestmount.pod:189
22432 msgid ""
22433 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22434 "something on C</>."
22435 msgstr ""
22436
22437 #. type: textblock
22438 #: ../fuse/guestmount.pod:206
22439 msgid ""
22440 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22441 "unmounted.  If you specify this option, then we don't attempt to sync the "
22442 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22443 msgstr ""
22444
22445 #. type: =item
22446 #: ../fuse/guestmount.pod:211
22447 msgid "B<-o option>"
22448 msgstr "B<-o параметр>"
22449
22450 #. type: =item
22451 #: ../fuse/guestmount.pod:213
22452 msgid "B<--option option>"
22453 msgstr "B<--option параметр>"
22454
22455 #. type: textblock
22456 #: ../fuse/guestmount.pod:215
22457 msgid "Pass extra options to FUSE."
22458 msgstr ""
22459
22460 #. type: textblock
22461 #: ../fuse/guestmount.pod:217
22462 msgid ""
22463 "To get a list of all the extra options supported by FUSE, use the command "
22464 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22465 "of them are a good idea."
22466 msgstr ""
22467
22468 #. type: verbatim
22469 #: ../fuse/guestmount.pod:221
22470 #, no-wrap
22471 msgid ""
22472 " guestmount --fuse-help\n"
22473 "\n"
22474 msgstr ""
22475
22476 #. type: textblock
22477 #: ../fuse/guestmount.pod:223
22478 msgid "Some potentially useful FUSE options:"
22479 msgstr ""
22480
22481 #. type: =item
22482 #: ../fuse/guestmount.pod:227
22483 msgid "B<-o allow_other>"
22484 msgstr ""
22485
22486 #. type: textblock
22487 #: ../fuse/guestmount.pod:229
22488 msgid "Allow other users to see the filesystem."
22489 msgstr ""
22490
22491 #. type: =item
22492 #: ../fuse/guestmount.pod:231
22493 msgid "B<-o attr_timeout=N>"
22494 msgstr "B<-o attr_timeout=N>"
22495
22496 #. type: textblock
22497 #: ../fuse/guestmount.pod:233
22498 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22499 msgstr ""
22500
22501 #. type: =item
22502 #: ../fuse/guestmount.pod:235
22503 msgid "B<-o kernel_cache>"
22504 msgstr ""
22505
22506 #. type: textblock
22507 #: ../fuse/guestmount.pod:237
22508 msgid ""
22509 "Allow the kernel to cache files (reduces the number of reads that have to go "
22510 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22511 "afford the extra memory usage."
22512 msgstr ""
22513
22514 #. type: =item
22515 #: ../fuse/guestmount.pod:241
22516 msgid "B<-o uid=N> B<-o gid=N>"
22517 msgstr "B<-o uid=N> B<-o gid=N>"
22518
22519 #. type: textblock
22520 #: ../fuse/guestmount.pod:243
22521 msgid ""
22522 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22523 "the chosen values."
22524 msgstr ""
22525
22526 #. type: textblock
22527 #: ../fuse/guestmount.pod:252
22528 msgid ""
22529 "Add devices and mount everything read-only.  Also disallow writes and make "
22530 "the disk appear read-only to FUSE."
22531 msgstr ""
22532
22533 #. type: textblock
22534 #: ../fuse/guestmount.pod:255
22535 msgid ""
22536 "This is highly recommended if you are not going to edit the guest disk.  If "
22537 "the guest is running and this option is I<not> supplied, then there is a "
22538 "strong risk of disk corruption in the guest.  We try to prevent this from "
22539 "happening, but it is not always possible."
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22544 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22545 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22546
22547 #. type: textblock
22548 #: ../fuse/guestmount.pod:264
22549 msgid "Enable SELinux support for the guest."
22550 msgstr ""
22551
22552 #. type: textblock
22553 #: ../fuse/guestmount.pod:270
22554 msgid "Enable verbose messages from underlying libguestfs."
22555 msgstr ""
22556
22557 #. type: textblock
22558 #: ../fuse/guestmount.pod:276
22559 msgid "Display the program version and exit."
22560 msgstr ""
22561
22562 #. type: textblock
22563 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22564 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22565 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22566 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22567
22568 #. type: =item
22569 #: ../fuse/guestmount.pod:289
22570 msgid "B<--trace>"
22571 msgstr "B<--trace>"
22572
22573 #. type: textblock
22574 #: ../fuse/guestmount.pod:291
22575 msgid "Trace libguestfs calls and entry into each FUSE function."
22576 msgstr ""
22577
22578 #. type: textblock
22579 #: ../fuse/guestmount.pod:293
22580 msgid "This also stops the daemon from forking into the background."
22581 msgstr ""
22582
22583 #. type: textblock
22584 #: ../fuse/guestmount.pod:319
22585 msgid ""
22586 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22587 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22588 "net/>."
22589 msgstr ""
22590 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22591 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22592 "net/>."
22593
22594 #. type: textblock
22595 #: ../fuse/guestmount.pod:334
22596 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../inspector/virt-inspector.pod:5
22601 msgid ""
22602 "virt-inspector - Display operating system version and other information "
22603 "about a virtual machine"
22604 msgstr ""
22605
22606 #. type: verbatim
22607 #: ../inspector/virt-inspector.pod:9
22608 #, no-wrap
22609 msgid ""
22610 " virt-inspector [--options] -d domname\n"
22611 "\n"
22612 msgstr ""
22613
22614 #. type: verbatim
22615 #: ../inspector/virt-inspector.pod:11
22616 #, no-wrap
22617 msgid ""
22618 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22619 "\n"
22620 msgstr ""
22621
22622 #. type: verbatim
22623 #: ../inspector/virt-inspector.pod:15
22624 #, no-wrap
22625 msgid ""
22626 " virt-inspector domname\n"
22627 "\n"
22628 msgstr ""
22629
22630 #. type: verbatim
22631 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22632 #, no-wrap
22633 msgid ""
22634 " virt-inspector disk.img [disk.img ...]\n"
22635 "\n"
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../inspector/virt-inspector.pod:21
22640 msgid ""
22641 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22642 "determine the version of the operating system and other information about "
22643 "the virtual machine."
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../inspector/virt-inspector.pod:25
22648 msgid "Virt-inspector produces XML output for feeding into other programs."
22649 msgstr ""
22650
22651 #. type: textblock
22652 #: ../inspector/virt-inspector.pod:27
22653 msgid ""
22654 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22655 "the libvirt domain (see: C<virsh list --all>)."
22656 msgstr ""
22657
22658 #. type: textblock
22659 #: ../inspector/virt-inspector.pod:30
22660 msgid ""
22661 "You can also run virt-inspector directly on disk images from a single "
22662 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22663 "has several block devices, in which case you should list several I<-a> "
22664 "options one after another, with the first corresponding to the guest's C</"
22665 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22666 msgstr ""
22667
22668 #. type: textblock
22669 #: ../inspector/virt-inspector.pod:37
22670 msgid ""
22671 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22672 "keys and similar."
22673 msgstr ""
22674
22675 #. type: textblock
22676 #: ../inspector/virt-inspector.pod:40
22677 msgid ""
22678 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22679 "inspect several virtual machines, you have to run virt-inspector several "
22680 "times (for example, from a shell script for-loop)."
22681 msgstr ""
22682
22683 #. type: textblock
22684 #: ../inspector/virt-inspector.pod:45
22685 msgid ""
22686 "Because virt-inspector needs direct access to guest images, it won't "
22687 "normally work over remote libvirt connections."
22688 msgstr ""
22689
22690 #. type: textblock
22691 #: ../inspector/virt-inspector.pod:48
22692 msgid ""
22693 "All of the information available from virt-inspector is also available "
22694 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22695 "The same information can also be fetched using guestfish or via libguestfs "
22696 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22697 "WITH OTHER PROGRAMMING LANGUAGES>)."
22698 msgstr ""
22699
22700 #. type: textblock
22701 #: ../inspector/virt-inspector.pod:81
22702 msgid ""
22703 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22704 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22705 "at all."
22706 msgstr ""
22707
22708 #. type: textblock
22709 #: ../inspector/virt-inspector.pod:94
22710 msgid ""
22711 "When prompting for keys and passphrases, virt-inspector normally turns "
22712 "echoing off so you cannot see what you are typing.  If you are not worried "
22713 "about Tempest attacks and there is no one else in the room you can specify "
22714 "this flag to see what you are typing."
22715 msgstr ""
22716
22717 #. type: textblock
22718 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22719 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22720 #: ../tools/virt-win-reg.pl:144
22721 msgid ""
22722 "Specify the format of disk images given on the command line.  If this is "
22723 "omitted then the format is autodetected from the content of the disk image."
22724 msgstr ""
22725
22726 #. type: textblock
22727 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22728 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22729 #: ../tools/virt-win-reg.pl:148
22730 msgid ""
22731 "If disk images are requested from libvirt, then this program asks libvirt "
22732 "for this information.  In this case, the value of the format parameter is "
22733 "ignored."
22734 msgstr ""
22735
22736 #. type: textblock
22737 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22738 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22739 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22740 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22741 msgid ""
22742 "If working with untrusted raw-format guest disk images, you should ensure "
22743 "the format is always specified."
22744 msgstr ""
22745
22746 #. type: =item
22747 #: ../inspector/virt-inspector.pod:135
22748 #, fuzzy
22749 #| msgid "B<--parts>"
22750 msgid "B<--xpath> query"
22751 msgstr "B<--parts>"
22752
22753 #. type: textblock
22754 #: ../inspector/virt-inspector.pod:137
22755 msgid ""
22756 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22757 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22758 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22759 msgstr ""
22760
22761 #. type: textblock
22762 #: ../inspector/virt-inspector.pod:146
22763 msgid "Previous versions of virt-inspector allowed you to write either:"
22764 msgstr ""
22765
22766 #. type: verbatim
22767 #: ../inspector/virt-inspector.pod:152
22768 #, no-wrap
22769 msgid ""
22770 " virt-inspector guestname\n"
22771 "\n"
22772 msgstr ""
22773
22774 #. type: =head1
22775 #: ../inspector/virt-inspector.pod:160
22776 msgid "XML FORMAT"
22777 msgstr ""
22778
22779 #. type: textblock
22780 #: ../inspector/virt-inspector.pod:162
22781 msgid ""
22782 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22783 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22784 "just an overview."
22785 msgstr ""
22786
22787 #. type: textblock
22788 #: ../inspector/virt-inspector.pod:166
22789 msgid ""
22790 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22791 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22792 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22793 "which is vanishingly rare in real world VMs."
22794 msgstr ""
22795
22796 #. type: =head2
22797 #: ../inspector/virt-inspector.pod:171
22798 msgid "E<lt>operatingsystemE<gt>"
22799 msgstr ""
22800
22801 #. type: textblock
22802 #: ../inspector/virt-inspector.pod:173
22803 msgid ""
22804 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22805 "describe the operating system, its architecture, the descriptive \"product "
22806 "name\" string, the type of OS and so on, as in this example:"
22807 msgstr ""
22808
22809 #. type: verbatim
22810 #: ../inspector/virt-inspector.pod:177
22811 #, no-wrap
22812 msgid ""
22813 " <operatingsystems>\n"
22814 "   <operatingsystem>\n"
22815 "     <root>/dev/sda2</root>\n"
22816 "     <name>windows</name>\n"
22817 "     <arch>i386</arch>\n"
22818 "     <distro>windows</distro>\n"
22819 "     <product_name>Windows 7 Enterprise</product_name>\n"
22820 "     <product_variant>Client</product_variant>\n"
22821 "     <major_version>6</major_version>\n"
22822 "     <minor_version>1</minor_version>\n"
22823 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22824 "     <format>installed</format>\n"
22825 "\n"
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../inspector/virt-inspector.pod:190
22830 msgid ""
22831 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22832 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22833 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22834 "architecture.  The other fields are fairly self-explanatory, but because "
22835 "these fields are taken directly from the libguestfs inspection API you can "
22836 "find precise information from L<guestfs(3)/INSPECTION>."
22837 msgstr ""
22838
22839 #. type: textblock
22840 #: ../inspector/virt-inspector.pod:198
22841 msgid ""
22842 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22843 "of view of libguestfs (block devices may have completely different names "
22844 "inside the VM itself)."
22845 msgstr ""
22846
22847 #. type: =head2
22848 #: ../inspector/virt-inspector.pod:202
22849 msgid "E<lt>mountpointsE<gt>"
22850 msgstr ""
22851
22852 #. type: textblock
22853 #: ../inspector/virt-inspector.pod:204
22854 msgid ""
22855 "Un*x-like guests typically have multiple filesystems which are mounted at "
22856 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22857 "element which looks like this:"
22858 msgstr ""
22859
22860 #. type: verbatim
22861 #: ../inspector/virt-inspector.pod:208
22862 #, no-wrap
22863 msgid ""
22864 " <operatingsystems>\n"
22865 "   <operatingsystem>\n"
22866 "     ...\n"
22867 "     <mountpoints>\n"
22868 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22869 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22870 "     </mountpoints>\n"
22871 "\n"
22872 msgstr ""
22873
22874 #. type: textblock
22875 #: ../inspector/virt-inspector.pod:216
22876 msgid ""
22877 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22878 "and may have completely different names inside the guest.  Only mountable "
22879 "filesystems appear in this list, not things like swap devices."
22880 msgstr ""
22881
22882 #. type: =head2
22883 #: ../inspector/virt-inspector.pod:221
22884 msgid "E<lt>filesystemsE<gt>"
22885 msgstr ""
22886
22887 #. type: textblock
22888 #: ../inspector/virt-inspector.pod:223
22889 msgid ""
22890 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22891 "filesystems belonging to the guest, including swap and empty partitions.  "
22892 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22893 "this OS or shared with this OS and other OSes)."
22894 msgstr ""
22895
22896 #. type: textblock
22897 #: ../inspector/virt-inspector.pod:229
22898 msgid "You might see something like this:"
22899 msgstr ""
22900
22901 #. type: verbatim
22902 #: ../inspector/virt-inspector.pod:231
22903 #, no-wrap
22904 msgid ""
22905 " <operatingsystems>\n"
22906 "   <operatingsystem>\n"
22907 "     ...\n"
22908 "     <filesystems>\n"
22909 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22910 "         <type>ext4</type>\n"
22911 "         <label>Fedora-13-x86_64</label>\n"
22912 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22913 "       </filesystem>\n"
22914 "\n"
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../inspector/virt-inspector.pod:241
22919 msgid ""
22920 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22921 "the label, and the UUID."
22922 msgstr ""
22923
22924 #. type: =head2
22925 #: ../inspector/virt-inspector.pod:244
22926 msgid "E<lt>applicationsE<gt>"
22927 msgstr ""
22928
22929 #. type: textblock
22930 #: ../inspector/virt-inspector.pod:246
22931 msgid ""
22932 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22933 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22934 "machine."
22935 msgstr ""
22936
22937 #. type: textblock
22938 #: ../inspector/virt-inspector.pod:250
22939 msgid ""
22940 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22941 "Typical values would be C<rpm> and C<deb>."
22942 msgstr ""
22943
22944 #. type: textblock
22945 #: ../inspector/virt-inspector.pod:253
22946 msgid ""
22947 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22948 "Typical values include C<yum>, C<up2date> and C<apt>"
22949 msgstr ""
22950
22951 #. type: textblock
22952 #: ../inspector/virt-inspector.pod:256
22953 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22954 msgstr ""
22955
22956 #. type: verbatim
22957 #: ../inspector/virt-inspector.pod:259
22958 #, no-wrap
22959 msgid ""
22960 " <operatingsystems>\n"
22961 "   <operatingsystem>\n"
22962 "     ...\n"
22963 "     <applications>\n"
22964 "       <application>\n"
22965 "         <name>coreutils</name>\n"
22966 "         <version>8.5</version>\n"
22967 "         <release>1</release>\n"
22968 "       </application>\n"
22969 "\n"
22970 msgstr ""
22971
22972 #. type: textblock
22973 #: ../inspector/virt-inspector.pod:269
22974 msgid ""
22975 "The version and release fields may not be available for some types guests.  "
22976 "Other fields are possible, see L<guestfs(3)/"
22977 "guestfs_inspect_list_applications>."
22978 msgstr ""
22979
22980 #. type: =head2
22981 #: ../inspector/virt-inspector.pod:273
22982 msgid "E<lt>drive_mappingsE<gt>"
22983 msgstr ""
22984
22985 #. type: textblock
22986 #: ../inspector/virt-inspector.pod:275
22987 msgid ""
22988 "For operating systems like Windows which use drive letters, virt-inspector "
22989 "is able to find out how drive letters map to filesystems."
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../inspector/virt-inspector.pod:279
22994 #, no-wrap
22995 msgid ""
22996 " <operatingsystems>\n"
22997 "   <operatingsystem>\n"
22998 "     ...\n"
22999 "     <drive_mappings>\n"
23000 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23001 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23002 "     </drive_mappings>\n"
23003 "\n"
23004 msgstr ""
23005
23006 #. type: textblock
23007 #: ../inspector/virt-inspector.pod:287
23008 msgid ""
23009 "In the example above, drive C maps to the filesystem on the second partition "
23010 "on the first disk, and drive E maps to the filesystem on the first partition "
23011 "on the second disk."
23012 msgstr ""
23013
23014 #. type: textblock
23015 #: ../inspector/virt-inspector.pod:291
23016 msgid ""
23017 "Note that this only covers permanent local filesystem mappings, not things "
23018 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23019 "here."
23020 msgstr ""
23021
23022 #. type: =head2
23023 #: ../inspector/virt-inspector.pod:295
23024 msgid "E<lt>iconE<gt>"
23025 msgstr ""
23026
23027 #. type: textblock
23028 #: ../inspector/virt-inspector.pod:297
23029 msgid ""
23030 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23031 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23032 "very large and high quality."
23033 msgstr ""
23034
23035 #. type: verbatim
23036 #: ../inspector/virt-inspector.pod:301
23037 #, no-wrap
23038 msgid ""
23039 " <operatingsystems>\n"
23040 "   <operatingsystem>\n"
23041 "     ...\n"
23042 "     <icon>\n"
23043 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23044 "       [... many lines of base64 data ...]\n"
23045 "     </icon>\n"
23046 "\n"
23047 msgstr ""
23048
23049 #. type: textblock
23050 #: ../inspector/virt-inspector.pod:309
23051 msgid ""
23052 "To display the icon, you have to extract it and convert the base64 data back "
23053 "to a binary file.  Use an XPath query or simply an editor to extract the "
23054 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23055 "to a PNG file:"
23056 msgstr ""
23057
23058 #. type: verbatim
23059 #: ../inspector/virt-inspector.pod:314
23060 #, no-wrap
23061 msgid ""
23062 " base64 -i -d < icon.data > icon.png\n"
23063 "\n"
23064 msgstr ""
23065
23066 #. type: =head2
23067 #: ../inspector/virt-inspector.pod:316
23068 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23069 msgstr ""
23070
23071 #. type: textblock
23072 #: ../inspector/virt-inspector.pod:318
23073 msgid ""
23074 "Virt-inspector can detect some operating system installers on install disks, "
23075 "live CDs, bootable USB keys and more."
23076 msgstr ""
23077
23078 #. type: textblock
23079 #: ../inspector/virt-inspector.pod:321
23080 msgid ""
23081 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23082 "fields may be present to indicate a live CD, network installer, or one part "
23083 "of a multipart CD.  For example:"
23084 msgstr ""
23085
23086 #. type: verbatim
23087 #: ../inspector/virt-inspector.pod:325
23088 #, no-wrap
23089 msgid ""
23090 " <operatingsystems>\n"
23091 "   <operatingsystem>\n"
23092 "     <root>/dev/sda</root>\n"
23093 "     <name>linux</name>\n"
23094 "     <arch>i386</arch>\n"
23095 "     <distro>ubuntu</distro>\n"
23096 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23097 "     <major_version>10</major_version>\n"
23098 "     <minor_version>10</minor_version>\n"
23099 "     <format>installer</format>\n"
23100 "     <live/>\n"
23101 "\n"
23102 msgstr ""
23103
23104 #. type: =head1
23105 #: ../inspector/virt-inspector.pod:337
23106 msgid "XPATH QUERIES"
23107 msgstr ""
23108
23109 #. type: textblock
23110 #: ../inspector/virt-inspector.pod:339
23111 msgid ""
23112 "Virt-inspector includes built in support for running XPath queries.  The "
23113 "reason for including XPath support directly in virt-inspector is simply that "
23114 "there are no good and widely available command line programs that can do "
23115 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
23116 "available on Red Hat Enterprise Linux."
23117 msgstr ""
23118
23119 #. type: textblock
23120 #: ../inspector/virt-inspector.pod:346
23121 msgid ""
23122 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
23123 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23124 "result on stdout.  All other inspection features are disabled in this mode."
23125 msgstr ""
23126
23127 #. type: verbatim
23128 #: ../inspector/virt-inspector.pod:353
23129 #, no-wrap
23130 msgid ""
23131 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23132 " <filesystems>\n"
23133 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23134 "        <type>ext4</type>\n"
23135 " [...]\n"
23136 "\n"
23137 msgstr ""
23138
23139 #. type: verbatim
23140 #: ../inspector/virt-inspector.pod:359
23141 #, no-wrap
23142 msgid ""
23143 " $ virt-inspector -d Guest | \\\n"
23144 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23145 " ext4\n"
23146 "\n"
23147 msgstr ""
23148
23149 #. type: verbatim
23150 #: ../inspector/virt-inspector.pod:363
23151 #, no-wrap
23152 msgid ""
23153 " $ virt-inspector -d Guest | \\\n"
23154 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23155 " [displays the guest icon, if there is one]\n"
23156 "\n"
23157 msgstr ""
23158
23159 #. type: =head1
23160 #: ../inspector/virt-inspector.pod:374
23161 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23162 msgstr ""
23163
23164 #. type: textblock
23165 #: ../inspector/virt-inspector.pod:376
23166 msgid ""
23167 "Early versions of libguestfs shipped with a different virt-inspector program "
23168 "written in Perl (the current version is written in C).  The XML output of "
23169 "the Perl virt-inspector was different and it could also output in other "
23170 "formats like text."
23171 msgstr ""
23172
23173 #. type: textblock
23174 #: ../inspector/virt-inspector.pod:381
23175 msgid ""
23176 "The old virt-inspector is no longer supported or shipped with libguestfs."
23177 msgstr ""
23178
23179 #. type: textblock
23180 #: ../inspector/virt-inspector.pod:384
23181 msgid ""
23182 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23183 "versions of virt-inspector with different names:"
23184 msgstr ""
23185
23186 #. type: verbatim
23187 #: ../inspector/virt-inspector.pod:387
23188 #, no-wrap
23189 msgid ""
23190 " virt-inspector     Old Perl version.\n"
23191 " virt-inspector2    New C version.\n"
23192 "\n"
23193 msgstr ""
23194
23195 #. type: textblock
23196 #: ../inspector/virt-inspector.pod:397
23197 msgid ""
23198 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23199 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23200 msgstr ""
23201
23202 #. type: textblock
23203 #: ../inspector/virt-inspector.pod:414
23204 msgid "Matthew Booth L<mbooth@redhat.com>"
23205 msgstr ""
23206
23207 #. type: textblock
23208 #: ../java/examples/guestfs-java.pod:5
23209 msgid "guestfs-java - How to use libguestfs from Java"
23210 msgstr ""
23211
23212 #. type: verbatim
23213 #: ../java/examples/guestfs-java.pod:9
23214 #, no-wrap
23215 msgid ""
23216 " import com.redhat.et.libguestfs.*;\n"
23217 " \n"
23218 msgstr ""
23219
23220 #. type: verbatim
23221 #: ../java/examples/guestfs-java.pod:11
23222 #, no-wrap
23223 msgid ""
23224 " GuestFS g = new GuestFS ();\n"
23225 " g.add_drive_opts (\"disk.img\", null);\n"
23226 " g.launch ();\n"
23227 "\n"
23228 msgstr ""
23229
23230 #. type: textblock
23231 #: ../java/examples/guestfs-java.pod:17
23232 msgid ""
23233 "This manual page documents how to call libguestfs from the Java programming "
23234 "language.  This page just documents the differences from the C API and gives "
23235 "some examples.  If you are not familiar with using libguestfs, you also need "
23236 "to read L<guestfs(3)>."
23237 msgstr ""
23238
23239 #. type: =head2
23240 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23241 msgid "CLOSING THE HANDLE"
23242 msgstr ""
23243
23244 #. type: textblock
23245 #: ../java/examples/guestfs-java.pod:24
23246 msgid ""
23247 "The handle is closed when it is reaped by the garbage collector.  Because "
23248 "libguestfs handles include a lot of state, it is also possible to close (and "
23249 "hence free) them explicitly by calling the C<close> method."
23250 msgstr ""
23251
23252 #. type: =head2
23253 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23254 #: ../python/examples/guestfs-python.pod:21
23255 #: ../ruby/examples/guestfs-ruby.pod:22
23256 msgid "EXCEPTIONS"
23257 msgstr "ВИНЯТКИ"
23258
23259 #. type: textblock
23260 #: ../java/examples/guestfs-java.pod:31
23261 msgid ""
23262 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23263 "exception.  This has a single parameter which is the error message (a "
23264 "C<String>)."
23265 msgstr ""
23266
23267 #. type: textblock
23268 #: ../java/examples/guestfs-java.pod:35
23269 msgid "Calling any method on a closed handle raises the same exception."
23270 msgstr ""
23271
23272 #. type: textblock
23273 #: ../java/examples/guestfs-java.pod:47
23274 msgid ""
23275 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23276 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23277 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23278 msgstr ""
23279
23280 #. type: textblock
23281 #: ../ocaml/examples/guestfs-ocaml.pod:5
23282 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../ocaml/examples/guestfs-ocaml.pod:9
23287 msgid "Module style:"
23288 msgstr ""
23289
23290 #. type: verbatim
23291 #: ../ocaml/examples/guestfs-ocaml.pod:11
23292 #, no-wrap
23293 msgid ""
23294 " let g = Guestfs.create () in\n"
23295 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23296 " Guestfs.launch g;\n"
23297 "\n"
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../ocaml/examples/guestfs-ocaml.pod:15
23302 msgid "Object-oriented style:"
23303 msgstr ""
23304
23305 #. type: verbatim
23306 #: ../ocaml/examples/guestfs-ocaml.pod:17
23307 #, no-wrap
23308 msgid ""
23309 " let g = new Guestfs.guestfs () in\n"
23310 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23311 " g#launch ();\n"
23312 "\n"
23313 msgstr ""
23314
23315 #. type: verbatim
23316 #: ../ocaml/examples/guestfs-ocaml.pod:21
23317 #, no-wrap
23318 msgid ""
23319 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23320 "or:\n"
23321 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23322 "\n"
23323 msgstr ""
23324
23325 #. type: textblock
23326 #: ../ocaml/examples/guestfs-ocaml.pod:27
23327 msgid ""
23328 "This manual page documents how to call libguestfs from the OCaml programming "
23329 "language.  This page just documents the differences from the C API and gives "
23330 "some examples.  If you are not familiar with using libguestfs, you also need "
23331 "to read L<guestfs(3)>."
23332 msgstr ""
23333
23334 #. type: =head2
23335 #: ../ocaml/examples/guestfs-ocaml.pod:32
23336 msgid "PROGRAMMING STYLES"
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../ocaml/examples/guestfs-ocaml.pod:34
23341 msgid ""
23342 "There are two different programming styles supported by the OCaml bindings.  "
23343 "You can use a module style, with each C function mapped to an OCaml function:"
23344 msgstr ""
23345
23346 #. type: verbatim
23347 #: ../ocaml/examples/guestfs-ocaml.pod:38
23348 #, no-wrap
23349 msgid ""
23350 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23351 "\n"
23352 msgstr ""
23353
23354 #. type: textblock
23355 #: ../ocaml/examples/guestfs-ocaml.pod:40
23356 msgid "becomes:"
23357 msgstr ""
23358
23359 #. type: verbatim
23360 #: ../ocaml/examples/guestfs-ocaml.pod:42
23361 #, no-wrap
23362 msgid ""
23363 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23364 "\n"
23365 msgstr ""
23366
23367 #. type: textblock
23368 #: ../ocaml/examples/guestfs-ocaml.pod:44
23369 msgid ""
23370 "Alternately you can use an object-oriented style, calling methods on the "
23371 "class C<Guestfs.guestfs>:"
23372 msgstr ""
23373
23374 #. type: verbatim
23375 #: ../ocaml/examples/guestfs-ocaml.pod:47
23376 #, no-wrap
23377 msgid ""
23378 " method set_verbose : bool -> unit\n"
23379 "\n"
23380 msgstr ""
23381
23382 #. type: textblock
23383 #: ../ocaml/examples/guestfs-ocaml.pod:49
23384 msgid ""
23385 "The object-oriented style is usually briefer, and the minor performance "
23386 "penalty isn't noticable in the general overhead of performing libguestfs "
23387 "functions."
23388 msgstr ""
23389
23390 #. type: textblock
23391 #: ../ocaml/examples/guestfs-ocaml.pod:55
23392 msgid ""
23393 "The handle is closed when it is reaped by the garbage collector.  Because "
23394 "libguestfs handles include a lot of state, it is also possible to close (and "
23395 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23396 "method."
23397 msgstr ""
23398
23399 #. type: textblock
23400 #: ../ocaml/examples/guestfs-ocaml.pod:62
23401 msgid ""
23402 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23403 "exception.  This has a single parameter which is the error message (a "
23404 "string)."
23405 msgstr ""
23406
23407 #. type: textblock
23408 #: ../ocaml/examples/guestfs-ocaml.pod:66
23409 msgid ""
23410 "Calling any function/method on a closed handle raises C<Guestfs."
23411 "Handle_closed>.  The single parameter is the name of the function that you "
23412 "called."
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../ocaml/examples/guestfs-ocaml.pod:80
23417 msgid ""
23418 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23419 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23420 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23421 msgstr ""
23422
23423 #. type: textblock
23424 #: ../perl/examples/guestfs-perl.pod:5
23425 msgid "guestfs-perl - How to use libguestfs from Perl"
23426 msgstr ""
23427
23428 #. type: verbatim
23429 #: ../perl/examples/guestfs-perl.pod:9
23430 #, no-wrap
23431 msgid ""
23432 " use Sys::Guestfs;\n"
23433 " \n"
23434 msgstr ""
23435
23436 #. type: verbatim
23437 #: ../perl/examples/guestfs-perl.pod:11
23438 #, no-wrap
23439 msgid ""
23440 " my $h = Sys::Guestfs->new ();\n"
23441 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23442 " $h->launch ();\n"
23443 " $h->mount_options ('', '/dev/sda1', '/');\n"
23444 " $h->touch ('/hello');\n"
23445 " $h->sync ();\n"
23446 "\n"
23447 msgstr ""
23448
23449 #. type: textblock
23450 #: ../perl/examples/guestfs-perl.pod:20
23451 msgid ""
23452 "This manual page documents how to call libguestfs from the Perl programming "
23453 "language.  This page just documents the differences from the C API and gives "
23454 "some examples.  If you are not familiar with using libguestfs, you also need "
23455 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23456 msgstr ""
23457
23458 #. type: =head2
23459 #: ../perl/examples/guestfs-perl.pod:26
23460 msgid "ERRORS"
23461 msgstr "ПОМИЛКИ"
23462
23463 #. type: textblock
23464 #: ../perl/examples/guestfs-perl.pod:28
23465 msgid ""
23466 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23467 ">)."
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../perl/examples/guestfs-perl.pod:41
23472 msgid ""
23473 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23474 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23475 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23476 msgstr ""
23477
23478 #. type: textblock
23479 #: ../python/examples/guestfs-python.pod:5
23480 msgid "guestfs-python - How to use libguestfs from Python"
23481 msgstr ""
23482
23483 #. type: verbatim
23484 #: ../python/examples/guestfs-python.pod:9
23485 #, no-wrap
23486 msgid ""
23487 " import guestfs\n"
23488 " g = guestfs.GuestFS ()\n"
23489 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23490 " g.launch\n"
23491 "\n"
23492 msgstr ""
23493
23494 #. type: textblock
23495 #: ../python/examples/guestfs-python.pod:16
23496 msgid ""
23497 "This manual page documents how to call libguestfs from the Python "
23498 "programming language.  This page just documents the differences from the C "
23499 "API and gives some examples.  If you are not familiar with using libguestfs, "
23500 "you also need to read L<guestfs(3)>."
23501 msgstr ""
23502
23503 #. type: textblock
23504 #: ../python/examples/guestfs-python.pod:23
23505 msgid ""
23506 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23507 "single string argument which is the error message."
23508 msgstr ""
23509
23510 #. type: =head2
23511 #: ../python/examples/guestfs-python.pod:26
23512 msgid "MORE DOCUMENTATION"
23513 msgstr ""
23514
23515 #. type: textblock
23516 #: ../python/examples/guestfs-python.pod:28
23517 msgid "Type:"
23518 msgstr "Тип:"
23519
23520 #. type: verbatim
23521 #: ../python/examples/guestfs-python.pod:30
23522 #, no-wrap
23523 msgid ""
23524 " $ python\n"
23525 " >>> import guestfs\n"
23526 " >>> help (guestfs)\n"
23527 "\n"
23528 msgstr ""
23529
23530 #. type: textblock
23531 #: ../python/examples/guestfs-python.pod:44
23532 msgid ""
23533 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23534 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23535 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../rescue/virt-rescue.pod:5
23540 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23541 msgstr ""
23542
23543 #. type: verbatim
23544 #: ../rescue/virt-rescue.pod:9
23545 #, no-wrap
23546 msgid ""
23547 " virt-rescue [--options] -d domname\n"
23548 "\n"
23549 msgstr ""
23550
23551 #. type: verbatim
23552 #: ../rescue/virt-rescue.pod:11
23553 #, no-wrap
23554 msgid ""
23555 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23556 "\n"
23557 msgstr ""
23558
23559 #. type: verbatim
23560 #: ../rescue/virt-rescue.pod:13
23561 #, fuzzy, no-wrap
23562 #| msgid ""
23563 #| " virt-filesystems --format=raw -a disk.img\n"
23564 #| "\n"
23565 msgid ""
23566 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23567 "\n"
23568 msgstr ""
23569 " virt-filesystems --format=raw -a диск.img\n"
23570 "\n"
23571
23572 #. type: verbatim
23573 #: ../rescue/virt-rescue.pod:17
23574 #, no-wrap
23575 msgid ""
23576 " virt-rescue [--options] domname\n"
23577 "\n"
23578 msgstr ""
23579
23580 #. type: verbatim
23581 #: ../rescue/virt-rescue.pod:19
23582 #, no-wrap
23583 msgid ""
23584 " virt-rescue [--options] disk.img [disk.img ...]\n"
23585 "\n"
23586 msgstr ""
23587
23588 #. type: textblock
23589 #: ../rescue/virt-rescue.pod:23
23590 msgid ""
23591 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23592 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23593 "you from doing this, but doesn't catch all cases."
23594 msgstr ""
23595
23596 #. type: textblock
23597 #: ../rescue/virt-rescue.pod:27
23598 msgid ""
23599 "However if you use the I<--ro> (read only) option, then you can attach a "
23600 "shell to a live virtual machine.  The results might be strange or "
23601 "inconsistent at times but you won't get disk corruption."
23602 msgstr ""
23603
23604 #. type: textblock
23605 #: ../rescue/virt-rescue.pod:33
23606 msgid ""
23607 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23608 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23609 "recovery tools which you can use to examine or rescue a virtual machine or "
23610 "disk image."
23611 msgstr ""
23612
23613 #. type: textblock
23614 #: ../rescue/virt-rescue.pod:38
23615 msgid ""
23616 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23617 "on disk image(s):"
23618 msgstr ""
23619
23620 #. type: verbatim
23621 #: ../rescue/virt-rescue.pod:41
23622 #, no-wrap
23623 msgid ""
23624 " virt-rescue -d GuestName\n"
23625 "\n"
23626 msgstr ""
23627
23628 #. type: verbatim
23629 #: ../rescue/virt-rescue.pod:43
23630 #, no-wrap
23631 msgid ""
23632 " virt-rescue --ro -a /path/to/disk.img\n"
23633 "\n"
23634 msgstr ""
23635
23636 #. type: verbatim
23637 #: ../rescue/virt-rescue.pod:45
23638 #, no-wrap
23639 msgid ""
23640 " virt-rescue -a /dev/sdc\n"
23641 "\n"
23642 msgstr ""
23643
23644 #. type: textblock
23645 #: ../rescue/virt-rescue.pod:47
23646 msgid "For live VMs you I<must> use the --ro option."
23647 msgstr ""
23648
23649 #. type: textblock
23650 #: ../rescue/virt-rescue.pod:49
23651 msgid ""
23652 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23653 "in an interactive bash shell where you can use many ordinary Linux "
23654 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23655 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23656 "is an empty directory called C</sysroot> where you can mount filesystems."
23657 msgstr ""
23658
23659 #. type: textblock
23660 #: ../rescue/virt-rescue.pod:56
23661 msgid ""
23662 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23663 "suggest> option (in another terminal):"
23664 msgstr ""
23665
23666 #. type: verbatim
23667 #: ../rescue/virt-rescue.pod:59
23668 #, no-wrap
23669 msgid ""
23670 " $ virt-rescue --suggest -d Fedora15\n"
23671 " Inspecting the virtual machine or disk image ...\n"
23672 " \n"
23673 msgstr ""
23674
23675 #. type: verbatim
23676 #: ../rescue/virt-rescue.pod:62
23677 #, no-wrap
23678 msgid ""
23679 " This disk contains one or more operating systems.  You can use these\n"
23680 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23681 " filesystems.\n"
23682 " \n"
23683 msgstr ""
23684
23685 #. type: verbatim
23686 #: ../rescue/virt-rescue.pod:66
23687 #, no-wrap
23688 msgid ""
23689 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23690 " # type: linux, distro: fedora, version: 15.0\n"
23691 " # Fedora release 15 (Lovelock)\n"
23692 " \n"
23693 msgstr ""
23694
23695 #. type: verbatim
23696 #: ../rescue/virt-rescue.pod:70
23697 #, no-wrap
23698 msgid ""
23699 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23700 " mount /dev/vda1 /sysroot/boot\n"
23701 " mount --bind /dev /sysroot/dev\n"
23702 " mount --bind /dev/pts /sysroot/dev/pts\n"
23703 " mount --bind /proc /sysroot/proc\n"
23704 " mount --bind /sys /sysroot/sys\n"
23705 "\n"
23706 msgstr ""
23707
23708 #. type: textblock
23709 #: ../rescue/virt-rescue.pod:77
23710 msgid ""
23711 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23712 "(with L<parted(8)>) and mount them by hand:"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../rescue/virt-rescue.pod:80
23717 #, no-wrap
23718 msgid ""
23719 " ><rescue> lvs\n"
23720 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23721 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23722 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23723 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23724 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23725 " ><rescue> ls /sysroot\n"
23726 "\n"
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../rescue/virt-rescue.pod:88
23731 msgid ""
23732 "Another command to list available filesystems is L<virt-filesystems(1)>."
23733 msgstr ""
23734
23735 #. type: textblock
23736 #: ../rescue/virt-rescue.pod:91
23737 msgid ""
23738 "To run commands in a Linux guest (for example, grub), you should chroot into "
23739 "the /sysroot directory first:"
23740 msgstr ""
23741
23742 #. type: verbatim
23743 #: ../rescue/virt-rescue.pod:94
23744 #, no-wrap
23745 msgid ""
23746 " ><rescue> chroot /sysroot\n"
23747 "\n"
23748 msgstr ""
23749
23750 #. type: textblock
23751 #: ../rescue/virt-rescue.pod:98
23752 msgid ""
23753 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23754 "virtual machine.  For example you can use it on a blank file if you want to "
23755 "partition that file (although we would recommend using L<guestfish(1)> "
23756 "instead as it is more suitable for this purpose).  You can even use virt-"
23757 "rescue on things like SD cards."
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../rescue/virt-rescue.pod:104
23762 msgid ""
23763 "Virt-rescue does not require root.  You only need to run it as root if you "
23764 "need root to open the disk image."
23765 msgstr ""
23766
23767 #. type: textblock
23768 #: ../rescue/virt-rescue.pod:107
23769 msgid ""
23770 "This tool is just designed for quick interactive hacking on a virtual "
23771 "machine.  For more structured access to a virtual machine disk image, you "
23772 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23773 "make scripted changes to guests, use L<guestfish(1)>."
23774 msgstr ""
23775
23776 #. type: =item
23777 #: ../rescue/virt-rescue.pod:131
23778 msgid "B<--append kernelopts>"
23779 msgstr "B<--append параметри_ядра>"
23780
23781 #. type: textblock
23782 #: ../rescue/virt-rescue.pod:133
23783 msgid "Pass additional options to the rescue kernel."
23784 msgstr ""
23785
23786 #. type: verbatim
23787 #: ../rescue/virt-rescue.pod:163
23788 #, no-wrap
23789 msgid ""
23790 " virt-rescue --format=raw -a disk.img\n"
23791 "\n"
23792 msgstr ""
23793
23794 #. type: verbatim
23795 #: ../rescue/virt-rescue.pod:167
23796 #, no-wrap
23797 msgid ""
23798 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23799 "\n"
23800 msgstr ""
23801
23802 #. type: =item
23803 #: ../rescue/virt-rescue.pod:176
23804 msgid "B<-m MB>"
23805 msgstr "B<-m МБ>"
23806
23807 #. type: =item
23808 #: ../rescue/virt-rescue.pod:178
23809 msgid "B<--memsize MB>"
23810 msgstr "B<--memsize МБ>"
23811
23812 #. type: textblock
23813 #: ../rescue/virt-rescue.pod:180
23814 msgid ""
23815 "Change the amount of memory allocated to the rescue system.  The default is "
23816 "set by libguestfs and is small but adequate for running system tools.  The "
23817 "occasional program might need more memory.  The parameter is specified in "
23818 "megabytes."
23819 msgstr ""
23820
23821 #. type: =item
23822 #: ../rescue/virt-rescue.pod:185
23823 msgid "B<--network>"
23824 msgstr "B<--network>"
23825
23826 #. type: textblock
23827 #: ../rescue/virt-rescue.pod:187
23828 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23829 msgstr ""
23830
23831 #. type: textblock
23832 #: ../rescue/virt-rescue.pod:193
23833 msgid "Open the image read-only."
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../rescue/virt-rescue.pod:203
23838 msgid ""
23839 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23840 "SELINUX> before using this option."
23841 msgstr ""
23842
23843 #. type: =item
23844 #: ../rescue/virt-rescue.pod:206
23845 msgid "B<--smp> N"
23846 msgstr ""
23847
23848 #. type: textblock
23849 #: ../rescue/virt-rescue.pod:208
23850 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23851 msgstr ""
23852
23853 #. type: =item
23854 #: ../rescue/virt-rescue.pod:210
23855 #, fuzzy
23856 #| msgid "B<--quiet>"
23857 msgid "B<--suggest>"
23858 msgstr "B<--quiet>"
23859
23860 #. type: textblock
23861 #: ../rescue/virt-rescue.pod:212
23862 msgid ""
23863 "Inspect the disk image and suggest what mount commands should be used to "
23864 "mount the disks.  You should use the I<--suggest> option in a second "
23865 "terminal, then paste the commands into another virt-rescue."
23866 msgstr ""
23867
23868 #. type: textblock
23869 #: ../rescue/virt-rescue.pod:216
23870 msgid ""
23871 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23872 "another virt-rescue is running."
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../rescue/virt-rescue.pod:235
23877 msgid ""
23878 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23879 "are done read-write."
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../rescue/virt-rescue.pod:248
23884 msgid "Previous versions of virt-rescue allowed you to write either:"
23885 msgstr ""
23886
23887 #. type: verbatim
23888 #: ../rescue/virt-rescue.pod:250
23889 #, no-wrap
23890 msgid ""
23891 " virt-rescue disk.img [disk.img ...]\n"
23892 "\n"
23893 msgstr ""
23894
23895 #. type: verbatim
23896 #: ../rescue/virt-rescue.pod:254
23897 #, no-wrap
23898 msgid ""
23899 " virt-rescue guestname\n"
23900 "\n"
23901 msgstr ""
23902
23903 #. type: =head1
23904 #: ../rescue/virt-rescue.pod:262
23905 msgid "NETWORK"
23906 msgstr "МЕРЕЖА"
23907
23908 #. type: textblock
23909 #: ../rescue/virt-rescue.pod:264
23910 msgid ""
23911 "Adding the I<--network> option enables QEMU user networking in the rescue "
23912 "appliance.  There are some differences between user networking and ordinary "
23913 "networking:"
23914 msgstr ""
23915
23916 #. type: =item
23917 #: ../rescue/virt-rescue.pod:270
23918 msgid "ping does not work"
23919 msgstr ""
23920
23921 #. type: textblock
23922 #: ../rescue/virt-rescue.pod:272
23923 msgid ""
23924 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23925 "send the ping packets, and because virt-rescue must be able to run as non-"
23926 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23927 "The ping command will appear to resolve addresses but will not be able to "
23928 "send or receive any packets.  This does not mean that the network is not "
23929 "working."
23930 msgstr ""
23931
23932 #. type: =item
23933 #: ../rescue/virt-rescue.pod:279
23934 msgid "cannot receive connections"
23935 msgstr ""
23936
23937 #. type: textblock
23938 #: ../rescue/virt-rescue.pod:281
23939 msgid "QEMU user networking cannot receive incoming connections."
23940 msgstr ""
23941
23942 #. type: =item
23943 #: ../rescue/virt-rescue.pod:283
23944 msgid "making TCP connections"
23945 msgstr ""
23946
23947 #. type: textblock
23948 #: ../rescue/virt-rescue.pod:285
23949 msgid ""
23950 "The virt-rescue appliance needs to be small and so does not include many "
23951 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23952 "make TCP connections from the shell using the magical C</dev/tcp/"
23953 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23954 msgstr ""
23955
23956 #. type: verbatim
23957 #: ../rescue/virt-rescue.pod:290
23958 #, no-wrap
23959 msgid ""
23960 " exec 3<>/dev/tcp/redhat.com/80\n"
23961 " echo \"GET /\" >&3\n"
23962 " cat <&3\n"
23963 "\n"
23964 msgstr ""
23965
23966 #. type: textblock
23967 #: ../rescue/virt-rescue.pod:294
23968 msgid "See L<bash(1)> for more details."
23969 msgstr ""
23970
23971 #. type: textblock
23972 #: ../rescue/virt-rescue.pod:300
23973 msgid ""
23974 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23975 "ENVIRONMENT VARIABLES> for the complete list."
23976 msgstr ""
23977
23978 #. type: textblock
23979 #: ../rescue/virt-rescue.pod:327
23980 #, fuzzy
23981 #| msgid ""
23982 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
23983 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
23984 msgid ""
23985 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
23986 "filesystems(1)>, L<http://libguestfs.org/>."
23987 msgstr ""
23988 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
23989 "tar-out(1)>, L<http://libguestfs.org/>."
23990
23991 #. type: textblock
23992 #: ../resize/virt-resize.pod:5
23993 msgid "virt-resize - Resize a virtual machine disk"
23994 msgstr ""
23995
23996 #. type: verbatim
23997 #: ../resize/virt-resize.pod:9
23998 #, no-wrap
23999 msgid ""
24000 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24001 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24002 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24003 "\n"
24004 msgstr ""
24005
24006 #. type: textblock
24007 #: ../resize/virt-resize.pod:15
24008 msgid ""
24009 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24010 "larger or smaller overall, and resizing or deleting any partitions contained "
24011 "within."
24012 msgstr ""
24013
24014 #. type: textblock
24015 #: ../resize/virt-resize.pod:19
24016 msgid ""
24017 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24018 "not> be used on live virtual machines - for consistent results, shut the "
24019 "virtual machine down before resizing it."
24020 msgstr ""
24021
24022 #. type: textblock
24023 #: ../resize/virt-resize.pod:23
24024 msgid ""
24025 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24026 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24027 msgstr ""
24028
24029 #. type: =item
24030 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
24031 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
24032 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24033 msgid "1."
24034 msgstr "1."
24035
24036 #. type: textblock
24037 #: ../resize/virt-resize.pod:33
24038 msgid ""
24039 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24040 "fill the extra 5GB of space."
24041 msgstr ""
24042
24043 #. type: verbatim
24044 #: ../resize/virt-resize.pod:36
24045 #, no-wrap
24046 msgid ""
24047 " virt-filesystems --long -h --all -a olddisk\n"
24048 " \n"
24049 msgstr ""
24050
24051 #. type: verbatim
24052 #: ../resize/virt-resize.pod:38
24053 #, no-wrap
24054 msgid ""
24055 " truncate -r olddisk newdisk\n"
24056 " truncate -s +5G newdisk\n"
24057 " \n"
24058 msgstr ""
24059
24060 #. type: verbatim
24061 #: ../resize/virt-resize.pod:41
24062 #, no-wrap
24063 msgid ""
24064 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24065 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24066 "\n"
24067 msgstr ""
24068
24069 #. type: =item
24070 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
24071 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
24072 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24073 msgid "2."
24074 msgstr "2."
24075
24076 #. type: textblock
24077 #: ../resize/virt-resize.pod:46
24078 msgid ""
24079 "As above, but make the /boot partition 200MB bigger, while giving the "
24080 "remaining space to /dev/sda2:"
24081 msgstr ""
24082
24083 #. type: verbatim
24084 #: ../resize/virt-resize.pod:49
24085 #, no-wrap
24086 msgid ""
24087 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24088 "   olddisk newdisk\n"
24089 "\n"
24090 msgstr ""
24091
24092 #. type: =item
24093 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
24094 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
24095 #: ../src/guestfs.pod:1451
24096 msgid "3."
24097 msgstr "3."
24098
24099 #. type: textblock
24100 #: ../resize/virt-resize.pod:54
24101 msgid ""
24102 "As in the first example, but expand a logical volume as the final step.  "
24103 "This is what you would typically use for Linux guests that use LVM:"
24104 msgstr ""
24105
24106 #. type: verbatim
24107 #: ../resize/virt-resize.pod:58
24108 #, no-wrap
24109 msgid ""
24110 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24111 "   olddisk newdisk\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: =item
24116 #: ../resize/virt-resize.pod:61
24117 msgid "4."
24118 msgstr ""
24119
24120 #. type: textblock
24121 #: ../resize/virt-resize.pod:63
24122 msgid ""
24123 "As in the first example, but the output format will be qcow2 instead of a "
24124 "raw disk:"
24125 msgstr ""
24126
24127 #. type: verbatim
24128 #: ../resize/virt-resize.pod:66
24129 #, no-wrap
24130 msgid ""
24131 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24132 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24133 "\n"
24134 msgstr ""
24135
24136 #. type: =head1
24137 #: ../resize/virt-resize.pod:71
24138 msgid "DETAILED USAGE"
24139 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
24140
24141 #. type: =head2
24142 #: ../resize/virt-resize.pod:73
24143 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24144 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
24145
24146 #. type: =item
24147 #: ../resize/virt-resize.pod:77
24148 msgid "1. Shut down the virtual machine"
24149 msgstr ""
24150
24151 #. type: =item
24152 #: ../resize/virt-resize.pod:79
24153 msgid "2. Locate input disk image"
24154 msgstr ""
24155
24156 #. type: textblock
24157 #: ../resize/virt-resize.pod:81
24158 msgid ""
24159 "Locate the input disk image (ie. the file or device on the host containing "
24160 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24161 "dumpxml> like this to find the disk image name:"
24162 msgstr ""
24163
24164 #. type: verbatim
24165 #: ../resize/virt-resize.pod:85
24166 #, no-wrap
24167 msgid ""
24168 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24169 " Found 1 nodes:\n"
24170 " -- NODE --\n"
24171 " <source dev=\"/dev/vg/lv_guest\" />\n"
24172 "\n"
24173 msgstr ""
24174
24175 #. type: =item
24176 #: ../resize/virt-resize.pod:90
24177 msgid "3. Look at current sizing"
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../resize/virt-resize.pod:92
24182 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24183 msgstr ""
24184
24185 #. type: verbatim
24186 #: ../resize/virt-resize.pod:95
24187 #, no-wrap
24188 msgid ""
24189 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24190 " Name       Type       Size  Parent\n"
24191 " /dev/sda1  partition  101M  /dev/sda\n"
24192 " /dev/sda2  partition  7.9G  /dev/sda\n"
24193 " /dev/sda   device     8.0G  -\n"
24194 "\n"
24195 msgstr ""
24196
24197 #. type: textblock
24198 #: ../resize/virt-resize.pod:101
24199 msgid ""
24200 "(This example is a virtual machine with an 8 GB disk which we would like to "
24201 "expand up to 10 GB)."
24202 msgstr ""
24203
24204 #. type: =item
24205 #: ../resize/virt-resize.pod:104
24206 msgid "4. Create output disk"
24207 msgstr ""
24208
24209 #. type: textblock
24210 #: ../resize/virt-resize.pod:106
24211 msgid ""
24212 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24213 "to store the resized output disk."
24214 msgstr ""
24215
24216 #. type: textblock
24217 #: ../resize/virt-resize.pod:109
24218 msgid ""
24219 "To store the resized disk image in a file, create a file of a suitable size:"
24220 msgstr ""
24221
24222 #. type: verbatim
24223 #: ../resize/virt-resize.pod:112
24224 #, no-wrap
24225 msgid ""
24226 " # rm -f outdisk\n"
24227 " # truncate -s 10G outdisk\n"
24228 "\n"
24229 msgstr ""
24230
24231 #. type: textblock
24232 #: ../resize/virt-resize.pod:115
24233 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24234 msgstr ""
24235
24236 #. type: verbatim
24237 #: ../resize/virt-resize.pod:117
24238 #, no-wrap
24239 msgid ""
24240 " # lvcreate -L 10G -n lv_name vg_name\n"
24241 "\n"
24242 msgstr ""
24243
24244 #. type: textblock
24245 #: ../resize/virt-resize.pod:119
24246 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24247 msgstr ""
24248
24249 #. type: verbatim
24250 #: ../resize/virt-resize.pod:121
24251 #, no-wrap
24252 msgid ""
24253 " # virsh pool-list\n"
24254 " # virsh vol-create-as poolname newvol 10G\n"
24255 "\n"
24256 msgstr ""
24257
24258 #. type: =item
24259 #: ../resize/virt-resize.pod:124
24260 msgid "5. Resize"
24261 msgstr "5. Зміна розміру"
24262
24263 #. type: textblock
24264 #: ../resize/virt-resize.pod:126
24265 msgid ""
24266 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24267 "file) and the output disk.  The output disk is the one created in the "
24268 "previous step."
24269 msgstr ""
24270
24271 #. type: verbatim
24272 #: ../resize/virt-resize.pod:130
24273 #, no-wrap
24274 msgid ""
24275 " # virt-resize indisk outdisk\n"
24276 "\n"
24277 msgstr ""
24278
24279 #. type: textblock
24280 #: ../resize/virt-resize.pod:132
24281 msgid ""
24282 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24283 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24284 "larger, then an extra, empty partition is created at the end of the disk "
24285 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24286 "error."
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../resize/virt-resize.pod:138
24291 msgid ""
24292 "More realistically you'd want to expand existing partitions in the disk "
24293 "image by passing extra options (for the full list see the L</OPTIONS> "
24294 "section below)."
24295 msgstr ""
24296
24297 #. type: textblock
24298 #: ../resize/virt-resize.pod:142
24299 msgid ""
24300 "L</--expand> is the most useful option.  It expands the named partition "
24301 "within the disk to fill any extra space:"
24302 msgstr ""
24303
24304 #. type: verbatim
24305 #: ../resize/virt-resize.pod:145
24306 #, no-wrap
24307 msgid ""
24308 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24309 "\n"
24310 msgstr ""
24311
24312 #. type: textblock
24313 #: ../resize/virt-resize.pod:147
24314 msgid ""
24315 "(In this case, an extra partition is I<not> created at the end of the disk, "
24316 "because there will be no unused space)."
24317 msgstr ""
24318
24319 #. type: textblock
24320 #: ../resize/virt-resize.pod:150
24321 msgid ""
24322 "L</--resize> is the other commonly used option.  The following would "
24323 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24324 "rest of the available space:"
24325 msgstr ""
24326
24327 #. type: verbatim
24328 #: ../resize/virt-resize.pod:154
24329 #, no-wrap
24330 msgid ""
24331 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24332 "     indisk outdisk\n"
24333 "\n"
24334 msgstr ""
24335
24336 #. type: textblock
24337 #: ../resize/virt-resize.pod:157
24338 msgid ""
24339 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24340 "if virt-resize knows how, it will resize the contents, the equivalent of "
24341 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24342 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24343 "filesystems, so you would have to online resize them after booting the guest."
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../resize/virt-resize.pod:164
24348 msgid "Other options are covered below."
24349 msgstr ""
24350
24351 #. type: =item
24352 #: ../resize/virt-resize.pod:166
24353 msgid "6. Test"
24354 msgstr "6. Перевірка"
24355
24356 #. type: textblock
24357 #: ../resize/virt-resize.pod:168
24358 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24359 msgstr ""
24360
24361 #. type: textblock
24362 #: ../resize/virt-resize.pod:170
24363 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24364 msgstr ""
24365
24366 #. type: verbatim
24367 #: ../resize/virt-resize.pod:172
24368 #, no-wrap
24369 msgid ""
24370 " # virsh edit guestname\n"
24371 "\n"
24372 msgstr ""
24373
24374 #. type: textblock
24375 #: ../resize/virt-resize.pod:174
24376 msgid ""
24377 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24378 "html#elementsDisks>"
24379 msgstr ""
24380
24381 #. type: textblock
24382 #: ../resize/virt-resize.pod:177
24383 msgid "Then start up the domain with the new, resized disk:"
24384 msgstr ""
24385
24386 #. type: verbatim
24387 #: ../resize/virt-resize.pod:179
24388 #, no-wrap
24389 msgid ""
24390 " # virsh start guestname\n"
24391 "\n"
24392 msgstr ""
24393
24394 #. type: textblock
24395 #: ../resize/virt-resize.pod:181
24396 msgid ""
24397 "and check that it still works.  See also the L</NOTES> section below for "
24398 "additional information."
24399 msgstr ""
24400
24401 #. type: =item
24402 #: ../resize/virt-resize.pod:184
24403 msgid "7. Resize LVs etc inside the guest"
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../resize/virt-resize.pod:186
24408 msgid "(This can also be done offline using L<guestfish(1)>)"
24409 msgstr ""
24410
24411 #. type: textblock
24412 #: ../resize/virt-resize.pod:188
24413 msgid ""
24414 "Once the guest has booted you should see the new space available, at least "
24415 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24416 "may need to resize LVs inside PVs, and also resize filesystem types that "
24417 "virt-resize does not know how to expand."
24418 msgstr ""
24419
24420 #. type: =head2
24421 #: ../resize/virt-resize.pod:195
24422 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../resize/virt-resize.pod:197
24427 msgid ""
24428 "Shrinking is somewhat more complex than expanding, and only an overview is "
24429 "given here."
24430 msgstr ""
24431
24432 #. type: textblock
24433 #: ../resize/virt-resize.pod:200
24434 msgid ""
24435 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24436 "filesystems).  The user has to shrink content before passing the disk image "
24437 "to virt-resize, and virt-resize will check that the content has been shrunk "
24438 "properly."
24439 msgstr ""
24440
24441 #. type: textblock
24442 #: ../resize/virt-resize.pod:205
24443 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24444 msgstr ""
24445
24446 #. type: textblock
24447 #: ../resize/virt-resize.pod:207
24448 msgid ""
24449 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24450 "steps 3 and 4 above to allocate a new disk image."
24451 msgstr ""
24452
24453 #. type: textblock
24454 #: ../resize/virt-resize.pod:210
24455 msgid ""
24456 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24457 msgstr ""
24458
24459 #. type: =head2
24460 #: ../resize/virt-resize.pod:213
24461 msgid "IGNORING OR DELETING PARTITIONS"
24462 msgstr ""
24463
24464 #. type: textblock
24465 #: ../resize/virt-resize.pod:215
24466 msgid ""
24467 "virt-resize also gives a convenient way to ignore or delete partitions when "
24468 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24469 "up the copy where you don't care about the existing contents of a "
24470 "partition.  Deleting a partition removes it completely, but note that it "
24471 "also renumbers any partitions after the one which is deleted, which can "
24472 "leave some guests unbootable."
24473 msgstr ""
24474
24475 #. type: =head2
24476 #: ../resize/virt-resize.pod:222
24477 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24478 msgstr ""
24479
24480 #. type: textblock
24481 #: ../resize/virt-resize.pod:224
24482 msgid ""
24483 "If the input disk is in qcow2 format, then you may prefer that the output is "
24484 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24485 "the fly.  The output format is simply determined by the format of the empty "
24486 "output container that you provide.  Thus to create qcow2 output, use:"
24487 msgstr ""
24488
24489 #. type: verbatim
24490 #: ../resize/virt-resize.pod:230
24491 #, no-wrap
24492 msgid ""
24493 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24494 "\n"
24495 msgstr ""
24496
24497 #. type: textblock
24498 #: ../resize/virt-resize.pod:232
24499 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24500 msgstr ""
24501
24502 #. type: textblock
24503 #: ../resize/virt-resize.pod:234
24504 msgid "Similarly, to get non-sparse raw output use:"
24505 msgstr ""
24506
24507 #. type: verbatim
24508 #: ../resize/virt-resize.pod:236
24509 #, no-wrap
24510 msgid ""
24511 " fallocate -l size outdisk\n"
24512 "\n"
24513 msgstr ""
24514
24515 #. type: textblock
24516 #: ../resize/virt-resize.pod:238
24517 msgid ""
24518 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24519 "dev/zero of=outdisk bs=1M count=..>)"
24520 msgstr ""
24521
24522 #. type: =head2
24523 #: ../resize/virt-resize.pod:241
24524 msgid "LOGICAL PARTITIONS"
24525 msgstr ""
24526
24527 #. type: textblock
24528 #: ../resize/virt-resize.pod:243
24529 msgid ""
24530 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24531 "tables) cannot be resized."
24532 msgstr ""
24533
24534 #. type: textblock
24535 #: ../resize/virt-resize.pod:246
24536 msgid ""
24537 "To understand what is going on, firstly one of the four partitions C</dev/"
24538 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24539 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24540 "type."
24541 msgstr ""
24542
24543 #. type: textblock
24544 #: ../resize/virt-resize.pod:251
24545 msgid "Logical partitions live inside the extended partition."
24546 msgstr ""
24547
24548 #. type: textblock
24549 #: ../resize/virt-resize.pod:253
24550 msgid ""
24551 "The extended partition can be expanded, but not shrunk (unless you force it, "
24552 "which is not advisable).  When the extended partition is copied across, all "
24553 "the logical partitions contained inside are copied over implicitly.  Virt-"
24554 "resize does not look inside the extended partition, so it copies the logical "
24555 "partitions blindly."
24556 msgstr ""
24557
24558 #. type: textblock
24559 #: ../resize/virt-resize.pod:259
24560 msgid ""
24561 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24562 "line.  Doing so will give an error."
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24567 msgid "Display help."
24568 msgstr ""
24569
24570 #. type: =item
24571 #: ../resize/virt-resize.pod:270
24572 msgid "B<--align-first auto>"
24573 msgstr ""
24574
24575 #. type: =item
24576 #: ../resize/virt-resize.pod:272
24577 msgid "B<--align-first never>"
24578 msgstr ""
24579
24580 #. type: =item
24581 #: ../resize/virt-resize.pod:274
24582 msgid "B<--align-first always>"
24583 msgstr ""
24584
24585 #. type: textblock
24586 #: ../resize/virt-resize.pod:276
24587 msgid ""
24588 "Align the first partition for improved performance (see also the I<--"
24589 "alignment> option)."
24590 msgstr ""
24591
24592 #. type: textblock
24593 #: ../resize/virt-resize.pod:279
24594 msgid ""
24595 "The default is I<--align-first auto> which only aligns the first partition "
24596 "if it is safe to do so.  That is, only when we know how to fix the "
24597 "bootloader automatically, and at the moment that can only be done for "
24598 "Windows guests."
24599 msgstr ""
24600
24601 #. type: textblock
24602 #: ../resize/virt-resize.pod:284
24603 msgid ""
24604 "I<--align-first never> means we never move the first partition.  This is the "
24605 "safest option.  Try this if the guest does not boot after resizing."
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../resize/virt-resize.pod:288
24610 msgid ""
24611 "I<--align-first always> means we always align the first partition (if it "
24612 "needs to be aligned).  For some guests this will break the bootloader, "
24613 "making the guest unbootable."
24614 msgstr ""
24615
24616 #. type: =item
24617 #: ../resize/virt-resize.pod:292
24618 msgid "B<--alignment N>"
24619 msgstr ""
24620
24621 #. type: textblock
24622 #: ../resize/virt-resize.pod:294
24623 msgid ""
24624 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24625 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24626 msgstr ""
24627
24628 #. type: textblock
24629 #: ../resize/virt-resize.pod:298
24630 msgid ""
24631 "Assuming 512 byte sector size inside the guest, here are some suitable "
24632 "values for this:"
24633 msgstr ""
24634
24635 #. type: =item
24636 #: ../resize/virt-resize.pod:303
24637 msgid "I<--alignment 1> (512 bytes)"
24638 msgstr ""
24639
24640 #. type: textblock
24641 #: ../resize/virt-resize.pod:305
24642 msgid ""
24643 "The partitions would be packed together as closely as possible, but would be "
24644 "completely unaligned.  In some cases this can cause very poor performance.  "
24645 "See L<virt-alignment-scan(1)> for further details."
24646 msgstr ""
24647
24648 #. type: =item
24649 #: ../resize/virt-resize.pod:309
24650 msgid "I<--alignment 8> (4K)"
24651 msgstr ""
24652
24653 #. type: textblock
24654 #: ../resize/virt-resize.pod:311
24655 msgid ""
24656 "This would be the minimum acceptable alignment for reasonable performance on "
24657 "modern hosts."
24658 msgstr ""
24659
24660 #. type: =item
24661 #: ../resize/virt-resize.pod:314
24662 msgid "I<--alignment 128> (64K)"
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../resize/virt-resize.pod:316
24667 msgid ""
24668 "This alignment provides good performance when the host is using high end "
24669 "network storage."
24670 msgstr ""
24671
24672 #. type: =item
24673 #: ../resize/virt-resize.pod:319
24674 msgid "I<--alignment 2048> (1M)"
24675 msgstr ""
24676
24677 #. type: textblock
24678 #: ../resize/virt-resize.pod:321
24679 msgid ""
24680 "This is the standard alignment used by all newly installed guests since "
24681 "around 2008."
24682 msgstr ""
24683
24684 #. type: =item
24685 #: ../resize/virt-resize.pod:326
24686 msgid "B<-d>"
24687 msgstr "B<-d>"
24688
24689 #. type: =item
24690 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24691 #: ../tools/virt-win-reg.pl:120
24692 msgid "B<--debug>"
24693 msgstr "B<--debug>"
24694
24695 #. type: textblock
24696 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24697 msgid "Enable debugging messages."
24698 msgstr ""
24699
24700 #. type: =item
24701 #: ../resize/virt-resize.pod:332
24702 msgid "B<--delete part>"
24703 msgstr "B<--delete розділ>"
24704
24705 #. type: textblock
24706 #: ../resize/virt-resize.pod:334
24707 msgid ""
24708 "Delete the named partition.  It would be more accurate to describe this as "
24709 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24710 "the original disk image is left intact."
24711 msgstr ""
24712
24713 #. type: textblock
24714 #: ../resize/virt-resize.pod:338
24715 msgid ""
24716 "Note that when you delete a partition, then anything contained in the "
24717 "partition is also deleted.  Furthermore, this causes any partitions that "
24718 "come after to be I<renumbered>, which can easily make your guest unbootable."
24719 msgstr ""
24720
24721 #. type: textblock
24722 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24723 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24724 msgid "You can give this option multiple times."
24725 msgstr ""
24726
24727 #. type: =item
24728 #: ../resize/virt-resize.pod:345
24729 msgid "B<--expand part>"
24730 msgstr "B<--expand розділ>"
24731
24732 #. type: textblock
24733 #: ../resize/virt-resize.pod:347
24734 msgid ""
24735 "Expand the named partition so it uses up all extra space (space left over "
24736 "after any other resize changes that you request have been done)."
24737 msgstr ""
24738
24739 #. type: textblock
24740 #: ../resize/virt-resize.pod:350
24741 msgid ""
24742 "If virt-resize knows how, it will expand the direct content of the "
24743 "partition.  For example, if the partition is an LVM PV, it will expand the "
24744 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24745 "content it doesn't know about alone."
24746 msgstr ""
24747
24748 #. type: textblock
24749 #: ../resize/virt-resize.pod:355
24750 msgid "Currently virt-resize can resize:"
24751 msgstr ""
24752
24753 #. type: textblock
24754 #: ../resize/virt-resize.pod:361
24755 msgid "ext2, ext3 and ext4 filesystems."
24756 msgstr ""
24757
24758 #. type: textblock
24759 #: ../resize/virt-resize.pod:365
24760 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24761 msgstr ""
24762
24763 #. type: textblock
24764 #: ../resize/virt-resize.pod:367
24765 msgid ""
24766 "The filesystem must have been shut down consistently last time it was used.  "
24767 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24768 "consistency check, so at the first boot after resizing Windows will check "
24769 "the disk."
24770 msgstr ""
24771
24772 #. type: textblock
24773 #: ../resize/virt-resize.pod:374
24774 msgid ""
24775 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24776 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24777 "resize LVs as desired after boot."
24778 msgstr ""
24779
24780 #. type: textblock
24781 #: ../resize/virt-resize.pod:380
24782 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24783 msgstr ""
24784
24785 #. type: textblock
24786 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24787 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24788 msgstr ""
24789
24790 #. type: =item
24791 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24792 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24793 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24794 msgid "B<--format> raw"
24795 msgstr "B<--format> raw"
24796
24797 #. type: textblock
24798 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24799 msgid ""
24800 "Specify the format of the input disk image.  If this flag is not given then "
24801 "it is auto-detected from the image itself."
24802 msgstr ""
24803
24804 #. type: textblock
24805 #: ../resize/virt-resize.pod:394
24806 msgid ""
24807 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24808 "AND NON-SPARSE RAW FORMATS>."
24809 msgstr ""
24810
24811 #. type: =item
24812 #: ../resize/virt-resize.pod:397
24813 msgid "B<--ignore part>"
24814 msgstr "B<--ignore розділ>"
24815
24816 #. type: textblock
24817 #: ../resize/virt-resize.pod:399
24818 msgid ""
24819 "Ignore the named partition.  Effectively this means the partition is "
24820 "allocated on the destination disk, but the content is not copied across from "
24821 "the source disk.  The content of the partition will be blank (all zero "
24822 "bytes)."
24823 msgstr ""
24824
24825 #. type: =item
24826 #: ../resize/virt-resize.pod:406
24827 msgid "B<--LV-expand logvol>"
24828 msgstr "B<--LV-expand логічний_том>"
24829
24830 #. type: textblock
24831 #: ../resize/virt-resize.pod:408
24832 msgid ""
24833 "This takes the logical volume and, as a final step, expands it to fill all "
24834 "the space available in its volume group.  A typical usage, assuming a Linux "
24835 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24836 "lv_root> would be:"
24837 msgstr ""
24838
24839 #. type: verbatim
24840 #: ../resize/virt-resize.pod:413
24841 #, no-wrap
24842 msgid ""
24843 " virt-resize indisk outdisk \\\n"
24844 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24845 "\n"
24846 msgstr ""
24847
24848 #. type: textblock
24849 #: ../resize/virt-resize.pod:416
24850 msgid ""
24851 "This would first expand the partition (and PV), and then expand the root "
24852 "device to fill the extra space in the PV."
24853 msgstr ""
24854
24855 #. type: textblock
24856 #: ../resize/virt-resize.pod:419
24857 msgid ""
24858 "The contents of the LV are also resized if virt-resize knows how to do "
24859 "that.  You can stop virt-resize from trying to expand the content by using "
24860 "the option I<--no-expand-content>."
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../resize/virt-resize.pod:423
24865 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24866 msgstr ""
24867
24868 #. type: textblock
24869 #: ../resize/virt-resize.pod:425
24870 msgid ""
24871 "You can give this option multiple times, I<but> it doesn't make sense to do "
24872 "this unless the logical volumes you specify are all in different volume "
24873 "groups."
24874 msgstr ""
24875
24876 #. type: =item
24877 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24878 msgid "B<--machine-readable>"
24879 msgstr ""
24880
24881 #. type: textblock
24882 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24883 msgid ""
24884 "This option is used to make the output more machine friendly when being "
24885 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24886 msgstr ""
24887
24888 #. type: =item
24889 #: ../resize/virt-resize.pod:437
24890 msgid "B<--dryrun>"
24891 msgstr "B<--dryrun>"
24892
24893 #. type: textblock
24894 #: ../resize/virt-resize.pod:439
24895 msgid "Print a summary of what would be done, but don't do anything."
24896 msgstr ""
24897
24898 #. type: =item
24899 #: ../resize/virt-resize.pod:441
24900 msgid "B<--no-copy-boot-loader>"
24901 msgstr "B<--no-copy-boot-loader>"
24902
24903 #. type: textblock
24904 #: ../resize/virt-resize.pod:443
24905 msgid ""
24906 "By default, virt-resize copies over some sectors at the start of the disk "
24907 "(up to the beginning of the first partition).  Commonly these sectors "
24908 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24909 "in order for the guest to boot correctly."
24910 msgstr ""
24911
24912 #. type: textblock
24913 #: ../resize/virt-resize.pod:448
24914 msgid ""
24915 "If you specify this flag, then this initial copy is not done.  You may need "
24916 "to reinstall the boot loader in this case."
24917 msgstr ""
24918
24919 #. type: =item
24920 #: ../resize/virt-resize.pod:451
24921 msgid "B<--no-extra-partition>"
24922 msgstr "B<--no-extra-partition>"
24923
24924 #. type: textblock
24925 #: ../resize/virt-resize.pod:453
24926 msgid ""
24927 "By default, virt-resize creates an extra partition if there is any extra, "
24928 "unused space after all resizing has happened.  Use this option to prevent "
24929 "the extra partition from being created.  If you do this then the extra space "
24930 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24931 "tool in the guest."
24932 msgstr ""
24933
24934 #. type: textblock
24935 #: ../resize/virt-resize.pod:459
24936 msgid ""
24937 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24938 "will be created."
24939 msgstr ""
24940
24941 #. type: =item
24942 #: ../resize/virt-resize.pod:462
24943 msgid "B<--no-expand-content>"
24944 msgstr "B<--no-expand-content>"
24945
24946 #. type: textblock
24947 #: ../resize/virt-resize.pod:464
24948 msgid ""
24949 "By default, virt-resize will try to expand the direct contents of "
24950 "partitions, if it knows how (see I<--expand> option above)."
24951 msgstr ""
24952
24953 #. type: textblock
24954 #: ../resize/virt-resize.pod:467
24955 msgid ""
24956 "If you give the I<--no-expand-content> option then virt-resize will not "
24957 "attempt this."
24958 msgstr ""
24959
24960 #. type: =item
24961 #: ../resize/virt-resize.pod:470
24962 msgid "B<--ntfsresize-force>"
24963 msgstr "B<--ntfsresize-force>"
24964
24965 #. type: textblock
24966 #: ../resize/virt-resize.pod:472
24967 msgid ""
24968 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24969 "the NTFS disk is marked as needing a consistency check.  You have to use "
24970 "this option if you want to resize a Windows guest multiple times without "
24971 "booting into Windows between each resize."
24972 msgstr ""
24973
24974 #. type: =item
24975 #: ../resize/virt-resize.pod:478
24976 msgid "B<--output-format> raw"
24977 msgstr "B<--output-format> raw"
24978
24979 #. type: textblock
24980 #: ../resize/virt-resize.pod:480
24981 msgid ""
24982 "Specify the format of the output disk image.  If this flag is not given then "
24983 "it is auto-detected from the image itself."
24984 msgstr ""
24985
24986 #. type: textblock
24987 #: ../resize/virt-resize.pod:486
24988 msgid ""
24989 "Note that this option I<does not create> the output format.  This option "
24990 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24991 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24992 "SPARSE RAW FORMATS>."
24993 msgstr ""
24994
24995 #. type: textblock
24996 #: ../resize/virt-resize.pod:495
24997 msgid "Don't print the summary."
24998 msgstr ""
24999
25000 #. type: =item
25001 #: ../resize/virt-resize.pod:497
25002 msgid "B<--resize part=size>"
25003 msgstr "B<--resize розділ=розмір>"
25004
25005 #. type: textblock
25006 #: ../resize/virt-resize.pod:499
25007 msgid ""
25008 "Resize the named partition (expanding or shrinking it) so that it has the "
25009 "given size."
25010 msgstr ""
25011
25012 #. type: textblock
25013 #: ../resize/virt-resize.pod:502
25014 msgid ""
25015 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25016 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25017 "size; or as a relative number or percentage.  For example:"
25018 msgstr ""
25019
25020 #. type: verbatim
25021 #: ../resize/virt-resize.pod:508
25022 #, no-wrap
25023 msgid ""
25024 " --resize /dev/sda2=10G\n"
25025 "\n"
25026 msgstr ""
25027
25028 #. type: verbatim
25029 #: ../resize/virt-resize.pod:510
25030 #, no-wrap
25031 msgid ""
25032 " --resize /dev/sda4=90%\n"
25033 "\n"
25034 msgstr ""
25035
25036 #. type: verbatim
25037 #: ../resize/virt-resize.pod:512
25038 #, no-wrap
25039 msgid ""
25040 " --resize /dev/sda2=+1G\n"
25041 "\n"
25042 msgstr ""
25043
25044 #. type: verbatim
25045 #: ../resize/virt-resize.pod:514
25046 #, no-wrap
25047 msgid ""
25048 " --resize /dev/sda2=-200M\n"
25049 "\n"
25050 msgstr ""
25051
25052 #. type: verbatim
25053 #: ../resize/virt-resize.pod:516
25054 #, no-wrap
25055 msgid ""
25056 " --resize /dev/sda1=+128K\n"
25057 "\n"
25058 msgstr ""
25059
25060 #. type: verbatim
25061 #: ../resize/virt-resize.pod:518
25062 #, no-wrap
25063 msgid ""
25064 " --resize /dev/sda1=+10%\n"
25065 "\n"
25066 msgstr ""
25067
25068 #. type: verbatim
25069 #: ../resize/virt-resize.pod:520
25070 #, no-wrap
25071 msgid ""
25072 " --resize /dev/sda1=-10%\n"
25073 "\n"
25074 msgstr ""
25075
25076 #. type: textblock
25077 #: ../resize/virt-resize.pod:522
25078 msgid ""
25079 "You can increase the size of any partition.  Virt-resize will expand the "
25080 "direct content of the partition if it knows how (see I<--expand> below)."
25081 msgstr ""
25082
25083 #. type: textblock
25084 #: ../resize/virt-resize.pod:526
25085 msgid ""
25086 "You can only I<decrease> the size of partitions that contain filesystems or "
25087 "PVs which have already been shrunk.  Virt-resize will check this has been "
25088 "done before proceeding, or else will print an error (see also I<--resize-"
25089 "force>)."
25090 msgstr ""
25091
25092 #. type: =item
25093 #: ../resize/virt-resize.pod:533
25094 msgid "B<--resize-force part=size>"
25095 msgstr "B<--resize-force розділ=розмір>"
25096
25097 #. type: textblock
25098 #: ../resize/virt-resize.pod:535
25099 msgid ""
25100 "This is the same as I<--resize> except that it will let you decrease the "
25101 "size of any partition.  Generally this means you will lose any data which "
25102 "was at the end of the partition you shrink, but you may not care about that "
25103 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25104 "as a swap partition)."
25105 msgstr ""
25106
25107 #. type: textblock
25108 #: ../resize/virt-resize.pod:541
25109 msgid "See also the I<--ignore> option."
25110 msgstr ""
25111
25112 #. type: =item
25113 #: ../resize/virt-resize.pod:543
25114 msgid "B<--shrink part>"
25115 msgstr "B<--shrink розділ>"
25116
25117 #. type: textblock
25118 #: ../resize/virt-resize.pod:545
25119 msgid ""
25120 "Shrink the named partition until the overall disk image fits in the "
25121 "destination.  The named partition B<must> contain a filesystem or PV which "
25122 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25123 "online tools).  Virt-resize will check this and give an error if it has not "
25124 "been done."
25125 msgstr ""
25126
25127 #. type: textblock
25128 #: ../resize/virt-resize.pod:551
25129 msgid ""
25130 "The amount by which the overall disk must be shrunk (after carrying out all "
25131 "other operations requested by the user) is called the \"deficit\".  For "
25132 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25133 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25134 "would give an error unless the user specified a partition to shrink and that "
25135 "partition had more than a gigabyte of free space."
25136 msgstr ""
25137
25138 #. type: =head1
25139 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
25140 msgid "MACHINE READABLE OUTPUT"
25141 msgstr ""
25142
25143 #. type: textblock
25144 #: ../resize/virt-resize.pod:571
25145 msgid ""
25146 "The I<--machine-readable> option can be used to make the output more machine "
25147 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25148 "etc."
25149 msgstr ""
25150
25151 #. type: textblock
25152 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
25153 msgid "There are two ways to use this option."
25154 msgstr ""
25155
25156 #. type: textblock
25157 #: ../resize/virt-resize.pod:577
25158 msgid ""
25159 "Firstly use the option on its own to query the capabilities of the virt-"
25160 "resize binary.  Typical output looks like this:"
25161 msgstr ""
25162
25163 #. type: verbatim
25164 #: ../resize/virt-resize.pod:580
25165 #, no-wrap
25166 msgid ""
25167 " $ virt-resize --machine-readable\n"
25168 " virt-resize\n"
25169 " ntfsresize-force\n"
25170 " 32bitok\n"
25171 " ntfs\n"
25172 " btrfs\n"
25173 "\n"
25174 msgstr ""
25175
25176 #. type: textblock
25177 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
25178 msgid ""
25179 "A list of features is printed, one per line, and the program exits with "
25180 "status 0."
25181 msgstr ""
25182
25183 #. type: textblock
25184 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
25185 msgid ""
25186 "Secondly use the option in conjunction with other options to make the "
25187 "regular program output more machine friendly."
25188 msgstr ""
25189
25190 #. type: textblock
25191 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
25192 msgid "At the moment this means:"
25193 msgstr ""
25194
25195 #. type: textblock
25196 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
25197 msgid ""
25198 "Progress bar messages can be parsed from stdout by looking for this regular "
25199 "expression:"
25200 msgstr ""
25201
25202 #. type: verbatim
25203 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
25204 #, no-wrap
25205 msgid ""
25206 " ^[0-9]+/[0-9]+$\n"
25207 "\n"
25208 msgstr ""
25209
25210 #. type: textblock
25211 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
25212 msgid ""
25213 "The calling program should treat messages sent to stdout (except for "
25214 "progress bar messages) as status messages.  They can be logged and/or "
25215 "displayed to the user."
25216 msgstr ""
25217
25218 #. type: textblock
25219 #: ../resize/virt-resize.pod:612
25220 msgid ""
25221 "The calling program should treat messages sent to stderr as error messages.  "
25222 "In addition, virt-resize exits with a non-zero status code if there was a "
25223 "fatal error."
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../resize/virt-resize.pod:618
25228 msgid ""
25229 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25230 "readable> option and will return an error."
25231 msgstr ""
25232
25233 #. type: =head2
25234 #: ../resize/virt-resize.pod:623
25235 msgid "\"Partition 1 does not end on cylinder boundary.\""
25236 msgstr ""
25237
25238 #. type: textblock
25239 #: ../resize/virt-resize.pod:625
25240 msgid ""
25241 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25242 "alignment> parameter).  Usually this means the partitions will not be "
25243 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
25244 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25245 "drives.  Alignment of partitions to cylinders is not required by any modern "
25246 "operating system."
25247 msgstr ""
25248
25249 #. type: =head2
25250 #: ../resize/virt-resize.pod:632
25251 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25252 msgstr ""
25253
25254 #. type: textblock
25255 #: ../resize/virt-resize.pod:634
25256 msgid ""
25257 "In Windows Vista and later versions, Microsoft switched to using a separate "
25258 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25259 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
25260 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
25261 "the second partition (ie. C: drive)  should work."
25262 msgstr ""
25263
25264 #. type: textblock
25265 #: ../resize/virt-resize.pod:641
25266 msgid ""
25267 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25268 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25269 "it find errors) is nothing to worry about."
25270 msgstr ""
25271
25272 #. type: =head2
25273 #: ../resize/virt-resize.pod:645
25274 msgid "GUEST BOOT STUCK AT \"GRUB\""
25275 msgstr ""
25276
25277 #. type: textblock
25278 #: ../resize/virt-resize.pod:647
25279 msgid ""
25280 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25281 "printing C<GRUB> on the console, try reinstalling grub."
25282 msgstr ""
25283
25284 #. type: verbatim
25285 #: ../resize/virt-resize.pod:650
25286 #, no-wrap
25287 msgid ""
25288 " guestfish -i -a newdisk\n"
25289 " ><fs> cat /boot/grub/device.map\n"
25290 " # check the contents of this file are sensible or\n"
25291 " # edit the file if necessary\n"
25292 " ><fs> grub-install / /dev/vda\n"
25293 " ><fs> exit\n"
25294 "\n"
25295 msgstr ""
25296
25297 #. type: textblock
25298 #: ../resize/virt-resize.pod:657
25299 msgid ""
25300 "For more flexible guest reconfiguration, including if you need to specify "
25301 "other parameters to grub-install, use L<virt-rescue(1)>."
25302 msgstr ""
25303
25304 #. type: =head1
25305 #: ../resize/virt-resize.pod:660
25306 msgid "ALTERNATIVE TOOLS"
25307 msgstr ""
25308
25309 #. type: textblock
25310 #: ../resize/virt-resize.pod:662
25311 msgid ""
25312 "There are several proprietary tools for resizing partitions.  We won't "
25313 "mention any here."
25314 msgstr ""
25315
25316 #. type: textblock
25317 #: ../resize/virt-resize.pod:665
25318 msgid ""
25319 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25320 "operations on disk images.  They can resize and move partitions, but I don't "
25321 "think they can do anything with the contents, and they certainly don't "
25322 "understand LVM."
25323 msgstr ""
25324
25325 #. type: textblock
25326 #: ../resize/virt-resize.pod:670
25327 msgid ""
25328 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25329 "but at a much lower level.  You will probably end up hand-calculating sector "
25330 "offsets, which is something that virt-resize was designed to avoid.  If you "
25331 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25332 "I<--debug> flag."
25333 msgstr ""
25334
25335 #. type: textblock
25336 #: ../resize/virt-resize.pod:690
25337 msgid ""
25338 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25339 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25340 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25341 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25342 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25343 msgstr ""
25344
25345 #. type: textblock
25346 #: ../ruby/examples/guestfs-ruby.pod:5
25347 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25348 msgstr ""
25349
25350 #. type: verbatim
25351 #: ../ruby/examples/guestfs-ruby.pod:9
25352 #, no-wrap
25353 msgid ""
25354 " require 'guestfs'\n"
25355 " g = Guestfs::Guestfs.new()\n"
25356 " g.add_drive_opts(\"disk.img\",\n"
25357 "                  :readonly => 1, :format => \"raw\")\n"
25358 " g.launch()\n"
25359 "\n"
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../ruby/examples/guestfs-ruby.pod:17
25364 msgid ""
25365 "This manual page documents how to call libguestfs from the Ruby programming "
25366 "language.  This page just documents the differences from the C API and gives "
25367 "some examples.  If you are not familiar with using libguestfs, you also need "
25368 "to read L<guestfs(3)>."
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../ruby/examples/guestfs-ruby.pod:24
25373 msgid ""
25374 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25375 "This has a single parameter which is the error message (a string)."
25376 msgstr ""
25377
25378 #. type: textblock
25379 #: ../ruby/examples/guestfs-ruby.pod:38
25380 msgid ""
25381 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25382 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25383 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25384 msgstr ""
25385
25386 #. type: textblock
25387 #: ../sparsify/virt-sparsify.pod:5
25388 msgid "virt-sparsify - Make a virtual machine disk sparse"
25389 msgstr ""
25390
25391 #. type: verbatim
25392 #: ../sparsify/virt-sparsify.pod:9
25393 #, no-wrap
25394 msgid ""
25395 " virt-sparsify [--options] indisk outdisk\n"
25396 "\n"
25397 msgstr ""
25398
25399 #. type: textblock
25400 #: ../sparsify/virt-sparsify.pod:13
25401 msgid ""
25402 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25403 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25404 "the disk image can be converted back to free space on the host."
25405 msgstr ""
25406
25407 #. type: textblock
25408 #: ../sparsify/virt-sparsify.pod:18
25409 msgid ""
25410 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25411 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25412 msgstr ""
25413
25414 #. type: textblock
25415 #: ../sparsify/virt-sparsify.pod:21
25416 msgid ""
25417 "Virt-sparsify can also convert between some disk formats, for example "
25418 "converting a raw disk image to a thin-provisioned qcow2 image."
25419 msgstr ""
25420
25421 #. type: textblock
25422 #: ../sparsify/virt-sparsify.pod:24
25423 msgid ""
25424 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25425 "machines.  If a virtual machine has more than one attached disk, you must "
25426 "sparsify each one separately."
25427 msgstr ""
25428
25429 #. type: =head2
25430 #: ../sparsify/virt-sparsify.pod:28
25431 msgid "IMPORTANT LIMITATIONS"
25432 msgstr ""
25433
25434 #. type: textblock
25435 #: ../sparsify/virt-sparsify.pod:34
25436 msgid ""
25437 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25438 "image to a destination image, leaving the source unchanged.  I<Check that "
25439 "the sparsification was successful before deleting the source image>."
25440 msgstr ""
25441
25442 #. type: textblock
25443 #: ../sparsify/virt-sparsify.pod:41
25444 msgid "The virtual machine I<must be shut down> before using this tool."
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../sparsify/virt-sparsify.pod:45
25449 msgid ""
25450 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25451 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25452 "usually much less space is required."
25453 msgstr ""
25454
25455 #. type: textblock
25456 #: ../sparsify/virt-sparsify.pod:51
25457 msgid ""
25458 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25459 msgstr ""
25460
25461 #. type: textblock
25462 #: ../sparsify/virt-sparsify.pod:56
25463 msgid "Virt-sparsify cannot handle encrypted disks."
25464 msgstr ""
25465
25466 #. type: textblock
25467 #: ../sparsify/virt-sparsify.pod:60
25468 msgid ""
25469 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25470 "this space is often used for critical items like bootloaders so it's not "
25471 "really unused."
25472 msgstr ""
25473
25474 #. type: textblock
25475 #: ../sparsify/virt-sparsify.pod:66
25476 msgid ""
25477 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25478 "to do this unless we can be sure there is no hibernation data, so at the "
25479 "moment swap partitions are ignored."
25480 msgstr ""
25481
25482 #. type: textblock
25483 #: ../sparsify/virt-sparsify.pod:72
25484 msgid ""
25485 "You may also want to read the manual pages for the associated tools L<virt-"
25486 "filesystems(1)> and L<virt-df(1)> before starting."
25487 msgstr ""
25488
25489 #. type: textblock
25490 #: ../sparsify/virt-sparsify.pod:77
25491 msgid "Typical usage is:"
25492 msgstr ""
25493
25494 #. type: verbatim
25495 #: ../sparsify/virt-sparsify.pod:79
25496 #, no-wrap
25497 msgid ""
25498 " virt-sparsify indisk outdisk\n"
25499 "\n"
25500 msgstr ""
25501
25502 #. type: textblock
25503 #: ../sparsify/virt-sparsify.pod:81
25504 msgid ""
25505 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25506 "is created, or overwritten if it already exists.  The format of the input "
25507 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25508 msgstr ""
25509
25510 #. type: textblock
25511 #: ../sparsify/virt-sparsify.pod:86
25512 msgid "To convert between formats, use the I<--convert> option:"
25513 msgstr ""
25514
25515 #. type: verbatim
25516 #: ../sparsify/virt-sparsify.pod:88
25517 #, no-wrap
25518 msgid ""
25519 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25520 "\n"
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../sparsify/virt-sparsify.pod:90
25525 msgid ""
25526 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25527 "can find within the source disk image.  You can get it to ignore (don't zero "
25528 "free space on) certain filesystems by doing:"
25529 msgstr ""
25530
25531 #. type: verbatim
25532 #: ../sparsify/virt-sparsify.pod:94
25533 #, no-wrap
25534 msgid ""
25535 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25536 "\n"
25537 msgstr ""
25538
25539 #. type: textblock
25540 #: ../sparsify/virt-sparsify.pod:96
25541 msgid ""
25542 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25543 msgstr ""
25544
25545 #. type: =item
25546 #: ../sparsify/virt-sparsify.pod:107
25547 msgid "B<--convert> raw"
25548 msgstr ""
25549
25550 #. type: =item
25551 #: ../sparsify/virt-sparsify.pod:109
25552 msgid "B<--convert> qcow2"
25553 msgstr ""
25554
25555 #. type: =item
25556 #: ../sparsify/virt-sparsify.pod:111
25557 msgid "B<--convert> [other formats]"
25558 msgstr ""
25559
25560 #. type: textblock
25561 #: ../sparsify/virt-sparsify.pod:113
25562 msgid ""
25563 "Use C<output-format> as the format for the destination image.  If this is "
25564 "not specified, then the input format is used."
25565 msgstr ""
25566
25567 #. type: textblock
25568 #: ../sparsify/virt-sparsify.pod:116
25569 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25570 msgstr ""
25571
25572 #. type: textblock
25573 #: ../sparsify/virt-sparsify.pod:118
25574 msgid ""
25575 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25576 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25577 msgstr ""
25578
25579 #. type: textblock
25580 #: ../sparsify/virt-sparsify.pod:122
25581 msgid ""
25582 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25583 "sparsify doesn't need to try to guess the input format."
25584 msgstr ""
25585
25586 #. type: =item
25587 #: ../sparsify/virt-sparsify.pod:127
25588 msgid "B<--format> qcow2"
25589 msgstr ""
25590
25591 #. type: =item
25592 #: ../sparsify/virt-sparsify.pod:135
25593 msgid "B<--ignore> filesystem"
25594 msgstr ""
25595
25596 #. type: =item
25597 #: ../sparsify/virt-sparsify.pod:137
25598 msgid "B<--ignore> volgroup"
25599 msgstr ""
25600
25601 #. type: textblock
25602 #: ../sparsify/virt-sparsify.pod:139
25603 msgid ""
25604 "Ignore the named filesystem.  Free space on the filesystem will not be "
25605 "zeroed, but existing blocks of zeroes will still be sparsified."
25606 msgstr ""
25607
25608 #. type: textblock
25609 #: ../sparsify/virt-sparsify.pod:142
25610 msgid ""
25611 "In the second form, this ignores the named volume group.  Use the volume "
25612 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25613 msgstr ""
25614
25615 #. type: textblock
25616 #: ../sparsify/virt-sparsify.pod:157
25617 msgid "This disables progress bars and other unnecessary output."
25618 msgstr ""
25619
25620 #. type: textblock
25621 #: ../sparsify/virt-sparsify.pod:179
25622 msgid ""
25623 "The I<--machine-readable> option can be used to make the output more machine "
25624 "friendly, which is useful when calling virt-sparsify from other programs, "
25625 "GUIs etc."
25626 msgstr ""
25627
25628 #. type: textblock
25629 #: ../sparsify/virt-sparsify.pod:185
25630 msgid ""
25631 "Firstly use the option on its own to query the capabilities of the virt-"
25632 "sparsify binary.  Typical output looks like this:"
25633 msgstr ""
25634
25635 #. type: verbatim
25636 #: ../sparsify/virt-sparsify.pod:188
25637 #, no-wrap
25638 msgid ""
25639 " $ virt-sparsify --machine-readable\n"
25640 " virt-sparsify\n"
25641 " ntfs\n"
25642 " btrfs\n"
25643 "\n"
25644 msgstr ""
25645
25646 #. type: textblock
25647 #: ../sparsify/virt-sparsify.pod:218
25648 msgid ""
25649 "The calling program should treat messages sent to stderr as error messages.  "
25650 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25651 "fatal error."
25652 msgstr ""
25653
25654 #. type: textblock
25655 #: ../sparsify/virt-sparsify.pod:224
25656 msgid ""
25657 "All versions of virt-sparsify have supported the I<--machine-readable> "
25658 "option."
25659 msgstr ""
25660
25661 #. type: textblock
25662 #: ../sparsify/virt-sparsify.pod:238
25663 msgid ""
25664 "Location of the temporary directory used for the potentially large temporary "
25665 "overlay file."
25666 msgstr ""
25667
25668 #. type: textblock
25669 #: ../sparsify/virt-sparsify.pod:241
25670 msgid ""
25671 "You should ensure there is enough free space in the worst case for a full "
25672 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25673 "to another directory that has enough space."
25674 msgstr ""
25675
25676 #. type: textblock
25677 #: ../sparsify/virt-sparsify.pod:245
25678 msgid "This defaults to C</tmp>."
25679 msgstr ""
25680
25681 #. type: textblock
25682 #: ../sparsify/virt-sparsify.pod:249
25683 msgid ""
25684 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25685 msgstr ""
25686
25687 #. type: textblock
25688 #: ../sparsify/virt-sparsify.pod:253
25689 msgid ""
25690 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25691 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25692 "(1)>, L<http://libguestfs.org/>."
25693 msgstr ""
25694
25695 #. type: =head2
25696 #: ../src/guestfs-actions.pod:1
25697 msgid "guestfs_add_cdrom"
25698 msgstr ""
25699
25700 #. type: verbatim
25701 #: ../src/guestfs-actions.pod:3
25702 #, no-wrap
25703 msgid ""
25704 " int\n"
25705 " guestfs_add_cdrom (guestfs_h *g,\n"
25706 "                    const char *filename);\n"
25707 "\n"
25708 msgstr ""
25709
25710 #. type: textblock
25711 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25712 #: ../src/guestfs-actions.pod:323
25713 msgid ""
25714 "I<This function is deprecated.> In new code, use the L</"
25715 "guestfs_add_drive_opts> call instead."
25716 msgstr ""
25717
25718 #. type: textblock
25719 #: ../src/guestfs-actions.pod:24
25720 msgid ""
25721 "This call checks for the existence of C<filename>.  This stops you from "
25722 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25723 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25724 "instead."
25725 msgstr ""
25726
25727 #. type: textblock
25728 #: ../src/guestfs-actions.pod:31
25729 msgid ""
25730 "If you just want to add an ISO file (often you use this as an efficient way "
25731 "to transfer large files into the guest), then you should probably use "
25732 "C<guestfs_add_drive_ro> instead."
25733 msgstr ""
25734
25735 #. type: textblock
25736 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25737 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25738 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25739 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25740 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25741 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25742 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25743 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25744 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25745 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25746 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25747 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25748 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25749 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25750 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25751 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25752 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25753 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25754 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25755 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25756 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25757 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25758 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25759 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25760 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25761 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25762 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4328
25763 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4355
25764 #: ../src/guestfs-actions.pod:4369 ../src/guestfs-actions.pod:4384
25765 #: ../src/guestfs-actions.pod:4420 ../src/guestfs-actions.pod:4492
25766 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4529
25767 #: ../src/guestfs-actions.pod:4549 ../src/guestfs-actions.pod:4569
25768 #: ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4623
25769 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4677
25770 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4722
25771 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4751
25772 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4783
25773 #: ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:5014
25774 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5047
25775 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5116
25776 #: ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5150
25777 #: ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5178
25778 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5210
25779 #: ../src/guestfs-actions.pod:5237 ../src/guestfs-actions.pod:5300
25780 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5404
25781 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442
25782 #: ../src/guestfs-actions.pod:5454 ../src/guestfs-actions.pod:5471
25783 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5499
25784 #: ../src/guestfs-actions.pod:5514 ../src/guestfs-actions.pod:5546
25785 #: ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:5611
25786 #: ../src/guestfs-actions.pod:5631 ../src/guestfs-actions.pod:5645
25787 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5711
25788 #: ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5811
25789 #: ../src/guestfs-actions.pod:5854 ../src/guestfs-actions.pod:5882
25790 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5917
25791 #: ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6111
25792 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6151
25793 #: ../src/guestfs-actions.pod:6203 ../src/guestfs-actions.pod:6269
25794 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6299
25795 #: ../src/guestfs-actions.pod:6313 ../src/guestfs-actions.pod:6602
25796 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:6640
25797 #: ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6666
25798 #: ../src/guestfs-actions.pod:6680 ../src/guestfs-actions.pod:6692
25799 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6722
25800 #: ../src/guestfs-actions.pod:6740 ../src/guestfs-actions.pod:6759
25801 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6808
25802 #: ../src/guestfs-actions.pod:6826 ../src/guestfs-actions.pod:6849
25803 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6886
25804 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6926
25805 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6962
25806 #: ../src/guestfs-actions.pod:6990 ../src/guestfs-actions.pod:7014
25807 #: ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7049
25808 #: ../src/guestfs-actions.pod:7073 ../src/guestfs-actions.pod:7092
25809 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7126
25810 #: ../src/guestfs-actions.pod:7170 ../src/guestfs-actions.pod:7197
25811 #: ../src/guestfs-actions.pod:7227 ../src/guestfs-actions.pod:7339
25812 #: ../src/guestfs-actions.pod:7460 ../src/guestfs-actions.pod:7472
25813 #: ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7498
25814 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7533
25815 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7559
25816 #: ../src/guestfs-actions.pod:7574 ../src/guestfs-actions.pod:7633
25817 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7666
25818 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7699
25819 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7732
25820 #: ../src/guestfs-actions.pod:7832 ../src/guestfs-actions.pod:7888
25821 #: ../src/guestfs-actions.pod:7902 ../src/guestfs-actions.pod:7943
25822 #: ../src/guestfs-actions.pod:7956 ../src/guestfs-actions.pod:7974
25823 #: ../src/guestfs-actions.pod:8008 ../src/guestfs-actions.pod:8044
25824 #: ../src/guestfs-actions.pod:8160 ../src/guestfs-actions.pod:8175
25825 #: ../src/guestfs-actions.pod:8189 ../src/guestfs-actions.pod:8244
25826 #: ../src/guestfs-actions.pod:8257 ../src/guestfs-actions.pod:8302
25827 #: ../src/guestfs-actions.pod:8342 ../src/guestfs-actions.pod:8398
25828 #: ../src/guestfs-actions.pod:8418 ../src/guestfs-actions.pod:8451
25829 #: ../src/guestfs-actions.pod:8515 ../src/guestfs-actions.pod:8538
25830 #: ../src/guestfs-actions.pod:8564
25831 msgid "This function returns 0 on success or -1 on error."
25832 msgstr ""
25833
25834 #. type: textblock
25835 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25836 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
25837 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
25838 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
25839 #: ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:6828
25840 #: ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:7094
25841 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7701
25842 #: ../src/guestfs-actions.pod:8344
25843 msgid "(Added in 0.3)"
25844 msgstr "(Додано у 0.3)"
25845
25846 #. type: =head2
25847 #: ../src/guestfs-actions.pod:41
25848 msgid "guestfs_add_domain"
25849 msgstr ""
25850
25851 #. type: verbatim
25852 #: ../src/guestfs-actions.pod:43
25853 #, no-wrap
25854 msgid ""
25855 " int\n"
25856 " guestfs_add_domain (guestfs_h *g,\n"
25857 "                     const char *dom,\n"
25858 "                     ...);\n"
25859 "\n"
25860 msgstr ""
25861
25862 #. type: textblock
25863 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25864 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25865 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25866 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
25867 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
25868 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5249
25869 #: ../src/guestfs-actions.pod:5558 ../src/guestfs-actions.pod:5775
25870 #: ../src/guestfs-actions.pod:7743
25871 msgid ""
25872 "You may supply a list of optional arguments to this call.  Use zero or more "
25873 "of the following pairs of parameters, and terminate the list with C<-1> on "
25874 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25875 msgstr ""
25876
25877 #. type: verbatim
25878 #: ../src/guestfs-actions.pod:53
25879 #, no-wrap
25880 msgid ""
25881 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25882 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25883 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25884 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25885 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25886 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25887 "\n"
25888 msgstr ""
25889
25890 #. type: textblock
25891 #: ../src/guestfs-actions.pod:60
25892 msgid ""
25893 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25894 "It works by connecting to libvirt, requesting the domain and domain XML from "
25895 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25896 "one."
25897 msgstr ""
25898
25899 #. type: textblock
25900 #: ../src/guestfs-actions.pod:141
25901 msgid ""
25902 "The other optional parameters are passed directly through to "
25903 "C<guestfs_add_drive_opts>."
25904 msgstr ""
25905
25906 #. type: textblock
25907 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25908 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25909 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25910 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
25911 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
25912 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
25913 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
25914 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
25915 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
25916 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5951
25917 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6383
25918 #: ../src/guestfs-actions.pod:6409 ../src/guestfs-actions.pod:7929
25919 #: ../src/guestfs-actions.pod:8355 ../src/guestfs-actions.pod:8368
25920 #: ../src/guestfs-actions.pod:8381
25921 msgid "On error this function returns -1."
25922 msgstr ""
25923
25924 #. type: textblock
25925 #: ../src/guestfs-actions.pod:146
25926 msgid "(Added in 1.7.4)"
25927 msgstr "(Додано у 1.7.4)"
25928
25929 #. type: =head2
25930 #: ../src/guestfs-actions.pod:148
25931 msgid "guestfs_add_domain_va"
25932 msgstr ""
25933
25934 #. type: verbatim
25935 #: ../src/guestfs-actions.pod:150
25936 #, no-wrap
25937 msgid ""
25938 " int\n"
25939 " guestfs_add_domain_va (guestfs_h *g,\n"
25940 "                        const char *dom,\n"
25941 "                        va_list args);\n"
25942 "\n"
25943 msgstr ""
25944
25945 #. type: textblock
25946 #: ../src/guestfs-actions.pod:155
25947 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25948 msgstr ""
25949
25950 #. type: textblock
25951 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25952 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25953 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25954 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25955 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25956 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
25957 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25958 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
25959 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
25960 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
25961 #: ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:4965
25962 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5326
25963 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5598
25964 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:5835
25965 #: ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7854
25966 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25967 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25968
25969 #. type: =head2
25970 #: ../src/guestfs-actions.pod:159
25971 msgid "guestfs_add_domain_argv"
25972 msgstr "guestfs_add_domain_argv"
25973
25974 #. type: verbatim
25975 #: ../src/guestfs-actions.pod:161
25976 #, no-wrap
25977 msgid ""
25978 " int\n"
25979 " guestfs_add_domain_argv (guestfs_h *g,\n"
25980 "                          const char *dom,\n"
25981 "                          const struct guestfs_add_domain_argv *optargs);\n"
25982 "\n"
25983 msgstr ""
25984
25985 #. type: textblock
25986 #: ../src/guestfs-actions.pod:166
25987 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25988 msgstr ""
25989
25990 #. type: =head2
25991 #: ../src/guestfs-actions.pod:170
25992 msgid "guestfs_add_drive"
25993 msgstr ""
25994
25995 #. type: verbatim
25996 #: ../src/guestfs-actions.pod:172
25997 #, no-wrap
25998 msgid ""
25999 " int\n"
26000 " guestfs_add_drive (guestfs_h *g,\n"
26001 "                    const char *filename);\n"
26002 "\n"
26003 msgstr ""
26004
26005 #. type: textblock
26006 #: ../src/guestfs-actions.pod:176
26007 msgid ""
26008 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26009 "optional parameters, so the disk is added writable, with the format being "
26010 "detected automatically."
26011 msgstr ""
26012
26013 #. type: textblock
26014 #: ../src/guestfs-actions.pod:180
26015 msgid ""
26016 "Automatic detection of the format opens you up to a potential security hole "
26017 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26018 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26019 "you should think about replacing calls to this function with calls to "
26020 "C<guestfs_add_drive_opts>, and specifying the format."
26021 msgstr ""
26022
26023 #. type: =head2
26024 #: ../src/guestfs-actions.pod:191
26025 msgid "guestfs_add_drive_opts"
26026 msgstr ""
26027
26028 #. type: verbatim
26029 #: ../src/guestfs-actions.pod:193
26030 #, no-wrap
26031 msgid ""
26032 " int\n"
26033 " guestfs_add_drive_opts (guestfs_h *g,\n"
26034 "                         const char *filename,\n"
26035 "                         ...);\n"
26036 "\n"
26037 msgstr ""
26038
26039 #. type: verbatim
26040 #: ../src/guestfs-actions.pod:203
26041 #, no-wrap
26042 msgid ""
26043 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26044 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26045 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26046 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26047 "\n"
26048 msgstr ""
26049
26050 #. type: textblock
26051 #: ../src/guestfs-actions.pod:233
26052 msgid ""
26053 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
26054 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
26055 "Possible formats include C<raw> and C<qcow2>."
26056 msgstr ""
26057
26058 #. type: textblock
26059 #: ../src/guestfs-actions.pod:244
26060 msgid ""
26061 "This rarely-used option lets you emulate the behaviour of the deprecated "
26062 "C<guestfs_add_drive_with_if> call (q.v.)"
26063 msgstr ""
26064
26065 #. type: textblock
26066 #: ../src/guestfs-actions.pod:256
26067 msgid "(Added in 1.5.23)"
26068 msgstr "(Додано у 1.5.23)"
26069
26070 #. type: =head2
26071 #: ../src/guestfs-actions.pod:258
26072 msgid "guestfs_add_drive_opts_va"
26073 msgstr ""
26074
26075 #. type: verbatim
26076 #: ../src/guestfs-actions.pod:260
26077 #, no-wrap
26078 msgid ""
26079 " int\n"
26080 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26081 "                            const char *filename,\n"
26082 "                            va_list args);\n"
26083 "\n"
26084 msgstr ""
26085
26086 #. type: textblock
26087 #: ../src/guestfs-actions.pod:265
26088 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26089 msgstr ""
26090
26091 #. type: =head2
26092 #: ../src/guestfs-actions.pod:269
26093 msgid "guestfs_add_drive_opts_argv"
26094 msgstr ""
26095
26096 #. type: verbatim
26097 #: ../src/guestfs-actions.pod:271
26098 #, no-wrap
26099 msgid ""
26100 " int\n"
26101 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26102 "                              const char *filename,\n"
26103 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
26104 "\n"
26105 msgstr ""
26106
26107 #. type: textblock
26108 #: ../src/guestfs-actions.pod:276
26109 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26110 msgstr ""
26111
26112 #. type: =head2
26113 #: ../src/guestfs-actions.pod:280
26114 msgid "guestfs_add_drive_ro"
26115 msgstr ""
26116
26117 #. type: verbatim
26118 #: ../src/guestfs-actions.pod:282
26119 #, no-wrap
26120 msgid ""
26121 " int\n"
26122 " guestfs_add_drive_ro (guestfs_h *g,\n"
26123 "                       const char *filename);\n"
26124 "\n"
26125 msgstr ""
26126
26127 #. type: textblock
26128 #: ../src/guestfs-actions.pod:286
26129 msgid ""
26130 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26131 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26132 "disk is added read-only, with the format being detected automatically."
26133 msgstr ""
26134
26135 #. type: textblock
26136 #: ../src/guestfs-actions.pod:293
26137 msgid "(Added in 1.0.38)"
26138 msgstr "(Додано у 1.0.38)"
26139
26140 #. type: =head2
26141 #: ../src/guestfs-actions.pod:295
26142 msgid "guestfs_add_drive_ro_with_if"
26143 msgstr ""
26144
26145 #. type: verbatim
26146 #: ../src/guestfs-actions.pod:297
26147 #, no-wrap
26148 msgid ""
26149 " int\n"
26150 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26151 "                               const char *filename,\n"
26152 "                               const char *iface);\n"
26153 "\n"
26154 msgstr ""
26155
26156 #. type: textblock
26157 #: ../src/guestfs-actions.pod:309
26158 msgid ""
26159 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26160 "QEMU interface emulation to use at run time."
26161 msgstr ""
26162
26163 #. type: textblock
26164 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26165 #: ../src/guestfs-actions.pod:2881
26166 msgid "(Added in 1.0.84)"
26167 msgstr "(Додано у 1.0.84)"
26168
26169 #. type: =head2
26170 #: ../src/guestfs-actions.pod:316
26171 msgid "guestfs_add_drive_with_if"
26172 msgstr ""
26173
26174 #. type: verbatim
26175 #: ../src/guestfs-actions.pod:318
26176 #, no-wrap
26177 msgid ""
26178 " int\n"
26179 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26180 "                            const char *filename,\n"
26181 "                            const char *iface);\n"
26182 "\n"
26183 msgstr ""
26184
26185 #. type: textblock
26186 #: ../src/guestfs-actions.pod:330
26187 msgid ""
26188 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26189 "QEMU interface emulation to use at run time."
26190 msgstr ""
26191
26192 #. type: =head2
26193 #: ../src/guestfs-actions.pod:337
26194 msgid "guestfs_aug_clear"
26195 msgstr ""
26196
26197 #. type: verbatim
26198 #: ../src/guestfs-actions.pod:339
26199 #, no-wrap
26200 msgid ""
26201 " int\n"
26202 " guestfs_aug_clear (guestfs_h *g,\n"
26203 "                    const char *augpath);\n"
26204 "\n"
26205 msgstr ""
26206
26207 #. type: textblock
26208 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
26209 msgid "(Added in 1.3.4)"
26210 msgstr "(Додано у 1.3.4)"
26211
26212 #. type: =head2
26213 #: ../src/guestfs-actions.pod:350
26214 msgid "guestfs_aug_close"
26215 msgstr ""
26216
26217 #. type: verbatim
26218 #: ../src/guestfs-actions.pod:352
26219 #, no-wrap
26220 msgid ""
26221 " int\n"
26222 " guestfs_aug_close (guestfs_h *g);\n"
26223 "\n"
26224 msgstr ""
26225
26226 #. type: textblock
26227 #: ../src/guestfs-actions.pod:355
26228 msgid ""
26229 "Close the current Augeas handle and free up any resources used by it.  After "
26230 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26231 "any other Augeas functions."
26232 msgstr ""
26233
26234 #. type: textblock
26235 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26236 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26237 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26238 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26239 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26240 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26241 #: ../src/guestfs-actions.pod:6460
26242 msgid "(Added in 0.7)"
26243 msgstr "(Додано у 0.7)"
26244
26245 #. type: =head2
26246 #: ../src/guestfs-actions.pod:364
26247 msgid "guestfs_aug_defnode"
26248 msgstr ""
26249
26250 #. type: verbatim
26251 #: ../src/guestfs-actions.pod:366
26252 #, no-wrap
26253 msgid ""
26254 " struct guestfs_int_bool *\n"
26255 " guestfs_aug_defnode (guestfs_h *g,\n"
26256 "                      const char *name,\n"
26257 "                      const char *expr,\n"
26258 "                      const char *val);\n"
26259 "\n"
26260 msgstr ""
26261
26262 #. type: textblock
26263 #: ../src/guestfs-actions.pod:375
26264 msgid ""
26265 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26266 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26267 "containing that single node."
26268 msgstr ""
26269
26270 #. type: textblock
26271 #: ../src/guestfs-actions.pod:383
26272 msgid ""
26273 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26274 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26275 msgstr ""
26276
26277 #. type: =head2
26278 #: ../src/guestfs-actions.pod:389
26279 msgid "guestfs_aug_defvar"
26280 msgstr ""
26281
26282 #. type: verbatim
26283 #: ../src/guestfs-actions.pod:391
26284 #, no-wrap
26285 msgid ""
26286 " int\n"
26287 " guestfs_aug_defvar (guestfs_h *g,\n"
26288 "                     const char *name,\n"
26289 "                     const char *expr);\n"
26290 "\n"
26291 msgstr ""
26292
26293 #. type: =head2
26294 #: ../src/guestfs-actions.pod:407
26295 msgid "guestfs_aug_get"
26296 msgstr "guestfs_aug_get"
26297
26298 #. type: verbatim
26299 #: ../src/guestfs-actions.pod:409
26300 #, no-wrap
26301 msgid ""
26302 " char *\n"
26303 " guestfs_aug_get (guestfs_h *g,\n"
26304 "                  const char *augpath);\n"
26305 "\n"
26306 msgstr ""
26307 " char *\n"
26308 " guestfs_aug_get (guestfs_h *g,\n"
26309 "                  const char *augpath);\n"
26310 "\n"
26311
26312 #. type: textblock
26313 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
26314 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
26315 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
26316 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
26317 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
26318 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
26319 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
26320 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
26321 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
26322 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
26323 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
26324 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
26325 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
26326 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
26327 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
26328 #: ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4661
26329 #: ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:5076
26330 #: ../src/guestfs-actions.pod:5969 ../src/guestfs-actions.pod:6170
26331 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6536
26332 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:7245
26333 #: ../src/guestfs-actions.pod:7261 ../src/guestfs-actions.pod:7285
26334 #: ../src/guestfs-actions.pod:7309 ../src/guestfs-actions.pod:8103
26335 #: ../src/guestfs-actions.pod:8122 ../src/guestfs-actions.pod:8140
26336 #: ../src/guestfs-actions.pod:8314 ../src/guestfs-actions.pod:8628
26337 msgid ""
26338 "This function returns a string, or NULL on error.  I<The caller must free "
26339 "the returned string after use>."
26340 msgstr ""
26341
26342 #. type: =head2
26343 #: ../src/guestfs-actions.pod:421
26344 msgid "guestfs_aug_init"
26345 msgstr "guestfs_aug_init"
26346
26347 #. type: verbatim
26348 #: ../src/guestfs-actions.pod:423
26349 #, no-wrap
26350 msgid ""
26351 " int\n"
26352 " guestfs_aug_init (guestfs_h *g,\n"
26353 "                   const char *root,\n"
26354 "                   int flags);\n"
26355 "\n"
26356 msgstr ""
26357 " int\n"
26358 " guestfs_aug_init (guestfs_h *g,\n"
26359 "                   const char *root,\n"
26360 "                   int flags);\n"
26361 "\n"
26362
26363 #. type: textblock
26364 #: ../src/guestfs-actions.pod:432
26365 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26366 msgstr ""
26367
26368 #. type: textblock
26369 #: ../src/guestfs-actions.pod:457
26370 msgid ""
26371 "This option is only useful when debugging Augeas lenses.  Use of this option "
26372 "may require additional memory for the libguestfs appliance.  You may need to "
26373 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26374 "C<guestfs_set_memsize>."
26375 msgstr ""
26376
26377 #. type: textblock
26378 #: ../src/guestfs-actions.pod:472
26379 msgid "Do not load the tree in C<guestfs_aug_init>."
26380 msgstr ""
26381
26382 #. type: textblock
26383 #: ../src/guestfs-actions.pod:476
26384 msgid "To close the handle, you can call C<guestfs_aug_close>."
26385 msgstr ""
26386
26387 #. type: =head2
26388 #: ../src/guestfs-actions.pod:484
26389 msgid "guestfs_aug_insert"
26390 msgstr "guestfs_aug_insert"
26391
26392 #. type: verbatim
26393 #: ../src/guestfs-actions.pod:486
26394 #, no-wrap
26395 msgid ""
26396 " int\n"
26397 " guestfs_aug_insert (guestfs_h *g,\n"
26398 "                     const char *augpath,\n"
26399 "                     const char *label,\n"
26400 "                     int before);\n"
26401 "\n"
26402 msgstr ""
26403 " int\n"
26404 " guestfs_aug_insert (guestfs_h *g,\n"
26405 "                     const char *augpath,\n"
26406 "                     const char *label,\n"
26407 "                     int before);\n"
26408 "\n"
26409
26410 #. type: =head2
26411 #: ../src/guestfs-actions.pod:504
26412 msgid "guestfs_aug_load"
26413 msgstr "guestfs_aug_load"
26414
26415 #. type: verbatim
26416 #: ../src/guestfs-actions.pod:506
26417 #, no-wrap
26418 msgid ""
26419 " int\n"
26420 " guestfs_aug_load (guestfs_h *g);\n"
26421 "\n"
26422 msgstr ""
26423 " int\n"
26424 " guestfs_aug_load (guestfs_h *g);\n"
26425 "\n"
26426
26427 #. type: =head2
26428 #: ../src/guestfs-actions.pod:518
26429 msgid "guestfs_aug_ls"
26430 msgstr "guestfs_aug_ls"
26431
26432 #. type: verbatim
26433 #: ../src/guestfs-actions.pod:520
26434 #, no-wrap
26435 msgid ""
26436 " char **\n"
26437 " guestfs_aug_ls (guestfs_h *g,\n"
26438 "                 const char *augpath);\n"
26439 "\n"
26440 msgstr ""
26441 " char **\n"
26442 " guestfs_aug_ls (guestfs_h *g,\n"
26443 "                 const char *augpath);\n"
26444 "\n"
26445
26446 #. type: textblock
26447 #: ../src/guestfs-actions.pod:524
26448 msgid ""
26449 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26450 "sorting the resulting nodes into alphabetical order."
26451 msgstr ""
26452
26453 #. type: textblock
26454 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26455 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26456 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26457 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26458 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26459 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26460 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26461 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26462 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26463 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26464 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26465 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4296
26466 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4800
26467 #: ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:6330
26468 #: ../src/guestfs-actions.pod:6456 ../src/guestfs-actions.pod:6570
26469 #: ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7386
26470 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7587
26471 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:8207
26472 #: ../src/guestfs-actions.pod:8227 ../src/guestfs-actions.pod:8274
26473 #: ../src/guestfs-actions.pod:8468 ../src/guestfs-actions.pod:8487
26474 #: ../src/guestfs-actions.pod:8578 ../src/guestfs-actions.pod:8597
26475 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
26476 msgid ""
26477 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26478 ">), or NULL if there was an error.  I<The caller must free the strings and "
26479 "the array after use>."
26480 msgstr ""
26481
26482 #. type: textblock
26483 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26484 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26485 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26486 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4691
26487 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5049
26488 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5699
26489 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6668
26490 #: ../src/guestfs-actions.pod:6682 ../src/guestfs-actions.pod:6694
26491 #: ../src/guestfs-actions.pod:7172 ../src/guestfs-actions.pod:7945
26492 #: ../src/guestfs-actions.pod:7958 ../src/guestfs-actions.pod:8191
26493 #: ../src/guestfs-actions.pod:8456
26494 msgid "(Added in 0.8)"
26495 msgstr "(Додано у 0.8)"
26496
26497 #. type: =head2
26498 #: ../src/guestfs-actions.pod:533
26499 msgid "guestfs_aug_match"
26500 msgstr "guestfs_aug_match"
26501
26502 #. type: verbatim
26503 #: ../src/guestfs-actions.pod:535
26504 #, no-wrap
26505 msgid ""
26506 " char **\n"
26507 " guestfs_aug_match (guestfs_h *g,\n"
26508 "                    const char *augpath);\n"
26509 "\n"
26510 msgstr ""
26511 " char **\n"
26512 " guestfs_aug_match (guestfs_h *g,\n"
26513 "                    const char *augpath);\n"
26514 "\n"
26515
26516 #. type: =head2
26517 #: ../src/guestfs-actions.pod:549
26518 msgid "guestfs_aug_mv"
26519 msgstr "guestfs_aug_mv"
26520
26521 #. type: verbatim
26522 #: ../src/guestfs-actions.pod:551
26523 #, no-wrap
26524 msgid ""
26525 " int\n"
26526 " guestfs_aug_mv (guestfs_h *g,\n"
26527 "                 const char *src,\n"
26528 "                 const char *dest);\n"
26529 "\n"
26530 msgstr ""
26531 " int\n"
26532 " guestfs_aug_mv (guestfs_h *g,\n"
26533 "                 const char *src,\n"
26534 "                 const char *dest);\n"
26535 "\n"
26536
26537 #. type: =head2
26538 #: ../src/guestfs-actions.pod:563
26539 msgid "guestfs_aug_rm"
26540 msgstr "guestfs_aug_rm"
26541
26542 #. type: verbatim
26543 #: ../src/guestfs-actions.pod:565
26544 #, no-wrap
26545 msgid ""
26546 " int\n"
26547 " guestfs_aug_rm (guestfs_h *g,\n"
26548 "                 const char *augpath);\n"
26549 "\n"
26550 msgstr ""
26551 " int\n"
26552 " guestfs_aug_rm (guestfs_h *g,\n"
26553 "                 const char *augpath);\n"
26554 "\n"
26555
26556 #. type: =head2
26557 #: ../src/guestfs-actions.pod:577
26558 msgid "guestfs_aug_save"
26559 msgstr "guestfs_aug_save"
26560
26561 #. type: verbatim
26562 #: ../src/guestfs-actions.pod:579
26563 #, no-wrap
26564 msgid ""
26565 " int\n"
26566 " guestfs_aug_save (guestfs_h *g);\n"
26567 "\n"
26568 msgstr ""
26569 " int\n"
26570 " guestfs_aug_save (guestfs_h *g);\n"
26571 "\n"
26572
26573 #. type: textblock
26574 #: ../src/guestfs-actions.pod:584
26575 msgid ""
26576 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26577 "are saved."
26578 msgstr ""
26579
26580 #. type: =head2
26581 #: ../src/guestfs-actions.pod:591
26582 msgid "guestfs_aug_set"
26583 msgstr "guestfs_aug_set"
26584
26585 #. type: verbatim
26586 #: ../src/guestfs-actions.pod:593
26587 #, no-wrap
26588 msgid ""
26589 " int\n"
26590 " guestfs_aug_set (guestfs_h *g,\n"
26591 "                  const char *augpath,\n"
26592 "                  const char *val);\n"
26593 "\n"
26594 msgstr ""
26595 " int\n"
26596 " guestfs_aug_set (guestfs_h *g,\n"
26597 "                  const char *augpath,\n"
26598 "                  const char *val);\n"
26599 "\n"
26600
26601 #. type: textblock
26602 #: ../src/guestfs-actions.pod:600
26603 msgid ""
26604 "In the Augeas API, it is possible to clear a node by setting the value to "
26605 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26606 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26607 msgstr ""
26608
26609 #. type: =head2
26610 #: ../src/guestfs-actions.pod:609
26611 msgid "guestfs_available"
26612 msgstr "guestfs_available"
26613
26614 #. type: verbatim
26615 #: ../src/guestfs-actions.pod:611
26616 #, no-wrap
26617 msgid ""
26618 " int\n"
26619 " guestfs_available (guestfs_h *g,\n"
26620 "                    char *const *groups);\n"
26621 "\n"
26622 msgstr ""
26623 " int\n"
26624 " guestfs_available (guestfs_h *g,\n"
26625 "                    char *const *groups);\n"
26626 "\n"
26627
26628 #. type: textblock
26629 #: ../src/guestfs-actions.pod:619
26630 msgid ""
26631 "The libguestfs groups, and the functions that those groups correspond to, "
26632 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26633 "runtime by calling C<guestfs_available_all_groups>."
26634 msgstr ""
26635
26636 #. type: textblock
26637 #: ../src/guestfs-actions.pod:643
26638 msgid "You must call C<guestfs_launch> before calling this function."
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../src/guestfs-actions.pod:665
26643 msgid ""
26644 "This call was added in version C<1.0.80>.  In previous versions of "
26645 "libguestfs all you could do would be to speculatively execute a command to "
26646 "find out if the daemon implemented it.  See also C<guestfs_version>."
26647 msgstr ""
26648
26649 #. type: textblock
26650 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26651 msgid "(Added in 1.0.80)"
26652 msgstr "(Додано у 1.0.80)"
26653
26654 #. type: =head2
26655 #: ../src/guestfs-actions.pod:676
26656 msgid "guestfs_available_all_groups"
26657 msgstr "guestfs_available_all_groups"
26658
26659 #. type: verbatim
26660 #: ../src/guestfs-actions.pod:678
26661 #, no-wrap
26662 msgid ""
26663 " char **\n"
26664 " guestfs_available_all_groups (guestfs_h *g);\n"
26665 "\n"
26666 msgstr ""
26667 " char **\n"
26668 " guestfs_available_all_groups (guestfs_h *g);\n"
26669 "\n"
26670
26671 #. type: textblock
26672 #: ../src/guestfs-actions.pod:681
26673 msgid ""
26674 "This command returns a list of all optional groups that this daemon knows "
26675 "about.  Note this returns both supported and unsupported groups.  To find "
26676 "out which ones the daemon can actually support you have to call "
26677 "C<guestfs_available> on each member of the returned list."
26678 msgstr ""
26679
26680 #. type: textblock
26681 #: ../src/guestfs-actions.pod:687
26682 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26683 msgstr ""
26684
26685 #. type: textblock
26686 #: ../src/guestfs-actions.pod:693
26687 msgid "(Added in 1.3.15)"
26688 msgstr "(Додано у 1.3.15)"
26689
26690 #. type: =head2
26691 #: ../src/guestfs-actions.pod:695
26692 msgid "guestfs_base64_in"
26693 msgstr "guestfs_base64_in"
26694
26695 #. type: verbatim
26696 #: ../src/guestfs-actions.pod:697
26697 #, no-wrap
26698 msgid ""
26699 " int\n"
26700 " guestfs_base64_in (guestfs_h *g,\n"
26701 "                    const char *base64file,\n"
26702 "                    const char *filename);\n"
26703 "\n"
26704 msgstr ""
26705 " int\n"
26706 " guestfs_base64_in (guestfs_h *g,\n"
26707 "                    const char *base64file,\n"
26708 "                    const char *filename);\n"
26709 "\n"
26710
26711 #. type: textblock
26712 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26713 msgid "(Added in 1.3.5)"
26714 msgstr "(Додано у 1.3.5)"
26715
26716 #. type: =head2
26717 #: ../src/guestfs-actions.pod:709
26718 msgid "guestfs_base64_out"
26719 msgstr "guestfs_base64_out"
26720
26721 #. type: verbatim
26722 #: ../src/guestfs-actions.pod:711
26723 #, no-wrap
26724 msgid ""
26725 " int\n"
26726 " guestfs_base64_out (guestfs_h *g,\n"
26727 "                     const char *filename,\n"
26728 "                     const char *base64file);\n"
26729 "\n"
26730 msgstr ""
26731 " int\n"
26732 " guestfs_base64_out (guestfs_h *g,\n"
26733 "                     const char *filename,\n"
26734 "                     const char *base64file);\n"
26735 "\n"
26736
26737 #. type: =head2
26738 #: ../src/guestfs-actions.pod:723
26739 msgid "guestfs_blockdev_flushbufs"
26740 msgstr "guestfs_blockdev_flushbufs"
26741
26742 #. type: verbatim
26743 #: ../src/guestfs-actions.pod:725
26744 #, no-wrap
26745 msgid ""
26746 " int\n"
26747 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26748 "                             const char *device);\n"
26749 "\n"
26750 msgstr ""
26751 " int\n"
26752 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26753 "                             const char *device);\n"
26754 "\n"
26755
26756 #. type: textblock
26757 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26758 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26759 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26760 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26761 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26762 msgid "(Added in 0.9.3)"
26763 msgstr "(Додано у 0.9.3)"
26764
26765 #. type: =head2
26766 #: ../src/guestfs-actions.pod:738
26767 msgid "guestfs_blockdev_getbsz"
26768 msgstr "guestfs_blockdev_getbsz"
26769
26770 #. type: verbatim
26771 #: ../src/guestfs-actions.pod:740
26772 #, no-wrap
26773 msgid ""
26774 " int\n"
26775 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26776 "                          const char *device);\n"
26777 "\n"
26778 msgstr ""
26779 " int\n"
26780 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26781 "                          const char *device);\n"
26782 "\n"
26783
26784 #. type: =head2
26785 #: ../src/guestfs-actions.pod:755
26786 msgid "guestfs_blockdev_getro"
26787 msgstr "guestfs_blockdev_getro"
26788
26789 #. type: verbatim
26790 #: ../src/guestfs-actions.pod:757
26791 #, no-wrap
26792 msgid ""
26793 " int\n"
26794 " guestfs_blockdev_getro (guestfs_h *g,\n"
26795 "                         const char *device);\n"
26796 "\n"
26797 msgstr ""
26798 " int\n"
26799 " guestfs_blockdev_getro (guestfs_h *g,\n"
26800 "                         const char *device);\n"
26801 "\n"
26802
26803 #. type: textblock
26804 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26805 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26806 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26807 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26808 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26809 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26810 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26811 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26812 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26813 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26814 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26815 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26816 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26817 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26818 #: ../src/guestfs-actions.pod:5933
26819 msgid "This function returns a C truth value on success or -1 on error."
26820 msgstr ""
26821
26822 #. type: =head2
26823 #: ../src/guestfs-actions.pod:770
26824 msgid "guestfs_blockdev_getsize64"
26825 msgstr "guestfs_blockdev_getsize64"
26826
26827 #. type: verbatim
26828 #: ../src/guestfs-actions.pod:772
26829 #, no-wrap
26830 msgid ""
26831 " int64_t\n"
26832 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26833 "                             const char *device);\n"
26834 "\n"
26835 msgstr ""
26836 " int64_t\n"
26837 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26838 "                             const char *device);\n"
26839 "\n"
26840
26841 #. type: textblock
26842 #: ../src/guestfs-actions.pod:778
26843 msgid "See also C<guestfs_blockdev_getsz>."
26844 msgstr ""
26845
26846 #. type: =head2
26847 #: ../src/guestfs-actions.pod:786
26848 msgid "guestfs_blockdev_getss"
26849 msgstr "guestfs_blockdev_getss"
26850
26851 #. type: verbatim
26852 #: ../src/guestfs-actions.pod:788
26853 #, no-wrap
26854 msgid ""
26855 " int\n"
26856 " guestfs_blockdev_getss (guestfs_h *g,\n"
26857 "                         const char *device);\n"
26858 "\n"
26859 msgstr ""
26860 " int\n"
26861 " guestfs_blockdev_getss (guestfs_h *g,\n"
26862 "                         const char *device);\n"
26863 "\n"
26864
26865 #. type: textblock
26866 #: ../src/guestfs-actions.pod:795
26867 msgid ""
26868 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26869 "that)."
26870 msgstr ""
26871
26872 #. type: =head2
26873 #: ../src/guestfs-actions.pod:804
26874 msgid "guestfs_blockdev_getsz"
26875 msgstr "guestfs_blockdev_getsz"
26876
26877 #. type: verbatim
26878 #: ../src/guestfs-actions.pod:806
26879 #, no-wrap
26880 msgid ""
26881 " int64_t\n"
26882 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26883 "                         const char *device);\n"
26884 "\n"
26885 msgstr ""
26886 " int64_t\n"
26887 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26888 "                         const char *device);\n"
26889 "\n"
26890
26891 #. type: textblock
26892 #: ../src/guestfs-actions.pod:813
26893 msgid ""
26894 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26895 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26896 msgstr ""
26897
26898 #. type: =head2
26899 #: ../src/guestfs-actions.pod:823
26900 msgid "guestfs_blockdev_rereadpt"
26901 msgstr "guestfs_blockdev_rereadpt"
26902
26903 #. type: verbatim
26904 #: ../src/guestfs-actions.pod:825
26905 #, no-wrap
26906 msgid ""
26907 " int\n"
26908 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26909 "                            const char *device);\n"
26910 "\n"
26911 msgstr ""
26912 " int\n"
26913 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26914 "                            const char *device);\n"
26915 "\n"
26916
26917 #. type: =head2
26918 #: ../src/guestfs-actions.pod:837
26919 msgid "guestfs_blockdev_setbsz"
26920 msgstr "guestfs_blockdev_setbsz"
26921
26922 #. type: verbatim
26923 #: ../src/guestfs-actions.pod:839
26924 #, no-wrap
26925 msgid ""
26926 " int\n"
26927 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26928 "                          const char *device,\n"
26929 "                          int blocksize);\n"
26930 "\n"
26931 msgstr ""
26932 " int\n"
26933 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26934 "                          const char *device,\n"
26935 "                          int blocksize);\n"
26936 "\n"
26937
26938 #. type: =head2
26939 #: ../src/guestfs-actions.pod:855
26940 msgid "guestfs_blockdev_setro"
26941 msgstr "guestfs_blockdev_setro"
26942
26943 #. type: verbatim
26944 #: ../src/guestfs-actions.pod:857
26945 #, no-wrap
26946 msgid ""
26947 " int\n"
26948 " guestfs_blockdev_setro (guestfs_h *g,\n"
26949 "                         const char *device);\n"
26950 "\n"
26951 msgstr ""
26952 " int\n"
26953 " guestfs_blockdev_setro (guestfs_h *g,\n"
26954 "                         const char *device);\n"
26955 "\n"
26956
26957 #. type: =head2
26958 #: ../src/guestfs-actions.pod:869
26959 msgid "guestfs_blockdev_setrw"
26960 msgstr "guestfs_blockdev_setrw"
26961
26962 #. type: verbatim
26963 #: ../src/guestfs-actions.pod:871
26964 #, no-wrap
26965 msgid ""
26966 " int\n"
26967 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26968 "                         const char *device);\n"
26969 "\n"
26970 msgstr ""
26971 " int\n"
26972 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26973 "                         const char *device);\n"
26974 "\n"
26975
26976 #. type: =head2
26977 #: ../src/guestfs-actions.pod:883
26978 msgid "guestfs_btrfs_filesystem_resize"
26979 msgstr "guestfs_btrfs_filesystem_resize"
26980
26981 #. type: verbatim
26982 #: ../src/guestfs-actions.pod:885
26983 #, no-wrap
26984 msgid ""
26985 " int\n"
26986 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26987 "                                  const char *mountpoint,\n"
26988 "                                  ...);\n"
26989 "\n"
26990 msgstr ""
26991 " int\n"
26992 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26993 "                                  const char *mountpoint,\n"
26994 "                                  ...);\n"
26995 "\n"
26996
26997 #. type: verbatim
26998 #: ../src/guestfs-actions.pod:895
26999 #, no-wrap
27000 msgid ""
27001 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27002 "\n"
27003 msgstr ""
27004 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27005 "\n"
27006
27007 #. type: textblock
27008 #: ../src/guestfs-actions.pod:918
27009 msgid "(Added in 1.11.17)"
27010 msgstr "(Додано у 1.11.17)"
27011
27012 #. type: =head2
27013 #: ../src/guestfs-actions.pod:920
27014 msgid "guestfs_btrfs_filesystem_resize_va"
27015 msgstr "guestfs_btrfs_filesystem_resize_va"
27016
27017 #. type: verbatim
27018 #: ../src/guestfs-actions.pod:922
27019 #, no-wrap
27020 msgid ""
27021 " int\n"
27022 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27023 "                                     const char *mountpoint,\n"
27024 "                                     va_list args);\n"
27025 "\n"
27026 msgstr ""
27027 " int\n"
27028 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27029 "                                     const char *mountpoint,\n"
27030 "                                     va_list args);\n"
27031 "\n"
27032
27033 #. type: textblock
27034 #: ../src/guestfs-actions.pod:927
27035 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27036 msgstr ""
27037
27038 #. type: =head2
27039 #: ../src/guestfs-actions.pod:931
27040 msgid "guestfs_btrfs_filesystem_resize_argv"
27041 msgstr "guestfs_btrfs_filesystem_resize_argv"
27042
27043 #. type: verbatim
27044 #: ../src/guestfs-actions.pod:933
27045 #, no-wrap
27046 msgid ""
27047 " int\n"
27048 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27049 "                                       const char *mountpoint,\n"
27050 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27051 "\n"
27052 msgstr ""
27053 " int\n"
27054 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27055 "                                       const char *mountpoint,\n"
27056 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27057 "\n"
27058
27059 #. type: textblock
27060 #: ../src/guestfs-actions.pod:938
27061 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27062 msgstr ""
27063
27064 #. type: =head2
27065 #: ../src/guestfs-actions.pod:942
27066 msgid "guestfs_case_sensitive_path"
27067 msgstr ""
27068
27069 #. type: verbatim
27070 #: ../src/guestfs-actions.pod:944
27071 #, no-wrap
27072 msgid ""
27073 " char *\n"
27074 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27075 "                              const char *path);\n"
27076 "\n"
27077 msgstr ""
27078
27079 #. type: textblock
27080 #: ../src/guestfs-actions.pod:970
27081 msgid ""
27082 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
27083 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27084 "how the directories were originally created under Windows)."
27085 msgstr ""
27086
27087 #. type: textblock
27088 #: ../src/guestfs-actions.pod:978
27089 msgid "See also C<guestfs_realpath>."
27090 msgstr ""
27091
27092 #. type: textblock
27093 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8125
27094 msgid "(Added in 1.0.75)"
27095 msgstr "(Додано у 1.0.75)"
27096
27097 #. type: =head2
27098 #: ../src/guestfs-actions.pod:985
27099 msgid "guestfs_cat"
27100 msgstr ""
27101
27102 #. type: verbatim
27103 #: ../src/guestfs-actions.pod:987
27104 #, no-wrap
27105 msgid ""
27106 " char *\n"
27107 " guestfs_cat (guestfs_h *g,\n"
27108 "              const char *path);\n"
27109 "\n"
27110 msgstr ""
27111
27112 #. type: textblock
27113 #: ../src/guestfs-actions.pod:993
27114 msgid ""
27115 "Note that this function cannot correctly handle binary files (specifically, "
27116 "files containing C<\\0> character which is treated as end of string).  For "
27117 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27118 "functions which have a more complex interface."
27119 msgstr ""
27120
27121 #. type: textblock
27122 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
27123 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4317
27124 #: ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4804
27125 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:6334
27126 #: ../src/guestfs-actions.pod:6348 ../src/guestfs-actions.pod:8278
27127 #: ../src/guestfs-actions.pod:8292
27128 msgid "(Added in 0.4)"
27129 msgstr "(Додано у 0.4)"
27130
27131 #. type: =head2
27132 #: ../src/guestfs-actions.pod:1006
27133 msgid "guestfs_checksum"
27134 msgstr ""
27135
27136 #. type: verbatim
27137 #: ../src/guestfs-actions.pod:1008
27138 #, no-wrap
27139 msgid ""
27140 " char *\n"
27141 " guestfs_checksum (guestfs_h *g,\n"
27142 "                   const char *csumtype,\n"
27143 "                   const char *path);\n"
27144 "\n"
27145 msgstr ""
27146
27147 #. type: textblock
27148 #: ../src/guestfs-actions.pod:1054
27149 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27150 msgstr ""
27151
27152 #. type: textblock
27153 #: ../src/guestfs-actions.pod:1056
27154 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27155 msgstr ""
27156
27157 #. type: textblock
27158 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
27159 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
27160 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
27161 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7981
27162 msgid "(Added in 1.0.2)"
27163 msgstr "(Додано у 1.0.2)"
27164
27165 #. type: =head2
27166 #: ../src/guestfs-actions.pod:1063
27167 msgid "guestfs_checksum_device"
27168 msgstr ""
27169
27170 #. type: verbatim
27171 #: ../src/guestfs-actions.pod:1065
27172 #, no-wrap
27173 msgid ""
27174 " char *\n"
27175 " guestfs_checksum_device (guestfs_h *g,\n"
27176 "                          const char *csumtype,\n"
27177 "                          const char *device);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: textblock
27182 #: ../src/guestfs-actions.pod:1070
27183 msgid ""
27184 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27185 "device named C<device>.  For the types of checksums supported see the "
27186 "C<guestfs_checksum> command."
27187 msgstr ""
27188
27189 #. type: textblock
27190 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5766
27191 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5935
27192 #: ../src/guestfs-actions.pod:5953 ../src/guestfs-actions.pod:6135
27193 #: ../src/guestfs-actions.pod:7890 ../src/guestfs-actions.pod:7904
27194 #: ../src/guestfs-actions.pod:8304
27195 msgid "(Added in 1.3.2)"
27196 msgstr "(Додано у 1.3.2)"
27197
27198 #. type: =head2
27199 #: ../src/guestfs-actions.pod:1079
27200 msgid "guestfs_checksums_out"
27201 msgstr ""
27202
27203 #. type: verbatim
27204 #: ../src/guestfs-actions.pod:1081
27205 #, no-wrap
27206 msgid ""
27207 " int\n"
27208 " guestfs_checksums_out (guestfs_h *g,\n"
27209 "                        const char *csumtype,\n"
27210 "                        const char *directory,\n"
27211 "                        const char *sumsfile);\n"
27212 "\n"
27213 msgstr ""
27214
27215 #. type: textblock
27216 #: ../src/guestfs-actions.pod:1101
27217 msgid "(Added in 1.3.7)"
27218 msgstr "(Додано у 1.3.7)"
27219
27220 #. type: =head2
27221 #: ../src/guestfs-actions.pod:1103
27222 msgid "guestfs_chmod"
27223 msgstr ""
27224
27225 #. type: verbatim
27226 #: ../src/guestfs-actions.pod:1105
27227 #, no-wrap
27228 msgid ""
27229 " int\n"
27230 " guestfs_chmod (guestfs_h *g,\n"
27231 "                int mode,\n"
27232 "                const char *path);\n"
27233 "\n"
27234 msgstr ""
27235
27236 #. type: =head2
27237 #: ../src/guestfs-actions.pod:1123
27238 msgid "guestfs_chown"
27239 msgstr ""
27240
27241 #. type: verbatim
27242 #: ../src/guestfs-actions.pod:1125
27243 #, no-wrap
27244 msgid ""
27245 " int\n"
27246 " guestfs_chown (guestfs_h *g,\n"
27247 "                int owner,\n"
27248 "                int group,\n"
27249 "                const char *path);\n"
27250 "\n"
27251 msgstr ""
27252
27253 #. type: =head2
27254 #: ../src/guestfs-actions.pod:1141
27255 msgid "guestfs_command"
27256 msgstr ""
27257
27258 #. type: verbatim
27259 #: ../src/guestfs-actions.pod:1143
27260 #, no-wrap
27261 msgid ""
27262 " char *\n"
27263 " guestfs_command (guestfs_h *g,\n"
27264 "                  char *const *arguments);\n"
27265 "\n"
27266 msgstr ""
27267
27268 #. type: textblock
27269 #: ../src/guestfs-actions.pod:1152
27270 msgid ""
27271 "The single parameter is an argv-style list of arguments.  The first element "
27272 "is the name of the program to run.  Subsequent elements are parameters.  The "
27273 "list must be non-empty (ie. must contain a program name).  Note that the "
27274 "command runs directly, and is I<not> invoked via the shell (see "
27275 "C<guestfs_sh>)."
27276 msgstr ""
27277
27278 #. type: textblock
27279 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
27280 #: ../src/guestfs-actions.pod:2027
27281 msgid "(Added in 0.9.1)"
27282 msgstr "(Додано у 0.9.1)"
27283
27284 #. type: =head2
27285 #: ../src/guestfs-actions.pod:1185
27286 msgid "guestfs_command_lines"
27287 msgstr ""
27288
27289 #. type: verbatim
27290 #: ../src/guestfs-actions.pod:1187
27291 #, no-wrap
27292 msgid ""
27293 " char **\n"
27294 " guestfs_command_lines (guestfs_h *g,\n"
27295 "                        char *const *arguments);\n"
27296 "\n"
27297 msgstr ""
27298
27299 #. type: textblock
27300 #: ../src/guestfs-actions.pod:1191
27301 msgid ""
27302 "This is the same as C<guestfs_command>, but splits the result into a list of "
27303 "lines."
27304 msgstr ""
27305
27306 #. type: textblock
27307 #: ../src/guestfs-actions.pod:1194
27308 msgid "See also: C<guestfs_sh_lines>"
27309 msgstr ""
27310
27311 #. type: =head2
27312 #: ../src/guestfs-actions.pod:1205
27313 msgid "guestfs_compress_device_out"
27314 msgstr ""
27315
27316 #. type: verbatim
27317 #: ../src/guestfs-actions.pod:1207
27318 #, no-wrap
27319 msgid ""
27320 " int\n"
27321 " guestfs_compress_device_out (guestfs_h *g,\n"
27322 "                              const char *ctype,\n"
27323 "                              const char *device,\n"
27324 "                              const char *zdevice,\n"
27325 "                              ...);\n"
27326 "\n"
27327 msgstr ""
27328
27329 #. type: verbatim
27330 #: ../src/guestfs-actions.pod:1219
27331 #, no-wrap
27332 msgid ""
27333 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27334 "\n"
27335 msgstr ""
27336
27337 #. type: textblock
27338 #: ../src/guestfs-actions.pod:1224
27339 msgid ""
27340 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27341 "C<guestfs_compress_out>."
27342 msgstr ""
27343
27344 #. type: textblock
27345 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
27346 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7051
27347 msgid "(Added in 1.13.15)"
27348 msgstr ""
27349
27350 #. type: =head2
27351 #: ../src/guestfs-actions.pod:1231
27352 msgid "guestfs_compress_device_out_va"
27353 msgstr ""
27354
27355 #. type: verbatim
27356 #: ../src/guestfs-actions.pod:1233
27357 #, no-wrap
27358 msgid ""
27359 " int\n"
27360 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27361 "                                 const char *ctype,\n"
27362 "                                 const char *device,\n"
27363 "                                 const char *zdevice,\n"
27364 "                                 va_list args);\n"
27365 "\n"
27366 msgstr ""
27367
27368 #. type: textblock
27369 #: ../src/guestfs-actions.pod:1240
27370 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27371 msgstr ""
27372
27373 #. type: =head2
27374 #: ../src/guestfs-actions.pod:1244
27375 msgid "guestfs_compress_device_out_argv"
27376 msgstr ""
27377
27378 #. type: verbatim
27379 #: ../src/guestfs-actions.pod:1246
27380 #, no-wrap
27381 msgid ""
27382 " int\n"
27383 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27384 "                                   const char *ctype,\n"
27385 "                                   const char *device,\n"
27386 "                                   const char *zdevice,\n"
27387 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27388 "\n"
27389 msgstr ""
27390
27391 #. type: textblock
27392 #: ../src/guestfs-actions.pod:1253
27393 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27394 msgstr ""
27395
27396 #. type: =head2
27397 #: ../src/guestfs-actions.pod:1257
27398 msgid "guestfs_compress_out"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:1259
27403 #, no-wrap
27404 msgid ""
27405 " int\n"
27406 " guestfs_compress_out (guestfs_h *g,\n"
27407 "                       const char *ctype,\n"
27408 "                       const char *file,\n"
27409 "                       const char *zfile,\n"
27410 "                       ...);\n"
27411 "\n"
27412 msgstr ""
27413
27414 #. type: verbatim
27415 #: ../src/guestfs-actions.pod:1271
27416 #, no-wrap
27417 msgid ""
27418 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27419 "\n"
27420 msgstr ""
27421
27422 #. type: =head2
27423 #: ../src/guestfs-actions.pod:1290
27424 msgid "guestfs_compress_out_va"
27425 msgstr ""
27426
27427 #. type: verbatim
27428 #: ../src/guestfs-actions.pod:1292
27429 #, no-wrap
27430 msgid ""
27431 " int\n"
27432 " guestfs_compress_out_va (guestfs_h *g,\n"
27433 "                          const char *ctype,\n"
27434 "                          const char *file,\n"
27435 "                          const char *zfile,\n"
27436 "                          va_list args);\n"
27437 "\n"
27438 msgstr ""
27439
27440 #. type: textblock
27441 #: ../src/guestfs-actions.pod:1299
27442 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27443 msgstr ""
27444
27445 #. type: =head2
27446 #: ../src/guestfs-actions.pod:1303
27447 msgid "guestfs_compress_out_argv"
27448 msgstr ""
27449
27450 #. type: verbatim
27451 #: ../src/guestfs-actions.pod:1305
27452 #, no-wrap
27453 msgid ""
27454 " int\n"
27455 " guestfs_compress_out_argv (guestfs_h *g,\n"
27456 "                            const char *ctype,\n"
27457 "                            const char *file,\n"
27458 "                            const char *zfile,\n"
27459 "                            const struct guestfs_compress_out_argv *optargs);\n"
27460 "\n"
27461 msgstr ""
27462
27463 #. type: textblock
27464 #: ../src/guestfs-actions.pod:1312
27465 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27466 msgstr ""
27467
27468 #. type: =head2
27469 #: ../src/guestfs-actions.pod:1316
27470 msgid "guestfs_config"
27471 msgstr ""
27472
27473 #. type: verbatim
27474 #: ../src/guestfs-actions.pod:1318
27475 #, no-wrap
27476 msgid ""
27477 " int\n"
27478 " guestfs_config (guestfs_h *g,\n"
27479 "                 const char *qemuparam,\n"
27480 "                 const char *qemuvalue);\n"
27481 "\n"
27482 msgstr ""
27483
27484 #. type: =head2
27485 #: ../src/guestfs-actions.pod:1336
27486 msgid "guestfs_copy_device_to_device"
27487 msgstr ""
27488
27489 #. type: verbatim
27490 #: ../src/guestfs-actions.pod:1338
27491 #, no-wrap
27492 msgid ""
27493 " int\n"
27494 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27495 "                                const char *src,\n"
27496 "                                const char *dest,\n"
27497 "                                ...);\n"
27498 "\n"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../src/guestfs-actions.pod:1349
27503 #, no-wrap
27504 msgid ""
27505 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27506 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27507 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27508 "\n"
27509 msgstr ""
27510
27511 #. type: textblock
27512 #: ../src/guestfs-actions.pod:1353
27513 msgid ""
27514 "The four calls C<guestfs_copy_device_to_device>, "
27515 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27516 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27517 "destination (device|file)."
27518 msgstr ""
27519
27520 #. type: textblock
27521 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27522 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27523 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27524 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27525 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27526 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7976
27527 #: ../src/guestfs-actions.pod:8010 ../src/guestfs-actions.pod:8517
27528 #: ../src/guestfs-actions.pod:8540
27529 msgid ""
27530 "This long-running command can generate progress notification messages so "
27531 "that the caller can display a progress bar or indicator.  To receive these "
27532 "messages, the caller must register a progress event callback.  See L<guestfs"
27533 "(3)/GUESTFS_EVENT_PROGRESS>."
27534 msgstr ""
27535
27536 #. type: textblock
27537 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27538 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27539 #: ../src/guestfs-actions.pod:6191
27540 #, fuzzy
27541 #| msgid "(Added in 1.3.5)"
27542 msgid "(Added in 1.13.25)"
27543 msgstr "(Додано у 1.3.5)"
27544
27545 #. type: =head2
27546 #: ../src/guestfs-actions.pod:1381
27547 msgid "guestfs_copy_device_to_device_va"
27548 msgstr ""
27549
27550 #. type: verbatim
27551 #: ../src/guestfs-actions.pod:1383
27552 #, no-wrap
27553 msgid ""
27554 " int\n"
27555 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27556 "                                   const char *src,\n"
27557 "                                   const char *dest,\n"
27558 "                                   va_list args);\n"
27559 "\n"
27560 msgstr ""
27561
27562 #. type: textblock
27563 #: ../src/guestfs-actions.pod:1389
27564 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27565 msgstr ""
27566
27567 #. type: =head2
27568 #: ../src/guestfs-actions.pod:1393
27569 msgid "guestfs_copy_device_to_device_argv"
27570 msgstr ""
27571
27572 #. type: verbatim
27573 #: ../src/guestfs-actions.pod:1395
27574 #, no-wrap
27575 msgid ""
27576 " int\n"
27577 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27578 "                                     const char *src,\n"
27579 "                                     const char *dest,\n"
27580 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27581 "\n"
27582 msgstr ""
27583
27584 #. type: textblock
27585 #: ../src/guestfs-actions.pod:1401
27586 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27587 msgstr ""
27588
27589 #. type: =head2
27590 #: ../src/guestfs-actions.pod:1405
27591 msgid "guestfs_copy_device_to_file"
27592 msgstr ""
27593
27594 #. type: verbatim
27595 #: ../src/guestfs-actions.pod:1407
27596 #, no-wrap
27597 msgid ""
27598 " int\n"
27599 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27600 "                              const char *src,\n"
27601 "                              const char *dest,\n"
27602 "                              ...);\n"
27603 "\n"
27604 msgstr ""
27605
27606 #. type: verbatim
27607 #: ../src/guestfs-actions.pod:1418
27608 #, no-wrap
27609 msgid ""
27610 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27611 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27612 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27613 "\n"
27614 msgstr ""
27615
27616 #. type: textblock
27617 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27618 #: ../src/guestfs-actions.pod:1528
27619 msgid ""
27620 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27621 msgstr ""
27622
27623 #. type: =head2
27624 #: ../src/guestfs-actions.pod:1434
27625 msgid "guestfs_copy_device_to_file_va"
27626 msgstr ""
27627
27628 #. type: verbatim
27629 #: ../src/guestfs-actions.pod:1436
27630 #, no-wrap
27631 msgid ""
27632 " int\n"
27633 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27634 "                                 const char *src,\n"
27635 "                                 const char *dest,\n"
27636 "                                 va_list args);\n"
27637 "\n"
27638 msgstr ""
27639
27640 #. type: textblock
27641 #: ../src/guestfs-actions.pod:1442
27642 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27643 msgstr ""
27644
27645 #. type: =head2
27646 #: ../src/guestfs-actions.pod:1446
27647 msgid "guestfs_copy_device_to_file_argv"
27648 msgstr ""
27649
27650 #. type: verbatim
27651 #: ../src/guestfs-actions.pod:1448
27652 #, no-wrap
27653 msgid ""
27654 " int\n"
27655 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27656 "                                   const char *src,\n"
27657 "                                   const char *dest,\n"
27658 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27659 "\n"
27660 msgstr ""
27661
27662 #. type: textblock
27663 #: ../src/guestfs-actions.pod:1454
27664 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27665 msgstr ""
27666
27667 #. type: =head2
27668 #: ../src/guestfs-actions.pod:1458
27669 msgid "guestfs_copy_file_to_device"
27670 msgstr ""
27671
27672 #. type: verbatim
27673 #: ../src/guestfs-actions.pod:1460
27674 #, no-wrap
27675 msgid ""
27676 " int\n"
27677 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27678 "                              const char *src,\n"
27679 "                              const char *dest,\n"
27680 "                              ...);\n"
27681 "\n"
27682 msgstr ""
27683
27684 #. type: verbatim
27685 #: ../src/guestfs-actions.pod:1471
27686 #, no-wrap
27687 msgid ""
27688 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27689 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27690 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27691 "\n"
27692 msgstr ""
27693
27694 #. type: =head2
27695 #: ../src/guestfs-actions.pod:1487
27696 msgid "guestfs_copy_file_to_device_va"
27697 msgstr ""
27698
27699 #. type: verbatim
27700 #: ../src/guestfs-actions.pod:1489
27701 #, no-wrap
27702 msgid ""
27703 " int\n"
27704 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27705 "                                 const char *src,\n"
27706 "                                 const char *dest,\n"
27707 "                                 va_list args);\n"
27708 "\n"
27709 msgstr ""
27710
27711 #. type: textblock
27712 #: ../src/guestfs-actions.pod:1495
27713 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27714 msgstr ""
27715
27716 #. type: =head2
27717 #: ../src/guestfs-actions.pod:1499
27718 msgid "guestfs_copy_file_to_device_argv"
27719 msgstr ""
27720
27721 #. type: verbatim
27722 #: ../src/guestfs-actions.pod:1501
27723 #, no-wrap
27724 msgid ""
27725 " int\n"
27726 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27727 "                                   const char *src,\n"
27728 "                                   const char *dest,\n"
27729 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27730 "\n"
27731 msgstr ""
27732
27733 #. type: textblock
27734 #: ../src/guestfs-actions.pod:1507
27735 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27736 msgstr ""
27737
27738 #. type: =head2
27739 #: ../src/guestfs-actions.pod:1511
27740 msgid "guestfs_copy_file_to_file"
27741 msgstr ""
27742
27743 #. type: verbatim
27744 #: ../src/guestfs-actions.pod:1513
27745 #, no-wrap
27746 msgid ""
27747 " int\n"
27748 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27749 "                            const char *src,\n"
27750 "                            const char *dest,\n"
27751 "                            ...);\n"
27752 "\n"
27753 msgstr ""
27754
27755 #. type: verbatim
27756 #: ../src/guestfs-actions.pod:1524
27757 #, no-wrap
27758 msgid ""
27759 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27760 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27761 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27762 "\n"
27763 msgstr ""
27764
27765 #. type: textblock
27766 #: ../src/guestfs-actions.pod:1531
27767 msgid ""
27768 "This is B<not> the function you want for copying files.  This is for copying "
27769 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27770 "C<guestfs_mv> for general file copying and moving functions."
27771 msgstr ""
27772
27773 #. type: =head2
27774 #: ../src/guestfs-actions.pod:1545
27775 msgid "guestfs_copy_file_to_file_va"
27776 msgstr ""
27777
27778 #. type: verbatim
27779 #: ../src/guestfs-actions.pod:1547
27780 #, no-wrap
27781 msgid ""
27782 " int\n"
27783 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27784 "                               const char *src,\n"
27785 "                               const char *dest,\n"
27786 "                               va_list args);\n"
27787 "\n"
27788 msgstr ""
27789
27790 #. type: textblock
27791 #: ../src/guestfs-actions.pod:1553
27792 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27793 msgstr ""
27794
27795 #. type: =head2
27796 #: ../src/guestfs-actions.pod:1557
27797 msgid "guestfs_copy_file_to_file_argv"
27798 msgstr ""
27799
27800 #. type: verbatim
27801 #: ../src/guestfs-actions.pod:1559
27802 #, no-wrap
27803 msgid ""
27804 " int\n"
27805 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27806 "                                 const char *src,\n"
27807 "                                 const char *dest,\n"
27808 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27809 "\n"
27810 msgstr ""
27811
27812 #. type: textblock
27813 #: ../src/guestfs-actions.pod:1565
27814 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27815 msgstr ""
27816
27817 #. type: =head2
27818 #: ../src/guestfs-actions.pod:1569
27819 msgid "guestfs_copy_size"
27820 msgstr ""
27821
27822 #. type: verbatim
27823 #: ../src/guestfs-actions.pod:1571
27824 #, no-wrap
27825 msgid ""
27826 " int\n"
27827 " guestfs_copy_size (guestfs_h *g,\n"
27828 "                    const char *src,\n"
27829 "                    const char *dest,\n"
27830 "                    int64_t size);\n"
27831 "\n"
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27836 msgid ""
27837 "I<This function is deprecated.> In new code, use the L</"
27838 "guestfs_copy_device_to_device> call instead."
27839 msgstr ""
27840
27841 #. type: textblock
27842 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4831
27843 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:8211
27844 #: ../src/guestfs-actions.pod:8231 ../src/guestfs-actions.pod:8317
27845 msgid "(Added in 1.0.87)"
27846 msgstr "(Додано у 1.0.87)"
27847
27848 #. type: =head2
27849 #: ../src/guestfs-actions.pod:1599
27850 msgid "guestfs_cp"
27851 msgstr ""
27852
27853 #. type: verbatim
27854 #: ../src/guestfs-actions.pod:1601
27855 #, no-wrap
27856 msgid ""
27857 " int\n"
27858 " guestfs_cp (guestfs_h *g,\n"
27859 "             const char *src,\n"
27860 "             const char *dest);\n"
27861 "\n"
27862 msgstr ""
27863
27864 #. type: textblock
27865 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27866 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27867 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5713
27868 #: ../src/guestfs-actions.pod:6205
27869 msgid "(Added in 1.0.18)"
27870 msgstr "(Додано у 1.0.18)"
27871
27872 #. type: =head2
27873 #: ../src/guestfs-actions.pod:1613
27874 msgid "guestfs_cp_a"
27875 msgstr ""
27876
27877 #. type: verbatim
27878 #: ../src/guestfs-actions.pod:1615
27879 #, no-wrap
27880 msgid ""
27881 " int\n"
27882 " guestfs_cp_a (guestfs_h *g,\n"
27883 "               const char *src,\n"
27884 "               const char *dest);\n"
27885 "\n"
27886 msgstr ""
27887
27888 #. type: =head2
27889 #: ../src/guestfs-actions.pod:1627
27890 msgid "guestfs_dd"
27891 msgstr ""
27892
27893 #. type: verbatim
27894 #: ../src/guestfs-actions.pod:1629
27895 #, no-wrap
27896 msgid ""
27897 " int\n"
27898 " guestfs_dd (guestfs_h *g,\n"
27899 "             const char *src,\n"
27900 "             const char *dest);\n"
27901 "\n"
27902 msgstr ""
27903
27904 #. type: textblock
27905 #: ../src/guestfs-actions.pod:1646
27906 msgid ""
27907 "If the destination is a device, it must be as large or larger than the "
27908 "source file or device, otherwise the copy will fail.  This command cannot do "
27909 "partial copies (see C<guestfs_copy_device_to_device>)."
27910 msgstr ""
27911
27912 #. type: =head2
27913 #: ../src/guestfs-actions.pod:1655
27914 msgid "guestfs_df"
27915 msgstr ""
27916
27917 #. type: verbatim
27918 #: ../src/guestfs-actions.pod:1657
27919 #, no-wrap
27920 msgid ""
27921 " char *\n"
27922 " guestfs_df (guestfs_h *g);\n"
27923 "\n"
27924 msgstr ""
27925
27926 #. type: textblock
27927 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27928 msgid ""
27929 "This command is mostly useful for interactive sessions.  It is I<not> "
27930 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27931 "from programs."
27932 msgstr ""
27933
27934 #. type: textblock
27935 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
27936 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
27937 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
27938 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5613
27939 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7618
27940 #: ../src/guestfs-actions.pod:8357 ../src/guestfs-actions.pod:8370
27941 #: ../src/guestfs-actions.pod:8383
27942 msgid "(Added in 1.0.54)"
27943 msgstr "(Додано у 1.0.54)"
27944
27945 #. type: =head2
27946 #: ../src/guestfs-actions.pod:1671
27947 msgid "guestfs_df_h"
27948 msgstr ""
27949
27950 #. type: verbatim
27951 #: ../src/guestfs-actions.pod:1673
27952 #, no-wrap
27953 msgid ""
27954 " char *\n"
27955 " guestfs_df_h (guestfs_h *g);\n"
27956 "\n"
27957 msgstr ""
27958
27959 #. type: =head2
27960 #: ../src/guestfs-actions.pod:1688
27961 msgid "guestfs_dmesg"
27962 msgstr ""
27963
27964 #. type: verbatim
27965 #: ../src/guestfs-actions.pod:1690
27966 #, no-wrap
27967 msgid ""
27968 " char *\n"
27969 " guestfs_dmesg (guestfs_h *g);\n"
27970 "\n"
27971 msgstr ""
27972
27973 #. type: textblock
27974 #: ../src/guestfs-actions.pod:1697
27975 msgid ""
27976 "Another way to get the same information is to enable verbose messages with "
27977 "C<guestfs_set_verbose> or by setting the environment variable "
27978 "C<LIBGUESTFS_DEBUG=1> before running the program."
27979 msgstr ""
27980
27981 #. type: =head2
27982 #: ../src/guestfs-actions.pod:1707
27983 msgid "guestfs_download"
27984 msgstr ""
27985
27986 #. type: verbatim
27987 #: ../src/guestfs-actions.pod:1709
27988 #, no-wrap
27989 msgid ""
27990 " int\n"
27991 " guestfs_download (guestfs_h *g,\n"
27992 "                   const char *remotefilename,\n"
27993 "                   const char *filename);\n"
27994 "\n"
27995 msgstr ""
27996
27997 #. type: textblock
27998 #: ../src/guestfs-actions.pod:1719
27999 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28000 msgstr ""
28001
28002 #. type: =head2
28003 #: ../src/guestfs-actions.pod:1730
28004 msgid "guestfs_download_offset"
28005 msgstr ""
28006
28007 #. type: verbatim
28008 #: ../src/guestfs-actions.pod:1732
28009 #, no-wrap
28010 msgid ""
28011 " int\n"
28012 " guestfs_download_offset (guestfs_h *g,\n"
28013 "                          const char *remotefilename,\n"
28014 "                          const char *filename,\n"
28015 "                          int64_t offset,\n"
28016 "                          int64_t size);\n"
28017 "\n"
28018 msgstr ""
28019
28020 #. type: textblock
28021 #: ../src/guestfs-actions.pod:1745
28022 msgid ""
28023 "Note that there is no limit on the amount of data that can be downloaded "
28024 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28025 "full amount unless an error occurs."
28026 msgstr ""
28027
28028 #. type: textblock
28029 #: ../src/guestfs-actions.pod:1750
28030 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28031 msgstr ""
28032
28033 #. type: textblock
28034 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8015
28035 msgid "(Added in 1.5.17)"
28036 msgstr "(Додано у 1.5.17)"
28037
28038 #. type: =head2
28039 #: ../src/guestfs-actions.pod:1761
28040 msgid "guestfs_drop_caches"
28041 msgstr ""
28042
28043 #. type: verbatim
28044 #: ../src/guestfs-actions.pod:1763
28045 #, no-wrap
28046 msgid ""
28047 " int\n"
28048 " guestfs_drop_caches (guestfs_h *g,\n"
28049 "                      int whattodrop);\n"
28050 "\n"
28051 msgstr ""
28052
28053 #. type: =head2
28054 #: ../src/guestfs-actions.pod:1781
28055 msgid "guestfs_du"
28056 msgstr ""
28057
28058 #. type: verbatim
28059 #: ../src/guestfs-actions.pod:1783
28060 #, no-wrap
28061 msgid ""
28062 " int64_t\n"
28063 " guestfs_du (guestfs_h *g,\n"
28064 "             const char *path);\n"
28065 "\n"
28066 msgstr ""
28067
28068 #. type: =head2
28069 #: ../src/guestfs-actions.pod:1806
28070 msgid "guestfs_e2fsck_f"
28071 msgstr ""
28072
28073 #. type: verbatim
28074 #: ../src/guestfs-actions.pod:1808
28075 #, no-wrap
28076 msgid ""
28077 " int\n"
28078 " guestfs_e2fsck_f (guestfs_h *g,\n"
28079 "                   const char *device);\n"
28080 "\n"
28081 msgstr ""
28082
28083 #. type: textblock
28084 #: ../src/guestfs-actions.pod:1816
28085 msgid ""
28086 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
28087 "Normally you should use C<guestfs_fsck>."
28088 msgstr ""
28089
28090 #. type: textblock
28091 #: ../src/guestfs-actions.pod:1821
28092 msgid "(Added in 1.0.29)"
28093 msgstr "(Додано у 1.0.29)"
28094
28095 #. type: =head2
28096 #: ../src/guestfs-actions.pod:1823
28097 msgid "guestfs_echo_daemon"
28098 msgstr "guestfs_echo_daemon"
28099
28100 #. type: verbatim
28101 #: ../src/guestfs-actions.pod:1825
28102 #, no-wrap
28103 msgid ""
28104 " char *\n"
28105 " guestfs_echo_daemon (guestfs_h *g,\n"
28106 "                      char *const *words);\n"
28107 "\n"
28108 msgstr ""
28109 " char *\n"
28110 " guestfs_echo_daemon (guestfs_h *g,\n"
28111 "                      char *const *words);\n"
28112 "\n"
28113
28114 #. type: textblock
28115 #: ../src/guestfs-actions.pod:1834
28116 msgid "See also C<guestfs_ping_daemon>."
28117 msgstr ""
28118
28119 #. type: textblock
28120 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
28121 #: ../src/guestfs-actions.pod:7075
28122 msgid "(Added in 1.0.69)"
28123 msgstr "(Додано у 1.0.69)"
28124
28125 #. type: =head2
28126 #: ../src/guestfs-actions.pod:1841
28127 msgid "guestfs_egrep"
28128 msgstr "guestfs_egrep"
28129
28130 #. type: verbatim
28131 #: ../src/guestfs-actions.pod:1843
28132 #, no-wrap
28133 msgid ""
28134 " char **\n"
28135 " guestfs_egrep (guestfs_h *g,\n"
28136 "                const char *regex,\n"
28137 "                const char *path);\n"
28138 "\n"
28139 msgstr ""
28140 " char **\n"
28141 " guestfs_egrep (guestfs_h *g,\n"
28142 "                const char *regex,\n"
28143 "                const char *path);\n"
28144 "\n"
28145
28146 #. type: textblock
28147 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
28148 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
28149 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
28150 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
28151 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
28152 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
28153 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4330
28154 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4357
28155 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:5501
28156 #: ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6588
28157 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7474
28158 #: ../src/guestfs-actions.pod:7487 ../src/guestfs-actions.pod:7500
28159 #: ../src/guestfs-actions.pod:7522 ../src/guestfs-actions.pod:7535
28160 #: ../src/guestfs-actions.pod:7548 ../src/guestfs-actions.pod:7561
28161 #: ../src/guestfs-actions.pod:8475 ../src/guestfs-actions.pod:8494
28162 #: ../src/guestfs-actions.pod:8585 ../src/guestfs-actions.pod:8604
28163 #: ../src/guestfs-actions.pod:8650 ../src/guestfs-actions.pod:8669
28164 msgid "(Added in 1.0.66)"
28165 msgstr "(Додано у 1.0.66)"
28166
28167 #. type: =head2
28168 #: ../src/guestfs-actions.pod:1860
28169 msgid "guestfs_egrepi"
28170 msgstr "guestfs_egrepi"
28171
28172 #. type: verbatim
28173 #: ../src/guestfs-actions.pod:1862
28174 #, no-wrap
28175 msgid ""
28176 " char **\n"
28177 " guestfs_egrepi (guestfs_h *g,\n"
28178 "                 const char *regex,\n"
28179 "                 const char *path);\n"
28180 "\n"
28181 msgstr ""
28182
28183 #. type: =head2
28184 #: ../src/guestfs-actions.pod:1879
28185 msgid "guestfs_equal"
28186 msgstr ""
28187
28188 #. type: verbatim
28189 #: ../src/guestfs-actions.pod:1881
28190 #, no-wrap
28191 msgid ""
28192 " int\n"
28193 " guestfs_equal (guestfs_h *g,\n"
28194 "                const char *file1,\n"
28195 "                const char *file2);\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: =head2
28200 #: ../src/guestfs-actions.pod:1895
28201 msgid "guestfs_exists"
28202 msgstr ""
28203
28204 #. type: verbatim
28205 #: ../src/guestfs-actions.pod:1897
28206 #, no-wrap
28207 msgid ""
28208 " int\n"
28209 " guestfs_exists (guestfs_h *g,\n"
28210 "                 const char *path);\n"
28211 "\n"
28212 msgstr ""
28213
28214 #. type: textblock
28215 #: ../src/guestfs-actions.pod:1904
28216 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28217 msgstr ""
28218
28219 #. type: =head2
28220 #: ../src/guestfs-actions.pod:1910
28221 msgid "guestfs_fallocate"
28222 msgstr ""
28223
28224 #. type: verbatim
28225 #: ../src/guestfs-actions.pod:1912
28226 #, no-wrap
28227 msgid ""
28228 " int\n"
28229 " guestfs_fallocate (guestfs_h *g,\n"
28230 "                    const char *path,\n"
28231 "                    int len);\n"
28232 "\n"
28233 msgstr ""
28234
28235 #. type: textblock
28236 #: ../src/guestfs-actions.pod:1917
28237 msgid ""
28238 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28239 "call instead."
28240 msgstr ""
28241
28242 #. type: =head2
28243 #: ../src/guestfs-actions.pod:1936
28244 msgid "guestfs_fallocate64"
28245 msgstr ""
28246
28247 #. type: verbatim
28248 #: ../src/guestfs-actions.pod:1938
28249 #, no-wrap
28250 msgid ""
28251 " int\n"
28252 " guestfs_fallocate64 (guestfs_h *g,\n"
28253 "                      const char *path,\n"
28254 "                      int64_t len);\n"
28255 "\n"
28256 msgstr ""
28257
28258 #. type: textblock
28259 #: ../src/guestfs-actions.pod:1947
28260 msgid ""
28261 "Note that this call allocates disk blocks for the file.  To create a sparse "
28262 "file use C<guestfs_truncate_size> instead."
28263 msgstr ""
28264
28265 #. type: textblock
28266 #: ../src/guestfs-actions.pod:1950
28267 msgid ""
28268 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28269 "oversight it only allowed 30 bit lengths to be specified, effectively "
28270 "limiting the maximum size of files created through that call to 1GB."
28271 msgstr ""
28272
28273 #. type: textblock
28274 #: ../src/guestfs-actions.pod:1961
28275 msgid "(Added in 1.3.17)"
28276 msgstr "(Додано у 1.3.17)"
28277
28278 #. type: =head2
28279 #: ../src/guestfs-actions.pod:1963
28280 msgid "guestfs_fgrep"
28281 msgstr ""
28282
28283 #. type: verbatim
28284 #: ../src/guestfs-actions.pod:1965
28285 #, no-wrap
28286 msgid ""
28287 " char **\n"
28288 " guestfs_fgrep (guestfs_h *g,\n"
28289 "                const char *pattern,\n"
28290 "                const char *path);\n"
28291 "\n"
28292 msgstr ""
28293
28294 #. type: =head2
28295 #: ../src/guestfs-actions.pod:1982
28296 msgid "guestfs_fgrepi"
28297 msgstr ""
28298
28299 #. type: verbatim
28300 #: ../src/guestfs-actions.pod:1984
28301 #, no-wrap
28302 msgid ""
28303 " char **\n"
28304 " guestfs_fgrepi (guestfs_h *g,\n"
28305 "                 const char *pattern,\n"
28306 "                 const char *path);\n"
28307 "\n"
28308 msgstr ""
28309
28310 #. type: =head2
28311 #: ../src/guestfs-actions.pod:2001
28312 msgid "guestfs_file"
28313 msgstr ""
28314
28315 #. type: verbatim
28316 #: ../src/guestfs-actions.pod:2003
28317 #, no-wrap
28318 msgid ""
28319 " char *\n"
28320 " guestfs_file (guestfs_h *g,\n"
28321 "               const char *path);\n"
28322 "\n"
28323 msgstr ""
28324
28325 #. type: textblock
28326 #: ../src/guestfs-actions.pod:2021
28327 msgid ""
28328 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28329 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28330 msgstr ""
28331
28332 #. type: =head2
28333 #: ../src/guestfs-actions.pod:2029
28334 msgid "guestfs_file_architecture"
28335 msgstr ""
28336
28337 #. type: verbatim
28338 #: ../src/guestfs-actions.pod:2031
28339 #, no-wrap
28340 msgid ""
28341 " char *\n"
28342 " guestfs_file_architecture (guestfs_h *g,\n"
28343 "                            const char *filename);\n"
28344 "\n"
28345 msgstr ""
28346
28347 #. type: textblock
28348 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
28349 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
28350 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
28351 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
28352 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
28353 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
28354 #: ../src/guestfs-actions.pod:4008
28355 msgid "(Added in 1.5.3)"
28356 msgstr "(Додано у 1.5.3)"
28357
28358 #. type: =head2
28359 #: ../src/guestfs-actions.pod:2141
28360 msgid "guestfs_filesize"
28361 msgstr ""
28362
28363 #. type: verbatim
28364 #: ../src/guestfs-actions.pod:2143
28365 #, no-wrap
28366 msgid ""
28367 " int64_t\n"
28368 " guestfs_filesize (guestfs_h *g,\n"
28369 "                   const char *file);\n"
28370 "\n"
28371 msgstr ""
28372
28373 #. type: textblock
28374 #: ../src/guestfs-actions.pod:2149
28375 msgid ""
28376 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28377 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28378 "devices, use C<guestfs_blockdev_getsize64>."
28379 msgstr ""
28380
28381 #. type: textblock
28382 #: ../src/guestfs-actions.pod:2155
28383 msgid "(Added in 1.0.82)"
28384 msgstr "(Додано у 1.0.82)"
28385
28386 #. type: =head2
28387 #: ../src/guestfs-actions.pod:2157
28388 msgid "guestfs_fill"
28389 msgstr ""
28390
28391 #. type: verbatim
28392 #: ../src/guestfs-actions.pod:2159
28393 #, no-wrap
28394 msgid ""
28395 " int\n"
28396 " guestfs_fill (guestfs_h *g,\n"
28397 "               int c,\n"
28398 "               int len,\n"
28399 "               const char *path);\n"
28400 "\n"
28401 msgstr ""
28402
28403 #. type: textblock
28404 #: ../src/guestfs-actions.pod:2169
28405 msgid ""
28406 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28407 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28408 "bytes use C<guestfs_fill_pattern>."
28409 msgstr ""
28410
28411 #. type: textblock
28412 #: ../src/guestfs-actions.pod:2181
28413 msgid "(Added in 1.0.79)"
28414 msgstr "(Додано у 1.0.79)"
28415
28416 #. type: =head2
28417 #: ../src/guestfs-actions.pod:2183
28418 msgid "guestfs_fill_pattern"
28419 msgstr ""
28420
28421 #. type: verbatim
28422 #: ../src/guestfs-actions.pod:2185
28423 #, no-wrap
28424 msgid ""
28425 " int\n"
28426 " guestfs_fill_pattern (guestfs_h *g,\n"
28427 "                       const char *pattern,\n"
28428 "                       int len,\n"
28429 "                       const char *path);\n"
28430 "\n"
28431 msgstr ""
28432
28433 #. type: textblock
28434 #: ../src/guestfs-actions.pod:2191
28435 msgid ""
28436 "This function is like C<guestfs_fill> except that it creates a new file of "
28437 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28438 "pattern is truncated if necessary to ensure the length of the file is "
28439 "exactly C<len> bytes."
28440 msgstr ""
28441
28442 #. type: textblock
28443 #: ../src/guestfs-actions.pod:2203
28444 msgid "(Added in 1.3.12)"
28445 msgstr "(Додано у 1.3.12)"
28446
28447 #. type: =head2
28448 #: ../src/guestfs-actions.pod:2205
28449 msgid "guestfs_find"
28450 msgstr ""
28451
28452 #. type: verbatim
28453 #: ../src/guestfs-actions.pod:2207
28454 #, no-wrap
28455 msgid ""
28456 " char **\n"
28457 " guestfs_find (guestfs_h *g,\n"
28458 "               const char *directory);\n"
28459 "\n"
28460 msgstr ""
28461
28462 #. type: textblock
28463 #: ../src/guestfs-actions.pod:2223
28464 msgid ""
28465 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28466 msgstr ""
28467
28468 #. type: textblock
28469 #: ../src/guestfs-actions.pod:2236
28470 msgid "See also C<guestfs_find0>."
28471 msgstr ""
28472
28473 #. type: textblock
28474 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4768
28475 #: ../src/guestfs-actions.pod:6623
28476 msgid "(Added in 1.0.27)"
28477 msgstr "(Додано у 1.0.27)"
28478
28479 #. type: =head2
28480 #: ../src/guestfs-actions.pod:2247
28481 msgid "guestfs_find0"
28482 msgstr ""
28483
28484 #. type: verbatim
28485 #: ../src/guestfs-actions.pod:2249
28486 #, no-wrap
28487 msgid ""
28488 " int\n"
28489 " guestfs_find0 (guestfs_h *g,\n"
28490 "                const char *directory,\n"
28491 "                const char *files);\n"
28492 "\n"
28493 msgstr ""
28494
28495 #. type: textblock
28496 #: ../src/guestfs-actions.pod:2258
28497 msgid ""
28498 "This command works the same way as C<guestfs_find> with the following "
28499 "exceptions:"
28500 msgstr ""
28501
28502 #. type: textblock
28503 #: ../src/guestfs-actions.pod:2285
28504 msgid "(Added in 1.0.74)"
28505 msgstr "(Додано у 1.0.74)"
28506
28507 #. type: =head2
28508 #: ../src/guestfs-actions.pod:2287
28509 msgid "guestfs_findfs_label"
28510 msgstr ""
28511
28512 #. type: verbatim
28513 #: ../src/guestfs-actions.pod:2289
28514 #, no-wrap
28515 msgid ""
28516 " char *\n"
28517 " guestfs_findfs_label (guestfs_h *g,\n"
28518 "                       const char *label);\n"
28519 "\n"
28520 msgstr ""
28521
28522 #. type: textblock
28523 #: ../src/guestfs-actions.pod:2297
28524 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28525 msgstr ""
28526
28527 #. type: =head2
28528 #: ../src/guestfs-actions.pod:2304
28529 msgid "guestfs_findfs_uuid"
28530 msgstr ""
28531
28532 #. type: verbatim
28533 #: ../src/guestfs-actions.pod:2306
28534 #, no-wrap
28535 msgid ""
28536 " char *\n"
28537 " guestfs_findfs_uuid (guestfs_h *g,\n"
28538 "                      const char *uuid);\n"
28539 "\n"
28540 msgstr ""
28541
28542 #. type: textblock
28543 #: ../src/guestfs-actions.pod:2314
28544 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28545 msgstr ""
28546
28547 #. type: =head2
28548 #: ../src/guestfs-actions.pod:2321
28549 msgid "guestfs_fsck"
28550 msgstr ""
28551
28552 #. type: verbatim
28553 #: ../src/guestfs-actions.pod:2323
28554 #, no-wrap
28555 msgid ""
28556 " int\n"
28557 " guestfs_fsck (guestfs_h *g,\n"
28558 "               const char *fstype,\n"
28559 "               const char *device);\n"
28560 "\n"
28561 msgstr ""
28562
28563 #. type: textblock
28564 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8522
28565 msgid "(Added in 1.0.16)"
28566 msgstr "(Додано у 1.0.16)"
28567
28568 #. type: =head2
28569 #: ../src/guestfs-actions.pod:2360
28570 msgid "guestfs_get_append"
28571 msgstr ""
28572
28573 #. type: verbatim
28574 #: ../src/guestfs-actions.pod:2362
28575 #, no-wrap
28576 msgid ""
28577 " const char *\n"
28578 " guestfs_get_append (guestfs_h *g);\n"
28579 "\n"
28580 msgstr ""
28581
28582 #. type: textblock
28583 #: ../src/guestfs-actions.pod:2370
28584 msgid ""
28585 "This function returns a string which may be NULL.  There is no way to return "
28586 "an error from this function.  The string is owned by the guest handle and "
28587 "must I<not> be freed."
28588 msgstr ""
28589
28590 #. type: textblock
28591 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6301
28592 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:7229
28593 #: ../src/guestfs-actions.pod:7248 ../src/guestfs-actions.pod:7264
28594 #: ../src/guestfs-actions.pod:7288 ../src/guestfs-actions.pod:8162
28595 #: ../src/guestfs-actions.pod:8177 ../src/guestfs-actions.pod:8566
28596 msgid "(Added in 1.0.26)"
28597 msgstr "(Додано у 1.0.26)"
28598
28599 #. type: =head2
28600 #: ../src/guestfs-actions.pod:2376
28601 msgid "guestfs_get_attach_method"
28602 msgstr ""
28603
28604 #. type: verbatim
28605 #: ../src/guestfs-actions.pod:2378
28606 #, no-wrap
28607 msgid ""
28608 " char *\n"
28609 " guestfs_get_attach_method (guestfs_h *g);\n"
28610 "\n"
28611 msgstr ""
28612
28613 #. type: textblock
28614 #: ../src/guestfs-actions.pod:2381
28615 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28616 msgstr ""
28617
28618 #. type: textblock
28619 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6810
28620 msgid "(Added in 1.9.8)"
28621 msgstr "(Додано у 1.9.8)"
28622
28623 #. type: =head2
28624 #: ../src/guestfs-actions.pod:2388
28625 msgid "guestfs_get_autosync"
28626 msgstr ""
28627
28628 #. type: verbatim
28629 #: ../src/guestfs-actions.pod:2390
28630 #, no-wrap
28631 msgid ""
28632 " int\n"
28633 " guestfs_get_autosync (guestfs_h *g);\n"
28634 "\n"
28635 msgstr ""
28636
28637 #. type: =head2
28638 #: ../src/guestfs-actions.pod:2399
28639 msgid "guestfs_get_direct"
28640 msgstr ""
28641
28642 #. type: verbatim
28643 #: ../src/guestfs-actions.pod:2401
28644 #, no-wrap
28645 msgid ""
28646 " int\n"
28647 " guestfs_get_direct (guestfs_h *g);\n"
28648 "\n"
28649 msgstr ""
28650
28651 #. type: textblock
28652 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6851
28653 msgid "(Added in 1.0.72)"
28654 msgstr "(Додано у 1.0.72)"
28655
28656 #. type: =head2
28657 #: ../src/guestfs-actions.pod:2410
28658 msgid "guestfs_get_e2label"
28659 msgstr ""
28660
28661 #. type: verbatim
28662 #: ../src/guestfs-actions.pod:2412
28663 #, no-wrap
28664 msgid ""
28665 " char *\n"
28666 " guestfs_get_e2label (guestfs_h *g,\n"
28667 "                      const char *device);\n"
28668 "\n"
28669 msgstr ""
28670
28671 #. type: textblock
28672 #: ../src/guestfs-actions.pod:2416
28673 msgid ""
28674 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28675 "call instead."
28676 msgstr ""
28677
28678 #. type: textblock
28679 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28680 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6888
28681 msgid "(Added in 1.0.15)"
28682 msgstr "(Додано у 1.0.15)"
28683
28684 #. type: =head2
28685 #: ../src/guestfs-actions.pod:2431
28686 msgid "guestfs_get_e2uuid"
28687 msgstr ""
28688
28689 #. type: verbatim
28690 #: ../src/guestfs-actions.pod:2433
28691 #, no-wrap
28692 msgid ""
28693 " char *\n"
28694 " guestfs_get_e2uuid (guestfs_h *g,\n"
28695 "                     const char *device);\n"
28696 "\n"
28697 msgstr ""
28698
28699 #. type: textblock
28700 #: ../src/guestfs-actions.pod:2437
28701 msgid ""
28702 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28703 "call instead."
28704 msgstr ""
28705
28706 #. type: =head2
28707 #: ../src/guestfs-actions.pod:2452
28708 msgid "guestfs_get_memsize"
28709 msgstr ""
28710
28711 #. type: verbatim
28712 #: ../src/guestfs-actions.pod:2454
28713 #, no-wrap
28714 msgid ""
28715 " int\n"
28716 " guestfs_get_memsize (guestfs_h *g);\n"
28717 "\n"
28718 msgstr ""
28719
28720 #. type: textblock
28721 #: ../src/guestfs-actions.pod:2460
28722 msgid ""
28723 "If C<guestfs_set_memsize> was not called on this handle, and if "
28724 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28725 "value for memsize."
28726 msgstr ""
28727
28728 #. type: textblock
28729 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5197
28730 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5425
28731 #: ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:5456
28732 #: ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5486
28733 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6909
28734 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7931
28735 msgid "(Added in 1.0.55)"
28736 msgstr "(Додано у 1.0.55)"
28737
28738 #. type: =head2
28739 #: ../src/guestfs-actions.pod:2471
28740 msgid "guestfs_get_network"
28741 msgstr ""
28742
28743 #. type: verbatim
28744 #: ../src/guestfs-actions.pod:2473
28745 #, no-wrap
28746 msgid ""
28747 " int\n"
28748 " guestfs_get_network (guestfs_h *g);\n"
28749 "\n"
28750 msgstr ""
28751
28752 #. type: textblock
28753 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6928
28754 msgid "(Added in 1.5.4)"
28755 msgstr "(Додано у 1.5.4)"
28756
28757 #. type: =head2
28758 #: ../src/guestfs-actions.pod:2482
28759 msgid "guestfs_get_path"
28760 msgstr ""
28761
28762 #. type: verbatim
28763 #: ../src/guestfs-actions.pod:2484
28764 #, no-wrap
28765 msgid ""
28766 " const char *\n"
28767 " guestfs_get_path (guestfs_h *g);\n"
28768 "\n"
28769 msgstr ""
28770
28771 #. type: textblock
28772 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28773 msgid ""
28774 "This function returns a string, or NULL on error.  The string is owned by "
28775 "the guest handle and must I<not> be freed."
28776 msgstr ""
28777
28778 #. type: =head2
28779 #: ../src/guestfs-actions.pod:2497
28780 msgid "guestfs_get_pgroup"
28781 msgstr ""
28782
28783 #. type: verbatim
28784 #: ../src/guestfs-actions.pod:2499
28785 #, no-wrap
28786 msgid ""
28787 " int\n"
28788 " guestfs_get_pgroup (guestfs_h *g);\n"
28789 "\n"
28790 msgstr ""
28791
28792 #. type: textblock
28793 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6964
28794 #: ../src/guestfs-actions.pod:8423
28795 msgid "(Added in 1.11.18)"
28796 msgstr "(Додано у 1.11.18)"
28797
28798 #. type: =head2
28799 #: ../src/guestfs-actions.pod:2508
28800 msgid "guestfs_get_pid"
28801 msgstr ""
28802
28803 #. type: verbatim
28804 #: ../src/guestfs-actions.pod:2510
28805 #, no-wrap
28806 msgid ""
28807 " int\n"
28808 " guestfs_get_pid (guestfs_h *g);\n"
28809 "\n"
28810 msgstr ""
28811
28812 #. type: textblock
28813 #: ../src/guestfs-actions.pod:2520
28814 msgid "(Added in 1.0.56)"
28815 msgstr "(Додано у 1.0.56)"
28816
28817 #. type: =head2
28818 #: ../src/guestfs-actions.pod:2522
28819 msgid "guestfs_get_qemu"
28820 msgstr ""
28821
28822 #. type: verbatim
28823 #: ../src/guestfs-actions.pod:2524
28824 #, no-wrap
28825 msgid ""
28826 " const char *\n"
28827 " guestfs_get_qemu (guestfs_h *g);\n"
28828 "\n"
28829 msgstr ""
28830
28831 #. type: textblock
28832 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6992
28833 msgid "(Added in 1.0.6)"
28834 msgstr "(Додано у 1.0.6)"
28835
28836 #. type: =head2
28837 #: ../src/guestfs-actions.pod:2537
28838 msgid "guestfs_get_recovery_proc"
28839 msgstr ""
28840
28841 #. type: verbatim
28842 #: ../src/guestfs-actions.pod:2539
28843 #, no-wrap
28844 msgid ""
28845 " int\n"
28846 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28847 "\n"
28848 msgstr ""
28849
28850 #. type: textblock
28851 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28852 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:4866
28853 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:6231
28854 #: ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:7016
28855 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7734
28856 #: ../src/guestfs-actions.pod:8046
28857 msgid "(Added in 1.0.77)"
28858 msgstr "(Додано у 1.0.77)"
28859
28860 #. type: =head2
28861 #: ../src/guestfs-actions.pod:2548
28862 msgid "guestfs_get_selinux"
28863 msgstr ""
28864
28865 #. type: verbatim
28866 #: ../src/guestfs-actions.pod:2550
28867 #, no-wrap
28868 msgid ""
28869 " int\n"
28870 " guestfs_get_selinux (guestfs_h *g);\n"
28871 "\n"
28872 msgstr ""
28873
28874 #. type: textblock
28875 #: ../src/guestfs-actions.pod:2553
28876 msgid ""
28877 "This returns the current setting of the selinux flag which is passed to the "
28878 "appliance at boot time.  See C<guestfs_set_selinux>."
28879 msgstr ""
28880
28881 #. type: textblock
28882 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28883 #: ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7109
28884 msgid "(Added in 1.0.67)"
28885 msgstr "(Додано у 1.0.67)"
28886
28887 #. type: =head2
28888 #: ../src/guestfs-actions.pod:2563
28889 msgid "guestfs_get_smp"
28890 msgstr ""
28891
28892 #. type: verbatim
28893 #: ../src/guestfs-actions.pod:2565
28894 #, no-wrap
28895 msgid ""
28896 " int\n"
28897 " guestfs_get_smp (guestfs_h *g);\n"
28898 "\n"
28899 msgstr ""
28900
28901 #. type: =head2
28902 #: ../src/guestfs-actions.pod:2574
28903 msgid "guestfs_get_state"
28904 msgstr ""
28905
28906 #. type: verbatim
28907 #: ../src/guestfs-actions.pod:2576
28908 #, no-wrap
28909 msgid ""
28910 " int\n"
28911 " guestfs_get_state (guestfs_h *g);\n"
28912 "\n"
28913 msgstr ""
28914
28915 #. type: =head2
28916 #: ../src/guestfs-actions.pod:2588
28917 msgid "guestfs_get_trace"
28918 msgstr ""
28919
28920 #. type: verbatim
28921 #: ../src/guestfs-actions.pod:2590
28922 #, no-wrap
28923 msgid ""
28924 " int\n"
28925 " guestfs_get_trace (guestfs_h *g);\n"
28926 "\n"
28927 msgstr ""
28928
28929 #. type: =head2
28930 #: ../src/guestfs-actions.pod:2599
28931 msgid "guestfs_get_umask"
28932 msgstr ""
28933
28934 #. type: verbatim
28935 #: ../src/guestfs-actions.pod:2601
28936 #, no-wrap
28937 msgid ""
28938 " int\n"
28939 " guestfs_get_umask (guestfs_h *g);\n"
28940 "\n"
28941 msgstr ""
28942
28943 #. type: textblock
28944 #: ../src/guestfs-actions.pod:2604
28945 msgid ""
28946 "Return the current umask.  By default the umask is C<022> unless it has been "
28947 "set by calling C<guestfs_umask>."
28948 msgstr ""
28949
28950 #. type: =head2
28951 #: ../src/guestfs-actions.pod:2611
28952 msgid "guestfs_get_verbose"
28953 msgstr ""
28954
28955 #. type: verbatim
28956 #: ../src/guestfs-actions.pod:2613
28957 #, no-wrap
28958 msgid ""
28959 " int\n"
28960 " guestfs_get_verbose (guestfs_h *g);\n"
28961 "\n"
28962 msgstr ""
28963
28964 #. type: =head2
28965 #: ../src/guestfs-actions.pod:2622
28966 msgid "guestfs_getcon"
28967 msgstr ""
28968
28969 #. type: verbatim
28970 #: ../src/guestfs-actions.pod:2624
28971 #, no-wrap
28972 msgid ""
28973 " char *\n"
28974 " guestfs_getcon (guestfs_h *g);\n"
28975 "\n"
28976 msgstr ""
28977
28978 #. type: textblock
28979 #: ../src/guestfs-actions.pod:2629
28980 msgid ""
28981 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28982 msgstr ""
28983
28984 #. type: =head2
28985 #: ../src/guestfs-actions.pod:2637
28986 msgid "guestfs_getxattr"
28987 msgstr ""
28988
28989 #. type: verbatim
28990 #: ../src/guestfs-actions.pod:2639
28991 #, no-wrap
28992 msgid ""
28993 " char *\n"
28994 " guestfs_getxattr (guestfs_h *g,\n"
28995 "                   const char *path,\n"
28996 "                   const char *name,\n"
28997 "                   size_t *size_r);\n"
28998 "\n"
28999 msgstr ""
29000
29001 #. type: textblock
29002 #: ../src/guestfs-actions.pod:2645
29003 msgid ""
29004 "Get a single extended attribute from file C<path> named C<name>.  This call "
29005 "follows symlinks.  If you want to lookup an extended attribute for the "
29006 "symlink itself, use C<guestfs_lgetxattr>."
29007 msgstr ""
29008
29009 #. type: textblock
29010 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
29011 msgid ""
29012 "Normally it is better to get all extended attributes from a file in one go "
29013 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29014 "implementations are buggy and do not provide a way to list out attributes.  "
29015 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29016 "extended attributes you want in advance and call this function."
29017 msgstr ""
29018
29019 #. type: textblock
29020 #: ../src/guestfs-actions.pod:2659
29021 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29022 msgstr ""
29023
29024 #. type: textblock
29025 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29026 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
29027 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6250
29028 #: ../src/guestfs-actions.pod:6431
29029 msgid ""
29030 "This function returns a buffer, or NULL on error.  The size of the returned "
29031 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29032 "after use>."
29033 msgstr ""
29034
29035 #. type: textblock
29036 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
29037 msgid "(Added in 1.7.24)"
29038 msgstr "(Додано у 1.7.24)"
29039
29040 #. type: =head2
29041 #: ../src/guestfs-actions.pod:2667
29042 msgid "guestfs_getxattrs"
29043 msgstr ""
29044
29045 #. type: verbatim
29046 #: ../src/guestfs-actions.pod:2669
29047 #, no-wrap
29048 msgid ""
29049 " struct guestfs_xattr_list *\n"
29050 " guestfs_getxattrs (guestfs_h *g,\n"
29051 "                    const char *path);\n"
29052 "\n"
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../src/guestfs-actions.pod:2679
29057 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29058 msgstr ""
29059
29060 #. type: textblock
29061 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
29062 #: ../src/guestfs-actions.pod:4862
29063 msgid ""
29064 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29065 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
29066 msgstr ""
29067
29068 #. type: textblock
29069 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
29070 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4422
29071 #: ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:7128
29072 #: ../src/guestfs-actions.pod:8631
29073 msgid "(Added in 1.0.59)"
29074 msgstr "(Додано у 1.0.59)"
29075
29076 #. type: =head2
29077 #: ../src/guestfs-actions.pod:2687
29078 msgid "guestfs_glob_expand"
29079 msgstr ""
29080
29081 #. type: verbatim
29082 #: ../src/guestfs-actions.pod:2689
29083 #, no-wrap
29084 msgid ""
29085 " char **\n"
29086 " guestfs_glob_expand (guestfs_h *g,\n"
29087 "                      const char *pattern);\n"
29088 "\n"
29089 msgstr ""
29090
29091 #. type: textblock
29092 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7312
29093 #: ../src/guestfs-actions.pod:7329
29094 msgid "(Added in 1.0.50)"
29095 msgstr "(Додано у 1.0.50)"
29096
29097 #. type: =head2
29098 #: ../src/guestfs-actions.pod:2710
29099 msgid "guestfs_grep"
29100 msgstr ""
29101
29102 #. type: verbatim
29103 #: ../src/guestfs-actions.pod:2712
29104 #, no-wrap
29105 msgid ""
29106 " char **\n"
29107 " guestfs_grep (guestfs_h *g,\n"
29108 "               const char *regex,\n"
29109 "               const char *path);\n"
29110 "\n"
29111 msgstr ""
29112
29113 #. type: =head2
29114 #: ../src/guestfs-actions.pod:2729
29115 msgid "guestfs_grepi"
29116 msgstr ""
29117
29118 #. type: verbatim
29119 #: ../src/guestfs-actions.pod:2731
29120 #, no-wrap
29121 msgid ""
29122 " char **\n"
29123 " guestfs_grepi (guestfs_h *g,\n"
29124 "                const char *regex,\n"
29125 "                const char *path);\n"
29126 "\n"
29127 msgstr ""
29128
29129 #. type: =head2
29130 #: ../src/guestfs-actions.pod:2748
29131 msgid "guestfs_grub_install"
29132 msgstr ""
29133
29134 #. type: verbatim
29135 #: ../src/guestfs-actions.pod:2750
29136 #, no-wrap
29137 msgid ""
29138 " int\n"
29139 " guestfs_grub_install (guestfs_h *g,\n"
29140 "                       const char *root,\n"
29141 "                       const char *device);\n"
29142 "\n"
29143 msgstr ""
29144
29145 #. type: textblock
29146 #: ../src/guestfs-actions.pod:2793
29147 msgid "(Added in 1.0.17)"
29148 msgstr "(Додано у 1.0.17)"
29149
29150 #. type: =head2
29151 #: ../src/guestfs-actions.pod:2795
29152 msgid "guestfs_head"
29153 msgstr ""
29154
29155 #. type: verbatim
29156 #: ../src/guestfs-actions.pod:2797
29157 #, no-wrap
29158 msgid ""
29159 " char **\n"
29160 " guestfs_head (guestfs_h *g,\n"
29161 "               const char *path);\n"
29162 "\n"
29163 msgstr ""
29164
29165 #. type: =head2
29166 #: ../src/guestfs-actions.pod:2813
29167 msgid "guestfs_head_n"
29168 msgstr ""
29169
29170 #. type: verbatim
29171 #: ../src/guestfs-actions.pod:2815
29172 #, no-wrap
29173 msgid ""
29174 " char **\n"
29175 " guestfs_head_n (guestfs_h *g,\n"
29176 "                 int nrlines,\n"
29177 "                 const char *path);\n"
29178 "\n"
29179 msgstr ""
29180
29181 #. type: =head2
29182 #: ../src/guestfs-actions.pod:2837
29183 msgid "guestfs_hexdump"
29184 msgstr ""
29185
29186 #. type: verbatim
29187 #: ../src/guestfs-actions.pod:2839
29188 #, no-wrap
29189 msgid ""
29190 " char *\n"
29191 " guestfs_hexdump (guestfs_h *g,\n"
29192 "                  const char *path);\n"
29193 "\n"
29194 msgstr ""
29195
29196 #. type: textblock
29197 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7393
29198 #: ../src/guestfs-actions.pod:7448
29199 msgid "(Added in 1.0.22)"
29200 msgstr "(Додано у 1.0.22)"
29201
29202 #. type: =head2
29203 #: ../src/guestfs-actions.pod:2854
29204 msgid "guestfs_initrd_cat"
29205 msgstr ""
29206
29207 #. type: verbatim
29208 #: ../src/guestfs-actions.pod:2856
29209 #, no-wrap
29210 msgid ""
29211 " char *\n"
29212 " guestfs_initrd_cat (guestfs_h *g,\n"
29213 "                     const char *initrdpath,\n"
29214 "                     const char *filename,\n"
29215 "                     size_t *size_r);\n"
29216 "\n"
29217 msgstr ""
29218
29219 #. type: textblock
29220 #: ../src/guestfs-actions.pod:2872
29221 msgid "See also C<guestfs_initrd_list>."
29222 msgstr ""
29223
29224 #. type: =head2
29225 #: ../src/guestfs-actions.pod:2883
29226 msgid "guestfs_initrd_list"
29227 msgstr ""
29228
29229 #. type: verbatim
29230 #: ../src/guestfs-actions.pod:2885
29231 #, no-wrap
29232 msgid ""
29233 " char **\n"
29234 " guestfs_initrd_list (guestfs_h *g,\n"
29235 "                      const char *path);\n"
29236 "\n"
29237 msgstr ""
29238
29239 #. type: =head2
29240 #: ../src/guestfs-actions.pod:2905
29241 msgid "guestfs_inotify_add_watch"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../src/guestfs-actions.pod:2907
29246 #, no-wrap
29247 msgid ""
29248 " int64_t\n"
29249 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29250 "                            const char *path,\n"
29251 "                            int mask);\n"
29252 "\n"
29253 msgstr ""
29254
29255 #. type: =head2
29256 #: ../src/guestfs-actions.pod:2926
29257 msgid "guestfs_inotify_close"
29258 msgstr ""
29259
29260 #. type: verbatim
29261 #: ../src/guestfs-actions.pod:2928
29262 #, no-wrap
29263 msgid ""
29264 " int\n"
29265 " guestfs_inotify_close (guestfs_h *g);\n"
29266 "\n"
29267 msgstr ""
29268
29269 #. type: =head2
29270 #: ../src/guestfs-actions.pod:2939
29271 msgid "guestfs_inotify_files"
29272 msgstr ""
29273
29274 #. type: verbatim
29275 #: ../src/guestfs-actions.pod:2941
29276 #, no-wrap
29277 msgid ""
29278 " char **\n"
29279 " guestfs_inotify_files (guestfs_h *g);\n"
29280 "\n"
29281 msgstr ""
29282
29283 #. type: textblock
29284 #: ../src/guestfs-actions.pod:2944
29285 msgid ""
29286 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29287 "returns a list of pathnames of objects that were touched.  The returned "
29288 "pathnames are sorted and deduplicated."
29289 msgstr ""
29290
29291 #. type: =head2
29292 #: ../src/guestfs-actions.pod:2954
29293 msgid "guestfs_inotify_init"
29294 msgstr ""
29295
29296 #. type: verbatim
29297 #: ../src/guestfs-actions.pod:2956
29298 #, no-wrap
29299 msgid ""
29300 " int\n"
29301 " guestfs_inotify_init (guestfs_h *g,\n"
29302 "                       int maxevents);\n"
29303 "\n"
29304 msgstr ""
29305
29306 #. type: textblock
29307 #: ../src/guestfs-actions.pod:2964
29308 msgid ""
29309 "C<maxevents> is the maximum number of events which will be queued up between "
29310 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
29311 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
29312 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
29313 "throws away events, but records the fact that it threw them away by setting "
29314 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29315 "C<guestfs_inotify_read>)."
29316 msgstr ""
29317
29318 #. type: textblock
29319 #: ../src/guestfs-actions.pod:2974
29320 msgid ""
29321 "Before any events are generated, you have to add some watches to the "
29322 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
29323 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29324 msgstr ""
29325
29326 #. type: textblock
29327 #: ../src/guestfs-actions.pod:2980
29328 msgid ""
29329 "Queued up events should be read periodically by calling "
29330 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29331 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29332 "often enough then you risk the internal queue overflowing."
29333 msgstr ""
29334
29335 #. type: textblock
29336 #: ../src/guestfs-actions.pod:2987
29337 msgid ""
29338 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29339 "This also removes any watches automatically."
29340 msgstr ""
29341
29342 #. type: =head2
29343 #: ../src/guestfs-actions.pod:3000
29344 msgid "guestfs_inotify_read"
29345 msgstr ""
29346
29347 #. type: verbatim
29348 #: ../src/guestfs-actions.pod:3002
29349 #, no-wrap
29350 msgid ""
29351 " struct guestfs_inotify_event_list *\n"
29352 " guestfs_inotify_read (guestfs_h *g);\n"
29353 "\n"
29354 msgstr ""
29355
29356 #. type: textblock
29357 #: ../src/guestfs-actions.pod:3016
29358 msgid ""
29359 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29360 "there was an error.  I<The caller must call "
29361 "C<guestfs_free_inotify_event_list> after use>."
29362 msgstr ""
29363
29364 #. type: =head2
29365 #: ../src/guestfs-actions.pod:3022
29366 msgid "guestfs_inotify_rm_watch"
29367 msgstr ""
29368
29369 #. type: verbatim
29370 #: ../src/guestfs-actions.pod:3024
29371 #, no-wrap
29372 msgid ""
29373 " int\n"
29374 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29375 "                           int wd);\n"
29376 "\n"
29377 msgstr ""
29378
29379 #. type: textblock
29380 #: ../src/guestfs-actions.pod:3028
29381 msgid ""
29382 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29383 msgstr ""
29384
29385 #. type: =head2
29386 #: ../src/guestfs-actions.pod:3035
29387 msgid "guestfs_inspect_get_arch"
29388 msgstr ""
29389
29390 #. type: verbatim
29391 #: ../src/guestfs-actions.pod:3037
29392 #, no-wrap
29393 msgid ""
29394 " char *\n"
29395 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29396 "                           const char *root);\n"
29397 "\n"
29398 msgstr ""
29399
29400 #. type: textblock
29401 #: ../src/guestfs-actions.pod:3041
29402 msgid ""
29403 "This returns the architecture of the inspected operating system.  The "
29404 "possible return values are listed under C<guestfs_file_architecture>."
29405 msgstr ""
29406
29407 #. type: =head2
29408 #: ../src/guestfs-actions.pod:3055
29409 msgid "guestfs_inspect_get_distro"
29410 msgstr ""
29411
29412 #. type: verbatim
29413 #: ../src/guestfs-actions.pod:3057
29414 #, no-wrap
29415 msgid ""
29416 " char *\n"
29417 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29418 "                             const char *root);\n"
29419 "\n"
29420 msgstr ""
29421
29422 #. type: =head2
29423 #: ../src/guestfs-actions.pod:3157
29424 msgid "guestfs_inspect_get_drive_mappings"
29425 msgstr ""
29426
29427 #. type: verbatim
29428 #: ../src/guestfs-actions.pod:3159
29429 #, no-wrap
29430 msgid ""
29431 " char **\n"
29432 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29433 "                                     const char *root);\n"
29434 "\n"
29435 msgstr ""
29436
29437 #. type: textblock
29438 #: ../src/guestfs-actions.pod:3188
29439 msgid ""
29440 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29441 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29442 msgstr ""
29443
29444 #. type: textblock
29445 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29446 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5000
29447 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:7870
29448 msgid ""
29449 "This function returns a NULL-terminated array of strings, or NULL if there "
29450 "was an error.  The array of strings will always have length C<2n+1>, where "
29451 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29452 "caller must free the strings and the array after use>."
29453 msgstr ""
29454
29455 #. type: textblock
29456 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29457 msgid "(Added in 1.9.17)"
29458 msgstr "(Додано у 1.9.17)"
29459
29460 #. type: =head2
29461 #: ../src/guestfs-actions.pod:3200
29462 msgid "guestfs_inspect_get_filesystems"
29463 msgstr ""
29464
29465 #. type: verbatim
29466 #: ../src/guestfs-actions.pod:3202
29467 #, no-wrap
29468 msgid ""
29469 " char **\n"
29470 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29471 "                                  const char *root);\n"
29472 "\n"
29473 msgstr ""
29474
29475 #. type: textblock
29476 #: ../src/guestfs-actions.pod:3214
29477 msgid ""
29478 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29479 "C<guestfs_inspect_get_mountpoints>."
29480 msgstr ""
29481
29482 #. type: =head2
29483 #: ../src/guestfs-actions.pod:3223
29484 msgid "guestfs_inspect_get_format"
29485 msgstr ""
29486
29487 #. type: verbatim
29488 #: ../src/guestfs-actions.pod:3225
29489 #, no-wrap
29490 msgid ""
29491 " char *\n"
29492 " guestfs_inspect_get_format (guestfs_h *g,\n"
29493 "                             const char *root);\n"
29494 "\n"
29495 msgstr ""
29496
29497 #. type: textblock
29498 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29499 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29500 #: ../src/guestfs-actions.pod:6642
29501 msgid "(Added in 1.9.4)"
29502 msgstr "(Додано у 1.9.4)"
29503
29504 #. type: =head2
29505 #: ../src/guestfs-actions.pod:3261
29506 msgid "guestfs_inspect_get_hostname"
29507 msgstr ""
29508
29509 #. type: verbatim
29510 #: ../src/guestfs-actions.pod:3263
29511 #, no-wrap
29512 msgid ""
29513 " char *\n"
29514 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29515 "                               const char *root);\n"
29516 "\n"
29517 msgstr ""
29518
29519 #. type: textblock
29520 #: ../src/guestfs-actions.pod:3278
29521 msgid "(Added in 1.7.9)"
29522 msgstr "(Додано у 1.7.9)"
29523
29524 #. type: =head2
29525 #: ../src/guestfs-actions.pod:3280
29526 msgid "guestfs_inspect_get_icon"
29527 msgstr ""
29528
29529 #. type: verbatim
29530 #: ../src/guestfs-actions.pod:3282
29531 #, no-wrap
29532 msgid ""
29533 " char *\n"
29534 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29535 "                           const char *root,\n"
29536 "                           size_t *size_r,\n"
29537 "                           ...);\n"
29538 "\n"
29539 msgstr ""
29540
29541 #. type: verbatim
29542 #: ../src/guestfs-actions.pod:3293
29543 #, no-wrap
29544 msgid ""
29545 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29546 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29547 "\n"
29548 msgstr ""
29549
29550 #. type: textblock
29551 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29552 #: ../src/guestfs-actions.pod:5574
29553 msgid "(Added in 1.11.12)"
29554 msgstr "(Додано у 1.11.12)"
29555
29556 #. type: =head2
29557 #: ../src/guestfs-actions.pod:3362
29558 msgid "guestfs_inspect_get_icon_va"
29559 msgstr ""
29560
29561 #. type: verbatim
29562 #: ../src/guestfs-actions.pod:3364
29563 #, no-wrap
29564 msgid ""
29565 " char *\n"
29566 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29567 "                              const char *root,\n"
29568 "                              size_t *size_r,\n"
29569 "                              va_list args);\n"
29570 "\n"
29571 msgstr ""
29572
29573 #. type: textblock
29574 #: ../src/guestfs-actions.pod:3370
29575 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29576 msgstr ""
29577
29578 #. type: =head2
29579 #: ../src/guestfs-actions.pod:3374
29580 msgid "guestfs_inspect_get_icon_argv"
29581 msgstr ""
29582
29583 #. type: verbatim
29584 #: ../src/guestfs-actions.pod:3376
29585 #, no-wrap
29586 msgid ""
29587 " char *\n"
29588 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29589 "                                const char *root,\n"
29590 "                                size_t *size_r,\n"
29591 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29592 "\n"
29593 msgstr ""
29594
29595 #. type: textblock
29596 #: ../src/guestfs-actions.pod:3382
29597 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29598 msgstr ""
29599
29600 #. type: =head2
29601 #: ../src/guestfs-actions.pod:3386
29602 msgid "guestfs_inspect_get_major_version"
29603 msgstr ""
29604
29605 #. type: verbatim
29606 #: ../src/guestfs-actions.pod:3388
29607 #, no-wrap
29608 msgid ""
29609 " int\n"
29610 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29611 "                                    const char *root);\n"
29612 "\n"
29613 msgstr ""
29614
29615 #. type: =head2
29616 #: ../src/guestfs-actions.pod:3410
29617 msgid "guestfs_inspect_get_minor_version"
29618 msgstr ""
29619
29620 #. type: verbatim
29621 #: ../src/guestfs-actions.pod:3412
29622 #, no-wrap
29623 msgid ""
29624 " int\n"
29625 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29626 "                                    const char *root);\n"
29627 "\n"
29628 msgstr ""
29629
29630 #. type: textblock
29631 #: ../src/guestfs-actions.pod:3421
29632 msgid ""
29633 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29634 "C<guestfs_inspect_get_major_version>."
29635 msgstr ""
29636
29637 #. type: =head2
29638 #: ../src/guestfs-actions.pod:3428
29639 msgid "guestfs_inspect_get_mountpoints"
29640 msgstr ""
29641
29642 #. type: verbatim
29643 #: ../src/guestfs-actions.pod:3430
29644 #, no-wrap
29645 msgid ""
29646 " char **\n"
29647 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29648 "                                  const char *root);\n"
29649 "\n"
29650 msgstr ""
29651
29652 #. type: textblock
29653 #: ../src/guestfs-actions.pod:3451
29654 msgid ""
29655 "For operating systems like Windows which still use drive letters, this call "
29656 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29657 "information about the mapping of drive letters to partitions, see "
29658 "C<guestfs_inspect_get_drive_mappings>."
29659 msgstr ""
29660
29661 #. type: textblock
29662 #: ../src/guestfs-actions.pod:3457
29663 msgid ""
29664 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29665 "C<guestfs_inspect_get_filesystems>."
29666 msgstr ""
29667
29668 #. type: =head2
29669 #: ../src/guestfs-actions.pod:3468
29670 msgid "guestfs_inspect_get_package_format"
29671 msgstr ""
29672
29673 #. type: verbatim
29674 #: ../src/guestfs-actions.pod:3470
29675 #, no-wrap
29676 msgid ""
29677 " char *\n"
29678 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29679 "                                     const char *root);\n"
29680 "\n"
29681 msgstr ""
29682
29683 #. type: textblock
29684 #: ../src/guestfs-actions.pod:3474
29685 msgid ""
29686 "This function and C<guestfs_inspect_get_package_management> return the "
29687 "package format and package management tool used by the inspected operating "
29688 "system.  For example for Fedora these functions would return C<rpm> (package "
29689 "format) and C<yum> (package management)."
29690 msgstr ""
29691
29692 #. type: textblock
29693 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29694 msgid "(Added in 1.7.5)"
29695 msgstr "(Додано у 1.7.5)"
29696
29697 #. type: =head2
29698 #: ../src/guestfs-actions.pod:3495
29699 msgid "guestfs_inspect_get_package_management"
29700 msgstr ""
29701
29702 #. type: verbatim
29703 #: ../src/guestfs-actions.pod:3497
29704 #, no-wrap
29705 msgid ""
29706 " char *\n"
29707 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29708 "                                         const char *root);\n"
29709 "\n"
29710 msgstr ""
29711
29712 #. type: textblock
29713 #: ../src/guestfs-actions.pod:3501
29714 msgid ""
29715 "C<guestfs_inspect_get_package_format> and this function return the package "
29716 "format and package management tool used by the inspected operating system.  "
29717 "For example for Fedora these functions would return C<rpm> (package format) "
29718 "and C<yum> (package management)."
29719 msgstr ""
29720
29721 #. type: =head2
29722 #: ../src/guestfs-actions.pod:3523
29723 msgid "guestfs_inspect_get_product_name"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-actions.pod:3525
29728 #, no-wrap
29729 msgid ""
29730 " char *\n"
29731 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29732 "                                   const char *root);\n"
29733 "\n"
29734 msgstr ""
29735
29736 #. type: =head2
29737 #: ../src/guestfs-actions.pod:3544
29738 msgid "guestfs_inspect_get_product_variant"
29739 msgstr ""
29740
29741 #. type: verbatim
29742 #: ../src/guestfs-actions.pod:3546
29743 #, no-wrap
29744 msgid ""
29745 " char *\n"
29746 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29747 "                                      const char *root);\n"
29748 "\n"
29749 msgstr ""
29750
29751 #. type: textblock
29752 #: ../src/guestfs-actions.pod:3569
29753 msgid ""
29754 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29755 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29756 msgstr ""
29757
29758 #. type: textblock
29759 #: ../src/guestfs-actions.pod:3576
29760 msgid "(Added in 1.9.13)"
29761 msgstr "(Додано у 1.9.13)"
29762
29763 #. type: =head2
29764 #: ../src/guestfs-actions.pod:3578
29765 msgid "guestfs_inspect_get_roots"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-actions.pod:3580
29770 #, no-wrap
29771 msgid ""
29772 " char **\n"
29773 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29774 "\n"
29775 msgstr ""
29776
29777 #. type: textblock
29778 #: ../src/guestfs-actions.pod:3583
29779 msgid ""
29780 "This function is a convenient way to get the list of root devices, as "
29781 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29782 "the whole inspection process."
29783 msgstr ""
29784
29785 #. type: textblock
29786 #: ../src/guestfs-actions.pod:3587
29787 msgid ""
29788 "This returns an empty list if either no root devices were found or the "
29789 "caller has not called C<guestfs_inspect_os>."
29790 msgstr ""
29791
29792 #. type: textblock
29793 #: ../src/guestfs-actions.pod:3596
29794 msgid "(Added in 1.7.3)"
29795 msgstr "(Додано у 1.7.3)"
29796
29797 #. type: =head2
29798 #: ../src/guestfs-actions.pod:3598
29799 msgid "guestfs_inspect_get_type"
29800 msgstr ""
29801
29802 #. type: verbatim
29803 #: ../src/guestfs-actions.pod:3600
29804 #, no-wrap
29805 msgid ""
29806 " char *\n"
29807 " guestfs_inspect_get_type (guestfs_h *g,\n"
29808 "                           const char *root);\n"
29809 "\n"
29810 msgstr ""
29811
29812 #. type: =head2
29813 #: ../src/guestfs-actions.pod:3641
29814 msgid "guestfs_inspect_get_windows_current_control_set"
29815 msgstr ""
29816
29817 #. type: verbatim
29818 #: ../src/guestfs-actions.pod:3643
29819 #, no-wrap
29820 msgid ""
29821 " char *\n"
29822 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29823 "                                                  const char *root);\n"
29824 "\n"
29825 msgstr ""
29826
29827 #. type: =head2
29828 #: ../src/guestfs-actions.pod:3661
29829 msgid "guestfs_inspect_get_windows_systemroot"
29830 msgstr ""
29831
29832 #. type: verbatim
29833 #: ../src/guestfs-actions.pod:3663
29834 #, no-wrap
29835 msgid ""
29836 " char *\n"
29837 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29838 "                                         const char *root);\n"
29839 "\n"
29840 msgstr ""
29841
29842 #. type: textblock
29843 #: ../src/guestfs-actions.pod:3679
29844 msgid "(Added in 1.5.25)"
29845 msgstr "(Додано у 1.5.25)"
29846
29847 #. type: =head2
29848 #: ../src/guestfs-actions.pod:3681
29849 msgid "guestfs_inspect_is_live"
29850 msgstr ""
29851
29852 #. type: verbatim
29853 #: ../src/guestfs-actions.pod:3683
29854 #, no-wrap
29855 msgid ""
29856 " int\n"
29857 " guestfs_inspect_is_live (guestfs_h *g,\n"
29858 "                          const char *root);\n"
29859 "\n"
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../src/guestfs-actions.pod:3687
29864 msgid ""
29865 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29866 "disk), then this returns true if a live image was detected on the disk."
29867 msgstr ""
29868
29869 #. type: =head2
29870 #: ../src/guestfs-actions.pod:3697
29871 msgid "guestfs_inspect_is_multipart"
29872 msgstr ""
29873
29874 #. type: verbatim
29875 #: ../src/guestfs-actions.pod:3699
29876 #, no-wrap
29877 msgid ""
29878 " int\n"
29879 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29880 "                               const char *root);\n"
29881 "\n"
29882 msgstr ""
29883
29884 #. type: textblock
29885 #: ../src/guestfs-actions.pod:3703
29886 msgid ""
29887 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29888 "disk), then this returns true if the disk is part of a set."
29889 msgstr ""
29890
29891 #. type: =head2
29892 #: ../src/guestfs-actions.pod:3713
29893 msgid "guestfs_inspect_is_netinst"
29894 msgstr ""
29895
29896 #. type: verbatim
29897 #: ../src/guestfs-actions.pod:3715
29898 #, no-wrap
29899 msgid ""
29900 " int\n"
29901 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29902 "                             const char *root);\n"
29903 "\n"
29904 msgstr ""
29905
29906 #. type: textblock
29907 #: ../src/guestfs-actions.pod:3719
29908 msgid ""
29909 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29910 "disk), then this returns true if the disk is a network installer, ie. not a "
29911 "self-contained install CD but one which is likely to require network access "
29912 "to complete the install."
29913 msgstr ""
29914
29915 #. type: =head2
29916 #: ../src/guestfs-actions.pod:3731
29917 msgid "guestfs_inspect_list_applications"
29918 msgstr ""
29919
29920 #. type: verbatim
29921 #: ../src/guestfs-actions.pod:3733
29922 #, no-wrap
29923 msgid ""
29924 " struct guestfs_application_list *\n"
29925 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29926 "                                    const char *root);\n"
29927 "\n"
29928 msgstr ""
29929
29930 #. type: textblock
29931 #: ../src/guestfs-actions.pod:3739
29932 msgid ""
29933 "I<Note:> This call works differently from other parts of the inspection "
29934 "API.  You have to call C<guestfs_inspect_os>, then "
29935 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29936 "this.  Listing applications is a significantly more difficult operation "
29937 "which requires access to the full filesystem.  Also note that unlike the "
29938 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29939 "the libguestfs handle, this call actually reads parts of the mounted "
29940 "filesystems during the call."
29941 msgstr ""
29942
29943 #. type: textblock
29944 #: ../src/guestfs-actions.pod:3829
29945 msgid ""
29946 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29947 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29948 "after use>."
29949 msgstr ""
29950
29951 #. type: textblock
29952 #: ../src/guestfs-actions.pod:3833
29953 msgid "(Added in 1.7.8)"
29954 msgstr "(Додано у 1.7.8)"
29955
29956 #. type: =head2
29957 #: ../src/guestfs-actions.pod:3835
29958 msgid "guestfs_inspect_os"
29959 msgstr ""
29960
29961 #. type: verbatim
29962 #: ../src/guestfs-actions.pod:3837
29963 #, no-wrap
29964 msgid ""
29965 " char **\n"
29966 " guestfs_inspect_os (guestfs_h *g);\n"
29967 "\n"
29968 msgstr ""
29969
29970 #. type: textblock
29971 #: ../src/guestfs-actions.pod:3853
29972 msgid ""
29973 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29974 "functions in order to query further information about each operating system, "
29975 "such as the name and version."
29976 msgstr ""
29977
29978 #. type: textblock
29979 #: ../src/guestfs-actions.pod:3858
29980 msgid ""
29981 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29982 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29983 "the contents.  This should be called with no disks currently mounted.  The "
29984 "function may also use Augeas, so any existing Augeas handle will be closed."
29985 msgstr ""
29986
29987 #. type: textblock
29988 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
29989 #: ../src/guestfs-actions.pod:4294
29990 msgid "See also C<guestfs_list_filesystems>."
29991 msgstr ""
29992
29993 #. type: =head2
29994 #: ../src/guestfs-actions.pod:3878
29995 msgid "guestfs_is_blockdev"
29996 msgstr ""
29997
29998 #. type: verbatim
29999 #: ../src/guestfs-actions.pod:3880
30000 #, no-wrap
30001 msgid ""
30002 " int\n"
30003 " guestfs_is_blockdev (guestfs_h *g,\n"
30004 "                      const char *path);\n"
30005 "\n"
30006 msgstr ""
30007
30008 #. type: textblock
30009 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
30010 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
30011 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
30012 #: ../src/guestfs-actions.pod:4048
30013 msgid "See also C<guestfs_stat>."
30014 msgstr ""
30015
30016 #. type: textblock
30017 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30018 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
30019 #: ../src/guestfs-actions.pod:4052
30020 msgid "(Added in 1.5.10)"
30021 msgstr "(Додано у 1.5.10)"
30022
30023 #. type: =head2
30024 #: ../src/guestfs-actions.pod:3893
30025 msgid "guestfs_is_busy"
30026 msgstr ""
30027
30028 #. type: verbatim
30029 #: ../src/guestfs-actions.pod:3895
30030 #, no-wrap
30031 msgid ""
30032 " int\n"
30033 " guestfs_is_busy (guestfs_h *g);\n"
30034 "\n"
30035 msgstr ""
30036
30037 #. type: =head2
30038 #: ../src/guestfs-actions.pod:3907
30039 msgid "guestfs_is_chardev"
30040 msgstr ""
30041
30042 #. type: verbatim
30043 #: ../src/guestfs-actions.pod:3909
30044 #, no-wrap
30045 msgid ""
30046 " int\n"
30047 " guestfs_is_chardev (guestfs_h *g,\n"
30048 "                     const char *path);\n"
30049 "\n"
30050 msgstr ""
30051
30052 #. type: =head2
30053 #: ../src/guestfs-actions.pod:3922
30054 msgid "guestfs_is_config"
30055 msgstr ""
30056
30057 #. type: verbatim
30058 #: ../src/guestfs-actions.pod:3924
30059 #, no-wrap
30060 msgid ""
30061 " int\n"
30062 " guestfs_is_config (guestfs_h *g);\n"
30063 "\n"
30064 msgstr ""
30065
30066 #. type: =head2
30067 #: ../src/guestfs-actions.pod:3936
30068 msgid "guestfs_is_dir"
30069 msgstr ""
30070
30071 #. type: verbatim
30072 #: ../src/guestfs-actions.pod:3938
30073 #, no-wrap
30074 msgid ""
30075 " int\n"
30076 " guestfs_is_dir (guestfs_h *g,\n"
30077 "                 const char *path);\n"
30078 "\n"
30079 msgstr ""
30080
30081 #. type: =head2
30082 #: ../src/guestfs-actions.pod:3952
30083 msgid "guestfs_is_fifo"
30084 msgstr ""
30085
30086 #. type: verbatim
30087 #: ../src/guestfs-actions.pod:3954
30088 #, no-wrap
30089 msgid ""
30090 " int\n"
30091 " guestfs_is_fifo (guestfs_h *g,\n"
30092 "                  const char *path);\n"
30093 "\n"
30094 msgstr ""
30095
30096 #. type: =head2
30097 #: ../src/guestfs-actions.pod:3967
30098 msgid "guestfs_is_file"
30099 msgstr ""
30100
30101 #. type: verbatim
30102 #: ../src/guestfs-actions.pod:3969
30103 #, no-wrap
30104 msgid ""
30105 " int\n"
30106 " guestfs_is_file (guestfs_h *g,\n"
30107 "                  const char *path);\n"
30108 "\n"
30109 msgstr ""
30110
30111 #. type: =head2
30112 #: ../src/guestfs-actions.pod:3983
30113 msgid "guestfs_is_launching"
30114 msgstr ""
30115
30116 #. type: verbatim
30117 #: ../src/guestfs-actions.pod:3985
30118 #, no-wrap
30119 msgid ""
30120 " int\n"
30121 " guestfs_is_launching (guestfs_h *g);\n"
30122 "\n"
30123 msgstr ""
30124
30125 #. type: =head2
30126 #: ../src/guestfs-actions.pod:3997
30127 msgid "guestfs_is_lv"
30128 msgstr ""
30129
30130 #. type: verbatim
30131 #: ../src/guestfs-actions.pod:3999
30132 #, no-wrap
30133 msgid ""
30134 " int\n"
30135 " guestfs_is_lv (guestfs_h *g,\n"
30136 "                const char *device);\n"
30137 "\n"
30138 msgstr ""
30139
30140 #. type: =head2
30141 #: ../src/guestfs-actions.pod:4010
30142 msgid "guestfs_is_ready"
30143 msgstr ""
30144
30145 #. type: verbatim
30146 #: ../src/guestfs-actions.pod:4012
30147 #, no-wrap
30148 msgid ""
30149 " int\n"
30150 " guestfs_is_ready (guestfs_h *g);\n"
30151 "\n"
30152 msgstr ""
30153
30154 #. type: =head2
30155 #: ../src/guestfs-actions.pod:4024
30156 msgid "guestfs_is_socket"
30157 msgstr ""
30158
30159 #. type: verbatim
30160 #: ../src/guestfs-actions.pod:4026
30161 #, no-wrap
30162 msgid ""
30163 " int\n"
30164 " guestfs_is_socket (guestfs_h *g,\n"
30165 "                    const char *path);\n"
30166 "\n"
30167 msgstr ""
30168
30169 #. type: =head2
30170 #: ../src/guestfs-actions.pod:4039
30171 msgid "guestfs_is_symlink"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../src/guestfs-actions.pod:4041
30176 #, no-wrap
30177 msgid ""
30178 " int\n"
30179 " guestfs_is_symlink (guestfs_h *g,\n"
30180 "                     const char *path);\n"
30181 "\n"
30182 msgstr ""
30183
30184 #. type: =head2
30185 #: ../src/guestfs-actions.pod:4054
30186 msgid "guestfs_is_zero"
30187 msgstr ""
30188
30189 #. type: verbatim
30190 #: ../src/guestfs-actions.pod:4056
30191 #, no-wrap
30192 msgid ""
30193 " int\n"
30194 " guestfs_is_zero (guestfs_h *g,\n"
30195 "                  const char *path);\n"
30196 "\n"
30197 msgstr ""
30198
30199 #. type: textblock
30200 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
30201 msgid "(Added in 1.11.8)"
30202 msgstr "(Додано у 1.11.8)"
30203
30204 #. type: =head2
30205 #: ../src/guestfs-actions.pod:4067
30206 msgid "guestfs_is_zero_device"
30207 msgstr ""
30208
30209 #. type: verbatim
30210 #: ../src/guestfs-actions.pod:4069
30211 #, no-wrap
30212 msgid ""
30213 " int\n"
30214 " guestfs_is_zero_device (guestfs_h *g,\n"
30215 "                         const char *device);\n"
30216 "\n"
30217 msgstr ""
30218
30219 #. type: =head2
30220 #: ../src/guestfs-actions.pod:4081
30221 msgid "guestfs_kill_subprocess"
30222 msgstr ""
30223
30224 #. type: verbatim
30225 #: ../src/guestfs-actions.pod:4083
30226 #, no-wrap
30227 msgid ""
30228 " int\n"
30229 " guestfs_kill_subprocess (guestfs_h *g);\n"
30230 "\n"
30231 msgstr ""
30232
30233 #. type: =head2
30234 #: ../src/guestfs-actions.pod:4092
30235 msgid "guestfs_launch"
30236 msgstr ""
30237
30238 #. type: verbatim
30239 #: ../src/guestfs-actions.pod:4094
30240 #, no-wrap
30241 msgid ""
30242 " int\n"
30243 " guestfs_launch (guestfs_h *g);\n"
30244 "\n"
30245 msgstr ""
30246
30247 #. type: =head2
30248 #: ../src/guestfs-actions.pod:4112
30249 msgid "guestfs_lchown"
30250 msgstr ""
30251
30252 #. type: verbatim
30253 #: ../src/guestfs-actions.pod:4114
30254 #, no-wrap
30255 msgid ""
30256 " int\n"
30257 " guestfs_lchown (guestfs_h *g,\n"
30258 "                 int owner,\n"
30259 "                 int group,\n"
30260 "                 const char *path);\n"
30261 "\n"
30262 msgstr ""
30263
30264 #. type: textblock
30265 #: ../src/guestfs-actions.pod:4120
30266 msgid ""
30267 "Change the file owner to C<owner> and group to C<group>.  This is like "
30268 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30269 "changed, not the target."
30270 msgstr ""
30271
30272 #. type: =head2
30273 #: ../src/guestfs-actions.pod:4132
30274 msgid "guestfs_lgetxattr"
30275 msgstr ""
30276
30277 #. type: verbatim
30278 #: ../src/guestfs-actions.pod:4134
30279 #, no-wrap
30280 msgid ""
30281 " char *\n"
30282 " guestfs_lgetxattr (guestfs_h *g,\n"
30283 "                    const char *path,\n"
30284 "                    const char *name,\n"
30285 "                    size_t *size_r);\n"
30286 "\n"
30287 msgstr ""
30288
30289 #. type: textblock
30290 #: ../src/guestfs-actions.pod:4154
30291 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30292 msgstr ""
30293
30294 #. type: =head2
30295 #: ../src/guestfs-actions.pod:4162
30296 msgid "guestfs_lgetxattrs"
30297 msgstr ""
30298
30299 #. type: verbatim
30300 #: ../src/guestfs-actions.pod:4164
30301 #, no-wrap
30302 msgid ""
30303 " struct guestfs_xattr_list *\n"
30304 " guestfs_lgetxattrs (guestfs_h *g,\n"
30305 "                     const char *path);\n"
30306 "\n"
30307 msgstr ""
30308
30309 #. type: textblock
30310 #: ../src/guestfs-actions.pod:4168
30311 msgid ""
30312 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30313 "then it returns the extended attributes of the link itself."
30314 msgstr ""
30315
30316 #. type: =head2
30317 #: ../src/guestfs-actions.pod:4178
30318 msgid "guestfs_list_9p"
30319 msgstr ""
30320
30321 #. type: verbatim
30322 #: ../src/guestfs-actions.pod:4180
30323 #, no-wrap
30324 msgid ""
30325 " char **\n"
30326 " guestfs_list_9p (guestfs_h *g);\n"
30327 "\n"
30328 msgstr ""
30329
30330 #. type: =head2
30331 #: ../src/guestfs-actions.pod:4192
30332 msgid "guestfs_list_devices"
30333 msgstr ""
30334
30335 #. type: verbatim
30336 #: ../src/guestfs-actions.pod:4194
30337 #, no-wrap
30338 msgid ""
30339 " char **\n"
30340 " guestfs_list_devices (guestfs_h *g);\n"
30341 "\n"
30342 msgstr ""
30343
30344 #. type: =head2
30345 #: ../src/guestfs-actions.pod:4209
30346 msgid "guestfs_list_dm_devices"
30347 msgstr ""
30348
30349 #. type: verbatim
30350 #: ../src/guestfs-actions.pod:4211
30351 #, no-wrap
30352 msgid ""
30353 " char **\n"
30354 " guestfs_list_dm_devices (guestfs_h *g);\n"
30355 "\n"
30356 msgstr ""
30357
30358 #. type: textblock
30359 #: ../src/guestfs-actions.pod:4216
30360 msgid ""
30361 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30362 "previous call to C<guestfs_luks_open>."
30363 msgstr ""
30364
30365 #. type: textblock
30366 #: ../src/guestfs-actions.pod:4219
30367 msgid ""
30368 "Device mapper devices which correspond to logical volumes are I<not> "
30369 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30370 "volumes."
30371 msgstr ""
30372
30373 #. type: textblock
30374 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5813
30375 msgid "(Added in 1.11.15)"
30376 msgstr "(Додано у 1.11.15)"
30377
30378 #. type: =head2
30379 #: ../src/guestfs-actions.pod:4229
30380 msgid "guestfs_list_filesystems"
30381 msgstr ""
30382
30383 #. type: verbatim
30384 #: ../src/guestfs-actions.pod:4231
30385 #, no-wrap
30386 msgid ""
30387 " char **\n"
30388 " guestfs_list_filesystems (guestfs_h *g);\n"
30389 "\n"
30390 msgstr ""
30391
30392 #. type: textblock
30393 #: ../src/guestfs-actions.pod:4251
30394 msgid ""
30395 "This command runs other libguestfs commands, which might include "
30396 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30397 "soon after launch and only when nothing is mounted."
30398 msgstr ""
30399
30400 #. type: textblock
30401 #: ../src/guestfs-actions.pod:4255
30402 msgid ""
30403 "Not all of the filesystems returned will be mountable.  In particular, swap "
30404 "partitions are returned in the list.  Also this command does not check that "
30405 "each filesystem found is valid and mountable, and some filesystems might be "
30406 "mountable but require special options.  Filesystems may not all belong to a "
30407 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30408 msgstr ""
30409
30410 #. type: textblock
30411 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6173
30412 msgid "(Added in 1.5.15)"
30413 msgstr "(Додано у 1.5.15)"
30414
30415 #. type: =head2
30416 #: ../src/guestfs-actions.pod:4271
30417 #, fuzzy
30418 #| msgid "guestfs_zero_device"
30419 msgid "guestfs_list_md_devices"
30420 msgstr "guestfs_zero_device"
30421
30422 #. type: verbatim
30423 #: ../src/guestfs-actions.pod:4273
30424 #, fuzzy, no-wrap
30425 #| msgid ""
30426 #| " char **\n"
30427 #| " guestfs_lvs (guestfs_h *g);\n"
30428 #| "\n"
30429 msgid ""
30430 " char **\n"
30431 " guestfs_list_md_devices (guestfs_h *g);\n"
30432 "\n"
30433 msgstr ""
30434 " char **\n"
30435 " guestfs_lvs (guestfs_h *g);\n"
30436 "\n"
30437
30438 #. type: =head2
30439 #: ../src/guestfs-actions.pod:4282
30440 msgid "guestfs_list_partitions"
30441 msgstr "guestfs_list_partitions"
30442
30443 #. type: verbatim
30444 #: ../src/guestfs-actions.pod:4284
30445 #, no-wrap
30446 msgid ""
30447 " char **\n"
30448 " guestfs_list_partitions (guestfs_h *g);\n"
30449 "\n"
30450 msgstr ""
30451 " char **\n"
30452 " guestfs_list_partitions (guestfs_h *g);\n"
30453 "\n"
30454
30455 #. type: textblock
30456 #: ../src/guestfs-actions.pod:4291
30457 msgid ""
30458 "This does not return logical volumes.  For that you will need to call "
30459 "C<guestfs_lvs>."
30460 msgstr ""
30461
30462 #. type: =head2
30463 #: ../src/guestfs-actions.pod:4302
30464 msgid "guestfs_ll"
30465 msgstr "guestfs_ll"
30466
30467 #. type: verbatim
30468 #: ../src/guestfs-actions.pod:4304
30469 #, no-wrap
30470 msgid ""
30471 " char *\n"
30472 " guestfs_ll (guestfs_h *g,\n"
30473 "             const char *directory);\n"
30474 "\n"
30475 msgstr ""
30476 " char *\n"
30477 " guestfs_ll (guestfs_h *g,\n"
30478 "             const char *directory);\n"
30479 "\n"
30480
30481 #. type: =head2
30482 #: ../src/guestfs-actions.pod:4319
30483 msgid "guestfs_ln"
30484 msgstr "guestfs_ln"
30485
30486 #. type: verbatim
30487 #: ../src/guestfs-actions.pod:4321
30488 #, no-wrap
30489 msgid ""
30490 " int\n"
30491 " guestfs_ln (guestfs_h *g,\n"
30492 "             const char *target,\n"
30493 "             const char *linkname);\n"
30494 "\n"
30495 msgstr ""
30496 " int\n"
30497 " guestfs_ln (guestfs_h *g,\n"
30498 "             const char *target,\n"
30499 "             const char *linkname);\n"
30500 "\n"
30501
30502 #. type: =head2
30503 #: ../src/guestfs-actions.pod:4332
30504 msgid "guestfs_ln_f"
30505 msgstr "guestfs_ln_f"
30506
30507 #. type: verbatim
30508 #: ../src/guestfs-actions.pod:4334
30509 #, no-wrap
30510 msgid ""
30511 " int\n"
30512 " guestfs_ln_f (guestfs_h *g,\n"
30513 "               const char *target,\n"
30514 "               const char *linkname);\n"
30515 "\n"
30516 msgstr ""
30517 " int\n"
30518 " guestfs_ln_f (guestfs_h *g,\n"
30519 "               const char *target,\n"
30520 "               const char *linkname);\n"
30521 "\n"
30522
30523 #. type: =head2
30524 #: ../src/guestfs-actions.pod:4346
30525 msgid "guestfs_ln_s"
30526 msgstr "guestfs_ln_s"
30527
30528 #. type: verbatim
30529 #: ../src/guestfs-actions.pod:4348
30530 #, no-wrap
30531 msgid ""
30532 " int\n"
30533 " guestfs_ln_s (guestfs_h *g,\n"
30534 "               const char *target,\n"
30535 "               const char *linkname);\n"
30536 "\n"
30537 msgstr ""
30538 " int\n"
30539 " guestfs_ln_s (guestfs_h *g,\n"
30540 "               const char *target,\n"
30541 "               const char *linkname);\n"
30542 "\n"
30543
30544 #. type: =head2
30545 #: ../src/guestfs-actions.pod:4359
30546 msgid "guestfs_ln_sf"
30547 msgstr "guestfs_ln_sf"
30548
30549 #. type: verbatim
30550 #: ../src/guestfs-actions.pod:4361
30551 #, no-wrap
30552 msgid ""
30553 " int\n"
30554 " guestfs_ln_sf (guestfs_h *g,\n"
30555 "                const char *target,\n"
30556 "                const char *linkname);\n"
30557 "\n"
30558 msgstr ""
30559 " int\n"
30560 " guestfs_ln_sf (guestfs_h *g,\n"
30561 "                const char *target,\n"
30562 "                const char *linkname);\n"
30563 "\n"
30564
30565 #. type: =head2
30566 #: ../src/guestfs-actions.pod:4373
30567 msgid "guestfs_lremovexattr"
30568 msgstr "guestfs_lremovexattr"
30569
30570 #. type: verbatim
30571 #: ../src/guestfs-actions.pod:4375
30572 #, no-wrap
30573 msgid ""
30574 " int\n"
30575 " guestfs_lremovexattr (guestfs_h *g,\n"
30576 "                       const char *xattr,\n"
30577 "                       const char *path);\n"
30578 "\n"
30579 msgstr ""
30580 " int\n"
30581 " guestfs_lremovexattr (guestfs_h *g,\n"
30582 "                       const char *xattr,\n"
30583 "                       const char *path);\n"
30584 "\n"
30585
30586 #. type: textblock
30587 #: ../src/guestfs-actions.pod:4380
30588 msgid ""
30589 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30590 "link, then it removes an extended attribute of the link itself."
30591 msgstr ""
30592
30593 #. type: =head2
30594 #: ../src/guestfs-actions.pod:4388
30595 msgid "guestfs_ls"
30596 msgstr "guestfs_ls"
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-actions.pod:4390
30600 #, no-wrap
30601 msgid ""
30602 " char **\n"
30603 " guestfs_ls (guestfs_h *g,\n"
30604 "             const char *directory);\n"
30605 "\n"
30606 msgstr ""
30607 " char **\n"
30608 " guestfs_ls (guestfs_h *g,\n"
30609 "             const char *directory);\n"
30610 "\n"
30611
30612 #. type: textblock
30613 #: ../src/guestfs-actions.pod:4398
30614 msgid ""
30615 "This command is mostly useful for interactive sessions.  Programs should "
30616 "probably use C<guestfs_readdir> instead."
30617 msgstr ""
30618
30619 #. type: =head2
30620 #: ../src/guestfs-actions.pod:4407
30621 msgid "guestfs_lsetxattr"
30622 msgstr "guestfs_lsetxattr"
30623
30624 #. type: verbatim
30625 #: ../src/guestfs-actions.pod:4409
30626 #, no-wrap
30627 msgid ""
30628 " int\n"
30629 " guestfs_lsetxattr (guestfs_h *g,\n"
30630 "                    const char *xattr,\n"
30631 "                    const char *val,\n"
30632 "                    int vallen,\n"
30633 "                    const char *path);\n"
30634 "\n"
30635 msgstr ""
30636 " int\n"
30637 " guestfs_lsetxattr (guestfs_h *g,\n"
30638 "                    const char *xattr,\n"
30639 "                    const char *val,\n"
30640 "                    int vallen,\n"
30641 "                    const char *path);\n"
30642 "\n"
30643
30644 #. type: textblock
30645 #: ../src/guestfs-actions.pod:4416
30646 msgid ""
30647 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30648 "then it sets an extended attribute of the link itself."
30649 msgstr ""
30650
30651 #. type: =head2
30652 #: ../src/guestfs-actions.pod:4424
30653 msgid "guestfs_lstat"
30654 msgstr "guestfs_lstat"
30655
30656 #. type: verbatim
30657 #: ../src/guestfs-actions.pod:4426
30658 #, no-wrap
30659 msgid ""
30660 " struct guestfs_stat *\n"
30661 " guestfs_lstat (guestfs_h *g,\n"
30662 "                const char *path);\n"
30663 "\n"
30664 msgstr ""
30665 " struct guestfs_stat *\n"
30666 " guestfs_lstat (guestfs_h *g,\n"
30667 "                const char *path);\n"
30668 "\n"
30669
30670 #. type: textblock
30671 #: ../src/guestfs-actions.pod:4432
30672 msgid ""
30673 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30674 "link, then the link is stat-ed, not the file it refers to."
30675 msgstr ""
30676
30677 #. type: textblock
30678 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:7353
30679 msgid ""
30680 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30681 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30682 msgstr ""
30683
30684 #. type: textblock
30685 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:7357
30686 #: ../src/guestfs-actions.pod:7375 ../src/guestfs-actions.pod:7876
30687 msgid "(Added in 0.9.2)"
30688 msgstr "(Додано у 0.9.2)"
30689
30690 #. type: =head2
30691 #: ../src/guestfs-actions.pod:4444
30692 msgid "guestfs_lstatlist"
30693 msgstr "guestfs_lstatlist"
30694
30695 #. type: verbatim
30696 #: ../src/guestfs-actions.pod:4446
30697 #, no-wrap
30698 msgid ""
30699 " struct guestfs_stat_list *\n"
30700 " guestfs_lstatlist (guestfs_h *g,\n"
30701 "                    const char *path,\n"
30702 "                    char *const *names);\n"
30703 "\n"
30704 msgstr ""
30705 " struct guestfs_stat_list *\n"
30706 " guestfs_lstatlist (guestfs_h *g,\n"
30707 "                    const char *path,\n"
30708 "                    char *const *names);\n"
30709 "\n"
30710
30711 #. type: textblock
30712 #: ../src/guestfs-actions.pod:4451
30713 msgid ""
30714 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30715 "files, where all files are in the directory C<path>.  C<names> is the list "
30716 "of files from this directory."
30717 msgstr ""
30718
30719 #. type: textblock
30720 #: ../src/guestfs-actions.pod:4460
30721 msgid ""
30722 "This call is intended for programs that want to efficiently list a directory "
30723 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30724 "for a similarly efficient call for getting extended attributes.  Very long "
30725 "directory listings might cause the protocol message size to be exceeded, "
30726 "causing this call to fail.  The caller must split up such requests into "
30727 "smaller groups of names."
30728 msgstr ""
30729
30730 #. type: textblock
30731 #: ../src/guestfs-actions.pod:4468
30732 msgid ""
30733 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30734 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30735 msgstr ""
30736
30737 #. type: =head2
30738 #: ../src/guestfs-actions.pod:4474
30739 msgid "guestfs_luks_add_key"
30740 msgstr "guestfs_luks_add_key"
30741
30742 #. type: verbatim
30743 #: ../src/guestfs-actions.pod:4476
30744 #, no-wrap
30745 msgid ""
30746 " int\n"
30747 " guestfs_luks_add_key (guestfs_h *g,\n"
30748 "                       const char *device,\n"
30749 "                       const char *key,\n"
30750 "                       const char *newkey,\n"
30751 "                       int keyslot);\n"
30752 "\n"
30753 msgstr ""
30754 " int\n"
30755 " guestfs_luks_add_key (guestfs_h *g,\n"
30756 "                       const char *device,\n"
30757 "                       const char *key,\n"
30758 "                       const char *newkey,\n"
30759 "                       int keyslot);\n"
30760 "\n"
30761
30762 #. type: textblock
30763 #: ../src/guestfs-actions.pod:4488
30764 msgid ""
30765 "Note that if C<keyslot> already contains a key, then this command will "
30766 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30767 msgstr ""
30768
30769 #. type: textblock
30770 #: ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:4531
30771 #: ../src/guestfs-actions.pod:4551 ../src/guestfs-actions.pod:4571
30772 #: ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4625
30773 msgid ""
30774 "This function takes a key or passphrase parameter which could contain "
30775 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30776 "information."
30777 msgstr ""
30778
30779 #. type: textblock
30780 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4535
30781 #: ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
30782 msgid "(Added in 1.5.2)"
30783 msgstr "(Додано у 1.5.2)"
30784
30785 #. type: =head2
30786 #: ../src/guestfs-actions.pod:4500
30787 msgid "guestfs_luks_close"
30788 msgstr "guestfs_luks_close"
30789
30790 #. type: verbatim
30791 #: ../src/guestfs-actions.pod:4502
30792 #, no-wrap
30793 msgid ""
30794 " int\n"
30795 " guestfs_luks_close (guestfs_h *g,\n"
30796 "                     const char *device);\n"
30797 "\n"
30798 msgstr ""
30799 " int\n"
30800 " guestfs_luks_close (guestfs_h *g,\n"
30801 "                     const char *device);\n"
30802 "\n"
30803
30804 #. type: textblock
30805 #: ../src/guestfs-actions.pod:4506
30806 msgid ""
30807 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30808 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30809 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30810 "underlying block device."
30811 msgstr ""
30812
30813 #. type: textblock
30814 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4610
30815 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4679
30816 #: ../src/guestfs-actions.pod:4724
30817 msgid "(Added in 1.5.1)"
30818 msgstr "(Додано у 1.5.1)"
30819
30820 #. type: =head2
30821 #: ../src/guestfs-actions.pod:4516
30822 msgid "guestfs_luks_format"
30823 msgstr "guestfs_luks_format"
30824
30825 #. type: verbatim
30826 #: ../src/guestfs-actions.pod:4518
30827 #, no-wrap
30828 msgid ""
30829 " int\n"
30830 " guestfs_luks_format (guestfs_h *g,\n"
30831 "                      const char *device,\n"
30832 "                      const char *key,\n"
30833 "                      int keyslot);\n"
30834 "\n"
30835 msgstr ""
30836 " int\n"
30837 " guestfs_luks_format (guestfs_h *g,\n"
30838 "                      const char *device,\n"
30839 "                      const char *key,\n"
30840 "                      int keyslot);\n"
30841 "\n"
30842
30843 #. type: =head2
30844 #: ../src/guestfs-actions.pod:4537
30845 msgid "guestfs_luks_format_cipher"
30846 msgstr "guestfs_luks_format_cipher"
30847
30848 #. type: verbatim
30849 #: ../src/guestfs-actions.pod:4539
30850 #, no-wrap
30851 msgid ""
30852 " int\n"
30853 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30854 "                             const char *device,\n"
30855 "                             const char *key,\n"
30856 "                             int keyslot,\n"
30857 "                             const char *cipher);\n"
30858 "\n"
30859 msgstr ""
30860 " int\n"
30861 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30862 "                             const char *device,\n"
30863 "                             const char *key,\n"
30864 "                             int keyslot,\n"
30865 "                             const char *cipher);\n"
30866 "\n"
30867
30868 #. type: textblock
30869 #: ../src/guestfs-actions.pod:4546
30870 msgid ""
30871 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30872 "set the C<cipher> used."
30873 msgstr ""
30874
30875 #. type: =head2
30876 #: ../src/guestfs-actions.pod:4557
30877 msgid "guestfs_luks_kill_slot"
30878 msgstr "guestfs_luks_kill_slot"
30879
30880 #. type: verbatim
30881 #: ../src/guestfs-actions.pod:4559
30882 #, no-wrap
30883 msgid ""
30884 " int\n"
30885 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30886 "                         const char *device,\n"
30887 "                         const char *key,\n"
30888 "                         int keyslot);\n"
30889 "\n"
30890 msgstr ""
30891 " int\n"
30892 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30893 "                         const char *device,\n"
30894 "                         const char *key,\n"
30895 "                         int keyslot);\n"
30896 "\n"
30897
30898 #. type: =head2
30899 #: ../src/guestfs-actions.pod:4577
30900 msgid "guestfs_luks_open"
30901 msgstr "guestfs_luks_open"
30902
30903 #. type: verbatim
30904 #: ../src/guestfs-actions.pod:4579
30905 #, no-wrap
30906 msgid ""
30907 " int\n"
30908 " guestfs_luks_open (guestfs_h *g,\n"
30909 "                    const char *device,\n"
30910 "                    const char *key,\n"
30911 "                    const char *mapname);\n"
30912 "\n"
30913 msgstr ""
30914 " int\n"
30915 " guestfs_luks_open (guestfs_h *g,\n"
30916 "                    const char *device,\n"
30917 "                    const char *key,\n"
30918 "                    const char *mapname);\n"
30919 "\n"
30920
30921 #. type: textblock
30922 #: ../src/guestfs-actions.pod:4597
30923 msgid ""
30924 "If this block device contains LVM volume groups, then calling "
30925 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30926 "visible."
30927 msgstr ""
30928
30929 #. type: textblock
30930 #: ../src/guestfs-actions.pod:4601
30931 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30932 msgstr ""
30933
30934 #. type: =head2
30935 #: ../src/guestfs-actions.pod:4612
30936 msgid "guestfs_luks_open_ro"
30937 msgstr "guestfs_luks_open_ro"
30938
30939 #. type: verbatim
30940 #: ../src/guestfs-actions.pod:4614
30941 #, no-wrap
30942 msgid ""
30943 " int\n"
30944 " guestfs_luks_open_ro (guestfs_h *g,\n"
30945 "                       const char *device,\n"
30946 "                       const char *key,\n"
30947 "                       const char *mapname);\n"
30948 "\n"
30949 msgstr ""
30950 " int\n"
30951 " guestfs_luks_open_ro (guestfs_h *g,\n"
30952 "                       const char *device,\n"
30953 "                       const char *key,\n"
30954 "                       const char *mapname);\n"
30955 "\n"
30956
30957 #. type: textblock
30958 #: ../src/guestfs-actions.pod:4620
30959 msgid ""
30960 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30961 "created."
30962 msgstr ""
30963
30964 #. type: =head2
30965 #: ../src/guestfs-actions.pod:4631
30966 msgid "guestfs_lvcreate"
30967 msgstr "guestfs_lvcreate"
30968
30969 #. type: verbatim
30970 #: ../src/guestfs-actions.pod:4633
30971 #, no-wrap
30972 msgid ""
30973 " int\n"
30974 " guestfs_lvcreate (guestfs_h *g,\n"
30975 "                   const char *logvol,\n"
30976 "                   const char *volgroup,\n"
30977 "                   int mbytes);\n"
30978 "\n"
30979 msgstr ""
30980 " int\n"
30981 " guestfs_lvcreate (guestfs_h *g,\n"
30982 "                   const char *logvol,\n"
30983 "                   const char *volgroup,\n"
30984 "                   int mbytes);\n"
30985 "\n"
30986
30987 #. type: =head2
30988 #: ../src/guestfs-actions.pod:4646
30989 msgid "guestfs_lvm_canonical_lv_name"
30990 msgstr "guestfs_lvm_canonical_lv_name"
30991
30992 #. type: verbatim
30993 #: ../src/guestfs-actions.pod:4648
30994 #, no-wrap
30995 msgid ""
30996 " char *\n"
30997 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30998 "                                const char *lvname);\n"
30999 "\n"
31000 msgstr ""
31001 " char *\n"
31002 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31003 "                                const char *lvname);\n"
31004 "\n"
31005
31006 #. type: textblock
31007 #: ../src/guestfs-actions.pod:4659
31008 msgid "See also C<guestfs_is_lv>."
31009 msgstr ""
31010
31011 #. type: textblock
31012 #: ../src/guestfs-actions.pod:4664
31013 msgid "(Added in 1.5.24)"
31014 msgstr "(Додано у 1.5.24)"
31015
31016 #. type: =head2
31017 #: ../src/guestfs-actions.pod:4666
31018 msgid "guestfs_lvm_clear_filter"
31019 msgstr "guestfs_lvm_clear_filter"
31020
31021 #. type: verbatim
31022 #: ../src/guestfs-actions.pod:4668
31023 #, no-wrap
31024 msgid ""
31025 " int\n"
31026 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31027 "\n"
31028 msgstr ""
31029 " int\n"
31030 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31031 "\n"
31032
31033 #. type: textblock
31034 #: ../src/guestfs-actions.pod:4671
31035 msgid ""
31036 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
31037 "see every block device."
31038 msgstr ""
31039
31040 #. type: =head2
31041 #: ../src/guestfs-actions.pod:4681
31042 msgid "guestfs_lvm_remove_all"
31043 msgstr "guestfs_lvm_remove_all"
31044
31045 #. type: verbatim
31046 #: ../src/guestfs-actions.pod:4683
31047 #, no-wrap
31048 msgid ""
31049 " int\n"
31050 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31051 "\n"
31052 msgstr ""
31053 " int\n"
31054 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31055 "\n"
31056
31057 #. type: =head2
31058 #: ../src/guestfs-actions.pod:4693
31059 msgid "guestfs_lvm_set_filter"
31060 msgstr "guestfs_lvm_set_filter"
31061
31062 #. type: verbatim
31063 #: ../src/guestfs-actions.pod:4695
31064 #, no-wrap
31065 msgid ""
31066 " int\n"
31067 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31068 "                         char *const *devices);\n"
31069 "\n"
31070 msgstr ""
31071 " int\n"
31072 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31073 "                         char *const *devices);\n"
31074 "\n"
31075
31076 #. type: =head2
31077 #: ../src/guestfs-actions.pod:4726
31078 msgid "guestfs_lvremove"
31079 msgstr "guestfs_lvremove"
31080
31081 #. type: verbatim
31082 #: ../src/guestfs-actions.pod:4728
31083 #, no-wrap
31084 msgid ""
31085 " int\n"
31086 " guestfs_lvremove (guestfs_h *g,\n"
31087 "                   const char *device);\n"
31088 "\n"
31089 msgstr ""
31090 " int\n"
31091 " guestfs_lvremove (guestfs_h *g,\n"
31092 "                   const char *device);\n"
31093 "\n"
31094
31095 #. type: textblock
31096 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:6288
31097 #: ../src/guestfs-actions.pod:8246
31098 msgid "(Added in 1.0.13)"
31099 msgstr "(Додано у 1.0.13)"
31100
31101 #. type: =head2
31102 #: ../src/guestfs-actions.pod:4742
31103 msgid "guestfs_lvrename"
31104 msgstr "guestfs_lvrename"
31105
31106 #. type: verbatim
31107 #: ../src/guestfs-actions.pod:4744
31108 #, no-wrap
31109 msgid ""
31110 " int\n"
31111 " guestfs_lvrename (guestfs_h *g,\n"
31112 "                   const char *logvol,\n"
31113 "                   const char *newlogvol);\n"
31114 "\n"
31115 msgstr ""
31116 " int\n"
31117 " guestfs_lvrename (guestfs_h *g,\n"
31118 "                   const char *logvol,\n"
31119 "                   const char *newlogvol);\n"
31120 "\n"
31121
31122 #. type: textblock
31123 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:8259
31124 msgid "(Added in 1.0.83)"
31125 msgstr "(Додано у 1.0.83)"
31126
31127 #. type: =head2
31128 #: ../src/guestfs-actions.pod:4755
31129 msgid "guestfs_lvresize"
31130 msgstr "guestfs_lvresize"
31131
31132 #. type: verbatim
31133 #: ../src/guestfs-actions.pod:4757
31134 #, no-wrap
31135 msgid ""
31136 " int\n"
31137 " guestfs_lvresize (guestfs_h *g,\n"
31138 "                   const char *device,\n"
31139 "                   int mbytes);\n"
31140 "\n"
31141 msgstr ""
31142 " int\n"
31143 " guestfs_lvresize (guestfs_h *g,\n"
31144 "                   const char *device,\n"
31145 "                   int mbytes);\n"
31146 "\n"
31147
31148 #. type: =head2
31149 #: ../src/guestfs-actions.pod:4770
31150 msgid "guestfs_lvresize_free"
31151 msgstr "guestfs_lvresize_free"
31152
31153 #. type: verbatim
31154 #: ../src/guestfs-actions.pod:4772
31155 #, no-wrap
31156 msgid ""
31157 " int\n"
31158 " guestfs_lvresize_free (guestfs_h *g,\n"
31159 "                        const char *lv,\n"
31160 "                        int percent);\n"
31161 "\n"
31162 msgstr ""
31163 " int\n"
31164 " guestfs_lvresize_free (guestfs_h *g,\n"
31165 "                        const char *lv,\n"
31166 "                        int percent);\n"
31167 "\n"
31168
31169 #. type: textblock
31170 #: ../src/guestfs-actions.pod:4785
31171 msgid "(Added in 1.3.3)"
31172 msgstr "(Додано у 1.3.3)"
31173
31174 #. type: =head2
31175 #: ../src/guestfs-actions.pod:4787
31176 msgid "guestfs_lvs"
31177 msgstr "guestfs_lvs"
31178
31179 #. type: verbatim
31180 #: ../src/guestfs-actions.pod:4789
31181 #, no-wrap
31182 msgid ""
31183 " char **\n"
31184 " guestfs_lvs (guestfs_h *g);\n"
31185 "\n"
31186 msgstr ""
31187 " char **\n"
31188 " guestfs_lvs (guestfs_h *g);\n"
31189 "\n"
31190
31191 #. type: textblock
31192 #: ../src/guestfs-actions.pod:4798
31193 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31194 msgstr ""
31195
31196 #. type: =head2
31197 #: ../src/guestfs-actions.pod:4806
31198 msgid "guestfs_lvs_full"
31199 msgstr "guestfs_lvs_full"
31200
31201 #. type: verbatim
31202 #: ../src/guestfs-actions.pod:4808
31203 #, no-wrap
31204 msgid ""
31205 " struct guestfs_lvm_lv_list *\n"
31206 " guestfs_lvs_full (guestfs_h *g);\n"
31207 "\n"
31208 msgstr ""
31209 " struct guestfs_lvm_lv_list *\n"
31210 " guestfs_lvs_full (guestfs_h *g);\n"
31211 "\n"
31212
31213 #. type: textblock
31214 #: ../src/guestfs-actions.pod:4814
31215 msgid ""
31216 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31217 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31218 msgstr ""
31219
31220 #. type: =head2
31221 #: ../src/guestfs-actions.pod:4820
31222 msgid "guestfs_lvuuid"
31223 msgstr "guestfs_lvuuid"
31224
31225 #. type: verbatim
31226 #: ../src/guestfs-actions.pod:4822
31227 #, no-wrap
31228 msgid ""
31229 " char *\n"
31230 " guestfs_lvuuid (guestfs_h *g,\n"
31231 "                 const char *device);\n"
31232 "\n"
31233 msgstr ""
31234 " char *\n"
31235 " guestfs_lvuuid (guestfs_h *g,\n"
31236 "                 const char *device);\n"
31237 "\n"
31238
31239 #. type: =head2
31240 #: ../src/guestfs-actions.pod:4833
31241 msgid "guestfs_lxattrlist"
31242 msgstr "guestfs_lxattrlist"
31243
31244 #. type: verbatim
31245 #: ../src/guestfs-actions.pod:4835
31246 #, no-wrap
31247 msgid ""
31248 " struct guestfs_xattr_list *\n"
31249 " guestfs_lxattrlist (guestfs_h *g,\n"
31250 "                     const char *path,\n"
31251 "                     char *const *names);\n"
31252 "\n"
31253 msgstr ""
31254 " struct guestfs_xattr_list *\n"
31255 " guestfs_lxattrlist (guestfs_h *g,\n"
31256 "                     const char *path,\n"
31257 "                     char *const *names);\n"
31258 "\n"
31259
31260 #. type: textblock
31261 #: ../src/guestfs-actions.pod:4854
31262 msgid ""
31263 "This call is intended for programs that want to efficiently list a directory "
31264 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
31265 "a similarly efficient call for getting standard stats.  Very long directory "
31266 "listings might cause the protocol message size to be exceeded, causing this "
31267 "call to fail.  The caller must split up such requests into smaller groups of "
31268 "names."
31269 msgstr ""
31270
31271 #. type: =head2
31272 #: ../src/guestfs-actions.pod:4868
31273 #, fuzzy
31274 #| msgid "guestfs_create"
31275 msgid "guestfs_mdadm_create"
31276 msgstr "guestfs_create"
31277
31278 #. type: verbatim
31279 #: ../src/guestfs-actions.pod:4870
31280 #, fuzzy, no-wrap
31281 #| msgid ""
31282 #| " int\n"
31283 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
31284 #| "                    const char *fstype,\n"
31285 #| "                    const char *device,\n"
31286 #| "                    ...);\n"
31287 #| "\n"
31288 msgid ""
31289 " int\n"
31290 " guestfs_mdadm_create (guestfs_h *g,\n"
31291 "                       const char *name,\n"
31292 "                       char *const *devices,\n"
31293 "                       ...);\n"
31294 "\n"
31295 msgstr ""
31296 " int\n"
31297 " guestfs_mkfs_opts (guestfs_h *g,\n"
31298 "                    const char *fstype,\n"
31299 "                    const char *device,\n"
31300 "                    ...);\n"
31301 "\n"
31302
31303 #. type: verbatim
31304 #: ../src/guestfs-actions.pod:4881
31305 #, no-wrap
31306 msgid ""
31307 " GUESTFS_MDADM_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
31308 " GUESTFS_MDADM_CREATE_NRDEVICES, int nrdevices,\n"
31309 " GUESTFS_MDADM_CREATE_SPARE, int spare,\n"
31310 " GUESTFS_MDADM_CREATE_CHUNK, int64_t chunk,\n"
31311 " GUESTFS_MDADM_CREATE_LEVEL, const char *level,\n"
31312 "\n"
31313 msgstr ""
31314
31315 #. type: =head2
31316 #: ../src/guestfs-actions.pod:4943
31317 #, fuzzy
31318 #| msgid "guestfs_create"
31319 msgid "guestfs_mdadm_create_va"
31320 msgstr "guestfs_create"
31321
31322 #. type: verbatim
31323 #: ../src/guestfs-actions.pod:4945
31324 #, fuzzy, no-wrap
31325 #| msgid ""
31326 #| " int\n"
31327 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31328 #| "                       const char *fstype,\n"
31329 #| "                       const char *device,\n"
31330 #| "                       va_list args);\n"
31331 #| "\n"
31332 msgid ""
31333 " int\n"
31334 " guestfs_mdadm_create_va (guestfs_h *g,\n"
31335 "                          const char *name,\n"
31336 "                          char *const *devices,\n"
31337 "                          va_list args);\n"
31338 "\n"
31339 msgstr ""
31340 " int\n"
31341 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31342 "                       const char *fstype,\n"
31343 "                       const char *device,\n"
31344 "                       va_list args);\n"
31345 "\n"
31346
31347 #. type: textblock
31348 #: ../src/guestfs-actions.pod:4951
31349 msgid "This is the \"va_list variant\" of L</guestfs_mdadm_create>."
31350 msgstr ""
31351
31352 #. type: =head2
31353 #: ../src/guestfs-actions.pod:4955
31354 #, fuzzy
31355 #| msgid "guestfs_create"
31356 msgid "guestfs_mdadm_create_argv"
31357 msgstr "guestfs_create"
31358
31359 #. type: verbatim
31360 #: ../src/guestfs-actions.pod:4957
31361 #, fuzzy, no-wrap
31362 #| msgid ""
31363 #| " int\n"
31364 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31365 #| "                         const char *fstype,\n"
31366 #| "                         const char *device,\n"
31367 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31368 #| "\n"
31369 msgid ""
31370 " int\n"
31371 " guestfs_mdadm_create_argv (guestfs_h *g,\n"
31372 "                            const char *name,\n"
31373 "                            char *const *devices,\n"
31374 "                            const struct guestfs_mdadm_create_argv *optargs);\n"
31375 "\n"
31376 msgstr ""
31377 " int\n"
31378 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31379 "                         const char *fstype,\n"
31380 "                         const char *device,\n"
31381 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31382 "\n"
31383
31384 #. type: textblock
31385 #: ../src/guestfs-actions.pod:4963
31386 msgid "This is the \"argv variant\" of L</guestfs_mdadm_create>."
31387 msgstr ""
31388
31389 #. type: =head2
31390 #: ../src/guestfs-actions.pod:4967
31391 #, fuzzy
31392 #| msgid "guestfs_aug_get"
31393 msgid "guestfs_mdadm_detail"
31394 msgstr "guestfs_aug_get"
31395
31396 #. type: verbatim
31397 #: ../src/guestfs-actions.pod:4969
31398 #, fuzzy, no-wrap
31399 #| msgid ""
31400 #| " char *\n"
31401 #| " guestfs_aug_get (guestfs_h *g,\n"
31402 #| "                  const char *augpath);\n"
31403 #| "\n"
31404 msgid ""
31405 " char **\n"
31406 " guestfs_mdadm_detail (guestfs_h *g,\n"
31407 "                       const char *md);\n"
31408 "\n"
31409 msgstr ""
31410 " char *\n"
31411 " guestfs_aug_get (guestfs_h *g,\n"
31412 "                  const char *augpath);\n"
31413 "\n"
31414
31415 #. type: =head2
31416 #: ../src/guestfs-actions.pod:5006
31417 msgid "guestfs_mkdir"
31418 msgstr "guestfs_mkdir"
31419
31420 #. type: verbatim
31421 #: ../src/guestfs-actions.pod:5008
31422 #, no-wrap
31423 msgid ""
31424 " int\n"
31425 " guestfs_mkdir (guestfs_h *g,\n"
31426 "                const char *path);\n"
31427 "\n"
31428 msgstr ""
31429 " int\n"
31430 " guestfs_mkdir (guestfs_h *g,\n"
31431 "                const char *path);\n"
31432 "\n"
31433
31434 #. type: =head2
31435 #: ../src/guestfs-actions.pod:5018
31436 msgid "guestfs_mkdir_mode"
31437 msgstr "guestfs_mkdir_mode"
31438
31439 #. type: verbatim
31440 #: ../src/guestfs-actions.pod:5020
31441 #, no-wrap
31442 msgid ""
31443 " int\n"
31444 " guestfs_mkdir_mode (guestfs_h *g,\n"
31445 "                     const char *path,\n"
31446 "                     int mode);\n"
31447 "\n"
31448 msgstr ""
31449 " int\n"
31450 " guestfs_mkdir_mode (guestfs_h *g,\n"
31451 "                     const char *path,\n"
31452 "                     int mode);\n"
31453 "\n"
31454
31455 #. type: textblock
31456 #: ../src/guestfs-actions.pod:5032
31457 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31458 msgstr ""
31459
31460 #. type: =head2
31461 #: ../src/guestfs-actions.pod:5038
31462 msgid "guestfs_mkdir_p"
31463 msgstr "guestfs_mkdir_p"
31464
31465 #. type: verbatim
31466 #: ../src/guestfs-actions.pod:5040
31467 #, no-wrap
31468 msgid ""
31469 " int\n"
31470 " guestfs_mkdir_p (guestfs_h *g,\n"
31471 "                  const char *path);\n"
31472 "\n"
31473 msgstr ""
31474 " int\n"
31475 " guestfs_mkdir_p (guestfs_h *g,\n"
31476 "                  const char *path);\n"
31477 "\n"
31478
31479 #. type: =head2
31480 #: ../src/guestfs-actions.pod:5051
31481 msgid "guestfs_mkdtemp"
31482 msgstr "guestfs_mkdtemp"
31483
31484 #. type: verbatim
31485 #: ../src/guestfs-actions.pod:5053
31486 #, no-wrap
31487 msgid ""
31488 " char *\n"
31489 " guestfs_mkdtemp (guestfs_h *g,\n"
31490 "                  const char *template);\n"
31491 "\n"
31492 msgstr ""
31493 " char *\n"
31494 " guestfs_mkdtemp (guestfs_h *g,\n"
31495 "                  const char *template);\n"
31496 "\n"
31497
31498 #. type: =head2
31499 #: ../src/guestfs-actions.pod:5081
31500 msgid "guestfs_mke2fs_J"
31501 msgstr "guestfs_mke2fs_J"
31502
31503 #. type: verbatim
31504 #: ../src/guestfs-actions.pod:5083
31505 #, no-wrap
31506 msgid ""
31507 " int\n"
31508 " guestfs_mke2fs_J (guestfs_h *g,\n"
31509 "                   const char *fstype,\n"
31510 "                   int blocksize,\n"
31511 "                   const char *device,\n"
31512 "                   const char *journal);\n"
31513 "\n"
31514 msgstr ""
31515 " int\n"
31516 " guestfs_mke2fs_J (guestfs_h *g,\n"
31517 "                   const char *fstype,\n"
31518 "                   int blocksize,\n"
31519 "                   const char *device,\n"
31520 "                   const char *journal);\n"
31521 "\n"
31522
31523 #. type: textblock
31524 #: ../src/guestfs-actions.pod:5096
31525 msgid "See also C<guestfs_mke2journal>."
31526 msgstr ""
31527
31528 #. type: textblock
31529 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5118
31530 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5152
31531 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5180
31532 #: ../src/guestfs-actions.pod:5239 ../src/guestfs-actions.pod:5516
31533 msgid "(Added in 1.0.68)"
31534 msgstr "(Додано у 1.0.68)"
31535
31536 #. type: =head2
31537 #: ../src/guestfs-actions.pod:5102
31538 msgid "guestfs_mke2fs_JL"
31539 msgstr "guestfs_mke2fs_JL"
31540
31541 #. type: verbatim
31542 #: ../src/guestfs-actions.pod:5104
31543 #, no-wrap
31544 msgid ""
31545 " int\n"
31546 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31547 "                    const char *fstype,\n"
31548 "                    int blocksize,\n"
31549 "                    const char *device,\n"
31550 "                    const char *label);\n"
31551 "\n"
31552 msgstr ""
31553 " int\n"
31554 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31555 "                    const char *fstype,\n"
31556 "                    int blocksize,\n"
31557 "                    const char *device,\n"
31558 "                    const char *label);\n"
31559 "\n"
31560
31561 #. type: textblock
31562 #: ../src/guestfs-actions.pod:5114
31563 msgid "See also C<guestfs_mke2journal_L>."
31564 msgstr ""
31565
31566 #. type: =head2
31567 #: ../src/guestfs-actions.pod:5120
31568 msgid "guestfs_mke2fs_JU"
31569 msgstr "guestfs_mke2fs_JU"
31570
31571 #. type: verbatim
31572 #: ../src/guestfs-actions.pod:5122
31573 #, no-wrap
31574 msgid ""
31575 " int\n"
31576 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31577 "                    const char *fstype,\n"
31578 "                    int blocksize,\n"
31579 "                    const char *device,\n"
31580 "                    const char *uuid);\n"
31581 "\n"
31582 msgstr ""
31583 " int\n"
31584 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31585 "                    const char *fstype,\n"
31586 "                    int blocksize,\n"
31587 "                    const char *device,\n"
31588 "                    const char *uuid);\n"
31589 "\n"
31590
31591 #. type: textblock
31592 #: ../src/guestfs-actions.pod:5132
31593 msgid "See also C<guestfs_mke2journal_U>."
31594 msgstr ""
31595
31596 #. type: =head2
31597 #: ../src/guestfs-actions.pod:5138
31598 msgid "guestfs_mke2journal"
31599 msgstr "guestfs_mke2journal"
31600
31601 #. type: verbatim
31602 #: ../src/guestfs-actions.pod:5140
31603 #, no-wrap
31604 msgid ""
31605 " int\n"
31606 " guestfs_mke2journal (guestfs_h *g,\n"
31607 "                      int blocksize,\n"
31608 "                      const char *device);\n"
31609 "\n"
31610 msgstr ""
31611 " int\n"
31612 " guestfs_mke2journal (guestfs_h *g,\n"
31613 "                      int blocksize,\n"
31614 "                      const char *device);\n"
31615 "\n"
31616
31617 #. type: =head2
31618 #: ../src/guestfs-actions.pod:5154
31619 msgid "guestfs_mke2journal_L"
31620 msgstr "guestfs_mke2journal_L"
31621
31622 #. type: verbatim
31623 #: ../src/guestfs-actions.pod:5156
31624 #, no-wrap
31625 msgid ""
31626 " int\n"
31627 " guestfs_mke2journal_L (guestfs_h *g,\n"
31628 "                        int blocksize,\n"
31629 "                        const char *label,\n"
31630 "                        const char *device);\n"
31631 "\n"
31632 msgstr ""
31633 " int\n"
31634 " guestfs_mke2journal_L (guestfs_h *g,\n"
31635 "                        int blocksize,\n"
31636 "                        const char *label,\n"
31637 "                        const char *device);\n"
31638 "\n"
31639
31640 #. type: =head2
31641 #: ../src/guestfs-actions.pod:5168
31642 msgid "guestfs_mke2journal_U"
31643 msgstr "guestfs_mke2journal_U"
31644
31645 #. type: verbatim
31646 #: ../src/guestfs-actions.pod:5170
31647 #, no-wrap
31648 msgid ""
31649 " int\n"
31650 " guestfs_mke2journal_U (guestfs_h *g,\n"
31651 "                        int blocksize,\n"
31652 "                        const char *uuid,\n"
31653 "                        const char *device);\n"
31654 "\n"
31655 msgstr ""
31656 " int\n"
31657 " guestfs_mke2journal_U (guestfs_h *g,\n"
31658 "                        int blocksize,\n"
31659 "                        const char *uuid,\n"
31660 "                        const char *device);\n"
31661 "\n"
31662
31663 #. type: =head2
31664 #: ../src/guestfs-actions.pod:5182
31665 msgid "guestfs_mkfifo"
31666 msgstr "guestfs_mkfifo"
31667
31668 #. type: verbatim
31669 #: ../src/guestfs-actions.pod:5184
31670 #, no-wrap
31671 msgid ""
31672 " int\n"
31673 " guestfs_mkfifo (guestfs_h *g,\n"
31674 "                 int mode,\n"
31675 "                 const char *path);\n"
31676 "\n"
31677 msgstr ""
31678 " int\n"
31679 " guestfs_mkfifo (guestfs_h *g,\n"
31680 "                 int mode,\n"
31681 "                 const char *path);\n"
31682 "\n"
31683
31684 #. type: textblock
31685 #: ../src/guestfs-actions.pod:5189
31686 msgid ""
31687 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31688 "is just a convenient wrapper around C<guestfs_mknod>."
31689 msgstr ""
31690
31691 #. type: =head2
31692 #: ../src/guestfs-actions.pod:5199
31693 msgid "guestfs_mkfs"
31694 msgstr "guestfs_mkfs"
31695
31696 #. type: verbatim
31697 #: ../src/guestfs-actions.pod:5201
31698 #, no-wrap
31699 msgid ""
31700 " int\n"
31701 " guestfs_mkfs (guestfs_h *g,\n"
31702 "               const char *fstype,\n"
31703 "               const char *device);\n"
31704 "\n"
31705 msgstr ""
31706 " int\n"
31707 " guestfs_mkfs (guestfs_h *g,\n"
31708 "               const char *fstype,\n"
31709 "               const char *device);\n"
31710 "\n"
31711
31712 #. type: =head2
31713 #: ../src/guestfs-actions.pod:5214
31714 msgid "guestfs_mkfs_b"
31715 msgstr "guestfs_mkfs_b"
31716
31717 #. type: verbatim
31718 #: ../src/guestfs-actions.pod:5216
31719 #, no-wrap
31720 msgid ""
31721 " int\n"
31722 " guestfs_mkfs_b (guestfs_h *g,\n"
31723 "                 const char *fstype,\n"
31724 "                 int blocksize,\n"
31725 "                 const char *device);\n"
31726 "\n"
31727 msgstr ""
31728 " int\n"
31729 " guestfs_mkfs_b (guestfs_h *g,\n"
31730 "                 const char *fstype,\n"
31731 "                 int blocksize,\n"
31732 "                 const char *device);\n"
31733 "\n"
31734
31735 #. type: textblock
31736 #: ../src/guestfs-actions.pod:5222
31737 msgid ""
31738 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31739 "call instead."
31740 msgstr ""
31741
31742 #. type: textblock
31743 #: ../src/guestfs-actions.pod:5229
31744 msgid ""
31745 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31746 "block size of the resulting filesystem.  Supported block sizes depend on the "
31747 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31748 msgstr ""
31749
31750 #. type: =head2
31751 #: ../src/guestfs-actions.pod:5241
31752 msgid "guestfs_mkfs_opts"
31753 msgstr "guestfs_mkfs_opts"
31754
31755 #. type: verbatim
31756 #: ../src/guestfs-actions.pod:5243
31757 #, no-wrap
31758 msgid ""
31759 " int\n"
31760 " guestfs_mkfs_opts (guestfs_h *g,\n"
31761 "                    const char *fstype,\n"
31762 "                    const char *device,\n"
31763 "                    ...);\n"
31764 "\n"
31765 msgstr ""
31766 " int\n"
31767 " guestfs_mkfs_opts (guestfs_h *g,\n"
31768 "                    const char *fstype,\n"
31769 "                    const char *device,\n"
31770 "                    ...);\n"
31771 "\n"
31772
31773 #. type: verbatim
31774 #: ../src/guestfs-actions.pod:5254
31775 #, no-wrap
31776 msgid ""
31777 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31778 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31779 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31780 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31781 "\n"
31782 msgstr ""
31783
31784 #. type: textblock
31785 #: ../src/guestfs-actions.pod:5302
31786 msgid "(Added in 1.7.19)"
31787 msgstr "(Додано у 1.7.19)"
31788
31789 #. type: =head2
31790 #: ../src/guestfs-actions.pod:5304
31791 msgid "guestfs_mkfs_opts_va"
31792 msgstr "guestfs_mkfs_opts_va"
31793
31794 #. type: verbatim
31795 #: ../src/guestfs-actions.pod:5306
31796 #, no-wrap
31797 msgid ""
31798 " int\n"
31799 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31800 "                       const char *fstype,\n"
31801 "                       const char *device,\n"
31802 "                       va_list args);\n"
31803 "\n"
31804 msgstr ""
31805 " int\n"
31806 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31807 "                       const char *fstype,\n"
31808 "                       const char *device,\n"
31809 "                       va_list args);\n"
31810 "\n"
31811
31812 #. type: textblock
31813 #: ../src/guestfs-actions.pod:5312
31814 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31815 msgstr ""
31816
31817 #. type: =head2
31818 #: ../src/guestfs-actions.pod:5316
31819 msgid "guestfs_mkfs_opts_argv"
31820 msgstr "guestfs_mkfs_opts_argv"
31821
31822 #. type: verbatim
31823 #: ../src/guestfs-actions.pod:5318
31824 #, no-wrap
31825 msgid ""
31826 " int\n"
31827 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31828 "                         const char *fstype,\n"
31829 "                         const char *device,\n"
31830 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31831 "\n"
31832 msgstr ""
31833 " int\n"
31834 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31835 "                         const char *fstype,\n"
31836 "                         const char *device,\n"
31837 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31838 "\n"
31839
31840 #. type: textblock
31841 #: ../src/guestfs-actions.pod:5324
31842 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31843 msgstr ""
31844
31845 #. type: =head2
31846 #: ../src/guestfs-actions.pod:5328
31847 msgid "guestfs_mkmountpoint"
31848 msgstr "guestfs_mkmountpoint"
31849
31850 #. type: verbatim
31851 #: ../src/guestfs-actions.pod:5330
31852 #, no-wrap
31853 msgid ""
31854 " int\n"
31855 " guestfs_mkmountpoint (guestfs_h *g,\n"
31856 "                       const char *exemptpath);\n"
31857 "\n"
31858 msgstr ""
31859 " int\n"
31860 " guestfs_mkmountpoint (guestfs_h *g,\n"
31861 "                       const char *exemptpath);\n"
31862 "\n"
31863
31864 #. type: textblock
31865 #: ../src/guestfs-actions.pod:5334
31866 msgid ""
31867 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31868 "that can be used to create extra mountpoints before mounting the first "
31869 "filesystem."
31870 msgstr ""
31871
31872 #. type: textblock
31873 #: ../src/guestfs-actions.pod:5358
31874 msgid ""
31875 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31876 "may get unexpected errors if you try to mix these calls.  It is safest to "
31877 "manually unmount filesystems and remove mountpoints after use."
31878 msgstr ""
31879
31880 #. type: textblock
31881 #: ../src/guestfs-actions.pod:5362
31882 msgid ""
31883 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31884 "first, so for this to work for manual mountpoints, you must ensure that the "
31885 "innermost mountpoints have the longest pathnames, as in the example code "
31886 "above."
31887 msgstr ""
31888
31889 #. type: textblock
31890 #: ../src/guestfs-actions.pod:5369
31891 msgid ""
31892 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31893 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31894 "can also trigger these issues."
31895 msgstr ""
31896
31897 #. type: textblock
31898 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5681
31899 #: ../src/guestfs-actions.pod:6708
31900 msgid "(Added in 1.0.62)"
31901 msgstr "(Додано у 1.0.62)"
31902
31903 #. type: =head2
31904 #: ../src/guestfs-actions.pod:5377
31905 msgid "guestfs_mknod"
31906 msgstr ""
31907
31908 #. type: verbatim
31909 #: ../src/guestfs-actions.pod:5379
31910 #, no-wrap
31911 msgid ""
31912 " int\n"
31913 " guestfs_mknod (guestfs_h *g,\n"
31914 "                int mode,\n"
31915 "                int devmajor,\n"
31916 "                int devminor,\n"
31917 "                const char *path);\n"
31918 "\n"
31919 msgstr ""
31920
31921 #. type: textblock
31922 #: ../src/guestfs-actions.pod:5394
31923 msgid ""
31924 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31925 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31926 "regular file).  These constants are available in the standard Linux header "
31927 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31928 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31929 "the appropriate constant for you."
31930 msgstr ""
31931
31932 #. type: =head2
31933 #: ../src/guestfs-actions.pod:5408
31934 msgid "guestfs_mknod_b"
31935 msgstr ""
31936
31937 #. type: verbatim
31938 #: ../src/guestfs-actions.pod:5410
31939 #, no-wrap
31940 msgid ""
31941 " int\n"
31942 " guestfs_mknod_b (guestfs_h *g,\n"
31943 "                  int mode,\n"
31944 "                  int devmajor,\n"
31945 "                  int devminor,\n"
31946 "                  const char *path);\n"
31947 "\n"
31948 msgstr ""
31949
31950 #. type: textblock
31951 #: ../src/guestfs-actions.pod:5417
31952 msgid ""
31953 "This call creates a block device node called C<path> with mode C<mode> and "
31954 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31955 "wrapper around C<guestfs_mknod>."
31956 msgstr ""
31957
31958 #. type: =head2
31959 #: ../src/guestfs-actions.pod:5427
31960 msgid "guestfs_mknod_c"
31961 msgstr ""
31962
31963 #. type: verbatim
31964 #: ../src/guestfs-actions.pod:5429
31965 #, no-wrap
31966 msgid ""
31967 " int\n"
31968 " guestfs_mknod_c (guestfs_h *g,\n"
31969 "                  int mode,\n"
31970 "                  int devmajor,\n"
31971 "                  int devminor,\n"
31972 "                  const char *path);\n"
31973 "\n"
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs-actions.pod:5436
31978 msgid ""
31979 "This call creates a char device node called C<path> with mode C<mode> and "
31980 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31981 "wrapper around C<guestfs_mknod>."
31982 msgstr ""
31983
31984 #. type: =head2
31985 #: ../src/guestfs-actions.pod:5446
31986 msgid "guestfs_mkswap"
31987 msgstr ""
31988
31989 #. type: verbatim
31990 #: ../src/guestfs-actions.pod:5448
31991 #, no-wrap
31992 msgid ""
31993 " int\n"
31994 " guestfs_mkswap (guestfs_h *g,\n"
31995 "                 const char *device);\n"
31996 "\n"
31997 msgstr ""
31998
31999 #. type: =head2
32000 #: ../src/guestfs-actions.pod:5458
32001 msgid "guestfs_mkswap_L"
32002 msgstr ""
32003
32004 #. type: verbatim
32005 #: ../src/guestfs-actions.pod:5460
32006 #, no-wrap
32007 msgid ""
32008 " int\n"
32009 " guestfs_mkswap_L (guestfs_h *g,\n"
32010 "                   const char *label,\n"
32011 "                   const char *device);\n"
32012 "\n"
32013 msgstr ""
32014
32015 #. type: =head2
32016 #: ../src/guestfs-actions.pod:5475
32017 msgid "guestfs_mkswap_U"
32018 msgstr ""
32019
32020 #. type: verbatim
32021 #: ../src/guestfs-actions.pod:5477
32022 #, no-wrap
32023 msgid ""
32024 " int\n"
32025 " guestfs_mkswap_U (guestfs_h *g,\n"
32026 "                   const char *uuid,\n"
32027 "                   const char *device);\n"
32028 "\n"
32029 msgstr ""
32030
32031 #. type: =head2
32032 #: ../src/guestfs-actions.pod:5488
32033 msgid "guestfs_mkswap_file"
32034 msgstr ""
32035
32036 #. type: verbatim
32037 #: ../src/guestfs-actions.pod:5490
32038 #, no-wrap
32039 msgid ""
32040 " int\n"
32041 " guestfs_mkswap_file (guestfs_h *g,\n"
32042 "                      const char *path);\n"
32043 "\n"
32044 msgstr ""
32045
32046 #. type: textblock
32047 #: ../src/guestfs-actions.pod:5496
32048 msgid ""
32049 "This command just writes a swap file signature to an existing file.  To "
32050 "create the file itself, use something like C<guestfs_fallocate>."
32051 msgstr ""
32052
32053 #. type: =head2
32054 #: ../src/guestfs-actions.pod:5503
32055 msgid "guestfs_modprobe"
32056 msgstr ""
32057
32058 #. type: verbatim
32059 #: ../src/guestfs-actions.pod:5505
32060 #, no-wrap
32061 msgid ""
32062 " int\n"
32063 " guestfs_modprobe (guestfs_h *g,\n"
32064 "                   const char *modulename);\n"
32065 "\n"
32066 msgstr ""
32067
32068 #. type: =head2
32069 #: ../src/guestfs-actions.pod:5518
32070 msgid "guestfs_mount"
32071 msgstr ""
32072
32073 #. type: verbatim
32074 #: ../src/guestfs-actions.pod:5520
32075 #, no-wrap
32076 msgid ""
32077 " int\n"
32078 " guestfs_mount (guestfs_h *g,\n"
32079 "                const char *device,\n"
32080 "                const char *mountpoint);\n"
32081 "\n"
32082 msgstr ""
32083
32084 #. type: textblock
32085 #: ../src/guestfs-actions.pod:5539
32086 msgid ""
32087 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
32088 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
32089 "problems for users.  If your program might need to work with older versions "
32090 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
32091 "for the first parameter if you don't want any options)."
32092 msgstr ""
32093
32094 #. type: =head2
32095 #: ../src/guestfs-actions.pod:5550
32096 msgid "guestfs_mount_9p"
32097 msgstr ""
32098
32099 #. type: verbatim
32100 #: ../src/guestfs-actions.pod:5552
32101 #, no-wrap
32102 msgid ""
32103 " int\n"
32104 " guestfs_mount_9p (guestfs_h *g,\n"
32105 "                   const char *mounttag,\n"
32106 "                   const char *mountpoint,\n"
32107 "                   ...);\n"
32108 "\n"
32109 msgstr ""
32110
32111 #. type: verbatim
32112 #: ../src/guestfs-actions.pod:5563
32113 #, no-wrap
32114 msgid ""
32115 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
32116 "\n"
32117 msgstr ""
32118
32119 #. type: =head2
32120 #: ../src/guestfs-actions.pod:5576
32121 msgid "guestfs_mount_9p_va"
32122 msgstr ""
32123
32124 #. type: verbatim
32125 #: ../src/guestfs-actions.pod:5578
32126 #, no-wrap
32127 msgid ""
32128 " int\n"
32129 " guestfs_mount_9p_va (guestfs_h *g,\n"
32130 "                      const char *mounttag,\n"
32131 "                      const char *mountpoint,\n"
32132 "                      va_list args);\n"
32133 "\n"
32134 msgstr ""
32135
32136 #. type: textblock
32137 #: ../src/guestfs-actions.pod:5584
32138 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
32139 msgstr ""
32140
32141 #. type: =head2
32142 #: ../src/guestfs-actions.pod:5588
32143 msgid "guestfs_mount_9p_argv"
32144 msgstr ""
32145
32146 #. type: verbatim
32147 #: ../src/guestfs-actions.pod:5590
32148 #, no-wrap
32149 msgid ""
32150 " int\n"
32151 " guestfs_mount_9p_argv (guestfs_h *g,\n"
32152 "                        const char *mounttag,\n"
32153 "                        const char *mountpoint,\n"
32154 "                        const struct guestfs_mount_9p_argv *optargs);\n"
32155 "\n"
32156 msgstr ""
32157
32158 #. type: textblock
32159 #: ../src/guestfs-actions.pod:5596
32160 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
32161 msgstr ""
32162
32163 #. type: =head2
32164 #: ../src/guestfs-actions.pod:5600
32165 msgid "guestfs_mount_loop"
32166 msgstr ""
32167
32168 #. type: verbatim
32169 #: ../src/guestfs-actions.pod:5602
32170 #, no-wrap
32171 msgid ""
32172 " int\n"
32173 " guestfs_mount_loop (guestfs_h *g,\n"
32174 "                     const char *file,\n"
32175 "                     const char *mountpoint);\n"
32176 "\n"
32177 msgstr ""
32178
32179 #. type: =head2
32180 #: ../src/guestfs-actions.pod:5615
32181 msgid "guestfs_mount_options"
32182 msgstr ""
32183
32184 #. type: verbatim
32185 #: ../src/guestfs-actions.pod:5617
32186 #, no-wrap
32187 msgid ""
32188 " int\n"
32189 " guestfs_mount_options (guestfs_h *g,\n"
32190 "                        const char *options,\n"
32191 "                        const char *device,\n"
32192 "                        const char *mountpoint);\n"
32193 "\n"
32194 msgstr ""
32195
32196 #. type: textblock
32197 #: ../src/guestfs-actions.pod:5623
32198 msgid ""
32199 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32200 "the mount options as for the L<mount(8)> I<-o> flag."
32201 msgstr ""
32202
32203 #. type: textblock
32204 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5647
32205 #: ../src/guestfs-actions.pod:5664
32206 msgid "(Added in 1.0.10)"
32207 msgstr "(Додано у 1.0.10)"
32208
32209 #. type: =head2
32210 #: ../src/guestfs-actions.pod:5635
32211 msgid "guestfs_mount_ro"
32212 msgstr ""
32213
32214 #. type: verbatim
32215 #: ../src/guestfs-actions.pod:5637
32216 #, no-wrap
32217 msgid ""
32218 " int\n"
32219 " guestfs_mount_ro (guestfs_h *g,\n"
32220 "                   const char *device,\n"
32221 "                   const char *mountpoint);\n"
32222 "\n"
32223 msgstr ""
32224
32225 #. type: textblock
32226 #: ../src/guestfs-actions.pod:5642
32227 msgid ""
32228 "This is the same as the C<guestfs_mount> command, but it mounts the "
32229 "filesystem with the read-only (I<-o ro>) flag."
32230 msgstr ""
32231
32232 #. type: =head2
32233 #: ../src/guestfs-actions.pod:5649
32234 msgid "guestfs_mount_vfs"
32235 msgstr ""
32236
32237 #. type: verbatim
32238 #: ../src/guestfs-actions.pod:5651
32239 #, no-wrap
32240 msgid ""
32241 " int\n"
32242 " guestfs_mount_vfs (guestfs_h *g,\n"
32243 "                    const char *options,\n"
32244 "                    const char *vfstype,\n"
32245 "                    const char *device,\n"
32246 "                    const char *mountpoint);\n"
32247 "\n"
32248 msgstr ""
32249
32250 #. type: textblock
32251 #: ../src/guestfs-actions.pod:5658
32252 msgid ""
32253 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32254 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32255 "t> flags."
32256 msgstr ""
32257
32258 #. type: =head2
32259 #: ../src/guestfs-actions.pod:5666
32260 msgid "guestfs_mountpoints"
32261 msgstr ""
32262
32263 #. type: verbatim
32264 #: ../src/guestfs-actions.pod:5668
32265 #, no-wrap
32266 msgid ""
32267 " char **\n"
32268 " guestfs_mountpoints (guestfs_h *g);\n"
32269 "\n"
32270 msgstr ""
32271
32272 #. type: textblock
32273 #: ../src/guestfs-actions.pod:5671
32274 msgid ""
32275 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
32276 "devices.  This one returns a hash table (map) of device name to directory "
32277 "where the device is mounted."
32278 msgstr ""
32279
32280 #. type: =head2
32281 #: ../src/guestfs-actions.pod:5683
32282 msgid "guestfs_mounts"
32283 msgstr ""
32284
32285 #. type: verbatim
32286 #: ../src/guestfs-actions.pod:5685
32287 #, no-wrap
32288 msgid ""
32289 " char **\n"
32290 " guestfs_mounts (guestfs_h *g);\n"
32291 "\n"
32292 msgstr ""
32293
32294 #. type: textblock
32295 #: ../src/guestfs-actions.pod:5693
32296 msgid "See also: C<guestfs_mountpoints>"
32297 msgstr ""
32298
32299 #. type: =head2
32300 #: ../src/guestfs-actions.pod:5701
32301 msgid "guestfs_mv"
32302 msgstr ""
32303
32304 #. type: verbatim
32305 #: ../src/guestfs-actions.pod:5703
32306 #, no-wrap
32307 msgid ""
32308 " int\n"
32309 " guestfs_mv (guestfs_h *g,\n"
32310 "             const char *src,\n"
32311 "             const char *dest);\n"
32312 "\n"
32313 msgstr ""
32314
32315 #. type: =head2
32316 #: ../src/guestfs-actions.pod:5715
32317 msgid "guestfs_ntfs_3g_probe"
32318 msgstr ""
32319
32320 #. type: verbatim
32321 #: ../src/guestfs-actions.pod:5717
32322 #, no-wrap
32323 msgid ""
32324 " int\n"
32325 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32326 "                        int rw,\n"
32327 "                        const char *device);\n"
32328 "\n"
32329 msgstr ""
32330
32331 #. type: textblock
32332 #: ../src/guestfs-actions.pod:5736
32333 msgid "(Added in 1.0.43)"
32334 msgstr "(Додано у 1.0.43)"
32335
32336 #. type: =head2
32337 #: ../src/guestfs-actions.pod:5738
32338 msgid "guestfs_ntfsresize"
32339 msgstr ""
32340
32341 #. type: verbatim
32342 #: ../src/guestfs-actions.pod:5740
32343 #, no-wrap
32344 msgid ""
32345 " int\n"
32346 " guestfs_ntfsresize (guestfs_h *g,\n"
32347 "                     const char *device);\n"
32348 "\n"
32349 msgstr ""
32350
32351 #. type: textblock
32352 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5844
32353 msgid ""
32354 "I<This function is deprecated.> In new code, use the L</"
32355 "guestfs_ntfsresize_opts> call instead."
32356 msgstr ""
32357
32358 #. type: =head2
32359 #: ../src/guestfs-actions.pod:5768
32360 msgid "guestfs_ntfsresize_opts"
32361 msgstr ""
32362
32363 #. type: verbatim
32364 #: ../src/guestfs-actions.pod:5770
32365 #, no-wrap
32366 msgid ""
32367 " int\n"
32368 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32369 "                          const char *device,\n"
32370 "                          ...);\n"
32371 "\n"
32372 msgstr ""
32373
32374 #. type: verbatim
32375 #: ../src/guestfs-actions.pod:5780
32376 #, no-wrap
32377 msgid ""
32378 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32379 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32380 "\n"
32381 msgstr ""
32382
32383 #. type: textblock
32384 #: ../src/guestfs-actions.pod:5800
32385 msgid ""
32386 "After the resize operation, the filesystem is always marked as requiring a "
32387 "consistency check (for safety).  You have to boot into Windows to perform "
32388 "this check and clear this condition.  If you I<don't> set the C<force> "
32389 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32390 "times on a single filesystem without booting into Windows between each "
32391 "resize."
32392 msgstr ""
32393
32394 #. type: =head2
32395 #: ../src/guestfs-actions.pod:5815
32396 msgid "guestfs_ntfsresize_opts_va"
32397 msgstr ""
32398
32399 #. type: verbatim
32400 #: ../src/guestfs-actions.pod:5817
32401 #, no-wrap
32402 msgid ""
32403 " int\n"
32404 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32405 "                             const char *device,\n"
32406 "                             va_list args);\n"
32407 "\n"
32408 msgstr ""
32409
32410 #. type: textblock
32411 #: ../src/guestfs-actions.pod:5822
32412 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32413 msgstr ""
32414
32415 #. type: =head2
32416 #: ../src/guestfs-actions.pod:5826
32417 msgid "guestfs_ntfsresize_opts_argv"
32418 msgstr ""
32419
32420 #. type: verbatim
32421 #: ../src/guestfs-actions.pod:5828
32422 #, no-wrap
32423 msgid ""
32424 " int\n"
32425 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32426 "                               const char *device,\n"
32427 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32428 "\n"
32429 msgstr ""
32430
32431 #. type: textblock
32432 #: ../src/guestfs-actions.pod:5833
32433 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32434 msgstr ""
32435
32436 #. type: =head2
32437 #: ../src/guestfs-actions.pod:5837
32438 msgid "guestfs_ntfsresize_size"
32439 msgstr ""
32440
32441 #. type: verbatim
32442 #: ../src/guestfs-actions.pod:5839
32443 #, no-wrap
32444 msgid ""
32445 " int\n"
32446 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32447 "                          const char *device,\n"
32448 "                          int64_t size);\n"
32449 "\n"
32450 msgstr ""
32451
32452 #. type: textblock
32453 #: ../src/guestfs-actions.pod:5851
32454 msgid ""
32455 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32456 "to specify the new size (in bytes) explicitly."
32457 msgstr ""
32458
32459 #. type: textblock
32460 #: ../src/guestfs-actions.pod:5856 ../src/guestfs-actions.pod:6315
32461 #: ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:6656
32462 #: ../src/guestfs-actions.pod:8403
32463 msgid "(Added in 1.3.14)"
32464 msgstr "(Додано у 1.3.14)"
32465
32466 #. type: =head2
32467 #: ../src/guestfs-actions.pod:5858
32468 msgid "guestfs_part_add"
32469 msgstr ""
32470
32471 #. type: verbatim
32472 #: ../src/guestfs-actions.pod:5860
32473 #, no-wrap
32474 msgid ""
32475 " int\n"
32476 " guestfs_part_add (guestfs_h *g,\n"
32477 "                   const char *device,\n"
32478 "                   const char *prlogex,\n"
32479 "                   int64_t startsect,\n"
32480 "                   int64_t endsect);\n"
32481 "\n"
32482 msgstr ""
32483
32484 #. type: textblock
32485 #: ../src/guestfs-actions.pod:5867
32486 msgid ""
32487 "This command adds a partition to C<device>.  If there is no partition table "
32488 "on the device, call C<guestfs_part_init> first."
32489 msgstr ""
32490
32491 #. type: textblock
32492 #: ../src/guestfs-actions.pod:5879
32493 msgid ""
32494 "Creating a partition which covers the whole disk is not so easy.  Use "
32495 "C<guestfs_part_disk> to do that."
32496 msgstr ""
32497
32498 #. type: textblock
32499 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:5919
32500 #: ../src/guestfs-actions.pod:5972 ../src/guestfs-actions.pod:6056
32501 #: ../src/guestfs-actions.pod:6094 ../src/guestfs-actions.pod:6113
32502 #: ../src/guestfs-actions.pod:6153
32503 msgid "(Added in 1.0.78)"
32504 msgstr "(Додано у 1.0.78)"
32505
32506 #. type: =head2
32507 #: ../src/guestfs-actions.pod:5886
32508 msgid "guestfs_part_del"
32509 msgstr ""
32510
32511 #. type: verbatim
32512 #: ../src/guestfs-actions.pod:5888
32513 #, no-wrap
32514 msgid ""
32515 " int\n"
32516 " guestfs_part_del (guestfs_h *g,\n"
32517 "                   const char *device,\n"
32518 "                   int partnum);\n"
32519 "\n"
32520 msgstr ""
32521
32522 #. type: =head2
32523 #: ../src/guestfs-actions.pod:5903
32524 msgid "guestfs_part_disk"
32525 msgstr ""
32526
32527 #. type: verbatim
32528 #: ../src/guestfs-actions.pod:5905
32529 #, no-wrap
32530 msgid ""
32531 " int\n"
32532 " guestfs_part_disk (guestfs_h *g,\n"
32533 "                    const char *device,\n"
32534 "                    const char *parttype);\n"
32535 "\n"
32536 msgstr ""
32537
32538 #. type: textblock
32539 #: ../src/guestfs-actions.pod:5910
32540 msgid ""
32541 "This command is simply a combination of C<guestfs_part_init> followed by "
32542 "C<guestfs_part_add> to create a single primary partition covering the whole "
32543 "disk."
32544 msgstr ""
32545
32546 #. type: textblock
32547 #: ../src/guestfs-actions.pod:5914
32548 msgid ""
32549 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32550 "possible values are described in C<guestfs_part_init>."
32551 msgstr ""
32552
32553 #. type: =head2
32554 #: ../src/guestfs-actions.pod:5921
32555 msgid "guestfs_part_get_bootable"
32556 msgstr ""
32557
32558 #. type: verbatim
32559 #: ../src/guestfs-actions.pod:5923
32560 #, no-wrap
32561 msgid ""
32562 " int\n"
32563 " guestfs_part_get_bootable (guestfs_h *g,\n"
32564 "                            const char *device,\n"
32565 "                            int partnum);\n"
32566 "\n"
32567 msgstr ""
32568
32569 #. type: textblock
32570 #: ../src/guestfs-actions.pod:5931
32571 msgid "See also C<guestfs_part_set_bootable>."
32572 msgstr ""
32573
32574 #. type: =head2
32575 #: ../src/guestfs-actions.pod:5937
32576 msgid "guestfs_part_get_mbr_id"
32577 msgstr ""
32578
32579 #. type: verbatim
32580 #: ../src/guestfs-actions.pod:5939
32581 #, no-wrap
32582 msgid ""
32583 " int\n"
32584 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32585 "                          const char *device,\n"
32586 "                          int partnum);\n"
32587 "\n"
32588 msgstr ""
32589
32590 #. type: textblock
32591 #: ../src/guestfs-actions.pod:5947 ../src/guestfs-actions.pod:6129
32592 msgid ""
32593 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32594 "undefined results for other partition table types (see "
32595 "C<guestfs_part_get_parttype>)."
32596 msgstr ""
32597
32598 #. type: =head2
32599 #: ../src/guestfs-actions.pod:5955
32600 msgid "guestfs_part_get_parttype"
32601 msgstr ""
32602
32603 #. type: verbatim
32604 #: ../src/guestfs-actions.pod:5957
32605 #, no-wrap
32606 msgid ""
32607 " char *\n"
32608 " guestfs_part_get_parttype (guestfs_h *g,\n"
32609 "                            const char *device);\n"
32610 "\n"
32611 msgstr ""
32612
32613 #. type: textblock
32614 #: ../src/guestfs-actions.pod:5964
32615 msgid ""
32616 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32617 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32618 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32619 msgstr ""
32620
32621 #. type: =head2
32622 #: ../src/guestfs-actions.pod:5974
32623 msgid "guestfs_part_init"
32624 msgstr ""
32625
32626 #. type: verbatim
32627 #: ../src/guestfs-actions.pod:5976
32628 #, no-wrap
32629 msgid ""
32630 " int\n"
32631 " guestfs_part_init (guestfs_h *g,\n"
32632 "                    const char *device,\n"
32633 "                    const char *parttype);\n"
32634 "\n"
32635 msgstr ""
32636
32637 #. type: textblock
32638 #: ../src/guestfs-actions.pod:5985
32639 msgid ""
32640 "Initially there are no partitions.  Following this, you should call "
32641 "C<guestfs_part_add> for each partition required."
32642 msgstr ""
32643
32644 #. type: =head2
32645 #: ../src/guestfs-actions.pod:6058
32646 msgid "guestfs_part_list"
32647 msgstr "guestfs_part_list"
32648
32649 #. type: verbatim
32650 #: ../src/guestfs-actions.pod:6060
32651 #, no-wrap
32652 msgid ""
32653 " struct guestfs_partition_list *\n"
32654 " guestfs_part_list (guestfs_h *g,\n"
32655 "                    const char *device);\n"
32656 "\n"
32657 msgstr ""
32658 " struct guestfs_partition_list *\n"
32659 " guestfs_part_list (guestfs_h *g,\n"
32660 "                    const char *device);\n"
32661 "\n"
32662
32663 #. type: textblock
32664 #: ../src/guestfs-actions.pod:6077
32665 msgid ""
32666 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32667 "the device's sector size, see C<guestfs_blockdev_getss>."
32668 msgstr ""
32669
32670 #. type: textblock
32671 #: ../src/guestfs-actions.pod:6090
32672 msgid ""
32673 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32674 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32675 "use>."
32676 msgstr ""
32677
32678 #. type: =head2
32679 #: ../src/guestfs-actions.pod:6096
32680 msgid "guestfs_part_set_bootable"
32681 msgstr ""
32682
32683 #. type: verbatim
32684 #: ../src/guestfs-actions.pod:6098
32685 #, no-wrap
32686 msgid ""
32687 " int\n"
32688 " guestfs_part_set_bootable (guestfs_h *g,\n"
32689 "                            const char *device,\n"
32690 "                            int partnum,\n"
32691 "                            int bootable);\n"
32692 "\n"
32693 msgstr ""
32694
32695 #. type: =head2
32696 #: ../src/guestfs-actions.pod:6115
32697 msgid "guestfs_part_set_mbr_id"
32698 msgstr ""
32699
32700 #. type: verbatim
32701 #: ../src/guestfs-actions.pod:6117
32702 #, no-wrap
32703 msgid ""
32704 " int\n"
32705 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32706 "                          const char *device,\n"
32707 "                          int partnum,\n"
32708 "                          int idbyte);\n"
32709 "\n"
32710 msgstr ""
32711
32712 #. type: =head2
32713 #: ../src/guestfs-actions.pod:6137
32714 msgid "guestfs_part_set_name"
32715 msgstr ""
32716
32717 #. type: verbatim
32718 #: ../src/guestfs-actions.pod:6139
32719 #, no-wrap
32720 msgid ""
32721 " int\n"
32722 " guestfs_part_set_name (guestfs_h *g,\n"
32723 "                        const char *device,\n"
32724 "                        int partnum,\n"
32725 "                        const char *name);\n"
32726 "\n"
32727 msgstr ""
32728
32729 #. type: =head2
32730 #: ../src/guestfs-actions.pod:6155
32731 msgid "guestfs_part_to_dev"
32732 msgstr ""
32733
32734 #. type: verbatim
32735 #: ../src/guestfs-actions.pod:6157
32736 #, no-wrap
32737 msgid ""
32738 " char *\n"
32739 " guestfs_part_to_dev (guestfs_h *g,\n"
32740 "                      const char *partition);\n"
32741 "\n"
32742 msgstr ""
32743
32744 #. type: textblock
32745 #: ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6184
32746 msgid ""
32747 "The named partition must exist, for example as a string returned from "
32748 "C<guestfs_list_partitions>."
32749 msgstr ""
32750
32751 #. type: textblock
32752 #: ../src/guestfs-actions.pod:6168
32753 msgid "See also C<guestfs_part_to_partnum>."
32754 msgstr ""
32755
32756 #. type: =head2
32757 #: ../src/guestfs-actions.pod:6175
32758 msgid "guestfs_part_to_partnum"
32759 msgstr ""
32760
32761 #. type: verbatim
32762 #: ../src/guestfs-actions.pod:6177
32763 #, no-wrap
32764 msgid ""
32765 " int\n"
32766 " guestfs_part_to_partnum (guestfs_h *g,\n"
32767 "                          const char *partition);\n"
32768 "\n"
32769 msgstr ""
32770
32771 #. type: textblock
32772 #: ../src/guestfs-actions.pod:6187
32773 msgid "See also C<guestfs_part_to_dev>."
32774 msgstr ""
32775
32776 #. type: =head2
32777 #: ../src/guestfs-actions.pod:6193
32778 msgid "guestfs_ping_daemon"
32779 msgstr ""
32780
32781 #. type: verbatim
32782 #: ../src/guestfs-actions.pod:6195
32783 #, no-wrap
32784 msgid ""
32785 " int\n"
32786 " guestfs_ping_daemon (guestfs_h *g);\n"
32787 "\n"
32788 msgstr ""
32789
32790 #. type: =head2
32791 #: ../src/guestfs-actions.pod:6207
32792 msgid "guestfs_pread"
32793 msgstr ""
32794
32795 #. type: verbatim
32796 #: ../src/guestfs-actions.pod:6209
32797 #, no-wrap
32798 msgid ""
32799 " char *\n"
32800 " guestfs_pread (guestfs_h *g,\n"
32801 "                const char *path,\n"
32802 "                int count,\n"
32803 "                int64_t offset,\n"
32804 "                size_t *size_r);\n"
32805 "\n"
32806 msgstr ""
32807
32808 #. type: textblock
32809 #: ../src/guestfs-actions.pod:6222
32810 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32811 msgstr ""
32812
32813 #. type: =head2
32814 #: ../src/guestfs-actions.pod:6233
32815 msgid "guestfs_pread_device"
32816 msgstr ""
32817
32818 #. type: verbatim
32819 #: ../src/guestfs-actions.pod:6235
32820 #, no-wrap
32821 msgid ""
32822 " char *\n"
32823 " guestfs_pread_device (guestfs_h *g,\n"
32824 "                       const char *device,\n"
32825 "                       int count,\n"
32826 "                       int64_t offset,\n"
32827 "                       size_t *size_r);\n"
32828 "\n"
32829 msgstr ""
32830
32831 #. type: textblock
32832 #: ../src/guestfs-actions.pod:6248
32833 msgid "See also C<guestfs_pread>."
32834 msgstr ""
32835
32836 #. type: textblock
32837 #: ../src/guestfs-actions.pod:6257
32838 msgid "(Added in 1.5.21)"
32839 msgstr "(Додано у 1.5.21)"
32840
32841 #. type: =head2
32842 #: ../src/guestfs-actions.pod:6259
32843 msgid "guestfs_pvcreate"
32844 msgstr ""
32845
32846 #. type: verbatim
32847 #: ../src/guestfs-actions.pod:6261
32848 #, no-wrap
32849 msgid ""
32850 " int\n"
32851 " guestfs_pvcreate (guestfs_h *g,\n"
32852 "                   const char *device);\n"
32853 "\n"
32854 msgstr ""
32855
32856 #. type: =head2
32857 #: ../src/guestfs-actions.pod:6273
32858 msgid "guestfs_pvremove"
32859 msgstr ""
32860
32861 #. type: verbatim
32862 #: ../src/guestfs-actions.pod:6275
32863 #, no-wrap
32864 msgid ""
32865 " int\n"
32866 " guestfs_pvremove (guestfs_h *g,\n"
32867 "                   const char *device);\n"
32868 "\n"
32869 msgstr ""
32870
32871 #. type: =head2
32872 #: ../src/guestfs-actions.pod:6290
32873 msgid "guestfs_pvresize"
32874 msgstr ""
32875
32876 #. type: verbatim
32877 #: ../src/guestfs-actions.pod:6292
32878 #, no-wrap
32879 msgid ""
32880 " int\n"
32881 " guestfs_pvresize (guestfs_h *g,\n"
32882 "                   const char *device);\n"
32883 "\n"
32884 msgstr ""
32885
32886 #. type: =head2
32887 #: ../src/guestfs-actions.pod:6303
32888 msgid "guestfs_pvresize_size"
32889 msgstr ""
32890
32891 #. type: verbatim
32892 #: ../src/guestfs-actions.pod:6305
32893 #, no-wrap
32894 msgid ""
32895 " int\n"
32896 " guestfs_pvresize_size (guestfs_h *g,\n"
32897 "                        const char *device,\n"
32898 "                        int64_t size);\n"
32899 "\n"
32900 msgstr ""
32901
32902 #. type: textblock
32903 #: ../src/guestfs-actions.pod:6310
32904 msgid ""
32905 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32906 "specify the new size (in bytes) explicitly."
32907 msgstr ""
32908
32909 #. type: =head2
32910 #: ../src/guestfs-actions.pod:6317
32911 msgid "guestfs_pvs"
32912 msgstr ""
32913
32914 #. type: verbatim
32915 #: ../src/guestfs-actions.pod:6319
32916 #, no-wrap
32917 msgid ""
32918 " char **\n"
32919 " guestfs_pvs (guestfs_h *g);\n"
32920 "\n"
32921 msgstr ""
32922
32923 #. type: textblock
32924 #: ../src/guestfs-actions.pod:6328
32925 msgid "See also C<guestfs_pvs_full>."
32926 msgstr ""
32927
32928 #. type: =head2
32929 #: ../src/guestfs-actions.pod:6336
32930 msgid "guestfs_pvs_full"
32931 msgstr ""
32932
32933 #. type: verbatim
32934 #: ../src/guestfs-actions.pod:6338
32935 #, no-wrap
32936 msgid ""
32937 " struct guestfs_lvm_pv_list *\n"
32938 " guestfs_pvs_full (guestfs_h *g);\n"
32939 "\n"
32940 msgstr ""
32941
32942 #. type: textblock
32943 #: ../src/guestfs-actions.pod:6344
32944 msgid ""
32945 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32946 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32947 msgstr ""
32948
32949 #. type: =head2
32950 #: ../src/guestfs-actions.pod:6350
32951 msgid "guestfs_pvuuid"
32952 msgstr ""
32953
32954 #. type: verbatim
32955 #: ../src/guestfs-actions.pod:6352
32956 #, no-wrap
32957 msgid ""
32958 " char *\n"
32959 " guestfs_pvuuid (guestfs_h *g,\n"
32960 "                 const char *device);\n"
32961 "\n"
32962 msgstr ""
32963
32964 #. type: =head2
32965 #: ../src/guestfs-actions.pod:6363
32966 msgid "guestfs_pwrite"
32967 msgstr ""
32968
32969 #. type: verbatim
32970 #: ../src/guestfs-actions.pod:6365
32971 #, no-wrap
32972 msgid ""
32973 " int\n"
32974 " guestfs_pwrite (guestfs_h *g,\n"
32975 "                 const char *path,\n"
32976 "                 const char *content,\n"
32977 "                 size_t content_size,\n"
32978 "                 int64_t offset);\n"
32979 "\n"
32980 msgstr ""
32981
32982 #. type: textblock
32983 #: ../src/guestfs-actions.pod:6381
32984 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32985 msgstr ""
32986
32987 #. type: =head2
32988 #: ../src/guestfs-actions.pod:6390
32989 msgid "guestfs_pwrite_device"
32990 msgstr ""
32991
32992 #. type: verbatim
32993 #: ../src/guestfs-actions.pod:6392
32994 #, no-wrap
32995 msgid ""
32996 " int\n"
32997 " guestfs_pwrite_device (guestfs_h *g,\n"
32998 "                        const char *device,\n"
32999 "                        const char *content,\n"
33000 "                        size_t content_size,\n"
33001 "                        int64_t offset);\n"
33002 "\n"
33003 msgstr ""
33004
33005 #. type: textblock
33006 #: ../src/guestfs-actions.pod:6407
33007 msgid "See also C<guestfs_pwrite>."
33008 msgstr ""
33009
33010 #. type: textblock
33011 #: ../src/guestfs-actions.pod:6414
33012 msgid "(Added in 1.5.20)"
33013 msgstr "(Додано у 1.5.20)"
33014
33015 #. type: =head2
33016 #: ../src/guestfs-actions.pod:6416
33017 msgid "guestfs_read_file"
33018 msgstr ""
33019
33020 #. type: verbatim
33021 #: ../src/guestfs-actions.pod:6418
33022 #, no-wrap
33023 msgid ""
33024 " char *\n"
33025 " guestfs_read_file (guestfs_h *g,\n"
33026 "                    const char *path,\n"
33027 "                    size_t *size_r);\n"
33028 "\n"
33029 msgstr ""
33030
33031 #. type: textblock
33032 #: ../src/guestfs-actions.pod:6426
33033 msgid ""
33034 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
33035 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
33036 "function is limited in the total size of file that can be handled."
33037 msgstr ""
33038
33039 #. type: textblock
33040 #: ../src/guestfs-actions.pod:6438
33041 msgid "(Added in 1.0.63)"
33042 msgstr "(Додано у 1.0.63)"
33043
33044 #. type: =head2
33045 #: ../src/guestfs-actions.pod:6440
33046 msgid "guestfs_read_lines"
33047 msgstr ""
33048
33049 #. type: verbatim
33050 #: ../src/guestfs-actions.pod:6442
33051 #, no-wrap
33052 msgid ""
33053 " char **\n"
33054 " guestfs_read_lines (guestfs_h *g,\n"
33055 "                     const char *path);\n"
33056 "\n"
33057 msgstr ""
33058
33059 #. type: textblock
33060 #: ../src/guestfs-actions.pod:6451
33061 msgid ""
33062 "Note that this function cannot correctly handle binary files (specifically, "
33063 "files containing C<\\0> character which is treated as end of line).  For "
33064 "those you need to use the C<guestfs_read_file> function which has a more "
33065 "complex interface."
33066 msgstr ""
33067
33068 #. type: =head2
33069 #: ../src/guestfs-actions.pod:6462
33070 msgid "guestfs_readdir"
33071 msgstr ""
33072
33073 #. type: verbatim
33074 #: ../src/guestfs-actions.pod:6464
33075 #, no-wrap
33076 msgid ""
33077 " struct guestfs_dirent_list *\n"
33078 " guestfs_readdir (guestfs_h *g,\n"
33079 "                  const char *dir);\n"
33080 "\n"
33081 msgstr ""
33082
33083 #. type: textblock
33084 #: ../src/guestfs-actions.pod:6518
33085 msgid ""
33086 "This function is primarily intended for use by programs.  To get a simple "
33087 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
33088 "consumption, use C<guestfs_ll>."
33089 msgstr ""
33090
33091 #. type: textblock
33092 #: ../src/guestfs-actions.pod:6522
33093 msgid ""
33094 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
33095 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
33096 msgstr ""
33097
33098 #. type: =head2
33099 #: ../src/guestfs-actions.pod:6528
33100 msgid "guestfs_readlink"
33101 msgstr ""
33102
33103 #. type: verbatim
33104 #: ../src/guestfs-actions.pod:6530
33105 #, no-wrap
33106 msgid ""
33107 " char *\n"
33108 " guestfs_readlink (guestfs_h *g,\n"
33109 "                   const char *path);\n"
33110 "\n"
33111 msgstr ""
33112
33113 #. type: =head2
33114 #: ../src/guestfs-actions.pod:6541
33115 msgid "guestfs_readlinklist"
33116 msgstr ""
33117
33118 #. type: verbatim
33119 #: ../src/guestfs-actions.pod:6543
33120 #, no-wrap
33121 msgid ""
33122 " char **\n"
33123 " guestfs_readlinklist (guestfs_h *g,\n"
33124 "                       const char *path,\n"
33125 "                       char *const *names);\n"
33126 "\n"
33127 msgstr ""
33128
33129 #. type: =head2
33130 #: ../src/guestfs-actions.pod:6576
33131 msgid "guestfs_realpath"
33132 msgstr ""
33133
33134 #. type: verbatim
33135 #: ../src/guestfs-actions.pod:6578
33136 #, no-wrap
33137 msgid ""
33138 " char *\n"
33139 " guestfs_realpath (guestfs_h *g,\n"
33140 "                   const char *path);\n"
33141 "\n"
33142 msgstr ""
33143
33144 #. type: =head2
33145 #: ../src/guestfs-actions.pod:6590
33146 msgid "guestfs_removexattr"
33147 msgstr ""
33148
33149 #. type: verbatim
33150 #: ../src/guestfs-actions.pod:6592
33151 #, no-wrap
33152 msgid ""
33153 " int\n"
33154 " guestfs_removexattr (guestfs_h *g,\n"
33155 "                      const char *xattr,\n"
33156 "                      const char *path);\n"
33157 "\n"
33158 msgstr ""
33159
33160 #. type: textblock
33161 #: ../src/guestfs-actions.pod:6600
33162 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
33163 msgstr ""
33164
33165 #. type: =head2
33166 #: ../src/guestfs-actions.pod:6606
33167 msgid "guestfs_resize2fs"
33168 msgstr ""
33169
33170 #. type: verbatim
33171 #: ../src/guestfs-actions.pod:6608
33172 #, no-wrap
33173 msgid ""
33174 " int\n"
33175 " guestfs_resize2fs (guestfs_h *g,\n"
33176 "                    const char *device);\n"
33177 "\n"
33178 msgstr ""
33179
33180 #. type: textblock
33181 #: ../src/guestfs-actions.pod:6615
33182 msgid ""
33183 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
33184 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
33185 "sometimes gives an error about this and sometimes not.  In any case, it is "
33186 "always safe to call C<guestfs_e2fsck_f> before calling this function."
33187 msgstr ""
33188
33189 #. type: =head2
33190 #: ../src/guestfs-actions.pod:6625
33191 msgid "guestfs_resize2fs_M"
33192 msgstr ""
33193
33194 #. type: verbatim
33195 #: ../src/guestfs-actions.pod:6627
33196 #, no-wrap
33197 msgid ""
33198 " int\n"
33199 " guestfs_resize2fs_M (guestfs_h *g,\n"
33200 "                      const char *device);\n"
33201 "\n"
33202 msgstr ""
33203
33204 #. type: textblock
33205 #: ../src/guestfs-actions.pod:6631
33206 msgid ""
33207 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
33208 "resized to its minimum size.  This works like the I<-M> option to the "
33209 "C<resize2fs> command."
33210 msgstr ""
33211
33212 #. type: textblock
33213 #: ../src/guestfs-actions.pod:6635
33214 msgid ""
33215 "To get the resulting size of the filesystem you should call "
33216 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
33217 "These two numbers, multiplied together, give the resulting size of the "
33218 "minimal filesystem in bytes."
33219 msgstr ""
33220
33221 #. type: =head2
33222 #: ../src/guestfs-actions.pod:6644
33223 msgid "guestfs_resize2fs_size"
33224 msgstr ""
33225
33226 #. type: verbatim
33227 #: ../src/guestfs-actions.pod:6646
33228 #, no-wrap
33229 msgid ""
33230 " int\n"
33231 " guestfs_resize2fs_size (guestfs_h *g,\n"
33232 "                         const char *device,\n"
33233 "                         int64_t size);\n"
33234 "\n"
33235 msgstr ""
33236
33237 #. type: textblock
33238 #: ../src/guestfs-actions.pod:6651
33239 msgid ""
33240 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33241 "to specify the new size (in bytes) explicitly."
33242 msgstr ""
33243
33244 #. type: =head2
33245 #: ../src/guestfs-actions.pod:6658
33246 msgid "guestfs_rm"
33247 msgstr ""
33248
33249 #. type: verbatim
33250 #: ../src/guestfs-actions.pod:6660
33251 #, no-wrap
33252 msgid ""
33253 " int\n"
33254 " guestfs_rm (guestfs_h *g,\n"
33255 "             const char *path);\n"
33256 "\n"
33257 msgstr ""
33258
33259 #. type: =head2
33260 #: ../src/guestfs-actions.pod:6670
33261 msgid "guestfs_rm_rf"
33262 msgstr ""
33263
33264 #. type: verbatim
33265 #: ../src/guestfs-actions.pod:6672
33266 #, no-wrap
33267 msgid ""
33268 " int\n"
33269 " guestfs_rm_rf (guestfs_h *g,\n"
33270 "                const char *path);\n"
33271 "\n"
33272 msgstr ""
33273
33274 #. type: =head2
33275 #: ../src/guestfs-actions.pod:6684
33276 msgid "guestfs_rmdir"
33277 msgstr ""
33278
33279 #. type: verbatim
33280 #: ../src/guestfs-actions.pod:6686
33281 #, no-wrap
33282 msgid ""
33283 " int\n"
33284 " guestfs_rmdir (guestfs_h *g,\n"
33285 "                const char *path);\n"
33286 "\n"
33287 msgstr ""
33288
33289 #. type: =head2
33290 #: ../src/guestfs-actions.pod:6696
33291 msgid "guestfs_rmmountpoint"
33292 msgstr ""
33293
33294 #. type: verbatim
33295 #: ../src/guestfs-actions.pod:6698
33296 #, no-wrap
33297 msgid ""
33298 " int\n"
33299 " guestfs_rmmountpoint (guestfs_h *g,\n"
33300 "                       const char *exemptpath);\n"
33301 "\n"
33302 msgstr ""
33303
33304 #. type: textblock
33305 #: ../src/guestfs-actions.pod:6702
33306 msgid ""
33307 "This calls removes a mountpoint that was previously created with "
33308 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
33309 msgstr ""
33310
33311 #. type: =head2
33312 #: ../src/guestfs-actions.pod:6710
33313 msgid "guestfs_scrub_device"
33314 msgstr ""
33315
33316 #. type: verbatim
33317 #: ../src/guestfs-actions.pod:6712
33318 #, no-wrap
33319 msgid ""
33320 " int\n"
33321 " guestfs_scrub_device (guestfs_h *g,\n"
33322 "                       const char *device);\n"
33323 "\n"
33324 msgstr ""
33325
33326 #. type: textblock
33327 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6742
33328 #: ../src/guestfs-actions.pod:6761
33329 msgid "(Added in 1.0.52)"
33330 msgstr "(Додано у 1.0.52)"
33331
33332 #. type: =head2
33333 #: ../src/guestfs-actions.pod:6726
33334 msgid "guestfs_scrub_file"
33335 msgstr ""
33336
33337 #. type: verbatim
33338 #: ../src/guestfs-actions.pod:6728
33339 #, no-wrap
33340 msgid ""
33341 " int\n"
33342 " guestfs_scrub_file (guestfs_h *g,\n"
33343 "                     const char *file);\n"
33344 "\n"
33345 msgstr ""
33346
33347 #. type: =head2
33348 #: ../src/guestfs-actions.pod:6744
33349 msgid "guestfs_scrub_freespace"
33350 msgstr ""
33351
33352 #. type: verbatim
33353 #: ../src/guestfs-actions.pod:6746
33354 #, no-wrap
33355 msgid ""
33356 " int\n"
33357 " guestfs_scrub_freespace (guestfs_h *g,\n"
33358 "                          const char *dir);\n"
33359 "\n"
33360 msgstr ""
33361
33362 #. type: textblock
33363 #: ../src/guestfs-actions.pod:6750
33364 msgid ""
33365 "This command creates the directory C<dir> and then fills it with files until "
33366 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33367 "and deletes them.  The intention is to scrub any free space on the partition "
33368 "containing C<dir>."
33369 msgstr ""
33370
33371 #. type: =head2
33372 #: ../src/guestfs-actions.pod:6763
33373 msgid "guestfs_set_append"
33374 msgstr ""
33375
33376 #. type: verbatim
33377 #: ../src/guestfs-actions.pod:6765
33378 #, no-wrap
33379 msgid ""
33380 " int\n"
33381 " guestfs_set_append (guestfs_h *g,\n"
33382 "                     const char *append);\n"
33383 "\n"
33384 msgstr ""
33385
33386 #. type: =head2
33387 #: ../src/guestfs-actions.pod:6782
33388 msgid "guestfs_set_attach_method"
33389 msgstr ""
33390
33391 #. type: verbatim
33392 #: ../src/guestfs-actions.pod:6784
33393 #, no-wrap
33394 msgid ""
33395 " int\n"
33396 " guestfs_set_attach_method (guestfs_h *g,\n"
33397 "                            const char *attachmethod);\n"
33398 "\n"
33399 msgstr ""
33400
33401 #. type: =head2
33402 #: ../src/guestfs-actions.pod:6812
33403 msgid "guestfs_set_autosync"
33404 msgstr ""
33405
33406 #. type: verbatim
33407 #: ../src/guestfs-actions.pod:6814
33408 #, no-wrap
33409 msgid ""
33410 " int\n"
33411 " guestfs_set_autosync (guestfs_h *g,\n"
33412 "                       int autosync);\n"
33413 "\n"
33414 msgstr ""
33415
33416 #. type: =head2
33417 #: ../src/guestfs-actions.pod:6830
33418 msgid "guestfs_set_direct"
33419 msgstr ""
33420
33421 #. type: verbatim
33422 #: ../src/guestfs-actions.pod:6832
33423 #, no-wrap
33424 msgid ""
33425 " int\n"
33426 " guestfs_set_direct (guestfs_h *g,\n"
33427 "                     int direct);\n"
33428 "\n"
33429 msgstr ""
33430
33431 #. type: textblock
33432 #: ../src/guestfs-actions.pod:6840
33433 msgid ""
33434 "One consequence of this is that log messages aren't caught by the library "
33435 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33436 "stdout."
33437 msgstr ""
33438
33439 #. type: =head2
33440 #: ../src/guestfs-actions.pod:6853
33441 msgid "guestfs_set_e2label"
33442 msgstr ""
33443
33444 #. type: verbatim
33445 #: ../src/guestfs-actions.pod:6855
33446 #, no-wrap
33447 msgid ""
33448 " int\n"
33449 " guestfs_set_e2label (guestfs_h *g,\n"
33450 "                      const char *device,\n"
33451 "                      const char *label);\n"
33452 "\n"
33453 msgstr ""
33454
33455 #. type: textblock
33456 #: ../src/guestfs-actions.pod:6864
33457 msgid ""
33458 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33459 "the existing label on a filesystem."
33460 msgstr ""
33461
33462 #. type: =head2
33463 #: ../src/guestfs-actions.pod:6871
33464 msgid "guestfs_set_e2uuid"
33465 msgstr ""
33466
33467 #. type: verbatim
33468 #: ../src/guestfs-actions.pod:6873
33469 #, no-wrap
33470 msgid ""
33471 " int\n"
33472 " guestfs_set_e2uuid (guestfs_h *g,\n"
33473 "                     const char *device,\n"
33474 "                     const char *uuid);\n"
33475 "\n"
33476 msgstr ""
33477
33478 #. type: textblock
33479 #: ../src/guestfs-actions.pod:6883
33480 msgid ""
33481 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33482 "the existing UUID of a filesystem."
33483 msgstr ""
33484
33485 #. type: =head2
33486 #: ../src/guestfs-actions.pod:6890
33487 msgid "guestfs_set_memsize"
33488 msgstr ""
33489
33490 #. type: verbatim
33491 #: ../src/guestfs-actions.pod:6892
33492 #, no-wrap
33493 msgid ""
33494 " int\n"
33495 " guestfs_set_memsize (guestfs_h *g,\n"
33496 "                      int memsize);\n"
33497 "\n"
33498 msgstr ""
33499
33500 #. type: textblock
33501 #: ../src/guestfs-actions.pod:6896
33502 msgid ""
33503 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33504 "This only has any effect if called before C<guestfs_launch>."
33505 msgstr ""
33506
33507 #. type: =head2
33508 #: ../src/guestfs-actions.pod:6911
33509 msgid "guestfs_set_network"
33510 msgstr ""
33511
33512 #. type: verbatim
33513 #: ../src/guestfs-actions.pod:6913
33514 #, no-wrap
33515 msgid ""
33516 " int\n"
33517 " guestfs_set_network (guestfs_h *g,\n"
33518 "                      int network);\n"
33519 "\n"
33520 msgstr ""
33521
33522 #. type: textblock
33523 #: ../src/guestfs-actions.pod:6923
33524 msgid ""
33525 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33526 "effect."
33527 msgstr ""
33528
33529 #. type: =head2
33530 #: ../src/guestfs-actions.pod:6930
33531 msgid "guestfs_set_path"
33532 msgstr ""
33533
33534 #. type: verbatim
33535 #: ../src/guestfs-actions.pod:6932
33536 #, no-wrap
33537 msgid ""
33538 " int\n"
33539 " guestfs_set_path (guestfs_h *g,\n"
33540 "                   const char *searchpath);\n"
33541 "\n"
33542 msgstr ""
33543
33544 #. type: =head2
33545 #: ../src/guestfs-actions.pod:6947
33546 msgid "guestfs_set_pgroup"
33547 msgstr ""
33548
33549 #. type: verbatim
33550 #: ../src/guestfs-actions.pod:6949
33551 #, no-wrap
33552 msgid ""
33553 " int\n"
33554 " guestfs_set_pgroup (guestfs_h *g,\n"
33555 "                     int pgroup);\n"
33556 "\n"
33557 msgstr ""
33558
33559 #. type: =head2
33560 #: ../src/guestfs-actions.pod:6966
33561 msgid "guestfs_set_qemu"
33562 msgstr ""
33563
33564 #. type: verbatim
33565 #: ../src/guestfs-actions.pod:6968
33566 #, no-wrap
33567 msgid ""
33568 " int\n"
33569 " guestfs_set_qemu (guestfs_h *g,\n"
33570 "                   const char *qemu);\n"
33571 "\n"
33572 msgstr ""
33573
33574 #. type: =head2
33575 #: ../src/guestfs-actions.pod:6994
33576 msgid "guestfs_set_recovery_proc"
33577 msgstr ""
33578
33579 #. type: verbatim
33580 #: ../src/guestfs-actions.pod:6996
33581 #, no-wrap
33582 msgid ""
33583 " int\n"
33584 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33585 "                            int recoveryproc);\n"
33586 "\n"
33587 msgstr ""
33588
33589 #. type: textblock
33590 #: ../src/guestfs-actions.pod:7000
33591 msgid ""
33592 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33593 "not create a recovery process.  The purpose of the recovery process is to "
33594 "stop runaway qemu processes in the case where the main program aborts "
33595 "abruptly."
33596 msgstr ""
33597
33598 #. type: textblock
33599 #: ../src/guestfs-actions.pod:7005
33600 msgid ""
33601 "This only has any effect if called before C<guestfs_launch>, and the default "
33602 "is true."
33603 msgstr ""
33604
33605 #. type: =head2
33606 #: ../src/guestfs-actions.pod:7018
33607 msgid "guestfs_set_selinux"
33608 msgstr ""
33609
33610 #. type: verbatim
33611 #: ../src/guestfs-actions.pod:7020
33612 #, no-wrap
33613 msgid ""
33614 " int\n"
33615 " guestfs_set_selinux (guestfs_h *g,\n"
33616 "                      int selinux);\n"
33617 "\n"
33618 msgstr ""
33619
33620 #. type: =head2
33621 #: ../src/guestfs-actions.pod:7037
33622 msgid "guestfs_set_smp"
33623 msgstr ""
33624
33625 #. type: verbatim
33626 #: ../src/guestfs-actions.pod:7039
33627 #, no-wrap
33628 msgid ""
33629 " int\n"
33630 " guestfs_set_smp (guestfs_h *g,\n"
33631 "                  int smp);\n"
33632 "\n"
33633 msgstr ""
33634
33635 #. type: textblock
33636 #: ../src/guestfs-actions.pod:7047
33637 msgid "This function must be called before C<guestfs_launch>."
33638 msgstr ""
33639
33640 #. type: =head2
33641 #: ../src/guestfs-actions.pod:7053
33642 msgid "guestfs_set_trace"
33643 msgstr ""
33644
33645 #. type: verbatim
33646 #: ../src/guestfs-actions.pod:7055
33647 #, no-wrap
33648 msgid ""
33649 " int\n"
33650 " guestfs_set_trace (guestfs_h *g,\n"
33651 "                    int trace);\n"
33652 "\n"
33653 msgstr ""
33654
33655 #. type: textblock
33656 #: ../src/guestfs-actions.pod:7069
33657 msgid ""
33658 "Trace messages are normally sent to C<stderr>, unless you register a "
33659 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33660 msgstr ""
33661
33662 #. type: =head2
33663 #: ../src/guestfs-actions.pod:7077
33664 msgid "guestfs_set_verbose"
33665 msgstr ""
33666
33667 #. type: verbatim
33668 #: ../src/guestfs-actions.pod:7079
33669 #, no-wrap
33670 msgid ""
33671 " int\n"
33672 " guestfs_set_verbose (guestfs_h *g,\n"
33673 "                      int verbose);\n"
33674 "\n"
33675 msgstr ""
33676
33677 #. type: textblock
33678 #: ../src/guestfs-actions.pod:7088
33679 msgid ""
33680 "Verbose messages are normally sent to C<stderr>, unless you register a "
33681 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33682 msgstr ""
33683
33684 #. type: =head2
33685 #: ../src/guestfs-actions.pod:7096
33686 msgid "guestfs_setcon"
33687 msgstr ""
33688
33689 #. type: verbatim
33690 #: ../src/guestfs-actions.pod:7098
33691 #, no-wrap
33692 msgid ""
33693 " int\n"
33694 " guestfs_setcon (guestfs_h *g,\n"
33695 "                 const char *context);\n"
33696 "\n"
33697 msgstr ""
33698
33699 #. type: =head2
33700 #: ../src/guestfs-actions.pod:7111
33701 msgid "guestfs_setxattr"
33702 msgstr ""
33703
33704 #. type: verbatim
33705 #: ../src/guestfs-actions.pod:7113
33706 #, no-wrap
33707 msgid ""
33708 " int\n"
33709 " guestfs_setxattr (guestfs_h *g,\n"
33710 "                   const char *xattr,\n"
33711 "                   const char *val,\n"
33712 "                   int vallen,\n"
33713 "                   const char *path);\n"
33714 "\n"
33715 msgstr ""
33716
33717 #. type: textblock
33718 #: ../src/guestfs-actions.pod:7124
33719 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33720 msgstr ""
33721
33722 #. type: =head2
33723 #: ../src/guestfs-actions.pod:7130
33724 msgid "guestfs_sfdisk"
33725 msgstr ""
33726
33727 #. type: verbatim
33728 #: ../src/guestfs-actions.pod:7132
33729 #, no-wrap
33730 msgid ""
33731 " int\n"
33732 " guestfs_sfdisk (guestfs_h *g,\n"
33733 "                 const char *device,\n"
33734 "                 int cyls,\n"
33735 "                 int heads,\n"
33736 "                 int sectors,\n"
33737 "                 char *const *lines);\n"
33738 "\n"
33739 msgstr ""
33740
33741 #. type: textblock
33742 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7181
33743 #: ../src/guestfs-actions.pod:7212
33744 msgid ""
33745 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33746 "call instead."
33747 msgstr ""
33748
33749 #. type: textblock
33750 #: ../src/guestfs-actions.pod:7167
33751 msgid ""
33752 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33753 msgstr ""
33754
33755 #. type: =head2
33756 #: ../src/guestfs-actions.pod:7174
33757 msgid "guestfs_sfdiskM"
33758 msgstr ""
33759
33760 #. type: verbatim
33761 #: ../src/guestfs-actions.pod:7176
33762 #, no-wrap
33763 msgid ""
33764 " int\n"
33765 " guestfs_sfdiskM (guestfs_h *g,\n"
33766 "                  const char *device,\n"
33767 "                  char *const *lines);\n"
33768 "\n"
33769 msgstr ""
33770
33771 #. type: textblock
33772 #: ../src/guestfs-actions.pod:7188
33773 msgid ""
33774 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33775 "partition sizes are specified in megabytes only (rounded to the nearest "
33776 "cylinder) and you don't need to specify the cyls, heads and sectors "
33777 "parameters which were rarely if ever used anyway."
33778 msgstr ""
33779
33780 #. type: textblock
33781 #: ../src/guestfs-actions.pod:7194
33782 msgid ""
33783 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33784 "C<guestfs_part_disk>"
33785 msgstr ""
33786
33787 #. type: =head2
33788 #: ../src/guestfs-actions.pod:7201
33789 msgid "guestfs_sfdisk_N"
33790 msgstr ""
33791
33792 #. type: verbatim
33793 #: ../src/guestfs-actions.pod:7203
33794 #, no-wrap
33795 msgid ""
33796 " int\n"
33797 " guestfs_sfdisk_N (guestfs_h *g,\n"
33798 "                   const char *device,\n"
33799 "                   int partnum,\n"
33800 "                   int cyls,\n"
33801 "                   int heads,\n"
33802 "                   int sectors,\n"
33803 "                   const char *line);\n"
33804 "\n"
33805 msgstr ""
33806
33807 #. type: textblock
33808 #: ../src/guestfs-actions.pod:7222
33809 msgid ""
33810 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33811 "for the cyls/heads/sectors parameters."
33812 msgstr ""
33813
33814 #. type: textblock
33815 #: ../src/guestfs-actions.pod:7225
33816 msgid "See also: C<guestfs_part_add>"
33817 msgstr ""
33818
33819 #. type: =head2
33820 #: ../src/guestfs-actions.pod:7231
33821 msgid "guestfs_sfdisk_disk_geometry"
33822 msgstr ""
33823
33824 #. type: verbatim
33825 #: ../src/guestfs-actions.pod:7233
33826 #, no-wrap
33827 msgid ""
33828 " char *\n"
33829 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33830 "                               const char *device);\n"
33831 "\n"
33832 msgstr ""
33833
33834 #. type: textblock
33835 #: ../src/guestfs-actions.pod:7237
33836 msgid ""
33837 "This displays the disk geometry of C<device> read from the partition table.  "
33838 "Especially in the case where the underlying block device has been resized, "
33839 "this can be different from the kernel's idea of the geometry (see "
33840 "C<guestfs_sfdisk_kernel_geometry>)."
33841 msgstr ""
33842
33843 #. type: =head2
33844 #: ../src/guestfs-actions.pod:7250
33845 msgid "guestfs_sfdisk_kernel_geometry"
33846 msgstr ""
33847
33848 #. type: verbatim
33849 #: ../src/guestfs-actions.pod:7252
33850 #, no-wrap
33851 msgid ""
33852 " char *\n"
33853 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33854 "                                 const char *device);\n"
33855 "\n"
33856 msgstr ""
33857
33858 #. type: =head2
33859 #: ../src/guestfs-actions.pod:7266
33860 msgid "guestfs_sfdisk_l"
33861 msgstr ""
33862
33863 #. type: verbatim
33864 #: ../src/guestfs-actions.pod:7268
33865 #, no-wrap
33866 msgid ""
33867 " char *\n"
33868 " guestfs_sfdisk_l (guestfs_h *g,\n"
33869 "                   const char *device);\n"
33870 "\n"
33871 msgstr ""
33872
33873 #. type: textblock
33874 #: ../src/guestfs-actions.pod:7272
33875 msgid ""
33876 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33877 "call instead."
33878 msgstr ""
33879
33880 #. type: textblock
33881 #: ../src/guestfs-actions.pod:7283
33882 msgid "See also: C<guestfs_part_list>"
33883 msgstr ""
33884
33885 #. type: =head2
33886 #: ../src/guestfs-actions.pod:7290
33887 msgid "guestfs_sh"
33888 msgstr ""
33889
33890 #. type: verbatim
33891 #: ../src/guestfs-actions.pod:7292
33892 #, no-wrap
33893 msgid ""
33894 " char *\n"
33895 " guestfs_sh (guestfs_h *g,\n"
33896 "             const char *command);\n"
33897 "\n"
33898 msgstr ""
33899
33900 #. type: textblock
33901 #: ../src/guestfs-actions.pod:7299
33902 msgid "This is like C<guestfs_command>, but passes the command to:"
33903 msgstr ""
33904
33905 #. type: textblock
33906 #: ../src/guestfs-actions.pod:7307
33907 msgid "All the provisos about C<guestfs_command> apply to this call."
33908 msgstr ""
33909
33910 #. type: =head2
33911 #: ../src/guestfs-actions.pod:7314
33912 msgid "guestfs_sh_lines"
33913 msgstr ""
33914
33915 #. type: verbatim
33916 #: ../src/guestfs-actions.pod:7316
33917 #, no-wrap
33918 msgid ""
33919 " char **\n"
33920 " guestfs_sh_lines (guestfs_h *g,\n"
33921 "                   const char *command);\n"
33922 "\n"
33923 msgstr ""
33924
33925 #. type: textblock
33926 #: ../src/guestfs-actions.pod:7320
33927 msgid ""
33928 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33929 "lines."
33930 msgstr ""
33931
33932 #. type: textblock
33933 #: ../src/guestfs-actions.pod:7323
33934 msgid "See also: C<guestfs_command_lines>"
33935 msgstr ""
33936
33937 #. type: =head2
33938 #: ../src/guestfs-actions.pod:7331
33939 msgid "guestfs_sleep"
33940 msgstr ""
33941
33942 #. type: verbatim
33943 #: ../src/guestfs-actions.pod:7333
33944 #, no-wrap
33945 msgid ""
33946 " int\n"
33947 " guestfs_sleep (guestfs_h *g,\n"
33948 "                int secs);\n"
33949 "\n"
33950 msgstr ""
33951
33952 #. type: textblock
33953 #: ../src/guestfs-actions.pod:7341
33954 msgid "(Added in 1.0.41)"
33955 msgstr "(Додано у 1.0.41)"
33956
33957 #. type: =head2
33958 #: ../src/guestfs-actions.pod:7343 ../src/guestfs-structs.pod:109
33959 msgid "guestfs_stat"
33960 msgstr ""
33961
33962 #. type: verbatim
33963 #: ../src/guestfs-actions.pod:7345
33964 #, no-wrap
33965 msgid ""
33966 " struct guestfs_stat *\n"
33967 " guestfs_stat (guestfs_h *g,\n"
33968 "               const char *path);\n"
33969 "\n"
33970 msgstr ""
33971
33972 #. type: =head2
33973 #: ../src/guestfs-actions.pod:7359 ../src/guestfs-structs.pod:135
33974 msgid "guestfs_statvfs"
33975 msgstr ""
33976
33977 #. type: verbatim
33978 #: ../src/guestfs-actions.pod:7361
33979 #, no-wrap
33980 msgid ""
33981 " struct guestfs_statvfs *\n"
33982 " guestfs_statvfs (guestfs_h *g,\n"
33983 "                  const char *path);\n"
33984 "\n"
33985 msgstr ""
33986
33987 #. type: textblock
33988 #: ../src/guestfs-actions.pod:7371
33989 msgid ""
33990 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33991 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33992 msgstr ""
33993
33994 #. type: =head2
33995 #: ../src/guestfs-actions.pod:7377
33996 msgid "guestfs_strings"
33997 msgstr ""
33998
33999 #. type: verbatim
34000 #: ../src/guestfs-actions.pod:7379
34001 #, no-wrap
34002 msgid ""
34003 " char **\n"
34004 " guestfs_strings (guestfs_h *g,\n"
34005 "                  const char *path);\n"
34006 "\n"
34007 msgstr ""
34008
34009 #. type: =head2
34010 #: ../src/guestfs-actions.pod:7395
34011 msgid "guestfs_strings_e"
34012 msgstr ""
34013
34014 #. type: verbatim
34015 #: ../src/guestfs-actions.pod:7397
34016 #, no-wrap
34017 msgid ""
34018 " char **\n"
34019 " guestfs_strings_e (guestfs_h *g,\n"
34020 "                    const char *encoding,\n"
34021 "                    const char *path);\n"
34022 "\n"
34023 msgstr ""
34024
34025 #. type: textblock
34026 #: ../src/guestfs-actions.pod:7402
34027 msgid ""
34028 "This is like the C<guestfs_strings> command, but allows you to specify the "
34029 "encoding of strings that are looked for in the source file C<path>."
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs-actions.pod:7412
34034 msgid ""
34035 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
34036 "ISO-8859-X (this is what C<guestfs_strings> uses)."
34037 msgstr ""
34038
34039 #. type: =head2
34040 #: ../src/guestfs-actions.pod:7450
34041 msgid "guestfs_swapoff_device"
34042 msgstr ""
34043
34044 #. type: verbatim
34045 #: ../src/guestfs-actions.pod:7452
34046 #, no-wrap
34047 msgid ""
34048 " int\n"
34049 " guestfs_swapoff_device (guestfs_h *g,\n"
34050 "                         const char *device);\n"
34051 "\n"
34052 msgstr ""
34053
34054 #. type: textblock
34055 #: ../src/guestfs-actions.pod:7456
34056 msgid ""
34057 "This command disables the libguestfs appliance swap device or partition "
34058 "named C<device>.  See C<guestfs_swapon_device>."
34059 msgstr ""
34060
34061 #. type: =head2
34062 #: ../src/guestfs-actions.pod:7464
34063 msgid "guestfs_swapoff_file"
34064 msgstr ""
34065
34066 #. type: verbatim
34067 #: ../src/guestfs-actions.pod:7466
34068 #, no-wrap
34069 msgid ""
34070 " int\n"
34071 " guestfs_swapoff_file (guestfs_h *g,\n"
34072 "                       const char *file);\n"
34073 "\n"
34074 msgstr ""
34075
34076 #. type: =head2
34077 #: ../src/guestfs-actions.pod:7476
34078 msgid "guestfs_swapoff_label"
34079 msgstr ""
34080
34081 #. type: verbatim
34082 #: ../src/guestfs-actions.pod:7478
34083 #, no-wrap
34084 msgid ""
34085 " int\n"
34086 " guestfs_swapoff_label (guestfs_h *g,\n"
34087 "                        const char *label);\n"
34088 "\n"
34089 msgstr ""
34090
34091 #. type: =head2
34092 #: ../src/guestfs-actions.pod:7489
34093 msgid "guestfs_swapoff_uuid"
34094 msgstr ""
34095
34096 #. type: verbatim
34097 #: ../src/guestfs-actions.pod:7491
34098 #, no-wrap
34099 msgid ""
34100 " int\n"
34101 " guestfs_swapoff_uuid (guestfs_h *g,\n"
34102 "                       const char *uuid);\n"
34103 "\n"
34104 msgstr ""
34105
34106 #. type: =head2
34107 #: ../src/guestfs-actions.pod:7502
34108 msgid "guestfs_swapon_device"
34109 msgstr ""
34110
34111 #. type: verbatim
34112 #: ../src/guestfs-actions.pod:7504
34113 #, no-wrap
34114 msgid ""
34115 " int\n"
34116 " guestfs_swapon_device (guestfs_h *g,\n"
34117 "                        const char *device);\n"
34118 "\n"
34119 msgstr ""
34120
34121 #. type: textblock
34122 #: ../src/guestfs-actions.pod:7508
34123 msgid ""
34124 "This command enables the libguestfs appliance to use the swap device or "
34125 "partition named C<device>.  The increased memory is made available for all "
34126 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
34127 msgstr ""
34128
34129 #. type: =head2
34130 #: ../src/guestfs-actions.pod:7524
34131 msgid "guestfs_swapon_file"
34132 msgstr ""
34133
34134 #. type: verbatim
34135 #: ../src/guestfs-actions.pod:7526
34136 #, no-wrap
34137 msgid ""
34138 " int\n"
34139 " guestfs_swapon_file (guestfs_h *g,\n"
34140 "                      const char *file);\n"
34141 "\n"
34142 msgstr ""
34143
34144 #. type: textblock
34145 #: ../src/guestfs-actions.pod:7530
34146 msgid ""
34147 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
34148 "notes."
34149 msgstr ""
34150
34151 #. type: =head2
34152 #: ../src/guestfs-actions.pod:7537
34153 msgid "guestfs_swapon_label"
34154 msgstr ""
34155
34156 #. type: verbatim
34157 #: ../src/guestfs-actions.pod:7539
34158 #, no-wrap
34159 msgid ""
34160 " int\n"
34161 " guestfs_swapon_label (guestfs_h *g,\n"
34162 "                       const char *label);\n"
34163 "\n"
34164 msgstr ""
34165
34166 #. type: textblock
34167 #: ../src/guestfs-actions.pod:7543
34168 msgid ""
34169 "This command enables swap to a labeled swap partition.  See "
34170 "C<guestfs_swapon_device> for other notes."
34171 msgstr ""
34172
34173 #. type: =head2
34174 #: ../src/guestfs-actions.pod:7550
34175 msgid "guestfs_swapon_uuid"
34176 msgstr ""
34177
34178 #. type: verbatim
34179 #: ../src/guestfs-actions.pod:7552
34180 #, no-wrap
34181 msgid ""
34182 " int\n"
34183 " guestfs_swapon_uuid (guestfs_h *g,\n"
34184 "                      const char *uuid);\n"
34185 "\n"
34186 msgstr ""
34187
34188 #. type: textblock
34189 #: ../src/guestfs-actions.pod:7556
34190 msgid ""
34191 "This command enables swap to a swap partition with the given UUID.  See "
34192 "C<guestfs_swapon_device> for other notes."
34193 msgstr ""
34194
34195 #. type: =head2
34196 #: ../src/guestfs-actions.pod:7563
34197 msgid "guestfs_sync"
34198 msgstr ""
34199
34200 #. type: verbatim
34201 #: ../src/guestfs-actions.pod:7565
34202 #, no-wrap
34203 msgid ""
34204 " int\n"
34205 " guestfs_sync (guestfs_h *g);\n"
34206 "\n"
34207 msgstr ""
34208
34209 #. type: =head2
34210 #: ../src/guestfs-actions.pod:7578
34211 msgid "guestfs_tail"
34212 msgstr ""
34213
34214 #. type: verbatim
34215 #: ../src/guestfs-actions.pod:7580
34216 #, no-wrap
34217 msgid ""
34218 " char **\n"
34219 " guestfs_tail (guestfs_h *g,\n"
34220 "               const char *path);\n"
34221 "\n"
34222 msgstr ""
34223
34224 #. type: =head2
34225 #: ../src/guestfs-actions.pod:7596
34226 msgid "guestfs_tail_n"
34227 msgstr ""
34228
34229 #. type: verbatim
34230 #: ../src/guestfs-actions.pod:7598
34231 #, no-wrap
34232 msgid ""
34233 " char **\n"
34234 " guestfs_tail_n (guestfs_h *g,\n"
34235 "                 int nrlines,\n"
34236 "                 const char *path);\n"
34237 "\n"
34238 msgstr ""
34239
34240 #. type: =head2
34241 #: ../src/guestfs-actions.pod:7620
34242 msgid "guestfs_tar_in"
34243 msgstr ""
34244
34245 #. type: verbatim
34246 #: ../src/guestfs-actions.pod:7622
34247 #, no-wrap
34248 msgid ""
34249 " int\n"
34250 " guestfs_tar_in (guestfs_h *g,\n"
34251 "                 const char *tarfile,\n"
34252 "                 const char *directory);\n"
34253 "\n"
34254 msgstr ""
34255
34256 #. type: textblock
34257 #: ../src/guestfs-actions.pod:7630
34258 msgid ""
34259 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34260 msgstr ""
34261
34262 #. type: textblock
34263 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7652
34264 #: ../src/guestfs-actions.pod:7668 ../src/guestfs-actions.pod:7684
34265 msgid "(Added in 1.0.3)"
34266 msgstr "(Додано у 1.0.3)"
34267
34268 #. type: =head2
34269 #: ../src/guestfs-actions.pod:7637
34270 msgid "guestfs_tar_out"
34271 msgstr ""
34272
34273 #. type: verbatim
34274 #: ../src/guestfs-actions.pod:7639
34275 #, no-wrap
34276 msgid ""
34277 " int\n"
34278 " guestfs_tar_out (guestfs_h *g,\n"
34279 "                  const char *directory,\n"
34280 "                  const char *tarfile);\n"
34281 "\n"
34282 msgstr ""
34283
34284 #. type: textblock
34285 #: ../src/guestfs-actions.pod:7647
34286 msgid ""
34287 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34288 "C<guestfs_txz_out>."
34289 msgstr ""
34290
34291 #. type: =head2
34292 #: ../src/guestfs-actions.pod:7654
34293 msgid "guestfs_tgz_in"
34294 msgstr ""
34295
34296 #. type: verbatim
34297 #: ../src/guestfs-actions.pod:7656
34298 #, no-wrap
34299 msgid ""
34300 " int\n"
34301 " guestfs_tgz_in (guestfs_h *g,\n"
34302 "                 const char *tarball,\n"
34303 "                 const char *directory);\n"
34304 "\n"
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs-actions.pod:7664
34309 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34310 msgstr ""
34311
34312 #. type: =head2
34313 #: ../src/guestfs-actions.pod:7670
34314 msgid "guestfs_tgz_out"
34315 msgstr ""
34316
34317 #. type: verbatim
34318 #: ../src/guestfs-actions.pod:7672
34319 #, no-wrap
34320 msgid ""
34321 " int\n"
34322 " guestfs_tgz_out (guestfs_h *g,\n"
34323 "                  const char *directory,\n"
34324 "                  const char *tarball);\n"
34325 "\n"
34326 msgstr ""
34327
34328 #. type: textblock
34329 #: ../src/guestfs-actions.pod:7680
34330 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34331 msgstr ""
34332
34333 #. type: =head2
34334 #: ../src/guestfs-actions.pod:7686
34335 msgid "guestfs_touch"
34336 msgstr ""
34337
34338 #. type: verbatim
34339 #: ../src/guestfs-actions.pod:7688
34340 #, no-wrap
34341 msgid ""
34342 " int\n"
34343 " guestfs_touch (guestfs_h *g,\n"
34344 "                const char *path);\n"
34345 "\n"
34346 msgstr ""
34347
34348 #. type: =head2
34349 #: ../src/guestfs-actions.pod:7703
34350 msgid "guestfs_truncate"
34351 msgstr ""
34352
34353 #. type: verbatim
34354 #: ../src/guestfs-actions.pod:7705
34355 #, no-wrap
34356 msgid ""
34357 " int\n"
34358 " guestfs_truncate (guestfs_h *g,\n"
34359 "                   const char *path);\n"
34360 "\n"
34361 msgstr ""
34362
34363 #. type: =head2
34364 #: ../src/guestfs-actions.pod:7716
34365 msgid "guestfs_truncate_size"
34366 msgstr ""
34367
34368 #. type: verbatim
34369 #: ../src/guestfs-actions.pod:7718
34370 #, no-wrap
34371 msgid ""
34372 " int\n"
34373 " guestfs_truncate_size (guestfs_h *g,\n"
34374 "                        const char *path,\n"
34375 "                        int64_t size);\n"
34376 "\n"
34377 msgstr ""
34378
34379 #. type: textblock
34380 #: ../src/guestfs-actions.pod:7726
34381 msgid ""
34382 "If the current file size is less than C<size> then the file is extended to "
34383 "the required size with zero bytes.  This creates a sparse file (ie. disk "
34384 "blocks are not allocated for the file until you write to it).  To create a "
34385 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34386 msgstr ""
34387
34388 #. type: =head2
34389 #: ../src/guestfs-actions.pod:7736
34390 #, fuzzy
34391 #| msgid "guestfs_mke2fs_J"
34392 msgid "guestfs_tune2fs"
34393 msgstr "guestfs_mke2fs_J"
34394
34395 #. type: verbatim
34396 #: ../src/guestfs-actions.pod:7738
34397 #, fuzzy, no-wrap
34398 #| msgid ""
34399 #| " int\n"
34400 #| " guestfs_lvresize (guestfs_h *g,\n"
34401 #| "                   const char *device,\n"
34402 #| "                   int mbytes);\n"
34403 #| "\n"
34404 msgid ""
34405 " int\n"
34406 " guestfs_tune2fs (guestfs_h *g,\n"
34407 "                  const char *device,\n"
34408 "                  ...);\n"
34409 "\n"
34410 msgstr ""
34411 " int\n"
34412 " guestfs_lvresize (guestfs_h *g,\n"
34413 "                   const char *device,\n"
34414 "                   int mbytes);\n"
34415 "\n"
34416
34417 #. type: verbatim
34418 #: ../src/guestfs-actions.pod:7748
34419 #, no-wrap
34420 msgid ""
34421 " GUESTFS_TUNE2FS_FORCE, int force,\n"
34422 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
34423 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
34424 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
34425 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
34426 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
34427 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
34428 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
34429 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
34430 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
34431 "\n"
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs-actions.pod:7828
34436 msgid ""
34437 "To get the current values of filesystem parameters, see "
34438 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
34439 "L<tune2fs(8)> man page."
34440 msgstr ""
34441
34442 #. type: =head2
34443 #: ../src/guestfs-actions.pod:7834
34444 #, fuzzy
34445 #| msgid "guestfs_mke2fs_J"
34446 msgid "guestfs_tune2fs_va"
34447 msgstr "guestfs_mke2fs_J"
34448
34449 #. type: verbatim
34450 #: ../src/guestfs-actions.pod:7836
34451 #, fuzzy, no-wrap
34452 #| msgid ""
34453 #| " int\n"
34454 #| " guestfs_lvresize (guestfs_h *g,\n"
34455 #| "                   const char *device,\n"
34456 #| "                   int mbytes);\n"
34457 #| "\n"
34458 msgid ""
34459 " int\n"
34460 " guestfs_tune2fs_va (guestfs_h *g,\n"
34461 "                     const char *device,\n"
34462 "                     va_list args);\n"
34463 "\n"
34464 msgstr ""
34465 " int\n"
34466 " guestfs_lvresize (guestfs_h *g,\n"
34467 "                   const char *device,\n"
34468 "                   int mbytes);\n"
34469 "\n"
34470
34471 #. type: textblock
34472 #: ../src/guestfs-actions.pod:7841
34473 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
34474 msgstr ""
34475
34476 #. type: =head2
34477 #: ../src/guestfs-actions.pod:7845
34478 #, fuzzy
34479 #| msgid "guestfs_mke2fs_J"
34480 msgid "guestfs_tune2fs_argv"
34481 msgstr "guestfs_mke2fs_J"
34482
34483 #. type: verbatim
34484 #: ../src/guestfs-actions.pod:7847
34485 #, fuzzy, no-wrap
34486 #| msgid ""
34487 #| " int\n"
34488 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
34489 #| "                         const char *fstype,\n"
34490 #| "                         const char *device,\n"
34491 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
34492 #| "\n"
34493 msgid ""
34494 " int\n"
34495 " guestfs_tune2fs_argv (guestfs_h *g,\n"
34496 "                       const char *device,\n"
34497 "                       const struct guestfs_tune2fs_argv *optargs);\n"
34498 "\n"
34499 msgstr ""
34500 " int\n"
34501 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
34502 "                         const char *fstype,\n"
34503 "                         const char *device,\n"
34504 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
34505 "\n"
34506
34507 #. type: textblock
34508 #: ../src/guestfs-actions.pod:7852
34509 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
34510 msgstr ""
34511
34512 #. type: =head2
34513 #: ../src/guestfs-actions.pod:7856
34514 msgid "guestfs_tune2fs_l"
34515 msgstr ""
34516
34517 #. type: verbatim
34518 #: ../src/guestfs-actions.pod:7858
34519 #, no-wrap
34520 msgid ""
34521 " char **\n"
34522 " guestfs_tune2fs_l (guestfs_h *g,\n"
34523 "                    const char *device);\n"
34524 "\n"
34525 msgstr ""
34526
34527 #. type: =head2
34528 #: ../src/guestfs-actions.pod:7878
34529 msgid "guestfs_txz_in"
34530 msgstr ""
34531
34532 #. type: verbatim
34533 #: ../src/guestfs-actions.pod:7880
34534 #, no-wrap
34535 msgid ""
34536 " int\n"
34537 " guestfs_txz_in (guestfs_h *g,\n"
34538 "                 const char *tarball,\n"
34539 "                 const char *directory);\n"
34540 "\n"
34541 msgstr ""
34542
34543 #. type: =head2
34544 #: ../src/guestfs-actions.pod:7892
34545 msgid "guestfs_txz_out"
34546 msgstr ""
34547
34548 #. type: verbatim
34549 #: ../src/guestfs-actions.pod:7894
34550 #, no-wrap
34551 msgid ""
34552 " int\n"
34553 " guestfs_txz_out (guestfs_h *g,\n"
34554 "                  const char *directory,\n"
34555 "                  const char *tarball);\n"
34556 "\n"
34557 msgstr ""
34558
34559 #. type: =head2
34560 #: ../src/guestfs-actions.pod:7906
34561 msgid "guestfs_umask"
34562 msgstr ""
34563
34564 #. type: verbatim
34565 #: ../src/guestfs-actions.pod:7908
34566 #, no-wrap
34567 msgid ""
34568 " int\n"
34569 " guestfs_umask (guestfs_h *g,\n"
34570 "                int mask);\n"
34571 "\n"
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs-actions.pod:7924
34576 msgid ""
34577 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34578 "C<guestfs_mkdir>."
34579 msgstr ""
34580
34581 #. type: =head2
34582 #: ../src/guestfs-actions.pod:7933
34583 msgid "guestfs_umount"
34584 msgstr ""
34585
34586 #. type: verbatim
34587 #: ../src/guestfs-actions.pod:7935
34588 #, no-wrap
34589 msgid ""
34590 " int\n"
34591 " guestfs_umount (guestfs_h *g,\n"
34592 "                 const char *pathordevice);\n"
34593 "\n"
34594 msgstr ""
34595
34596 #. type: =head2
34597 #: ../src/guestfs-actions.pod:7947
34598 msgid "guestfs_umount_all"
34599 msgstr ""
34600
34601 #. type: verbatim
34602 #: ../src/guestfs-actions.pod:7949
34603 #, no-wrap
34604 msgid ""
34605 " int\n"
34606 " guestfs_umount_all (guestfs_h *g);\n"
34607 "\n"
34608 msgstr ""
34609
34610 #. type: =head2
34611 #: ../src/guestfs-actions.pod:7960
34612 msgid "guestfs_upload"
34613 msgstr ""
34614
34615 #. type: verbatim
34616 #: ../src/guestfs-actions.pod:7962
34617 #, no-wrap
34618 msgid ""
34619 " int\n"
34620 " guestfs_upload (guestfs_h *g,\n"
34621 "                 const char *filename,\n"
34622 "                 const char *remotefilename);\n"
34623 "\n"
34624 msgstr ""
34625
34626 #. type: textblock
34627 #: ../src/guestfs-actions.pod:7972
34628 msgid "See also C<guestfs_download>."
34629 msgstr ""
34630
34631 #. type: =head2
34632 #: ../src/guestfs-actions.pod:7983
34633 msgid "guestfs_upload_offset"
34634 msgstr ""
34635
34636 #. type: verbatim
34637 #: ../src/guestfs-actions.pod:7985
34638 #, no-wrap
34639 msgid ""
34640 " int\n"
34641 " guestfs_upload_offset (guestfs_h *g,\n"
34642 "                        const char *filename,\n"
34643 "                        const char *remotefilename,\n"
34644 "                        int64_t offset);\n"
34645 "\n"
34646 msgstr ""
34647
34648 #. type: textblock
34649 #: ../src/guestfs-actions.pod:8001
34650 msgid ""
34651 "Note that there is no limit on the amount of data that can be uploaded with "
34652 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34653 "full amount unless an error occurs."
34654 msgstr ""
34655
34656 #. type: textblock
34657 #: ../src/guestfs-actions.pod:8006
34658 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34659 msgstr ""
34660
34661 #. type: =head2
34662 #: ../src/guestfs-actions.pod:8017
34663 msgid "guestfs_utimens"
34664 msgstr ""
34665
34666 #. type: verbatim
34667 #: ../src/guestfs-actions.pod:8019
34668 #, no-wrap
34669 msgid ""
34670 " int\n"
34671 " guestfs_utimens (guestfs_h *g,\n"
34672 "                  const char *path,\n"
34673 "                  int64_t atsecs,\n"
34674 "                  int64_t atnsecs,\n"
34675 "                  int64_t mtsecs,\n"
34676 "                  int64_t mtnsecs);\n"
34677 "\n"
34678 msgstr ""
34679
34680 #. type: =head2
34681 #: ../src/guestfs-actions.pod:8048 ../src/guestfs-structs.pod:175
34682 msgid "guestfs_version"
34683 msgstr ""
34684
34685 #. type: verbatim
34686 #: ../src/guestfs-actions.pod:8050
34687 #, no-wrap
34688 msgid ""
34689 " struct guestfs_version *\n"
34690 " guestfs_version (guestfs_h *g);\n"
34691 "\n"
34692 msgstr ""
34693
34694 #. type: textblock
34695 #: ../src/guestfs-actions.pod:8078
34696 msgid ""
34697 "I<Note:> Don't use this call to test for availability of features.  In "
34698 "enterprise distributions we backport features from later versions into "
34699 "earlier versions, making this an unreliable way to test for features.  Use "
34700 "C<guestfs_available> instead."
34701 msgstr ""
34702
34703 #. type: textblock
34704 #: ../src/guestfs-actions.pod:8084
34705 msgid ""
34706 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34707 "error.  I<The caller must call C<guestfs_free_version> after use>."
34708 msgstr ""
34709
34710 #. type: textblock
34711 #: ../src/guestfs-actions.pod:8088
34712 msgid "(Added in 1.0.58)"
34713 msgstr "(Додано у 1.0.58)"
34714
34715 #. type: =head2
34716 #: ../src/guestfs-actions.pod:8090
34717 msgid "guestfs_vfs_label"
34718 msgstr ""
34719
34720 #. type: verbatim
34721 #: ../src/guestfs-actions.pod:8092
34722 #, no-wrap
34723 msgid ""
34724 " char *\n"
34725 " guestfs_vfs_label (guestfs_h *g,\n"
34726 "                    const char *device);\n"
34727 "\n"
34728 msgstr ""
34729
34730 #. type: textblock
34731 #: ../src/guestfs-actions.pod:8101
34732 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34733 msgstr ""
34734
34735 #. type: textblock
34736 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-actions.pod:8143
34737 msgid "(Added in 1.3.18)"
34738 msgstr "(Додано у 1.3.18)"
34739
34740 #. type: =head2
34741 #: ../src/guestfs-actions.pod:8108
34742 msgid "guestfs_vfs_type"
34743 msgstr ""
34744
34745 #. type: verbatim
34746 #: ../src/guestfs-actions.pod:8110
34747 #, no-wrap
34748 msgid ""
34749 " char *\n"
34750 " guestfs_vfs_type (guestfs_h *g,\n"
34751 "                   const char *device);\n"
34752 "\n"
34753 msgstr ""
34754
34755 #. type: =head2
34756 #: ../src/guestfs-actions.pod:8127
34757 msgid "guestfs_vfs_uuid"
34758 msgstr ""
34759
34760 #. type: verbatim
34761 #: ../src/guestfs-actions.pod:8129
34762 #, no-wrap
34763 msgid ""
34764 " char *\n"
34765 " guestfs_vfs_uuid (guestfs_h *g,\n"
34766 "                   const char *device);\n"
34767 "\n"
34768 msgstr ""
34769
34770 #. type: textblock
34771 #: ../src/guestfs-actions.pod:8138
34772 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34773 msgstr ""
34774
34775 #. type: =head2
34776 #: ../src/guestfs-actions.pod:8145
34777 msgid "guestfs_vg_activate"
34778 msgstr ""
34779
34780 #. type: verbatim
34781 #: ../src/guestfs-actions.pod:8147
34782 #, no-wrap
34783 msgid ""
34784 " int\n"
34785 " guestfs_vg_activate (guestfs_h *g,\n"
34786 "                      int activate,\n"
34787 "                      char *const *volgroups);\n"
34788 "\n"
34789 msgstr ""
34790
34791 #. type: =head2
34792 #: ../src/guestfs-actions.pod:8164
34793 msgid "guestfs_vg_activate_all"
34794 msgstr ""
34795
34796 #. type: verbatim
34797 #: ../src/guestfs-actions.pod:8166
34798 #, no-wrap
34799 msgid ""
34800 " int\n"
34801 " guestfs_vg_activate_all (guestfs_h *g,\n"
34802 "                          int activate);\n"
34803 "\n"
34804 msgstr ""
34805
34806 #. type: =head2
34807 #: ../src/guestfs-actions.pod:8179
34808 msgid "guestfs_vgcreate"
34809 msgstr ""
34810
34811 #. type: verbatim
34812 #: ../src/guestfs-actions.pod:8181
34813 #, no-wrap
34814 msgid ""
34815 " int\n"
34816 " guestfs_vgcreate (guestfs_h *g,\n"
34817 "                   const char *volgroup,\n"
34818 "                   char *const *physvols);\n"
34819 "\n"
34820 msgstr ""
34821
34822 #. type: =head2
34823 #: ../src/guestfs-actions.pod:8193
34824 msgid "guestfs_vglvuuids"
34825 msgstr ""
34826
34827 #. type: verbatim
34828 #: ../src/guestfs-actions.pod:8195
34829 #, no-wrap
34830 msgid ""
34831 " char **\n"
34832 " guestfs_vglvuuids (guestfs_h *g,\n"
34833 "                    const char *vgname);\n"
34834 "\n"
34835 msgstr ""
34836
34837 #. type: textblock
34838 #: ../src/guestfs-actions.pod:8202
34839 msgid ""
34840 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34841 "associate logical volumes and volume groups."
34842 msgstr ""
34843
34844 #. type: textblock
34845 #: ../src/guestfs-actions.pod:8205
34846 msgid "See also C<guestfs_vgpvuuids>."
34847 msgstr ""
34848
34849 #. type: =head2
34850 #: ../src/guestfs-actions.pod:8213
34851 msgid "guestfs_vgpvuuids"
34852 msgstr ""
34853
34854 #. type: verbatim
34855 #: ../src/guestfs-actions.pod:8215
34856 #, no-wrap
34857 msgid ""
34858 " char **\n"
34859 " guestfs_vgpvuuids (guestfs_h *g,\n"
34860 "                    const char *vgname);\n"
34861 "\n"
34862 msgstr ""
34863
34864 #. type: textblock
34865 #: ../src/guestfs-actions.pod:8222
34866 msgid ""
34867 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34868 "associate physical volumes and volume groups."
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs-actions.pod:8225
34873 msgid "See also C<guestfs_vglvuuids>."
34874 msgstr ""
34875
34876 #. type: =head2
34877 #: ../src/guestfs-actions.pod:8233
34878 msgid "guestfs_vgremove"
34879 msgstr ""
34880
34881 #. type: verbatim
34882 #: ../src/guestfs-actions.pod:8235
34883 #, no-wrap
34884 msgid ""
34885 " int\n"
34886 " guestfs_vgremove (guestfs_h *g,\n"
34887 "                   const char *vgname);\n"
34888 "\n"
34889 msgstr ""
34890
34891 #. type: =head2
34892 #: ../src/guestfs-actions.pod:8248
34893 msgid "guestfs_vgrename"
34894 msgstr ""
34895
34896 #. type: verbatim
34897 #: ../src/guestfs-actions.pod:8250
34898 #, no-wrap
34899 msgid ""
34900 " int\n"
34901 " guestfs_vgrename (guestfs_h *g,\n"
34902 "                   const char *volgroup,\n"
34903 "                   const char *newvolgroup);\n"
34904 "\n"
34905 msgstr ""
34906
34907 #. type: =head2
34908 #: ../src/guestfs-actions.pod:8261
34909 msgid "guestfs_vgs"
34910 msgstr ""
34911
34912 #. type: verbatim
34913 #: ../src/guestfs-actions.pod:8263
34914 #, no-wrap
34915 msgid ""
34916 " char **\n"
34917 " guestfs_vgs (guestfs_h *g);\n"
34918 "\n"
34919 msgstr ""
34920
34921 #. type: textblock
34922 #: ../src/guestfs-actions.pod:8272
34923 msgid "See also C<guestfs_vgs_full>."
34924 msgstr ""
34925
34926 #. type: =head2
34927 #: ../src/guestfs-actions.pod:8280
34928 msgid "guestfs_vgs_full"
34929 msgstr ""
34930
34931 #. type: verbatim
34932 #: ../src/guestfs-actions.pod:8282
34933 #, no-wrap
34934 msgid ""
34935 " struct guestfs_lvm_vg_list *\n"
34936 " guestfs_vgs_full (guestfs_h *g);\n"
34937 "\n"
34938 msgstr ""
34939
34940 #. type: textblock
34941 #: ../src/guestfs-actions.pod:8288
34942 msgid ""
34943 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34944 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34945 msgstr ""
34946
34947 #. type: =head2
34948 #: ../src/guestfs-actions.pod:8294
34949 msgid "guestfs_vgscan"
34950 msgstr ""
34951
34952 #. type: verbatim
34953 #: ../src/guestfs-actions.pod:8296
34954 #, no-wrap
34955 msgid ""
34956 " int\n"
34957 " guestfs_vgscan (guestfs_h *g);\n"
34958 "\n"
34959 msgstr ""
34960
34961 #. type: =head2
34962 #: ../src/guestfs-actions.pod:8306
34963 msgid "guestfs_vguuid"
34964 msgstr ""
34965
34966 #. type: verbatim
34967 #: ../src/guestfs-actions.pod:8308
34968 #, no-wrap
34969 msgid ""
34970 " char *\n"
34971 " guestfs_vguuid (guestfs_h *g,\n"
34972 "                 const char *vgname);\n"
34973 "\n"
34974 msgstr ""
34975
34976 #. type: =head2
34977 #: ../src/guestfs-actions.pod:8319
34978 msgid "guestfs_wait_ready"
34979 msgstr ""
34980
34981 #. type: verbatim
34982 #: ../src/guestfs-actions.pod:8321
34983 #, no-wrap
34984 msgid ""
34985 " int\n"
34986 " guestfs_wait_ready (guestfs_h *g);\n"
34987 "\n"
34988 msgstr ""
34989
34990 #. type: textblock
34991 #: ../src/guestfs-actions.pod:8324
34992 msgid ""
34993 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34994 "instead."
34995 msgstr ""
34996
34997 #. type: textblock
34998 #: ../src/guestfs-actions.pod:8331
34999 msgid "This function is a no op."
35000 msgstr ""
35001
35002 #. type: textblock
35003 #: ../src/guestfs-actions.pod:8333
35004 msgid ""
35005 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
35006 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
35007 "is no longer necessary because C<guestfs_launch> now does the waiting."
35008 msgstr ""
35009
35010 #. type: textblock
35011 #: ../src/guestfs-actions.pod:8338
35012 msgid ""
35013 "If you see any calls to this function in code then you can just remove them, "
35014 "unless you want to retain compatibility with older versions of the API."
35015 msgstr ""
35016
35017 #. type: =head2
35018 #: ../src/guestfs-actions.pod:8346
35019 msgid "guestfs_wc_c"
35020 msgstr ""
35021
35022 #. type: verbatim
35023 #: ../src/guestfs-actions.pod:8348
35024 #, no-wrap
35025 msgid ""
35026 " int\n"
35027 " guestfs_wc_c (guestfs_h *g,\n"
35028 "               const char *path);\n"
35029 "\n"
35030 msgstr ""
35031
35032 #. type: =head2
35033 #: ../src/guestfs-actions.pod:8359
35034 msgid "guestfs_wc_l"
35035 msgstr ""
35036
35037 #. type: verbatim
35038 #: ../src/guestfs-actions.pod:8361
35039 #, no-wrap
35040 msgid ""
35041 " int\n"
35042 " guestfs_wc_l (guestfs_h *g,\n"
35043 "               const char *path);\n"
35044 "\n"
35045 msgstr ""
35046
35047 #. type: =head2
35048 #: ../src/guestfs-actions.pod:8372
35049 msgid "guestfs_wc_w"
35050 msgstr ""
35051
35052 #. type: verbatim
35053 #: ../src/guestfs-actions.pod:8374
35054 #, no-wrap
35055 msgid ""
35056 " int\n"
35057 " guestfs_wc_w (guestfs_h *g,\n"
35058 "               const char *path);\n"
35059 "\n"
35060 msgstr ""
35061
35062 #. type: =head2
35063 #: ../src/guestfs-actions.pod:8385
35064 msgid "guestfs_write"
35065 msgstr ""
35066
35067 #. type: verbatim
35068 #: ../src/guestfs-actions.pod:8387
35069 #, no-wrap
35070 msgid ""
35071 " int\n"
35072 " guestfs_write (guestfs_h *g,\n"
35073 "                const char *path,\n"
35074 "                const char *content,\n"
35075 "                size_t content_size);\n"
35076 "\n"
35077 msgstr ""
35078
35079 #. type: textblock
35080 #: ../src/guestfs-actions.pod:8396
35081 msgid "See also C<guestfs_write_append>."
35082 msgstr ""
35083
35084 #. type: =head2
35085 #: ../src/guestfs-actions.pod:8405
35086 msgid "guestfs_write_append"
35087 msgstr ""
35088
35089 #. type: verbatim
35090 #: ../src/guestfs-actions.pod:8407
35091 #, no-wrap
35092 msgid ""
35093 " int\n"
35094 " guestfs_write_append (guestfs_h *g,\n"
35095 "                       const char *path,\n"
35096 "                       const char *content,\n"
35097 "                       size_t content_size);\n"
35098 "\n"
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs-actions.pod:8416
35103 msgid "See also C<guestfs_write>."
35104 msgstr ""
35105
35106 #. type: =head2
35107 #: ../src/guestfs-actions.pod:8425
35108 msgid "guestfs_write_file"
35109 msgstr "guestfs_write_file"
35110
35111 #. type: verbatim
35112 #: ../src/guestfs-actions.pod:8427
35113 #, no-wrap
35114 msgid ""
35115 " int\n"
35116 " guestfs_write_file (guestfs_h *g,\n"
35117 "                     const char *path,\n"
35118 "                     const char *content,\n"
35119 "                     int size);\n"
35120 "\n"
35121 msgstr ""
35122 " int\n"
35123 " guestfs_write_file (guestfs_h *g,\n"
35124 "                     const char *path,\n"
35125 "                     const char *content,\n"
35126 "                     int size);\n"
35127 "\n"
35128
35129 #. type: textblock
35130 #: ../src/guestfs-actions.pod:8433
35131 msgid ""
35132 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
35133 "instead."
35134 msgstr ""
35135
35136 #. type: =head2
35137 #: ../src/guestfs-actions.pod:8458
35138 msgid "guestfs_zegrep"
35139 msgstr "guestfs_zegrep"
35140
35141 #. type: verbatim
35142 #: ../src/guestfs-actions.pod:8460
35143 #, no-wrap
35144 msgid ""
35145 " char **\n"
35146 " guestfs_zegrep (guestfs_h *g,\n"
35147 "                 const char *regex,\n"
35148 "                 const char *path);\n"
35149 "\n"
35150 msgstr ""
35151 " char **\n"
35152 " guestfs_zegrep (guestfs_h *g,\n"
35153 "                 const char *regex,\n"
35154 "                 const char *path);\n"
35155 "\n"
35156
35157 #. type: =head2
35158 #: ../src/guestfs-actions.pod:8477
35159 msgid "guestfs_zegrepi"
35160 msgstr "guestfs_zegrepi"
35161
35162 #. type: verbatim
35163 #: ../src/guestfs-actions.pod:8479
35164 #, no-wrap
35165 msgid ""
35166 " char **\n"
35167 " guestfs_zegrepi (guestfs_h *g,\n"
35168 "                  const char *regex,\n"
35169 "                  const char *path);\n"
35170 "\n"
35171 msgstr ""
35172 " char **\n"
35173 " guestfs_zegrepi (guestfs_h *g,\n"
35174 "                  const char *regex,\n"
35175 "                  const char *path);\n"
35176 "\n"
35177
35178 #. type: =head2
35179 #: ../src/guestfs-actions.pod:8496
35180 msgid "guestfs_zero"
35181 msgstr "guestfs_zero"
35182
35183 #. type: verbatim
35184 #: ../src/guestfs-actions.pod:8498
35185 #, no-wrap
35186 msgid ""
35187 " int\n"
35188 " guestfs_zero (guestfs_h *g,\n"
35189 "               const char *device);\n"
35190 "\n"
35191 msgstr ""
35192 " int\n"
35193 " guestfs_zero (guestfs_h *g,\n"
35194 "               const char *device);\n"
35195 "\n"
35196
35197 #. type: textblock
35198 #: ../src/guestfs-actions.pod:8512
35199 msgid ""
35200 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
35201 "C<guestfs_is_zero_device>"
35202 msgstr ""
35203
35204 #. type: =head2
35205 #: ../src/guestfs-actions.pod:8524
35206 msgid "guestfs_zero_device"
35207 msgstr "guestfs_zero_device"
35208
35209 #. type: verbatim
35210 #: ../src/guestfs-actions.pod:8526
35211 #, no-wrap
35212 msgid ""
35213 " int\n"
35214 " guestfs_zero_device (guestfs_h *g,\n"
35215 "                      const char *device);\n"
35216 "\n"
35217 msgstr ""
35218 " int\n"
35219 " guestfs_zero_device (guestfs_h *g,\n"
35220 "                      const char *device);\n"
35221 "\n"
35222
35223 #. type: textblock
35224 #: ../src/guestfs-actions.pod:8530
35225 msgid ""
35226 "This command writes zeroes over the entire C<device>.  Compare with "
35227 "C<guestfs_zero> which just zeroes the first few blocks of a device."
35228 msgstr ""
35229
35230 #. type: textblock
35231 #: ../src/guestfs-actions.pod:8545
35232 msgid "(Added in 1.3.1)"
35233 msgstr "(Додано у 1.3.1)"
35234
35235 #. type: =head2
35236 #: ../src/guestfs-actions.pod:8547
35237 msgid "guestfs_zerofree"
35238 msgstr "guestfs_zerofree"
35239
35240 #. type: verbatim
35241 #: ../src/guestfs-actions.pod:8549
35242 #, no-wrap
35243 msgid ""
35244 " int\n"
35245 " guestfs_zerofree (guestfs_h *g,\n"
35246 "                   const char *device);\n"
35247 "\n"
35248 msgstr ""
35249 " int\n"
35250 " guestfs_zerofree (guestfs_h *g,\n"
35251 "                   const char *device);\n"
35252 "\n"
35253
35254 #. type: =head2
35255 #: ../src/guestfs-actions.pod:8568
35256 msgid "guestfs_zfgrep"
35257 msgstr "guestfs_zfgrep"
35258
35259 #. type: verbatim
35260 #: ../src/guestfs-actions.pod:8570
35261 #, no-wrap
35262 msgid ""
35263 " char **\n"
35264 " guestfs_zfgrep (guestfs_h *g,\n"
35265 "                 const char *pattern,\n"
35266 "                 const char *path);\n"
35267 "\n"
35268 msgstr ""
35269 " char **\n"
35270 " guestfs_zfgrep (guestfs_h *g,\n"
35271 "                 const char *pattern,\n"
35272 "                 const char *path);\n"
35273 "\n"
35274
35275 #. type: =head2
35276 #: ../src/guestfs-actions.pod:8587
35277 msgid "guestfs_zfgrepi"
35278 msgstr "guestfs_zfgrepi"
35279
35280 #. type: verbatim
35281 #: ../src/guestfs-actions.pod:8589
35282 #, no-wrap
35283 msgid ""
35284 " char **\n"
35285 " guestfs_zfgrepi (guestfs_h *g,\n"
35286 "                  const char *pattern,\n"
35287 "                  const char *path);\n"
35288 "\n"
35289 msgstr ""
35290 " char **\n"
35291 " guestfs_zfgrepi (guestfs_h *g,\n"
35292 "                  const char *pattern,\n"
35293 "                  const char *path);\n"
35294 "\n"
35295
35296 #. type: =head2
35297 #: ../src/guestfs-actions.pod:8606
35298 msgid "guestfs_zfile"
35299 msgstr "guestfs_zfile"
35300
35301 #. type: verbatim
35302 #: ../src/guestfs-actions.pod:8608
35303 #, no-wrap
35304 msgid ""
35305 " char *\n"
35306 " guestfs_zfile (guestfs_h *g,\n"
35307 "                const char *meth,\n"
35308 "                const char *path);\n"
35309 "\n"
35310 msgstr ""
35311 " char *\n"
35312 " guestfs_zfile (guestfs_h *g,\n"
35313 "                const char *meth,\n"
35314 "                const char *path);\n"
35315 "\n"
35316
35317 #. type: textblock
35318 #: ../src/guestfs-actions.pod:8613
35319 msgid ""
35320 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35321 "instead."
35322 msgstr ""
35323
35324 #. type: textblock
35325 #: ../src/guestfs-actions.pod:8625
35326 msgid ""
35327 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35328 "files."
35329 msgstr ""
35330
35331 #. type: =head2
35332 #: ../src/guestfs-actions.pod:8633
35333 msgid "guestfs_zgrep"
35334 msgstr "guestfs_zgrep"
35335
35336 #. type: verbatim
35337 #: ../src/guestfs-actions.pod:8635
35338 #, no-wrap
35339 msgid ""
35340 " char **\n"
35341 " guestfs_zgrep (guestfs_h *g,\n"
35342 "                const char *regex,\n"
35343 "                const char *path);\n"
35344 "\n"
35345 msgstr ""
35346 " char **\n"
35347 " guestfs_zgrep (guestfs_h *g,\n"
35348 "                const char *regex,\n"
35349 "                const char *path);\n"
35350 "\n"
35351
35352 #. type: =head2
35353 #: ../src/guestfs-actions.pod:8652
35354 msgid "guestfs_zgrepi"
35355 msgstr "guestfs_zgrepi"
35356
35357 #. type: verbatim
35358 #: ../src/guestfs-actions.pod:8654
35359 #, no-wrap
35360 msgid ""
35361 " char **\n"
35362 " guestfs_zgrepi (guestfs_h *g,\n"
35363 "                 const char *regex,\n"
35364 "                 const char *path);\n"
35365 "\n"
35366 msgstr ""
35367 " char **\n"
35368 " guestfs_zgrepi (guestfs_h *g,\n"
35369 "                 const char *regex,\n"
35370 "                 const char *path);\n"
35371 "\n"
35372
35373 #. type: =item
35374 #: ../src/guestfs-availability.pod:3
35375 msgid "B<augeas>"
35376 msgstr "B<augeas>"
35377
35378 #. type: textblock
35379 #: ../src/guestfs-availability.pod:5
35380 msgid ""
35381 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35382 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35383 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35384 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35385 "L</guestfs_aug_save> L</guestfs_aug_set>"
35386 msgstr ""
35387
35388 #. type: =item
35389 #: ../src/guestfs-availability.pod:21
35390 msgid "B<btrfs>"
35391 msgstr "B<btrfs>"
35392
35393 #. type: textblock
35394 #: ../src/guestfs-availability.pod:23
35395 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35396 msgstr ""
35397
35398 #. type: =item
35399 #: ../src/guestfs-availability.pod:26
35400 msgid "B<grub>"
35401 msgstr ""
35402
35403 #. type: textblock
35404 #: ../src/guestfs-availability.pod:28
35405 msgid "The following functions: L</guestfs_grub_install>"
35406 msgstr ""
35407
35408 #. type: =item
35409 #: ../src/guestfs-availability.pod:31
35410 msgid "B<inotify>"
35411 msgstr "B<inotify>"
35412
35413 #. type: textblock
35414 #: ../src/guestfs-availability.pod:33
35415 msgid ""
35416 "The following functions: L</guestfs_inotify_add_watch> L</"
35417 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35418 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35419 msgstr ""
35420
35421 #. type: =item
35422 #: ../src/guestfs-availability.pod:41
35423 msgid "B<linuxfsuuid>"
35424 msgstr "B<linuxfsuuid>"
35425
35426 #. type: textblock
35427 #: ../src/guestfs-availability.pod:43
35428 msgid ""
35429 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35430 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35431 msgstr ""
35432
35433 #. type: =item
35434 #: ../src/guestfs-availability.pod:50
35435 msgid "B<linuxmodules>"
35436 msgstr "B<linuxmodules>"
35437
35438 #. type: textblock
35439 #: ../src/guestfs-availability.pod:52
35440 msgid "The following functions: L</guestfs_modprobe>"
35441 msgstr ""
35442
35443 #. type: =item
35444 #: ../src/guestfs-availability.pod:55
35445 msgid "B<linuxxattrs>"
35446 msgstr "B<linuxxattrs>"
35447
35448 #. type: textblock
35449 #: ../src/guestfs-availability.pod:57
35450 msgid ""
35451 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35452 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35453 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35454 "guestfs_setxattr>"
35455 msgstr ""
35456
35457 #. type: =item
35458 #: ../src/guestfs-availability.pod:68
35459 msgid "B<luks>"
35460 msgstr "B<luks>"
35461
35462 #. type: textblock
35463 #: ../src/guestfs-availability.pod:70
35464 msgid ""
35465 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35466 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35467 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35468 msgstr ""
35469
35470 #. type: =item
35471 #: ../src/guestfs-availability.pod:79
35472 msgid "B<lvm2>"
35473 msgstr "B<lvm2>"
35474
35475 #. type: textblock
35476 #: ../src/guestfs-availability.pod:81
35477 msgid ""
35478 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35479 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35480 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35481 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35482 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35483 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35484 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35485 msgstr ""
35486
35487 #. type: =item
35488 #: ../src/guestfs-availability.pod:104
35489 msgid "B<mdadm>"
35490 msgstr ""
35491
35492 #. type: textblock
35493 #: ../src/guestfs-availability.pod:106
35494 msgid ""
35495 "The following functions: L</guestfs_mdadm_create> L</guestfs_mdadm_detail>"
35496 msgstr ""
35497
35498 #. type: =item
35499 #: ../src/guestfs-availability.pod:110
35500 msgid "B<mknod>"
35501 msgstr "B<mknod>"
35502
35503 #. type: textblock
35504 #: ../src/guestfs-availability.pod:112
35505 msgid ""
35506 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35507 "guestfs_mknod_b> L</guestfs_mknod_c>"
35508 msgstr ""
35509
35510 #. type: =item
35511 #: ../src/guestfs-availability.pod:118
35512 msgid "B<ntfs3g>"
35513 msgstr "B<ntfs3g>"
35514
35515 #. type: textblock
35516 #: ../src/guestfs-availability.pod:120
35517 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35518 msgstr ""
35519
35520 #. type: =item
35521 #: ../src/guestfs-availability.pod:123
35522 msgid "B<ntfsprogs>"
35523 msgstr "B<ntfsprogs>"
35524
35525 #. type: textblock
35526 #: ../src/guestfs-availability.pod:125
35527 msgid ""
35528 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35529 "L</guestfs_ntfsresize_size>"
35530 msgstr ""
35531
35532 #. type: =item
35533 #: ../src/guestfs-availability.pod:130
35534 msgid "B<realpath>"
35535 msgstr "B<realpath>"
35536
35537 #. type: textblock
35538 #: ../src/guestfs-availability.pod:132
35539 msgid "The following functions: L</guestfs_realpath>"
35540 msgstr ""
35541
35542 #. type: =item
35543 #: ../src/guestfs-availability.pod:135
35544 msgid "B<scrub>"
35545 msgstr "B<scrub>"
35546
35547 #. type: textblock
35548 #: ../src/guestfs-availability.pod:137
35549 msgid ""
35550 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35551 "guestfs_scrub_freespace>"
35552 msgstr ""
35553
35554 #. type: =item
35555 #: ../src/guestfs-availability.pod:142
35556 msgid "B<selinux>"
35557 msgstr "B<selinux>"
35558
35559 #. type: textblock
35560 #: ../src/guestfs-availability.pod:144
35561 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35562 msgstr ""
35563
35564 #. type: =item
35565 #: ../src/guestfs-availability.pod:148
35566 msgid "B<xz>"
35567 msgstr "B<xz>"
35568
35569 #. type: textblock
35570 #: ../src/guestfs-availability.pod:150
35571 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35572 msgstr ""
35573
35574 #. type: =item
35575 #: ../src/guestfs-availability.pod:154
35576 msgid "B<zerofree>"
35577 msgstr "B<zerofree>"
35578
35579 #. type: textblock
35580 #: ../src/guestfs-availability.pod:156
35581 msgid "The following functions: L</guestfs_zerofree>"
35582 msgstr ""
35583
35584 #. type: =head2
35585 #: ../src/guestfs-structs.pod:1
35586 msgid "guestfs_int_bool"
35587 msgstr ""
35588
35589 #. type: verbatim
35590 #: ../src/guestfs-structs.pod:3
35591 #, no-wrap
35592 msgid ""
35593 " struct guestfs_int_bool {\n"
35594 "   int32_t i;\n"
35595 "   int32_t b;\n"
35596 " };\n"
35597 " \n"
35598 msgstr ""
35599
35600 #. type: verbatim
35601 #: ../src/guestfs-structs.pod:8
35602 #, no-wrap
35603 msgid ""
35604 " struct guestfs_int_bool_list {\n"
35605 "   uint32_t len; /* Number of elements in list. */\n"
35606 "   struct guestfs_int_bool *val; /* Elements. */\n"
35607 " };\n"
35608 " \n"
35609 msgstr ""
35610
35611 #. type: verbatim
35612 #: ../src/guestfs-structs.pod:13
35613 #, no-wrap
35614 msgid ""
35615 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35616 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35617 "\n"
35618 msgstr ""
35619
35620 #. type: =head2
35621 #: ../src/guestfs-structs.pod:16
35622 msgid "guestfs_lvm_pv"
35623 msgstr ""
35624
35625 #. type: verbatim
35626 #: ../src/guestfs-structs.pod:18
35627 #, no-wrap
35628 msgid ""
35629 " struct guestfs_lvm_pv {\n"
35630 "   char *pv_name;\n"
35631 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35632 "   char pv_uuid[32];\n"
35633 "   char *pv_fmt;\n"
35634 "   uint64_t pv_size;\n"
35635 "   uint64_t dev_size;\n"
35636 "   uint64_t pv_free;\n"
35637 "   uint64_t pv_used;\n"
35638 "   char *pv_attr;\n"
35639 "   int64_t pv_pe_count;\n"
35640 "   int64_t pv_pe_alloc_count;\n"
35641 "   char *pv_tags;\n"
35642 "   uint64_t pe_start;\n"
35643 "   int64_t pv_mda_count;\n"
35644 "   uint64_t pv_mda_free;\n"
35645 " };\n"
35646 " \n"
35647 msgstr ""
35648
35649 #. type: verbatim
35650 #: ../src/guestfs-structs.pod:36
35651 #, no-wrap
35652 msgid ""
35653 " struct guestfs_lvm_pv_list {\n"
35654 "   uint32_t len; /* Number of elements in list. */\n"
35655 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35656 " };\n"
35657 " \n"
35658 msgstr ""
35659
35660 #. type: verbatim
35661 #: ../src/guestfs-structs.pod:41
35662 #, no-wrap
35663 msgid ""
35664 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35665 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35666 "\n"
35667 msgstr ""
35668
35669 #. type: =head2
35670 #: ../src/guestfs-structs.pod:44
35671 msgid "guestfs_lvm_vg"
35672 msgstr ""
35673
35674 #. type: verbatim
35675 #: ../src/guestfs-structs.pod:46
35676 #, no-wrap
35677 msgid ""
35678 " struct guestfs_lvm_vg {\n"
35679 "   char *vg_name;\n"
35680 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35681 "   char vg_uuid[32];\n"
35682 "   char *vg_fmt;\n"
35683 "   char *vg_attr;\n"
35684 "   uint64_t vg_size;\n"
35685 "   uint64_t vg_free;\n"
35686 "   char *vg_sysid;\n"
35687 "   uint64_t vg_extent_size;\n"
35688 "   int64_t vg_extent_count;\n"
35689 "   int64_t vg_free_count;\n"
35690 "   int64_t max_lv;\n"
35691 "   int64_t max_pv;\n"
35692 "   int64_t pv_count;\n"
35693 "   int64_t lv_count;\n"
35694 "   int64_t snap_count;\n"
35695 "   int64_t vg_seqno;\n"
35696 "   char *vg_tags;\n"
35697 "   int64_t vg_mda_count;\n"
35698 "   uint64_t vg_mda_free;\n"
35699 " };\n"
35700 " \n"
35701 msgstr ""
35702
35703 #. type: verbatim
35704 #: ../src/guestfs-structs.pod:69
35705 #, no-wrap
35706 msgid ""
35707 " struct guestfs_lvm_vg_list {\n"
35708 "   uint32_t len; /* Number of elements in list. */\n"
35709 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35710 " };\n"
35711 " \n"
35712 msgstr ""
35713
35714 #. type: verbatim
35715 #: ../src/guestfs-structs.pod:74
35716 #, no-wrap
35717 msgid ""
35718 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35719 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35720 "\n"
35721 msgstr ""
35722
35723 #. type: =head2
35724 #: ../src/guestfs-structs.pod:77
35725 msgid "guestfs_lvm_lv"
35726 msgstr ""
35727
35728 #. type: verbatim
35729 #: ../src/guestfs-structs.pod:79
35730 #, no-wrap
35731 msgid ""
35732 " struct guestfs_lvm_lv {\n"
35733 "   char *lv_name;\n"
35734 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35735 "   char lv_uuid[32];\n"
35736 "   char *lv_attr;\n"
35737 "   int64_t lv_major;\n"
35738 "   int64_t lv_minor;\n"
35739 "   int64_t lv_kernel_major;\n"
35740 "   int64_t lv_kernel_minor;\n"
35741 "   uint64_t lv_size;\n"
35742 "   int64_t seg_count;\n"
35743 "   char *origin;\n"
35744 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35745 "   float snap_percent;\n"
35746 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35747 "   float copy_percent;\n"
35748 "   char *move_pv;\n"
35749 "   char *lv_tags;\n"
35750 "   char *mirror_log;\n"
35751 "   char *modules;\n"
35752 " };\n"
35753 " \n"
35754 msgstr ""
35755
35756 #. type: verbatim
35757 #: ../src/guestfs-structs.pod:101
35758 #, no-wrap
35759 msgid ""
35760 " struct guestfs_lvm_lv_list {\n"
35761 "   uint32_t len; /* Number of elements in list. */\n"
35762 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35763 " };\n"
35764 " \n"
35765 msgstr ""
35766
35767 #. type: verbatim
35768 #: ../src/guestfs-structs.pod:106
35769 #, no-wrap
35770 msgid ""
35771 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35772 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35773 "\n"
35774 msgstr ""
35775
35776 #. type: verbatim
35777 #: ../src/guestfs-structs.pod:111
35778 #, no-wrap
35779 msgid ""
35780 " struct guestfs_stat {\n"
35781 "   int64_t dev;\n"
35782 "   int64_t ino;\n"
35783 "   int64_t mode;\n"
35784 "   int64_t nlink;\n"
35785 "   int64_t uid;\n"
35786 "   int64_t gid;\n"
35787 "   int64_t rdev;\n"
35788 "   int64_t size;\n"
35789 "   int64_t blksize;\n"
35790 "   int64_t blocks;\n"
35791 "   int64_t atime;\n"
35792 "   int64_t mtime;\n"
35793 "   int64_t ctime;\n"
35794 " };\n"
35795 " \n"
35796 msgstr ""
35797
35798 #. type: verbatim
35799 #: ../src/guestfs-structs.pod:127
35800 #, no-wrap
35801 msgid ""
35802 " struct guestfs_stat_list {\n"
35803 "   uint32_t len; /* Number of elements in list. */\n"
35804 "   struct guestfs_stat *val; /* Elements. */\n"
35805 " };\n"
35806 " \n"
35807 msgstr ""
35808
35809 #. type: verbatim
35810 #: ../src/guestfs-structs.pod:132
35811 #, no-wrap
35812 msgid ""
35813 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35814 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35815 "\n"
35816 msgstr ""
35817
35818 #. type: verbatim
35819 #: ../src/guestfs-structs.pod:137
35820 #, no-wrap
35821 msgid ""
35822 " struct guestfs_statvfs {\n"
35823 "   int64_t bsize;\n"
35824 "   int64_t frsize;\n"
35825 "   int64_t blocks;\n"
35826 "   int64_t bfree;\n"
35827 "   int64_t bavail;\n"
35828 "   int64_t files;\n"
35829 "   int64_t ffree;\n"
35830 "   int64_t favail;\n"
35831 "   int64_t fsid;\n"
35832 "   int64_t flag;\n"
35833 "   int64_t namemax;\n"
35834 " };\n"
35835 " \n"
35836 msgstr ""
35837
35838 #. type: verbatim
35839 #: ../src/guestfs-structs.pod:151
35840 #, no-wrap
35841 msgid ""
35842 " struct guestfs_statvfs_list {\n"
35843 "   uint32_t len; /* Number of elements in list. */\n"
35844 "   struct guestfs_statvfs *val; /* Elements. */\n"
35845 " };\n"
35846 " \n"
35847 msgstr ""
35848
35849 #. type: verbatim
35850 #: ../src/guestfs-structs.pod:156
35851 #, no-wrap
35852 msgid ""
35853 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35854 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35855 "\n"
35856 msgstr ""
35857
35858 #. type: =head2
35859 #: ../src/guestfs-structs.pod:159
35860 msgid "guestfs_dirent"
35861 msgstr ""
35862
35863 #. type: verbatim
35864 #: ../src/guestfs-structs.pod:161
35865 #, no-wrap
35866 msgid ""
35867 " struct guestfs_dirent {\n"
35868 "   int64_t ino;\n"
35869 "   char ftyp;\n"
35870 "   char *name;\n"
35871 " };\n"
35872 " \n"
35873 msgstr ""
35874
35875 #. type: verbatim
35876 #: ../src/guestfs-structs.pod:167
35877 #, no-wrap
35878 msgid ""
35879 " struct guestfs_dirent_list {\n"
35880 "   uint32_t len; /* Number of elements in list. */\n"
35881 "   struct guestfs_dirent *val; /* Elements. */\n"
35882 " };\n"
35883 " \n"
35884 msgstr ""
35885
35886 #. type: verbatim
35887 #: ../src/guestfs-structs.pod:172
35888 #, no-wrap
35889 msgid ""
35890 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35891 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35892 "\n"
35893 msgstr ""
35894
35895 #. type: verbatim
35896 #: ../src/guestfs-structs.pod:177
35897 #, no-wrap
35898 msgid ""
35899 " struct guestfs_version {\n"
35900 "   int64_t major;\n"
35901 "   int64_t minor;\n"
35902 "   int64_t release;\n"
35903 "   char *extra;\n"
35904 " };\n"
35905 " \n"
35906 msgstr ""
35907
35908 #. type: verbatim
35909 #: ../src/guestfs-structs.pod:184
35910 #, no-wrap
35911 msgid ""
35912 " struct guestfs_version_list {\n"
35913 "   uint32_t len; /* Number of elements in list. */\n"
35914 "   struct guestfs_version *val; /* Elements. */\n"
35915 " };\n"
35916 " \n"
35917 msgstr ""
35918
35919 #. type: verbatim
35920 #: ../src/guestfs-structs.pod:189
35921 #, no-wrap
35922 msgid ""
35923 " void guestfs_free_version (struct guestfs_free_version *);\n"
35924 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35925 "\n"
35926 msgstr ""
35927
35928 #. type: =head2
35929 #: ../src/guestfs-structs.pod:192
35930 msgid "guestfs_xattr"
35931 msgstr ""
35932
35933 #. type: verbatim
35934 #: ../src/guestfs-structs.pod:194
35935 #, no-wrap
35936 msgid ""
35937 " struct guestfs_xattr {\n"
35938 "   char *attrname;\n"
35939 "   /* The next two fields describe a byte array. */\n"
35940 "   uint32_t attrval_len;\n"
35941 "   char *attrval;\n"
35942 " };\n"
35943 " \n"
35944 msgstr ""
35945
35946 #. type: verbatim
35947 #: ../src/guestfs-structs.pod:201
35948 #, no-wrap
35949 msgid ""
35950 " struct guestfs_xattr_list {\n"
35951 "   uint32_t len; /* Number of elements in list. */\n"
35952 "   struct guestfs_xattr *val; /* Elements. */\n"
35953 " };\n"
35954 " \n"
35955 msgstr ""
35956
35957 #. type: verbatim
35958 #: ../src/guestfs-structs.pod:206
35959 #, no-wrap
35960 msgid ""
35961 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35962 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35963 "\n"
35964 msgstr ""
35965
35966 #. type: =head2
35967 #: ../src/guestfs-structs.pod:209
35968 msgid "guestfs_inotify_event"
35969 msgstr ""
35970
35971 #. type: verbatim
35972 #: ../src/guestfs-structs.pod:211
35973 #, no-wrap
35974 msgid ""
35975 " struct guestfs_inotify_event {\n"
35976 "   int64_t in_wd;\n"
35977 "   uint32_t in_mask;\n"
35978 "   uint32_t in_cookie;\n"
35979 "   char *in_name;\n"
35980 " };\n"
35981 " \n"
35982 msgstr ""
35983
35984 #. type: verbatim
35985 #: ../src/guestfs-structs.pod:218
35986 #, no-wrap
35987 msgid ""
35988 " struct guestfs_inotify_event_list {\n"
35989 "   uint32_t len; /* Number of elements in list. */\n"
35990 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35991 " };\n"
35992 " \n"
35993 msgstr ""
35994
35995 #. type: verbatim
35996 #: ../src/guestfs-structs.pod:223
35997 #, no-wrap
35998 msgid ""
35999 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36000 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
36001 "\n"
36002 msgstr ""
36003
36004 #. type: =head2
36005 #: ../src/guestfs-structs.pod:226
36006 msgid "guestfs_partition"
36007 msgstr ""
36008
36009 #. type: verbatim
36010 #: ../src/guestfs-structs.pod:228
36011 #, no-wrap
36012 msgid ""
36013 " struct guestfs_partition {\n"
36014 "   int32_t part_num;\n"
36015 "   uint64_t part_start;\n"
36016 "   uint64_t part_end;\n"
36017 "   uint64_t part_size;\n"
36018 " };\n"
36019 " \n"
36020 msgstr ""
36021
36022 #. type: verbatim
36023 #: ../src/guestfs-structs.pod:235
36024 #, no-wrap
36025 msgid ""
36026 " struct guestfs_partition_list {\n"
36027 "   uint32_t len; /* Number of elements in list. */\n"
36028 "   struct guestfs_partition *val; /* Elements. */\n"
36029 " };\n"
36030 " \n"
36031 msgstr ""
36032
36033 #. type: verbatim
36034 #: ../src/guestfs-structs.pod:240
36035 #, no-wrap
36036 msgid ""
36037 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
36038 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
36039 "\n"
36040 msgstr ""
36041
36042 #. type: =head2
36043 #: ../src/guestfs-structs.pod:243
36044 msgid "guestfs_application"
36045 msgstr ""
36046
36047 #. type: verbatim
36048 #: ../src/guestfs-structs.pod:245
36049 #, no-wrap
36050 msgid ""
36051 " struct guestfs_application {\n"
36052 "   char *app_name;\n"
36053 "   char *app_display_name;\n"
36054 "   int32_t app_epoch;\n"
36055 "   char *app_version;\n"
36056 "   char *app_release;\n"
36057 "   char *app_install_path;\n"
36058 "   char *app_trans_path;\n"
36059 "   char *app_publisher;\n"
36060 "   char *app_url;\n"
36061 "   char *app_source_package;\n"
36062 "   char *app_summary;\n"
36063 "   char *app_description;\n"
36064 " };\n"
36065 " \n"
36066 msgstr ""
36067
36068 #. type: verbatim
36069 #: ../src/guestfs-structs.pod:260
36070 #, no-wrap
36071 msgid ""
36072 " struct guestfs_application_list {\n"
36073 "   uint32_t len; /* Number of elements in list. */\n"
36074 "   struct guestfs_application *val; /* Elements. */\n"
36075 " };\n"
36076 " \n"
36077 msgstr ""
36078
36079 #. type: verbatim
36080 #: ../src/guestfs-structs.pod:265
36081 #, no-wrap
36082 msgid ""
36083 " void guestfs_free_application (struct guestfs_free_application *);\n"
36084 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
36085 "\n"
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:5
36090 msgid "guestfs - Library for accessing and modifying virtual machine images"
36091 msgstr ""
36092 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
36093 "машин"
36094
36095 #. type: verbatim
36096 #: ../src/guestfs.pod:11
36097 #, no-wrap
36098 msgid ""
36099 " guestfs_h *g = guestfs_create ();\n"
36100 " guestfs_add_drive (g, \"guest.img\");\n"
36101 " guestfs_launch (g);\n"
36102 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36103 " guestfs_touch (g, \"/hello\");\n"
36104 " guestfs_umount (g, \"/\");\n"
36105 " guestfs_close (g);\n"
36106 "\n"
36107 msgstr ""
36108 " guestfs_h *g = guestfs_create ();\n"
36109 " guestfs_add_drive (g, \"guest.img\");\n"
36110 " guestfs_launch (g);\n"
36111 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36112 " guestfs_touch (g, \"/hello\");\n"
36113 " guestfs_umount (g, \"/\");\n"
36114 " guestfs_close (g);\n"
36115 "\n"
36116
36117 #. type: textblock
36118 #: ../src/guestfs.pod:25
36119 msgid ""
36120 "Libguestfs is a library for accessing and modifying guest disk images.  "
36121 "Amongst the things this is good for: making batch configuration changes to "
36122 "guests, getting disk used/free statistics (see also: virt-df), migrating "
36123 "between virtualization systems (see also: virt-p2v), performing partial "
36124 "backups, performing partial guest clones, cloning guests and changing "
36125 "registry/UUID/hostname info, and much else besides."
36126 msgstr ""
36127
36128 #. type: textblock
36129 #: ../src/guestfs.pod:33
36130 msgid ""
36131 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
36132 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
36133 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
36134 "qcow2, vmdk."
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:38
36139 msgid ""
36140 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
36141 "what filesystem is in each LV, etc.).  It can also run commands in the "
36142 "context of the guest.  Also you can access filesystems over FUSE."
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../src/guestfs.pod:43
36147 msgid ""
36148 "Libguestfs is a library that can be linked with C and C++ management "
36149 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
36150 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
36151 "command line."
36152 msgstr ""
36153
36154 #. type: textblock
36155 #: ../src/guestfs.pod:48
36156 msgid ""
36157 "You don't need to be root to use libguestfs, although obviously you do need "
36158 "enough permissions to access the disk images."
36159 msgstr ""
36160
36161 #. type: textblock
36162 #: ../src/guestfs.pod:51
36163 msgid ""
36164 "Libguestfs is a large API because it can do many things.  For a gentle "
36165 "introduction, please read the L</API OVERVIEW> section next."
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:54
36170 msgid ""
36171 "There are also some example programs in the L<guestfs-examples(3)> manual "
36172 "page."
36173 msgstr ""
36174
36175 #. type: =head1
36176 #: ../src/guestfs.pod:57
36177 msgid "API OVERVIEW"
36178 msgstr "ОГЛЯД API"
36179
36180 #. type: textblock
36181 #: ../src/guestfs.pod:59
36182 msgid ""
36183 "This section provides a gentler overview of the libguestfs API.  We also try "
36184 "to group API calls together, where that may not be obvious from reading "
36185 "about the individual calls in the main section of this manual."
36186 msgstr ""
36187
36188 #. type: =head2
36189 #: ../src/guestfs.pod:64
36190 msgid "HANDLES"
36191 msgstr "ОБРОБНИКИ"
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:66
36195 msgid ""
36196 "Before you can use libguestfs calls, you have to create a handle.  Then you "
36197 "must add at least one disk image to the handle, followed by launching the "
36198 "handle, then performing whatever operations you want, and finally closing "
36199 "the handle.  By convention we use the single letter C<g> for the name of the "
36200 "handle variable, although of course you can use any name you want."
36201 msgstr ""
36202
36203 #. type: textblock
36204 #: ../src/guestfs.pod:73
36205 msgid "The general structure of all libguestfs-using programs looks like this:"
36206 msgstr ""
36207
36208 #. type: verbatim
36209 #: ../src/guestfs.pod:76
36210 #, no-wrap
36211 msgid ""
36212 " guestfs_h *g = guestfs_create ();\n"
36213 " \n"
36214 msgstr ""
36215 " guestfs_h *g = guestfs_create ();\n"
36216 " \n"
36217
36218 #. type: verbatim
36219 #: ../src/guestfs.pod:78
36220 #, no-wrap
36221 msgid ""
36222 " /* Call guestfs_add_drive additional times if there are\n"
36223 "  * multiple disk images.\n"
36224 "  */\n"
36225 " guestfs_add_drive (g, \"guest.img\");\n"
36226 " \n"
36227 msgstr ""
36228
36229 #. type: verbatim
36230 #: ../src/guestfs.pod:83
36231 #, no-wrap
36232 msgid ""
36233 " /* Most manipulation calls won't work until you've launched\n"
36234 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
36235 "  * and _before_ other commands.\n"
36236 "  */\n"
36237 " guestfs_launch (g);\n"
36238 " \n"
36239 msgstr ""
36240
36241 #. type: verbatim
36242 #: ../src/guestfs.pod:89
36243 #, no-wrap
36244 msgid ""
36245 " /* Now you can examine what partitions, LVs etc are available.\n"
36246 "  */\n"
36247 " char **partitions = guestfs_list_partitions (g);\n"
36248 " char **logvols = guestfs_lvs (g);\n"
36249 " \n"
36250 msgstr ""
36251 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
36252 "  */\n"
36253 " char **partitions = guestfs_list_partitions (g);\n"
36254 " char **logvols = guestfs_lvs (g);\n"
36255 " \n"
36256
36257 #. type: verbatim
36258 #: ../src/guestfs.pod:94
36259 #, no-wrap
36260 msgid ""
36261 " /* To access a filesystem in the image, you must mount it.\n"
36262 "  */\n"
36263 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36264 " \n"
36265 msgstr ""
36266 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
36267 "  */\n"
36268 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
36269 " \n"
36270
36271 #. type: verbatim
36272 #: ../src/guestfs.pod:98
36273 #, no-wrap
36274 msgid ""
36275 " /* Now you can perform filesystem actions on the guest\n"
36276 "  * disk image.\n"
36277 "  */\n"
36278 " guestfs_touch (g, \"/hello\");\n"
36279 " \n"
36280 msgstr ""
36281 " /* Тепер ви можете виконувати дії з файловою системою на\n"
36282 "  * образі диска операційної системи.\n"
36283 "  */\n"
36284 " guestfs_touch (g, \"/hello\");\n"
36285 " \n"
36286
36287 #. type: verbatim
36288 #: ../src/guestfs.pod:103
36289 #, no-wrap
36290 msgid ""
36291 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
36292 "  * it is done automatically when you close the handle.  See\n"
36293 "  * discussion of autosync in this page.\n"
36294 "  */\n"
36295 " guestfs_sync (g);\n"
36296 " \n"
36297 msgstr ""
36298
36299 #. type: verbatim
36300 #: ../src/guestfs.pod:109
36301 #, no-wrap
36302 msgid ""
36303 " /* Close the handle 'g'. */\n"
36304 " guestfs_close (g);\n"
36305 "\n"
36306 msgstr ""
36307 " /* Закрити дескриптор 'g'. */\n"
36308 " guestfs_close (g);\n"
36309 "\n"
36310
36311 #. type: textblock
36312 #: ../src/guestfs.pod:112
36313 msgid ""
36314 "The code above doesn't include any error checking.  In real code you should "
36315 "check return values carefully for errors.  In general all functions that "
36316 "return integers return C<-1> on error, and all functions that return "
36317 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
36318 "how to handle errors, and consult the documentation for each function call "
36319 "below to see precisely how they return error indications.  See L<guestfs-"
36320 "examples(3)> for fully worked examples."
36321 msgstr ""
36322
36323 #. type: =head2
36324 #: ../src/guestfs.pod:121
36325 msgid "DISK IMAGES"
36326 msgstr "ОБРАЗИ ДИСКІВ"
36327
36328 #. type: textblock
36329 #: ../src/guestfs.pod:123
36330 msgid ""
36331 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
36332 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
36333 "actual block device, or simply an empty file of zeroes that you have created "
36334 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
36335 "of these."
36336 msgstr ""
36337
36338 #. type: textblock
36339 #: ../src/guestfs.pod:129
36340 msgid ""
36341 "The call you should use in modern code for adding drives is L</"
36342 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
36343 "specifying that the format is raw, do:"
36344 msgstr ""
36345
36346 #. type: verbatim
36347 #: ../src/guestfs.pod:133
36348 #, no-wrap
36349 msgid ""
36350 " guestfs_add_drive_opts (g, filename,\n"
36351 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36352 "                         -1);\n"
36353 "\n"
36354 msgstr ""
36355 " guestfs_add_drive_opts (g, filename,\n"
36356 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36357 "                         -1);\n"
36358 "\n"
36359
36360 #. type: textblock
36361 #: ../src/guestfs.pod:137
36362 msgid "You can add a disk read-only using:"
36363 msgstr "Ви можете додати диск у режимі лише читання:"
36364
36365 #. type: verbatim
36366 #: ../src/guestfs.pod:139
36367 #, no-wrap
36368 msgid ""
36369 " guestfs_add_drive_opts (g, filename,\n"
36370 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36371 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36372 "                         -1);\n"
36373 "\n"
36374 msgstr ""
36375 " guestfs_add_drive_opts (g, filename,\n"
36376 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36377 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36378 "                         -1);\n"
36379 "\n"
36380
36381 #. type: textblock
36382 #: ../src/guestfs.pod:144
36383 msgid ""
36384 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
36385 "libguestfs won't modify the file."
36386 msgstr ""
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:147
36390 msgid ""
36391 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36392 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
36393 "corruption, but adding it read-only is safe."
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:151
36398 msgid ""
36399 "You must add at least one disk image, and you may add multiple disk images.  "
36400 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36401 "first one you added), C</dev/sdb> (for the second one you added), etc."
36402 msgstr ""
36403
36404 #. type: textblock
36405 #: ../src/guestfs.pod:156
36406 msgid ""
36407 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
36408 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36409 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
36410 msgstr ""
36411
36412 #. type: =head2
36413 #: ../src/guestfs.pod:161
36414 msgid "MOUNTING"
36415 msgstr "МОНТУВАННЯ"
36416
36417 #. type: textblock
36418 #: ../src/guestfs.pod:163
36419 msgid ""
36420 "Before you can read or write files, create directories and so on in a disk "
36421 "image that contains filesystems, you have to mount those filesystems using "
36422 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
36423 "a disk image contains (for example) one partition with a filesystem on that "
36424 "partition, then you can mount it directly:"
36425 msgstr ""
36426
36427 #. type: verbatim
36428 #: ../src/guestfs.pod:170
36429 #, no-wrap
36430 msgid ""
36431 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36432 "\n"
36433 msgstr ""
36434 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36435 "\n"
36436
36437 #. type: textblock
36438 #: ../src/guestfs.pod:172
36439 msgid ""
36440 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36441 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
36442 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
36443 "that these are libguestfs virtual devices, and are nothing to do with host "
36444 "devices."
36445 msgstr ""
36446
36447 #. type: textblock
36448 #: ../src/guestfs.pod:178
36449 msgid ""
36450 "If you are given a disk image and you don't know what it contains then you "
36451 "have to find out.  Libguestfs can do that too: use L</"
36452 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36453 "LVs, and either try mounting each to see what is mountable, or else examine "
36454 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
36455 "filesystems, use L</guestfs_list_filesystems>."
36456 msgstr ""
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:186
36460 msgid ""
36461 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36462 "L</INSPECTION> below).  But you might find it easier to look at higher level "
36463 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36464 msgstr ""
36465
36466 #. type: textblock
36467 #: ../src/guestfs.pod:191
36468 msgid ""
36469 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
36470 "several other variations of the C<guestfs_mount_*> call."
36471 msgstr ""
36472
36473 #. type: =head2
36474 #: ../src/guestfs.pod:194
36475 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36476 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:196
36480 msgid ""
36481 "The majority of the libguestfs API consists of fairly low-level calls for "
36482 "accessing and modifying the files, directories, symlinks etc on mounted "
36483 "filesystems.  There are over a hundred such calls which you can find listed "
36484 "in detail below in this man page, and we don't even pretend to cover them "
36485 "all in this overview."
36486 msgstr ""
36487
36488 #. type: textblock
36489 #: ../src/guestfs.pod:202
36490 msgid ""
36491 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36492 "mount point."
36493 msgstr ""
36494 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
36495 "точкою монтування."
36496
36497 #. type: textblock
36498 #: ../src/guestfs.pod:205
36499 msgid ""
36500 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36501 "the file called C<\"etc/passwd\"> then you could do:"
36502 msgstr ""
36503 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
36504 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
36505 "таким кодом:"
36506
36507 #. type: verbatim
36508 #: ../src/guestfs.pod:208
36509 #, no-wrap
36510 msgid ""
36511 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36512 "\n"
36513 msgstr ""
36514 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36515 "\n"
36516
36517 #. type: textblock
36518 #: ../src/guestfs.pod:210
36519 msgid ""
36520 "This would return C<data> as a newly allocated buffer containing the full "
36521 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36522 "or C<NULL> if there was an error."
36523 msgstr ""
36524
36525 #. type: textblock
36526 #: ../src/guestfs.pod:214
36527 msgid ""
36528 "As another example, to create a top-level directory on that filesystem "
36529 "called C<\"var\"> you would do:"
36530 msgstr ""
36531
36532 #. type: verbatim
36533 #: ../src/guestfs.pod:217
36534 #, no-wrap
36535 msgid ""
36536 " guestfs_mkdir (g, \"/var\");\n"
36537 "\n"
36538 msgstr ""
36539 " guestfs_mkdir (g, \"/var\");\n"
36540 "\n"
36541
36542 #. type: textblock
36543 #: ../src/guestfs.pod:219
36544 msgid "To create a symlink you could do:"
36545 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
36546
36547 #. type: verbatim
36548 #: ../src/guestfs.pod:221
36549 #, no-wrap
36550 msgid ""
36551 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36552 "               \"/etc/rc3.d/S30portmap\");\n"
36553 "\n"
36554 msgstr ""
36555 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36556 "               \"/etc/rc3.d/S30portmap\");\n"
36557 "\n"
36558
36559 #. type: textblock
36560 #: ../src/guestfs.pod:224
36561 msgid ""
36562 "Libguestfs will reject attempts to use relative paths and there is no "
36563 "concept of a current working directory."
36564 msgstr ""
36565
36566 #. type: textblock
36567 #: ../src/guestfs.pod:227
36568 msgid ""
36569 "Libguestfs can return errors in many situations: for example if the "
36570 "filesystem isn't writable, or if a file or directory that you requested "
36571 "doesn't exist.  If you are using the C API (documented here)  you have to "
36572 "check for those error conditions after each call.  (Other language bindings "
36573 "turn these errors into exceptions)."
36574 msgstr ""
36575
36576 #. type: textblock
36577 #: ../src/guestfs.pod:233
36578 msgid ""
36579 "File writes are affected by the per-handle umask, set by calling L</"
36580 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
36581 msgstr ""
36582
36583 #. type: =head2
36584 #: ../src/guestfs.pod:236
36585 msgid "PARTITIONING"
36586 msgstr "ПОДІЛ НА РОЗДІЛИ"
36587
36588 #. type: textblock
36589 #: ../src/guestfs.pod:238
36590 msgid ""
36591 "Libguestfs contains API calls to read, create and modify partition tables on "
36592 "disk images."
36593 msgstr ""
36594
36595 #. type: textblock
36596 #: ../src/guestfs.pod:241
36597 msgid ""
36598 "In the common case where you want to create a single partition covering the "
36599 "whole disk, you should use the L</guestfs_part_disk> call:"
36600 msgstr ""
36601
36602 #. type: verbatim
36603 #: ../src/guestfs.pod:245
36604 #, no-wrap
36605 msgid ""
36606 " const char *parttype = \"mbr\";\n"
36607 " if (disk_is_larger_than_2TB)\n"
36608 "   parttype = \"gpt\";\n"
36609 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36610 "\n"
36611 msgstr ""
36612 " const char *parttype = \"mbr\";\n"
36613 " if (disk_is_larger_than_2TB)\n"
36614 "   parttype = \"gpt\";\n"
36615 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36616 "\n"
36617
36618 #. type: textblock
36619 #: ../src/guestfs.pod:250
36620 msgid ""
36621 "Obviously this effectively wipes anything that was on that disk image before."
36622 msgstr ""
36623
36624 #. type: =head2
36625 #: ../src/guestfs.pod:253
36626 msgid "LVM2"
36627 msgstr "LVM2"
36628
36629 #. type: textblock
36630 #: ../src/guestfs.pod:255
36631 msgid ""
36632 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36633 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36634 "you familiarize yourself with the concepts of physical volumes, volume "
36635 "groups and logical volumes."
36636 msgstr ""
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:260
36640 msgid ""
36641 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36642 "tldp.org/HOWTO/LVM-HOWTO/>."
36643 msgstr ""
36644
36645 #. type: =head2
36646 #: ../src/guestfs.pod:263
36647 msgid "DOWNLOADING"
36648 msgstr "ОТРИМАННЯ ДАНИХ"
36649
36650 #. type: textblock
36651 #: ../src/guestfs.pod:265
36652 msgid ""
36653 "Use L</guestfs_cat> to download small, text only files.  This call is "
36654 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36655 "NUL (C<\\0>) characters.  However the API is very simple to use."
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:269
36660 msgid ""
36661 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36662 "bit data, since it returns a (pointer, size) pair.  However it is still "
36663 "limited to \"small\" files, less than 2 MB."
36664 msgstr ""
36665
36666 #. type: textblock
36667 #: ../src/guestfs.pod:273
36668 msgid ""
36669 "L</guestfs_download> can be used to download any file, with no limits on "
36670 "content or size (even files larger than 4 GB)."
36671 msgstr ""
36672
36673 #. type: textblock
36674 #: ../src/guestfs.pod:276
36675 msgid ""
36676 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36677 msgstr ""
36678
36679 #. type: =head2
36680 #: ../src/guestfs.pod:279
36681 msgid "UPLOADING"
36682 msgstr "ВИВАНТАЖЕННЯ"
36683
36684 #. type: textblock
36685 #: ../src/guestfs.pod:281
36686 msgid ""
36687 "It's often the case that you want to write a file or files to the disk image."
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../src/guestfs.pod:284
36692 msgid ""
36693 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36694 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36695 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36696 "of other functions for creating test files, for example L</guestfs_fill> and "
36697 "L</guestfs_fill_pattern>."
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:290
36702 msgid ""
36703 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36704 "file content or size (even files larger than 4 GB)."
36705 msgstr ""
36706
36707 #. type: textblock
36708 #: ../src/guestfs.pod:293
36709 msgid ""
36710 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36711 msgstr ""
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:295
36715 msgid ""
36716 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36717 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36718 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36719 "in a predictable way (eg. adding it last after all other drives) then you "
36720 "can get the device name from L</guestfs_list_devices> and mount it directly "
36721 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36722 "portable between kernel versions, and they don't support labels or UUIDs.  "
36723 "If you want to pre-build an image or you need to mount it using a label or "
36724 "UUID, use an ISO image instead."
36725 msgstr ""
36726
36727 #. type: =head2
36728 #: ../src/guestfs.pod:306
36729 msgid "COPYING"
36730 msgstr "КОПІЮВАННЯ"
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:308
36734 msgid ""
36735 "There are various different commands for copying between files and devices "
36736 "and in and out of the guest filesystem.  These are summarised in the table "
36737 "below."
36738 msgstr ""
36739
36740 #. type: =item
36741 #: ../src/guestfs.pod:314
36742 msgid "B<file> to B<file>"
36743 msgstr "B<файл> у B<файл>"
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:316
36747 msgid ""
36748 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36749 "directories recursively."
36750 msgstr ""
36751
36752 #. type: textblock
36753 #: ../src/guestfs.pod:319
36754 msgid ""
36755 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36756 msgstr ""
36757
36758 #. type: =item
36759 #: ../src/guestfs.pod:322
36760 msgid "B<file> to B<device>"
36761 msgstr ""
36762
36763 #. type: =item
36764 #: ../src/guestfs.pod:324
36765 msgid "B<device> to B<file>"
36766 msgstr ""
36767
36768 #. type: =item
36769 #: ../src/guestfs.pod:326
36770 msgid "B<device> to B<device>"
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:328
36775 msgid ""
36776 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36777 "guestfs_copy_device_to_device>."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../src/guestfs.pod:331
36782 msgid "Example: duplicate the contents of an LV:"
36783 msgstr ""
36784
36785 #. type: verbatim
36786 #: ../src/guestfs.pod:333
36787 #, no-wrap
36788 msgid ""
36789 " guestfs_copy_device_to_device (g,\n"
36790 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36791 "         /* -1 marks the end of the list of optional parameters */\n"
36792 "         -1);\n"
36793 "\n"
36794 msgstr ""
36795
36796 #. type: textblock
36797 #: ../src/guestfs.pod:338
36798 msgid ""
36799 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36800 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36801 "optional C<size> parameter:"
36802 msgstr ""
36803
36804 #. type: verbatim
36805 #: ../src/guestfs.pod:342
36806 #, no-wrap
36807 msgid ""
36808 " guestfs_copy_device_to_device (g,\n"
36809 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36810 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36811 "         -1);\n"
36812 "\n"
36813 msgstr ""
36814
36815 #. type: =item
36816 #: ../src/guestfs.pod:347
36817 msgid "B<file on the host> to B<file or device>"
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../src/guestfs.pod:349
36822 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36823 msgstr ""
36824
36825 #. type: =item
36826 #: ../src/guestfs.pod:351
36827 msgid "B<file or device> to B<file on the host>"
36828 msgstr ""
36829
36830 #. type: textblock
36831 #: ../src/guestfs.pod:353
36832 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36833 msgstr ""
36834
36835 #. type: =head2
36836 #: ../src/guestfs.pod:357
36837 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36838 msgstr ""
36839
36840 #. type: textblock
36841 #: ../src/guestfs.pod:359
36842 msgid ""
36843 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36844 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36845 "appears you can only upload and download to files.  However many Un*x-like "
36846 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36847 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36848 "and arbitrary file descriptor N."
36849 msgstr ""
36850
36851 #. type: textblock
36852 #: ../src/guestfs.pod:367
36853 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36854 msgstr ""
36855
36856 #. type: verbatim
36857 #: ../src/guestfs.pod:370
36858 #, no-wrap
36859 msgid ""
36860 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36861 "\n"
36862 msgstr ""
36863 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36864 "\n"
36865
36866 #. type: textblock
36867 #: ../src/guestfs.pod:372
36868 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36869 msgstr ""
36870
36871 #. type: verbatim
36872 #: ../src/guestfs.pod:374
36873 #, no-wrap
36874 msgid ""
36875 " char devfd[64];\n"
36876 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36877 " guestfs_tar_out (g, \"/\", devfd);\n"
36878 "\n"
36879 msgstr ""
36880 " char devfd[64];\n"
36881 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36882 " guestfs_tar_out (g, \"/\", devfd);\n"
36883 "\n"
36884
36885 #. type: =head2
36886 #: ../src/guestfs.pod:378
36887 msgid "LISTING FILES"
36888 msgstr "СПИСКИ ФАЙЛІВ"
36889
36890 #. type: textblock
36891 #: ../src/guestfs.pod:380
36892 msgid ""
36893 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36894 "L<guestfish(1)>-equivalent command C<ll>)."
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../src/guestfs.pod:383
36899 msgid ""
36900 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36901 "programs, as a flat list of strings."
36902 msgstr ""
36903
36904 #. type: textblock
36905 #: ../src/guestfs.pod:386
36906 msgid ""
36907 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36908 "directory, plus additional information about each one.  It is more "
36909 "equivalent to using the L<readdir(3)> call on a local filesystem."
36910 msgstr ""
36911
36912 #. type: textblock
36913 #: ../src/guestfs.pod:390
36914 msgid ""
36915 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36916 msgstr ""
36917
36918 #. type: =head2
36919 #: ../src/guestfs.pod:393
36920 msgid "RUNNING COMMANDS"
36921 msgstr "ВИКОНАННЯ КОМАНД"
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:395
36925 msgid ""
36926 "Although libguestfs is primarily an API for manipulating files inside guest "
36927 "images, we also provide some limited facilities for running commands inside "
36928 "guests."
36929 msgstr ""
36930
36931 #. type: textblock
36932 #: ../src/guestfs.pod:399
36933 msgid "There are many limitations to this:"
36934 msgstr ""
36935
36936 #. type: textblock
36937 #: ../src/guestfs.pod:405
36938 msgid ""
36939 "The kernel version that the command runs under will be different from what "
36940 "it expects."
36941 msgstr ""
36942
36943 #. type: textblock
36944 #: ../src/guestfs.pod:410
36945 msgid ""
36946 "If the command needs to communicate with daemons, then most likely they "
36947 "won't be running."
36948 msgstr ""
36949
36950 #. type: textblock
36951 #: ../src/guestfs.pod:415
36952 msgid "The command will be running in limited memory."
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:419
36957 msgid ""
36958 "The network may not be available unless you enable it (see L</"
36959 "guestfs_set_network>)."
36960 msgstr ""
36961
36962 #. type: textblock
36963 #: ../src/guestfs.pod:424
36964 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36965 msgstr ""
36966
36967 #. type: textblock
36968 #: ../src/guestfs.pod:428
36969 msgid ""
36970 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36971 msgstr ""
36972
36973 #. type: textblock
36974 #: ../src/guestfs.pod:433
36975 msgid ""
36976 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36977 "See L</SELINUX> in this manpage."
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:438
36982 msgid ""
36983 "I<Security:> It is not safe to run commands from untrusted, possibly "
36984 "malicious guests.  These commands may attempt to exploit your program by "
36985 "sending unexpected output.  They could also try to exploit the Linux kernel "
36986 "or qemu provided by the libguestfs appliance.  They could use the network "
36987 "provided by the libguestfs appliance to bypass ordinary network partitions "
36988 "and firewalls.  They could use the elevated privileges or different SELinux "
36989 "context of your program to their advantage."
36990 msgstr ""
36991
36992 #. type: textblock
36993 #: ../src/guestfs.pod:447
36994 msgid ""
36995 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36996 "(a script which runs when the guest next boots normally), and to have this "
36997 "script run the commands you want in the normal context of the running guest, "
36998 "network security and so on.  For information about other security issues, "
36999 "see L</SECURITY>."
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../src/guestfs.pod:455
37004 msgid ""
37005 "The two main API calls to run commands are L</guestfs_command> and L</"
37006 "guestfs_sh> (there are also variations)."
37007 msgstr ""
37008
37009 #. type: textblock
37010 #: ../src/guestfs.pod:458
37011 msgid ""
37012 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
37013 "shell globs, redirections, etc will work."
37014 msgstr ""
37015
37016 #. type: =head2
37017 #: ../src/guestfs.pod:461
37018 msgid "CONFIGURATION FILES"
37019 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
37020
37021 #. type: textblock
37022 #: ../src/guestfs.pod:463
37023 msgid ""
37024 "To read and write configuration files in Linux guest filesystems, we "
37025 "strongly recommend using Augeas.  For example, Augeas understands how to "
37026 "read and write, say, a Linux shadow password file or X.org configuration "
37027 "file, and so avoids you having to write that code."
37028 msgstr ""
37029
37030 #. type: textblock
37031 #: ../src/guestfs.pod:468
37032 msgid ""
37033 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
37034 "document Augeas itself here because there is excellent documentation on the "
37035 "L<http://augeas.net/> website."
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../src/guestfs.pod:472
37040 msgid ""
37041 "If you don't want to use Augeas (you fool!) then try calling L</"
37042 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
37043 "over."
37044 msgstr ""
37045
37046 #. type: =head2
37047 #: ../src/guestfs.pod:476
37048 msgid "SELINUX"
37049 msgstr "SELINUX"
37050
37051 #. type: textblock
37052 #: ../src/guestfs.pod:478
37053 msgid ""
37054 "We support SELinux guests.  To ensure that labeling happens correctly in "
37055 "SELinux guests, you need to enable SELinux and load the guest's policy:"
37056 msgstr ""
37057
37058 #. type: textblock
37059 #: ../src/guestfs.pod:486
37060 msgid "Before launching, do:"
37061 msgstr ""
37062
37063 #. type: verbatim
37064 #: ../src/guestfs.pod:488
37065 #, no-wrap
37066 msgid ""
37067 " guestfs_set_selinux (g, 1);\n"
37068 "\n"
37069 msgstr ""
37070 " guestfs_set_selinux (g, 1);\n"
37071 "\n"
37072
37073 #. type: textblock
37074 #: ../src/guestfs.pod:492
37075 msgid ""
37076 "After mounting the guest's filesystem(s), load the policy.  This is best "
37077 "done by running the L<load_policy(8)> command in the guest itself:"
37078 msgstr ""
37079
37080 #. type: verbatim
37081 #: ../src/guestfs.pod:496
37082 #, no-wrap
37083 msgid ""
37084 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37085 "\n"
37086 msgstr ""
37087 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
37088 "\n"
37089
37090 #. type: textblock
37091 #: ../src/guestfs.pod:498
37092 msgid ""
37093 "(Older versions of C<load_policy> require you to specify the name of the "
37094 "policy file)."
37095 msgstr ""
37096
37097 #. type: textblock
37098 #: ../src/guestfs.pod:503
37099 msgid ""
37100 "Optionally, set the security context for the API.  The correct security "
37101 "context to use can only be known by inspecting the guest.  As an example:"
37102 msgstr ""
37103
37104 #. type: verbatim
37105 #: ../src/guestfs.pod:507
37106 #, no-wrap
37107 msgid ""
37108 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37109 "\n"
37110 msgstr ""
37111 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
37112 "\n"
37113
37114 #. type: textblock
37115 #: ../src/guestfs.pod:511
37116 msgid "This will work for running commands and editing existing files."
37117 msgstr ""
37118
37119 #. type: textblock
37120 #: ../src/guestfs.pod:513
37121 msgid ""
37122 "When new files are created, you may need to label them explicitly, for "
37123 "example by running the external command C<restorecon pathname>."
37124 msgstr ""
37125
37126 #. type: =head2
37127 #: ../src/guestfs.pod:517
37128 msgid "UMASK"
37129 msgstr "UMASK"
37130
37131 #. type: textblock
37132 #: ../src/guestfs.pod:519
37133 msgid ""
37134 "Certain calls are affected by the current file mode creation mask (the "
37135 "\"umask\").  In particular ones which create files or directories, such as "
37136 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
37137 "either the default mode that the file is created with or modifies the mode "
37138 "that you supply."
37139 msgstr ""
37140
37141 #. type: textblock
37142 #: ../src/guestfs.pod:525
37143 msgid ""
37144 "The default umask is C<022>, so files are created with modes such as C<0644> "
37145 "and directories with C<0755>."
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:528
37150 msgid ""
37151 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
37152 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
37153 "guestfs_chmod> after creating each file or directory."
37154 msgstr ""
37155
37156 #. type: textblock
37157 #: ../src/guestfs.pod:532
37158 msgid "For more information about umask, see L<umask(2)>."
37159 msgstr ""
37160
37161 #. type: textblock
37162 #: ../src/guestfs.pod:536
37163 msgid ""
37164 "Libguestfs allows you to access Linux guests which have been encrypted using "
37165 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
37166 "standard.  This includes nearly all whole disk encryption systems used by "
37167 "modern Linux guests."
37168 msgstr ""
37169
37170 #. type: textblock
37171 #: ../src/guestfs.pod:542
37172 msgid ""
37173 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
37174 "returns the string C<crypto_LUKS>)."
37175 msgstr ""
37176
37177 #. type: textblock
37178 #: ../src/guestfs.pod:545
37179 msgid ""
37180 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
37181 "will require the passphrase!"
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:548
37186 msgid ""
37187 "Opening a LUKS device creates a new device mapper device called C</dev/"
37188 "mapper/mapname> (where C<mapname> is the string you supply to L</"
37189 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
37190 "from and encrypted to the underlying block device respectively."
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../src/guestfs.pod:554
37195 msgid ""
37196 "LVM volume groups on the device can be made visible by calling L</"
37197 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
37198 "(s) can now be mounted in the usual way."
37199 msgstr ""
37200
37201 #. type: textblock
37202 #: ../src/guestfs.pod:558
37203 msgid ""
37204 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
37205 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
37206 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
37207 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
37208 "underlying encrypted block device)."
37209 msgstr ""
37210
37211 #. type: =head2
37212 #: ../src/guestfs.pod:565
37213 msgid "INSPECTION"
37214 msgstr "ПЕРЕВІРКА"
37215
37216 #. type: textblock
37217 #: ../src/guestfs.pod:567
37218 msgid ""
37219 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
37220 "contains operating systems, an install CD or a live CD.  (These APIs used to "
37221 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
37222 "version 1.5.3 the most frequently used part of this library has been "
37223 "rewritten in C and moved into the core code)."
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:574
37228 msgid ""
37229 "Add all disks belonging to the unknown virtual machine and call L</"
37230 "guestfs_launch> in the usual way."
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:577
37235 msgid ""
37236 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
37237 "and certain heuristics, and returns a list of operating systems that were "
37238 "found.  An empty list means none were found.  A single element is the root "
37239 "filesystem of the operating system.  For dual- or multi-boot guests, "
37240 "multiple roots can be returned, each one corresponding to a separate "
37241 "operating system.  (Multi-boot virtual machines are extremely rare in the "
37242 "world of virtualization, but since this scenario can happen, we have built "
37243 "libguestfs to deal with it.)"
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../src/guestfs.pod:586
37248 msgid ""
37249 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
37250 "to get additional details about that operating system.  For example, call L</"
37251 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
37252 "Windows and Linux-based operating systems respectively."
37253 msgstr ""
37254
37255 #. type: textblock
37256 #: ../src/guestfs.pod:592
37257 msgid ""
37258 "Un*x-like and Linux-based operating systems usually consist of several "
37259 "filesystems which are mounted at boot time (for example, a separate boot "
37260 "partition mounted on C</boot>).  The inspection rules are able to detect how "
37261 "filesystems correspond to mount points.  Call "
37262 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
37263 "hash table like this example:"
37264 msgstr ""
37265
37266 #. type: verbatim
37267 #: ../src/guestfs.pod:599
37268 #, no-wrap
37269 msgid ""
37270 " /boot => /dev/sda1\n"
37271 " /     => /dev/vg_guest/lv_root\n"
37272 " /usr  => /dev/vg_guest/lv_usr\n"
37273 "\n"
37274 msgstr ""
37275 " /boot => /dev/sda1\n"
37276 " /     => /dev/vg_guest/lv_root\n"
37277 " /usr  => /dev/vg_guest/lv_usr\n"
37278 "\n"
37279
37280 #. type: textblock
37281 #: ../src/guestfs.pod:603
37282 msgid ""
37283 "The caller can then make calls to L</guestfs_mount_options> to mount the "
37284 "filesystems as suggested."
37285 msgstr ""
37286
37287 #. type: textblock
37288 #: ../src/guestfs.pod:606
37289 msgid ""
37290 "Be careful to mount filesystems in the right order (eg. C</> before C</"
37291 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
37292 msgstr ""
37293
37294 #. type: textblock
37295 #: ../src/guestfs.pod:610
37296 msgid ""
37297 "Inspection currently only works for some common operating systems.  "
37298 "Contributors are welcome to send patches for other operating systems that we "
37299 "currently cannot detect."
37300 msgstr ""
37301
37302 #. type: textblock
37303 #: ../src/guestfs.pod:614
37304 msgid ""
37305 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
37306 "for more details.  The L</guestfs_inspect_os> function just ignores any "
37307 "encrypted devices."
37308 msgstr ""
37309
37310 #. type: textblock
37311 #: ../src/guestfs.pod:618
37312 msgid ""
37313 "A note on the implementation: The call L</guestfs_inspect_os> performs "
37314 "inspection and caches the results in the guest handle.  Subsequent calls to "
37315 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
37316 "read the disks.  If you change the content of the guest disks, you can redo "
37317 "inspection by calling L</guestfs_inspect_os> again.  (L</"
37318 "guestfs_inspect_list_applications> works a little differently from the other "
37319 "calls and does read the disks.  See documentation for that function for "
37320 "details)."
37321 msgstr ""
37322
37323 #. type: =head3
37324 #: ../src/guestfs.pod:627
37325 msgid "INSPECTING INSTALL DISKS"
37326 msgstr ""
37327
37328 #. type: textblock
37329 #: ../src/guestfs.pod:629
37330 msgid ""
37331 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
37332 "CDs and more."
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:632
37337 msgid ""
37338 "Call L</guestfs_inspect_get_format> to return the format of the operating "
37339 "system, which currently can be C<installed> (a regular operating system) or "
37340 "C<installer> (some sort of install disk)."
37341 msgstr ""
37342
37343 #. type: textblock
37344 #: ../src/guestfs.pod:636
37345 msgid ""
37346 "Further information is available about the operating system that can be "
37347 "installed using the regular inspection APIs like L</"
37348 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:641
37353 msgid ""
37354 "Some additional information specific to installer disks is also available "
37355 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
37356 "guestfs_inspect_is_multipart> calls."
37357 msgstr ""
37358
37359 #. type: =head2
37360 #: ../src/guestfs.pod:646
37361 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
37362 msgstr ""
37363
37364 #. type: textblock
37365 #: ../src/guestfs.pod:648
37366 msgid ""
37367 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
37368 "ntfs-3g.org/> driver."
37369 msgstr ""
37370
37371 #. type: =head3
37372 #: ../src/guestfs.pod:651
37373 msgid "DRIVE LETTERS AND PATHS"
37374 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:653
37378 msgid ""
37379 "DOS and Windows still use drive letters, and the filesystems are always "
37380 "treated as case insensitive by Windows itself, and therefore you might find "
37381 "a Windows configuration file referring to a path like C<c:\\windows"
37382 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
37383 "might be referred to as C</WINDOWS/System32>."
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:659
37388 msgid ""
37389 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37390 "L</guestfs_inspect_get_drive_mappings>)"
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:662
37395 msgid ""
37396 "Dealing with separator characters (backslash vs forward slash) is outside "
37397 "the scope of libguestfs, but usually a simple character replacement will "
37398 "work."
37399 msgstr ""
37400
37401 #. type: textblock
37402 #: ../src/guestfs.pod:666
37403 msgid ""
37404 "To resolve the case insensitivity of paths, call L</"
37405 "guestfs_case_sensitive_path>."
37406 msgstr ""
37407
37408 #. type: =head3
37409 #: ../src/guestfs.pod:669
37410 msgid "ACCESSING THE WINDOWS REGISTRY"
37411 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
37412
37413 #. type: textblock
37414 #: ../src/guestfs.pod:671
37415 msgid ""
37416 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37417 "files, through the library C<hivex> which is part of the libguestfs project "
37418 "although ships as a separate tarball.  You have to locate and download the "
37419 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
37420 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37421 "reg(1)> for more help on this issue."
37422 msgstr ""
37423
37424 #. type: =head3
37425 #: ../src/guestfs.pod:679
37426 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37427 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
37428
37429 #. type: textblock
37430 #: ../src/guestfs.pod:681
37431 msgid ""
37432 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37433 "provide something which looks like a Linux symlink.  The way it tries to do "
37434 "the rewriting is described here:"
37435 msgstr ""
37436
37437 #. type: textblock
37438 #: ../src/guestfs.pod:685
37439 msgid ""
37440 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37441 "symbolic-links/>"
37442 msgstr ""
37443 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37444 "symbolic-links/>"
37445
37446 #. type: textblock
37447 #: ../src/guestfs.pod:687
37448 msgid ""
37449 "The essential problem is that ntfs-3g simply does not have enough "
37450 "information to do a correct job.  NTFS links can contain drive letters and "
37451 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
37452 "It is almost certainly the case that libguestfs callers should ignore what "
37453 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37454 msgstr ""
37455
37456 #. type: textblock
37457 #: ../src/guestfs.pod:694
37458 msgid ""
37459 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37460 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37461 "attribute, and read the raw reparse data from that (you can find the format "
37462 "documented in various places around the web)."
37463 msgstr ""
37464
37465 #. type: =head3
37466 #: ../src/guestfs.pod:699
37467 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../src/guestfs.pod:701
37472 msgid ""
37473 "There are other useful extended attributes that can be read from ntfs-3g "
37474 "filesystems (using L</guestfs_getxattr>).  See:"
37475 msgstr ""
37476
37477 #. type: textblock
37478 #: ../src/guestfs.pod:704
37479 msgid ""
37480 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37481 msgstr ""
37482 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37483
37484 #. type: =head2
37485 #: ../src/guestfs.pod:706
37486 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37487 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
37488
37489 #. type: textblock
37490 #: ../src/guestfs.pod:708
37491 msgid ""
37492 "Although we don't want to discourage you from using the C API, we will "
37493 "mention here that the same API is also available in other languages."
37494 msgstr ""
37495
37496 #. type: textblock
37497 #: ../src/guestfs.pod:711
37498 msgid ""
37499 "The API is broadly identical in all supported languages.  This means that "
37500 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37501 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37502 "OCaml.  In other words, a straightforward, predictable isomorphism between "
37503 "each language."
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../src/guestfs.pod:717
37508 msgid ""
37509 "Error messages are automatically transformed into exceptions if the language "
37510 "supports it."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:720
37515 msgid ""
37516 "We don't try to \"object orientify\" parts of the API in OO languages, "
37517 "although contributors are welcome to write higher level APIs above what we "
37518 "provide in their favourite languages if they wish."
37519 msgstr ""
37520
37521 #. type: =item
37522 #: ../src/guestfs.pod:726
37523 msgid "B<C++>"
37524 msgstr "B<C++>"
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:728
37528 msgid ""
37529 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
37530 "identical to the C API.  C++ classes and exceptions are not used."
37531 msgstr ""
37532
37533 #. type: =item
37534 #: ../src/guestfs.pod:732
37535 msgid "B<C#>"
37536 msgstr "B<C#>"
37537
37538 #. type: textblock
37539 #: ../src/guestfs.pod:734
37540 msgid ""
37541 "The C# bindings are highly experimental.  Please read the warnings at the "
37542 "top of C<csharp/Libguestfs.cs>."
37543 msgstr ""
37544
37545 #. type: =item
37546 #: ../src/guestfs.pod:737
37547 msgid "B<Erlang>"
37548 msgstr ""
37549
37550 #. type: textblock
37551 #: ../src/guestfs.pod:739
37552 msgid "See L<guestfs-erlang(3)>."
37553 msgstr ""
37554
37555 #. type: =item
37556 #: ../src/guestfs.pod:741
37557 msgid "B<Haskell>"
37558 msgstr "B<Haskell>"
37559
37560 #. type: textblock
37561 #: ../src/guestfs.pod:743
37562 msgid ""
37563 "This is the only language binding that is working but incomplete.  Only "
37564 "calls which return simple integers have been bound in Haskell, and we are "
37565 "looking for help to complete this binding."
37566 msgstr ""
37567
37568 #. type: =item
37569 #: ../src/guestfs.pod:747
37570 msgid "B<Java>"
37571 msgstr "B<Java>"
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:749
37575 msgid ""
37576 "Full documentation is contained in the Javadoc which is distributed with "
37577 "libguestfs.  For examples, see L<guestfs-java(3)>."
37578 msgstr ""
37579
37580 #. type: =item
37581 #: ../src/guestfs.pod:752
37582 msgid "B<OCaml>"
37583 msgstr "B<OCaml>"
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:754
37587 msgid "See L<guestfs-ocaml(3)>."
37588 msgstr "Див. L<guestfs-ocaml(3)>."
37589
37590 #. type: =item
37591 #: ../src/guestfs.pod:756
37592 msgid "B<Perl>"
37593 msgstr "B<Perl>"
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:758
37597 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37598 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
37599
37600 #. type: =item
37601 #: ../src/guestfs.pod:760
37602 msgid "B<PHP>"
37603 msgstr "B<PHP>"
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:762
37607 msgid ""
37608 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37609 "the php-libguestfs package for your distribution."
37610 msgstr ""
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:765
37614 msgid "The PHP binding only works correctly on 64 bit machines."
37615 msgstr ""
37616
37617 #. type: =item
37618 #: ../src/guestfs.pod:767
37619 msgid "B<Python>"
37620 msgstr "B<Python>"
37621
37622 #. type: textblock
37623 #: ../src/guestfs.pod:769
37624 msgid "See L<guestfs-python(3)>."
37625 msgstr "Див. L<guestfs-python(3)>."
37626
37627 #. type: =item
37628 #: ../src/guestfs.pod:771
37629 msgid "B<Ruby>"
37630 msgstr "B<Ruby>"
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:773
37634 msgid "See L<guestfs-ruby(3)>."
37635 msgstr "Див. L<guestfs-ruby(3)>."
37636
37637 #. type: =item
37638 #: ../src/guestfs.pod:775
37639 msgid "B<shell scripts>"
37640 msgstr "B<скрипти оболонки>"
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:777
37644 msgid "See L<guestfish(1)>."
37645 msgstr "Див. L<guestfish(1)>."
37646
37647 #. type: =head2
37648 #: ../src/guestfs.pod:781
37649 msgid "LIBGUESTFS GOTCHAS"
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../src/guestfs.pod:783
37654 msgid ""
37655 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37656 "system [...] that works in the way it is documented but is counterintuitive "
37657 "and almost invites mistakes.\""
37658 msgstr ""
37659
37660 #. type: textblock
37661 #: ../src/guestfs.pod:787
37662 msgid ""
37663 "Since we developed libguestfs and the associated tools, there are several "
37664 "things we would have designed differently, but are now stuck with for "
37665 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37666 "release, you can expect these to change.  Beware of them."
37667 msgstr ""
37668
37669 #. type: =item
37670 #: ../src/guestfs.pod:795
37671 msgid "Autosync / forgetting to sync."
37672 msgstr ""
37673
37674 #. type: textblock
37675 #: ../src/guestfs.pod:797
37676 msgid ""
37677 "I<Update:> Autosync is enabled by default for all API users starting from "
37678 "libguestfs 1.5.24.  This section only applies to older versions."
37679 msgstr ""
37680
37681 #. type: textblock
37682 #: ../src/guestfs.pod:800
37683 msgid ""
37684 "When modifying a filesystem from C or another language, you B<must> unmount "
37685 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37686 "libguestfs handle.  You can also call:"
37687 msgstr ""
37688
37689 #. type: verbatim
37690 #: ../src/guestfs.pod:804
37691 #, no-wrap
37692 msgid ""
37693 " guestfs_set_autosync (g, 1);\n"
37694 "\n"
37695 msgstr ""
37696 " guestfs_set_autosync (g, 1);\n"
37697 "\n"
37698
37699 #. type: textblock
37700 #: ../src/guestfs.pod:806
37701 msgid ""
37702 "to have the unmount/sync done automatically for you when the handle 'g' is "
37703 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37704 msgstr ""
37705
37706 #. type: textblock
37707 #: ../src/guestfs.pod:810
37708 msgid ""
37709 "If you forget to do this, then it is entirely possible that your changes "
37710 "won't be written out, or will be partially written, or (very rarely) that "
37711 "you'll get disk corruption."
37712 msgstr ""
37713
37714 #. type: textblock
37715 #: ../src/guestfs.pod:814
37716 msgid ""
37717 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37718 "guestfish scripts that forget to sync will work just fine, which can make "
37719 "this very puzzling if you are trying to debug a problem."
37720 msgstr ""
37721
37722 #. type: =item
37723 #: ../src/guestfs.pod:818
37724 msgid "Mount option C<-o sync> should not be the default."
37725 msgstr ""
37726
37727 #. type: textblock
37728 #: ../src/guestfs.pod:820
37729 msgid ""
37730 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37731 "libguestfs 1.13.16.  This section only applies to older versions."
37732 msgstr ""
37733
37734 #. type: textblock
37735 #: ../src/guestfs.pod:823
37736 msgid ""
37737 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37738 "However C<-o sync> does not add any reliability benefit, but does have a "
37739 "very large performance impact."
37740 msgstr ""
37741
37742 #. type: textblock
37743 #: ../src/guestfs.pod:827
37744 msgid ""
37745 "The work around is to use L</guestfs_mount_options> and set the mount "
37746 "options that you actually want to use."
37747 msgstr ""
37748
37749 #. type: =item
37750 #: ../src/guestfs.pod:830
37751 msgid "Read-only should be the default."
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:832
37756 msgid ""
37757 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37758 "specify I<--rw> if you want to make changes to the image."
37759 msgstr ""
37760
37761 #. type: textblock
37762 #: ../src/guestfs.pod:835
37763 msgid "This would reduce the potential to corrupt live VM images."
37764 msgstr ""
37765
37766 #. type: textblock
37767 #: ../src/guestfs.pod:837
37768 msgid ""
37769 "Note that many filesystems change the disk when you just mount and unmount, "
37770 "even if you didn't perform any writes.  You need to use L</"
37771 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37772 msgstr ""
37773
37774 #. type: =item
37775 #: ../src/guestfs.pod:841
37776 msgid "guestfish command line is hard to use."
37777 msgstr ""
37778
37779 #. type: textblock
37780 #: ../src/guestfs.pod:843
37781 msgid ""
37782 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37783 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37784 "exist, so it fails.  In earlier versions of guestfish the error message was "
37785 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37786 "we should have used C<guestfish -c command> to run commands."
37787 msgstr ""
37788
37789 #. type: =item
37790 #: ../src/guestfs.pod:850
37791 msgid "guestfish megabyte modifiers don't work right on all commands"
37792 msgstr ""
37793
37794 #. type: textblock
37795 #: ../src/guestfs.pod:852
37796 msgid ""
37797 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37798 "other modifiers).  What guestfish actually does is to multiply the number "
37799 "part by the modifier part and pass the result to the C API.  However this "
37800 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37801 "expecting some other unit (eg. megabytes)."
37802 msgstr ""
37803
37804 #. type: textblock
37805 #: ../src/guestfs.pod:859
37806 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37807 msgstr ""
37808
37809 #. type: verbatim
37810 #: ../src/guestfs.pod:861
37811 #, no-wrap
37812 msgid ""
37813 " lvcreate LV VG 100M\n"
37814 "\n"
37815 msgstr ""
37816 " lvcreate LV VG 100M\n"
37817 "\n"
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:863
37821 msgid ""
37822 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37823 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37824 "megabytes * megabytes) logical volume.  The error message you get from this "
37825 "is also a little obscure."
37826 msgstr ""
37827
37828 #. type: textblock
37829 #: ../src/guestfs.pod:868
37830 msgid ""
37831 "This could be fixed in the generator by specially marking parameters and "
37832 "return values which take bytes or other units."
37833 msgstr ""
37834
37835 #. type: =item
37836 #: ../src/guestfs.pod:871
37837 msgid "Ambiguity between devices and paths"
37838 msgstr ""
37839
37840 #. type: textblock
37841 #: ../src/guestfs.pod:873
37842 msgid ""
37843 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37844 "sdb2>) and a similar pathname.  A file might just happen to be called "
37845 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37846 msgstr ""
37847
37848 #. type: textblock
37849 #: ../src/guestfs.pod:878
37850 msgid ""
37851 "In the current API we usually resolve this ambiguity by having two separate "
37852 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37853 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37854 "detecting if the path supplied begins with C</dev/>."
37855 msgstr ""
37856
37857 #. type: textblock
37858 #: ../src/guestfs.pod:884
37859 msgid ""
37860 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37861 "make paths/devices into structured names.  One way to do this would be to "
37862 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37863 "aspect of grub.  Another way would be to use a structured type, equivalent "
37864 "to this OCaml type:"
37865 msgstr ""
37866
37867 #. type: verbatim
37868 #: ../src/guestfs.pod:890
37869 #, no-wrap
37870 msgid ""
37871 " type path = Path of string | Device of int | Partition of int * int\n"
37872 "\n"
37873 msgstr ""
37874
37875 #. type: textblock
37876 #: ../src/guestfs.pod:892
37877 msgid "which would allow you to pass arguments like:"
37878 msgstr ""
37879
37880 #. type: verbatim
37881 #: ../src/guestfs.pod:894
37882 #, no-wrap
37883 msgid ""
37884 " Path \"/foo/bar\"\n"
37885 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37886 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37887 " Path \"/dev/sdb2\"    (* not a device *)\n"
37888 "\n"
37889 msgstr ""
37890
37891 #. type: textblock
37892 #: ../src/guestfs.pod:899
37893 msgid ""
37894 "As you can see there are still problems to resolve even with this "
37895 "representation.  Also consider how it might work in guestfish."
37896 msgstr ""
37897
37898 #. type: =head2
37899 #: ../src/guestfs.pod:904
37900 msgid "KEYS AND PASSPHRASES"
37901 msgstr "КЛЮЧІ І ПАРОЛІ"
37902
37903 #. type: textblock
37904 #: ../src/guestfs.pod:906
37905 msgid ""
37906 "Certain libguestfs calls take a parameter that contains sensitive key "
37907 "material, passed in as a C string."
37908 msgstr ""
37909
37910 #. type: textblock
37911 #: ../src/guestfs.pod:909
37912 msgid ""
37913 "In the future we would hope to change the libguestfs implementation so that "
37914 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37915 "swap.  However this is I<not> done at the moment, because of the complexity "
37916 "of such an implementation."
37917 msgstr ""
37918
37919 #. type: textblock
37920 #: ../src/guestfs.pod:914
37921 msgid ""
37922 "Therefore you should be aware that any key parameter you pass to libguestfs "
37923 "might end up being written out to the swap partition.  If this is a concern, "
37924 "scrub the swap partition or don't use libguestfs on encrypted devices."
37925 msgstr ""
37926
37927 #. type: =head2
37928 #: ../src/guestfs.pod:919
37929 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37930 msgstr ""
37931
37932 #. type: textblock
37933 #: ../src/guestfs.pod:921
37934 msgid ""
37935 "All high-level libguestfs actions are synchronous.  If you want to use "
37936 "libguestfs asynchronously then you must create a thread."
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../src/guestfs.pod:924
37941 msgid ""
37942 "Only use the handle from a single thread.  Either use the handle exclusively "
37943 "from one thread, or provide your own mutex so that two threads cannot issue "
37944 "calls on the same handle at the same time."
37945 msgstr ""
37946
37947 #. type: textblock
37948 #: ../src/guestfs.pod:928
37949 msgid ""
37950 "See the graphical program guestfs-browser for one possible architecture for "
37951 "multithreaded programs using libvirt and libguestfs."
37952 msgstr ""
37953
37954 #. type: =head2
37955 #: ../src/guestfs.pod:931
37956 msgid "PATH"
37957 msgstr "ШЛЯХ"
37958
37959 #. type: textblock
37960 #: ../src/guestfs.pod:933
37961 msgid ""
37962 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37963 "internal path."
37964 msgstr ""
37965
37966 #. type: textblock
37967 #: ../src/guestfs.pod:936
37968 msgid ""
37969 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37970 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37971 msgstr ""
37972
37973 #. type: textblock
37974 #: ../src/guestfs.pod:939
37975 msgid ""
37976 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37977 "to change the directories that libguestfs will search in.  The value is a "
37978 "colon-separated list of paths.  The current directory is I<not> searched "
37979 "unless the path contains an empty element or C<.>.  For example "
37980 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37981 "then C</usr/lib/guestfs>."
37982 msgstr ""
37983
37984 #. type: =head2
37985 #: ../src/guestfs.pod:946
37986 msgid "QEMU WRAPPERS"
37987 msgstr ""
37988
37989 #. type: textblock
37990 #: ../src/guestfs.pod:948
37991 msgid ""
37992 "If you want to compile your own qemu, run qemu from a non-standard location, "
37993 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37994 "around qemu."
37995 msgstr ""
37996
37997 #. type: textblock
37998 #: ../src/guestfs.pod:952
37999 msgid ""
38000 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38001 "last command in the shell script (so that qemu replaces the shell and "
38002 "becomes the direct child of the libguestfs-using program).  If you don't do "
38003 "this, then the qemu process won't be cleaned up correctly."
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:957
38008 msgid ""
38009 "Here is an example of a wrapper, where I have built my own copy of qemu from "
38010 "source:"
38011 msgstr ""
38012
38013 #. type: verbatim
38014 #: ../src/guestfs.pod:960
38015 #, no-wrap
38016 msgid ""
38017 " #!/bin/sh -\n"
38018 " qemudir=/home/rjones/d/qemu\n"
38019 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38020 "\n"
38021 msgstr ""
38022 " #!/bin/sh -\n"
38023 " qemudir=/home/rjones/d/qemu\n"
38024 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38025 "\n"
38026
38027 #. type: textblock
38028 #: ../src/guestfs.pod:964
38029 msgid ""
38030 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
38031 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
38032 "example:"
38033 msgstr ""
38034
38035 #. type: verbatim
38036 #: ../src/guestfs.pod:968
38037 #, no-wrap
38038 msgid ""
38039 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38040 "\n"
38041 msgstr ""
38042 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
38043 "\n"
38044
38045 #. type: textblock
38046 #: ../src/guestfs.pod:970
38047 msgid ""
38048 "Note that libguestfs also calls qemu with the -help and -version options in "
38049 "order to determine features."
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:973
38054 msgid ""
38055 "Wrappers can also be used to edit the options passed to qemu.  In the "
38056 "following example, the C<-machine ...> option (C<-machine> and the following "
38057 "argument) are removed from the command line and replaced with C<-machine pc,"
38058 "accel=tcg>.  The while loop iterates over the options until it finds the "
38059 "right one to remove, putting the remaining options into the C<args> array."
38060 msgstr ""
38061
38062 #. type: verbatim
38063 #: ../src/guestfs.pod:982
38064 #, no-wrap
38065 msgid ""
38066 " i=0\n"
38067 " while [ $# -gt 0 ]; do\n"
38068 "     case \"$1\" in\n"
38069 "     -machine)\n"
38070 "         shift 2;;\n"
38071 "     *)\n"
38072 "         args[i]=\"$1\"\n"
38073 "         (( i++ ))\n"
38074 "         shift ;;\n"
38075 "     esac\n"
38076 " done\n"
38077 " \n"
38078 msgstr ""
38079
38080 #. type: verbatim
38081 #: ../src/guestfs.pod:994
38082 #, no-wrap
38083 msgid ""
38084 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
38085 "\n"
38086 msgstr ""
38087
38088 #. type: =head2
38089 #: ../src/guestfs.pod:996
38090 msgid "ATTACHING TO RUNNING DAEMONS"
38091 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
38092
38093 #. type: textblock
38094 #: ../src/guestfs.pod:998
38095 msgid ""
38096 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
38097 "babies.  Use with caution."
38098 msgstr ""
38099
38100 #. type: textblock
38101 #: ../src/guestfs.pod:1001
38102 msgid ""
38103 "I<Note (2):> This section explains how to attach to a running daemon from a "
38104 "low level perspective.  For most users, simply using virt tools such as "
38105 "L<guestfish(1)> with the I<--live> option will \"just work\"."
38106 msgstr ""
38107
38108 #. type: =head3
38109 #: ../src/guestfs.pod:1005
38110 msgid "Using guestfs_set_attach_method"
38111 msgstr "За допомогою guestfs_set_attach_method"
38112
38113 #. type: textblock
38114 #: ../src/guestfs.pod:1007
38115 msgid ""
38116 "By calling L</guestfs_set_attach_method> you can change how the library "
38117 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
38118 "ARCHITECTURE> for some background)."
38119 msgstr ""
38120
38121 #. type: textblock
38122 #: ../src/guestfs.pod:1011
38123 msgid ""
38124 "The normal attach method is C<appliance>, where a small appliance is created "
38125 "containing the daemon, and then the library connects to this."
38126 msgstr ""
38127
38128 #. type: textblock
38129 #: ../src/guestfs.pod:1014
38130 msgid ""
38131 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
38132 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
38133 "daemon over the Unix domain socket."
38134 msgstr ""
38135
38136 #. type: textblock
38137 #: ../src/guestfs.pod:1018
38138 msgid ""
38139 "The normal use for this is to connect to a running virtual machine that "
38140 "contains a C<guestfsd> daemon, and send commands so you can read and write "
38141 "files inside the live virtual machine."
38142 msgstr ""
38143
38144 #. type: =head3
38145 #: ../src/guestfs.pod:1022
38146 msgid "Using guestfs_add_domain with live flag"
38147 msgstr "За допомогою guestfs_add_domain з прапорцем live"
38148
38149 #. type: textblock
38150 #: ../src/guestfs.pod:1024
38151 msgid ""
38152 "L</guestfs_add_domain> provides some help for getting the correct attach "
38153 "method.  If you pass the C<live> option to this function, then (if the "
38154 "virtual machine is running) it will examine the libvirt XML looking for a "
38155 "virtio-serial channel to connect to:"
38156 msgstr ""
38157
38158 #. type: verbatim
38159 #: ../src/guestfs.pod:1030
38160 #, no-wrap
38161 msgid ""
38162 " <domain>\n"
38163 "   ...\n"
38164 "   <devices>\n"
38165 "     ...\n"
38166 "     <channel type='unix'>\n"
38167 "       <source mode='bind' path='/path/to/socket'/>\n"
38168 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38169 "     </channel>\n"
38170 "     ...\n"
38171 "   </devices>\n"
38172 " </domain>\n"
38173 "\n"
38174 msgstr ""
38175 " <domain>\n"
38176 "   ...\n"
38177 "   <devices>\n"
38178 "     ...\n"
38179 "     <channel type='unix'>\n"
38180 "       <source mode='bind' path='/path/to/socket'/>\n"
38181 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
38182 "     </channel>\n"
38183 "     ...\n"
38184 "   </devices>\n"
38185 " </domain>\n"
38186 "\n"
38187
38188 #. type: textblock
38189 #: ../src/guestfs.pod:1042
38190 msgid ""
38191 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
38192 "method to C<unix:/path/to/socket>."
38193 msgstr ""
38194
38195 #. type: textblock
38196 #: ../src/guestfs.pod:1045
38197 msgid ""
38198 "Some of the libguestfs tools (including guestfish) support a I<--live> "
38199 "option which is passed through to L</guestfs_add_domain> thus allowing you "
38200 "to attach to and modify live virtual machines."
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:1049
38205 msgid ""
38206 "The virtual machine needs to have been set up beforehand so that it has the "
38207 "virtio-serial channel and so that guestfsd is running inside it."
38208 msgstr ""
38209
38210 #. type: =head2
38211 #: ../src/guestfs.pod:1053
38212 msgid "ABI GUARANTEE"
38213 msgstr "ГАРАНТІЯ ЩОДО ABI"
38214
38215 #. type: textblock
38216 #: ../src/guestfs.pod:1055
38217 msgid ""
38218 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
38219 "actions as outlined in this section.  Although we will deprecate some "
38220 "actions, for example if they get replaced by newer calls, we will keep the "
38221 "old actions forever.  This allows you the developer to program in confidence "
38222 "against the libguestfs API."
38223 msgstr ""
38224
38225 #. type: =head2
38226 #: ../src/guestfs.pod:1061
38227 msgid "BLOCK DEVICE NAMING"
38228 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
38229
38230 #. type: textblock
38231 #: ../src/guestfs.pod:1063
38232 msgid ""
38233 "In the kernel there is now quite a profusion of schemata for naming block "
38234 "devices (in this context, by I<block device> I mean a physical or virtual "
38235 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
38236 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
38237 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
38238 "for the old IDE driver (particularly for SATA devices) those devices also "
38239 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
38240 "paravirtualized drivers.  This has created several different naming systems, "
38241 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
38242 msgstr ""
38243
38244 #. type: textblock
38245 #: ../src/guestfs.pod:1075
38246 msgid ""
38247 "As discussed above, libguestfs uses a qemu appliance running an embedded "
38248 "Linux kernel to access block devices.  We can run a variety of appliances "
38249 "based on a variety of Linux kernels."
38250 msgstr ""
38251
38252 #. type: textblock
38253 #: ../src/guestfs.pod:1079
38254 msgid ""
38255 "This causes a problem for libguestfs because many API calls use device or "
38256 "partition names.  Working scripts and the recipe (example) scripts that we "
38257 "make available over the internet could fail if the naming scheme changes."
38258 msgstr ""
38259
38260 #. type: textblock
38261 #: ../src/guestfs.pod:1084
38262 msgid ""
38263 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
38264 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
38265 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
38266 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
38267 msgstr ""
38268
38269 #. type: textblock
38270 #: ../src/guestfs.pod:1090
38271 msgid ""
38272 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
38273 "L</guestfs_list_partitions> and similar calls return the true names of the "
38274 "devices and partitions as known to the appliance."
38275 msgstr ""
38276
38277 #. type: =head3
38278 #: ../src/guestfs.pod:1095
38279 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
38280 msgstr ""
38281
38282 #. type: textblock
38283 #: ../src/guestfs.pod:1097
38284 msgid ""
38285 "Usually this translation is transparent.  However in some (very rare)  cases "
38286 "you may need to know the exact algorithm.  Such cases include where you use "
38287 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
38288 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:1103
38293 msgid ""
38294 "The algorithm is applied only to I<parameters> which are known to be either "
38295 "device or partition names.  Return values from functions such as L</"
38296 "guestfs_list_devices> are never changed."
38297 msgstr ""
38298
38299 #. type: textblock
38300 #: ../src/guestfs.pod:1111
38301 msgid "Is the string a parameter which is a device or partition name?"
38302 msgstr ""
38303
38304 #. type: textblock
38305 #: ../src/guestfs.pod:1115
38306 msgid "Does the string begin with C</dev/sd>?"
38307 msgstr "Чи починається рядок з C</dev/sd>?"
38308
38309 #. type: textblock
38310 #: ../src/guestfs.pod:1119
38311 msgid ""
38312 "Does the named device exist? If so, we use that device.  However if I<not> "
38313 "then we continue with this algorithm."
38314 msgstr ""
38315
38316 #. type: textblock
38317 #: ../src/guestfs.pod:1124
38318 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
38319 msgstr ""
38320
38321 #. type: textblock
38322 #: ../src/guestfs.pod:1126
38323 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
38324 msgstr ""
38325
38326 #. type: textblock
38327 #: ../src/guestfs.pod:1128
38328 msgid "If that named device exists, use it.  If not, continue."
38329 msgstr ""
38330
38331 #. type: textblock
38332 #: ../src/guestfs.pod:1132
38333 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
38334 msgstr ""
38335
38336 #. type: textblock
38337 #: ../src/guestfs.pod:1134
38338 msgid "If that named device exists, use it.  If not, return an error."
38339 msgstr ""
38340
38341 #. type: =head3
38342 #: ../src/guestfs.pod:1138
38343 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
38344 msgstr ""
38345
38346 #. type: textblock
38347 #: ../src/guestfs.pod:1140
38348 msgid ""
38349 "Although the standard naming scheme and automatic translation is useful for "
38350 "simple programs and guestfish scripts, for larger programs it is best not to "
38351 "rely on this mechanism."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:1144
38356 msgid ""
38357 "Where possible for maximum future portability programs using libguestfs "
38358 "should use these future-proof techniques:"
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:1151
38363 msgid ""
38364 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
38365 "device names, and then use those names directly."
38366 msgstr ""
38367
38368 #. type: textblock
38369 #: ../src/guestfs.pod:1154
38370 msgid ""
38371 "Since those device names exist by definition, they will never be translated."
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:1159
38376 msgid ""
38377 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
38378 "filesystem labels."
38379 msgstr ""
38380
38381 #. type: textblock
38382 #: ../src/guestfs.pod:1166
38383 msgid ""
38384 "This section discusses security implications of using libguestfs, "
38385 "particularly with untrusted or malicious guests or disk images."
38386 msgstr ""
38387
38388 #. type: =head2
38389 #: ../src/guestfs.pod:1169
38390 msgid "GENERAL SECURITY CONSIDERATIONS"
38391 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
38392
38393 #. type: textblock
38394 #: ../src/guestfs.pod:1171
38395 msgid ""
38396 "Be careful with any files or data that you download from a guest (by "
38397 "\"download\" we mean not just the L</guestfs_download> command but any "
38398 "command that reads files, filenames, directories or anything else from a "
38399 "disk image).  An attacker could manipulate the data to fool your program "
38400 "into doing the wrong thing.  Consider cases such as:"
38401 msgstr ""
38402
38403 #. type: textblock
38404 #: ../src/guestfs.pod:1181
38405 msgid "the data (file etc) not being present"
38406 msgstr ""
38407
38408 #. type: textblock
38409 #: ../src/guestfs.pod:1185
38410 msgid "being present but empty"
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:1189
38415 msgid "being much larger than normal"
38416 msgstr ""
38417
38418 #. type: textblock
38419 #: ../src/guestfs.pod:1193
38420 msgid "containing arbitrary 8 bit data"
38421 msgstr ""
38422
38423 #. type: textblock
38424 #: ../src/guestfs.pod:1197
38425 msgid "being in an unexpected character encoding"
38426 msgstr ""
38427
38428 #. type: textblock
38429 #: ../src/guestfs.pod:1201
38430 msgid "containing homoglyphs."
38431 msgstr ""
38432
38433 #. type: =head2
38434 #: ../src/guestfs.pod:1205
38435 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38436 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
38437
38438 #. type: textblock
38439 #: ../src/guestfs.pod:1207
38440 msgid ""
38441 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38442 "(VFS) module can sometimes be escalated into exploits by deliberately "
38443 "creating a malicious, malformed filesystem.  These exploits are very severe "
38444 "for two reasons.  Firstly there are very many filesystem drivers in the "
38445 "kernel, and many of them are infrequently used and not much developer "
38446 "attention has been paid to the code.  Linux userspace helps potential "
38447 "crackers by detecting the filesystem type and automatically choosing the "
38448 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38449 "the administrator.  Secondly, a kernel-level exploit is like a local root "
38450 "exploit (worse in some ways), giving immediate and total access to the "
38451 "system right down to the hardware level."
38452 msgstr ""
38453
38454 #. type: textblock
38455 #: ../src/guestfs.pod:1220
38456 msgid ""
38457 "That explains why you should never mount a filesystem from an untrusted "
38458 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
38459 "inside a qemu virtual machine, usually running as a non-root user.  The "
38460 "attacker would need to write a filesystem which first exploited the kernel, "
38461 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38462 "the libguestfs protocol, and finally to be as serious as the host kernel "
38463 "exploit it would need to escalate its privileges to root.  This multi-step "
38464 "escalation, performed by a static piece of data, is thought to be extremely "
38465 "hard to do, although we never say 'never' about security issues."
38466 msgstr ""
38467
38468 #. type: textblock
38469 #: ../src/guestfs.pod:1231
38470 msgid ""
38471 "In any case callers can reduce the attack surface by forcing the filesystem "
38472 "type when mounting (use L</guestfs_mount_vfs>)."
38473 msgstr ""
38474
38475 #. type: =head2
38476 #: ../src/guestfs.pod:1234
38477 msgid "PROTOCOL SECURITY"
38478 msgstr "ЗАХИСТ ПРОТОКОЛУ"
38479
38480 #. type: textblock
38481 #: ../src/guestfs.pod:1236
38482 msgid ""
38483 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
38484 "defined upper message size.  However a program that uses libguestfs must "
38485 "also take care - for example you can write a program that downloads a binary "
38486 "from a disk image and executes it locally, and no amount of protocol "
38487 "security will save you from the consequences."
38488 msgstr ""
38489
38490 #. type: =head2
38491 #: ../src/guestfs.pod:1242
38492 msgid "INSPECTION SECURITY"
38493 msgstr ""
38494
38495 #. type: textblock
38496 #: ../src/guestfs.pod:1244
38497 msgid ""
38498 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38499 "directly from the guest, and these could contain any 8 bit data.  Callers "
38500 "should be careful to escape these before printing them to a structured file "
38501 "(for example, use HTML escaping if creating a web page)."
38502 msgstr ""
38503
38504 #. type: textblock
38505 #: ../src/guestfs.pod:1250
38506 msgid ""
38507 "Guest configuration may be altered in unusual ways by the administrator of "
38508 "the virtual machine, and may not reflect reality (particularly for untrusted "
38509 "or actively malicious guests).  For example we parse the hostname from "
38510 "configuration files like C</etc/sysconfig/network> that we find in the "
38511 "guest, but the guest administrator can easily manipulate these files to "
38512 "provide the wrong hostname."
38513 msgstr ""
38514
38515 #. type: textblock
38516 #: ../src/guestfs.pod:1258
38517 msgid ""
38518 "The inspection API parses guest configuration using two external libraries: "
38519 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
38520 "designed to be robust in the face of malicious data, although denial of "
38521 "service attacks are still possible, for example with oversized configuration "
38522 "files."
38523 msgstr ""
38524
38525 #. type: =head2
38526 #: ../src/guestfs.pod:1264
38527 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38528 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
38529
38530 #. type: textblock
38531 #: ../src/guestfs.pod:1266
38532 msgid ""
38533 "Be very cautious about running commands from the guest.  By running a "
38534 "command in the guest, you are giving CPU time to a binary that you do not "
38535 "control, under the same user account as the library, albeit wrapped in qemu "
38536 "virtualization.  More information and alternatives can be found in the "
38537 "section L</RUNNING COMMANDS>."
38538 msgstr ""
38539
38540 #. type: =head2
38541 #: ../src/guestfs.pod:1272
38542 msgid "CVE-2010-3851"
38543 msgstr "CVE-2010-3851"
38544
38545 #. type: textblock
38546 #: ../src/guestfs.pod:1274
38547 msgid "https://bugzilla.redhat.com/642934"
38548 msgstr "https://bugzilla.redhat.com/642934"
38549
38550 #. type: textblock
38551 #: ../src/guestfs.pod:1276
38552 msgid ""
38553 "This security bug concerns the automatic disk format detection that qemu "
38554 "does on disk images."
38555 msgstr ""
38556
38557 #. type: textblock
38558 #: ../src/guestfs.pod:1279
38559 msgid ""
38560 "A raw disk image is just the raw bytes, there is no header.  Other disk "
38561 "images like qcow2 contain a special header.  Qemu deals with this by looking "
38562 "for one of the known headers, and if none is found then assuming the disk "
38563 "image must be raw."
38564 msgstr ""
38565
38566 #. type: textblock
38567 #: ../src/guestfs.pod:1284
38568 msgid ""
38569 "This allows a guest which has been given a raw disk image to write some "
38570 "other header.  At next boot (or when the disk image is accessed by "
38571 "libguestfs) qemu would do autodetection and think the disk image format was, "
38572 "say, qcow2 based on the header written by the guest."
38573 msgstr ""
38574
38575 #. type: textblock
38576 #: ../src/guestfs.pod:1289
38577 msgid ""
38578 "This in itself would not be a problem, but qcow2 offers many features, one "
38579 "of which is to allow a disk image to refer to another image (called the "
38580 "\"backing disk\").  It does this by placing the path to the backing disk "
38581 "into the qcow2 header.  This path is not validated and could point to any "
38582 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
38583 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38584 "control of the attacker."
38585 msgstr ""
38586
38587 #. type: textblock
38588 #: ../src/guestfs.pod:1297
38589 msgid ""
38590 "In libguestfs this is rather hard to exploit except under two circumstances:"
38591 msgstr ""
38592
38593 #. type: textblock
38594 #: ../src/guestfs.pod:1304
38595 msgid "You have enabled the network or have opened the disk in write mode."
38596 msgstr ""
38597
38598 #. type: textblock
38599 #: ../src/guestfs.pod:1308
38600 msgid ""
38601 "You are also running untrusted code from the guest (see L</RUNNING "
38602 "COMMANDS>)."
38603 msgstr ""
38604
38605 #. type: textblock
38606 #: ../src/guestfs.pod:1313
38607 msgid ""
38608 "The way to avoid this is to specify the expected disk format when adding "
38609 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
38610 "should always do this if the disk is raw format, and it's a good idea for "
38611 "other cases too."
38612 msgstr ""
38613
38614 #. type: textblock
38615 #: ../src/guestfs.pod:1318
38616 msgid ""
38617 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38618 "format is fetched from libvirt and passed through."
38619 msgstr ""
38620
38621 #. type: textblock
38622 #: ../src/guestfs.pod:1321
38623 msgid ""
38624 "For libguestfs tools, use the I<--format> command line parameter as "
38625 "appropriate."
38626 msgstr ""
38627
38628 #. type: =head1
38629 #: ../src/guestfs.pod:1324
38630 msgid "CONNECTION MANAGEMENT"
38631 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
38632
38633 #. type: =head2
38634 #: ../src/guestfs.pod:1326
38635 msgid "guestfs_h *"
38636 msgstr "guestfs_h *"
38637
38638 #. type: textblock
38639 #: ../src/guestfs.pod:1328
38640 msgid ""
38641 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38642 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38643 "handle and release all resources used."
38644 msgstr ""
38645
38646 #. type: textblock
38647 #: ../src/guestfs.pod:1332
38648 msgid ""
38649 "For information on using multiple handles and threads, see the section L</"
38650 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38651 msgstr ""
38652
38653 #. type: =head2
38654 #: ../src/guestfs.pod:1335
38655 msgid "guestfs_create"
38656 msgstr "guestfs_create"
38657
38658 #. type: verbatim
38659 #: ../src/guestfs.pod:1337
38660 #, no-wrap
38661 msgid ""
38662 " guestfs_h *guestfs_create (void);\n"
38663 "\n"
38664 msgstr ""
38665 " guestfs_h *guestfs_create (void);\n"
38666 "\n"
38667
38668 #. type: textblock
38669 #: ../src/guestfs.pod:1339
38670 msgid "Create a connection handle."
38671 msgstr "Створити дескриптор з’єднання."
38672
38673 #. type: textblock
38674 #: ../src/guestfs.pod:1341
38675 msgid ""
38676 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38677 "NULL."
38678 msgstr ""
38679
38680 #. type: textblock
38681 #: ../src/guestfs.pod:1344
38682 msgid ""
38683 "You have to \"configure\" the handle after creating it.  This includes "
38684 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38685 "handle at least once."
38686 msgstr ""
38687
38688 #. type: textblock
38689 #: ../src/guestfs.pod:1348
38690 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38691 msgstr ""
38692
38693 #. type: textblock
38694 #: ../src/guestfs.pod:1350
38695 msgid ""
38696 "You may also want to configure error handling for the handle.  See the L</"
38697 "ERROR HANDLING> section below."
38698 msgstr ""
38699
38700 #. type: =head2
38701 #: ../src/guestfs.pod:1353
38702 msgid "guestfs_close"
38703 msgstr "guestfs_close"
38704
38705 #. type: verbatim
38706 #: ../src/guestfs.pod:1355
38707 #, no-wrap
38708 msgid ""
38709 " void guestfs_close (guestfs_h *g);\n"
38710 "\n"
38711 msgstr ""
38712 " void guestfs_close (guestfs_h *g);\n"
38713 "\n"
38714
38715 #. type: textblock
38716 #: ../src/guestfs.pod:1357
38717 msgid "This closes the connection handle and frees up all resources used."
38718 msgstr ""
38719
38720 #. type: textblock
38721 #: ../src/guestfs.pod:1359
38722 msgid ""
38723 "If autosync was set on the handle and the handle was launched, then this "
38724 "implicitly calls various functions to unmount filesystems and sync the "
38725 "disk.  See L</guestfs_set_autosync> for more details."
38726 msgstr ""
38727
38728 #. type: textblock
38729 #: ../src/guestfs.pod:1363
38730 msgid "If a close callback was set on the handle, then it is called."
38731 msgstr ""
38732
38733 #. type: =head1
38734 #: ../src/guestfs.pod:1365
38735 msgid "ERROR HANDLING"
38736 msgstr "ОБРОБКА ПОМИЛОК"
38737
38738 #. type: textblock
38739 #: ../src/guestfs.pod:1367
38740 msgid ""
38741 "API functions can return errors.  For example, almost all functions that "
38742 "return C<int> will return C<-1> to indicate an error."
38743 msgstr ""
38744
38745 #. type: textblock
38746 #: ../src/guestfs.pod:1370
38747 msgid ""
38748 "Additional information is available for errors: an error message string and "
38749 "optionally an error number (errno) if the thing that failed was a system "
38750 "call."
38751 msgstr ""
38752
38753 #. type: textblock
38754 #: ../src/guestfs.pod:1374
38755 msgid ""
38756 "You can get at the additional information about the last error on the handle "
38757 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38758 "up an error handler with L</guestfs_set_error_handler>."
38759 msgstr ""
38760
38761 #. type: textblock
38762 #: ../src/guestfs.pod:1379
38763 msgid ""
38764 "When the handle is created, a default error handler is installed which "
38765 "prints the error message string to C<stderr>.  For small short-running "
38766 "command line programs it is sufficient to do:"
38767 msgstr ""
38768
38769 #. type: verbatim
38770 #: ../src/guestfs.pod:1383
38771 #, no-wrap
38772 msgid ""
38773 " if (guestfs_launch (g) == -1)\n"
38774 "   exit (EXIT_FAILURE);\n"
38775 "\n"
38776 msgstr ""
38777 " if (guestfs_launch (g) == -1)\n"
38778 "   exit (EXIT_FAILURE);\n"
38779 "\n"
38780
38781 #. type: textblock
38782 #: ../src/guestfs.pod:1386
38783 msgid ""
38784 "since the default error handler will ensure that an error message has been "
38785 "printed to C<stderr> before the program exits."
38786 msgstr ""
38787
38788 #. type: textblock
38789 #: ../src/guestfs.pod:1389
38790 msgid ""
38791 "For other programs the caller will almost certainly want to install an "
38792 "alternate error handler or do error handling in-line like this:"
38793 msgstr ""
38794
38795 #. type: verbatim
38796 #: ../src/guestfs.pod:1392
38797 #, no-wrap
38798 msgid ""
38799 " /* This disables the default behaviour of printing errors\n"
38800 "    on stderr. */\n"
38801 " guestfs_set_error_handler (g, NULL, NULL);\n"
38802 " \n"
38803 msgstr ""
38804
38805 #. type: verbatim
38806 #: ../src/guestfs.pod:1396
38807 #, no-wrap
38808 msgid ""
38809 " if (guestfs_launch (g) == -1) {\n"
38810 "   /* Examine the error message and print it etc. */\n"
38811 "   char *msg = guestfs_last_error (g);\n"
38812 "   int errnum = guestfs_last_errno (g);\n"
38813 "   fprintf (stderr, \"%s\", msg);\n"
38814 "   if (errnum != 0)\n"
38815 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38816 "   fprintf (stderr, \"\\n\");\n"
38817 "   /* ... */\n"
38818 " }\n"
38819 "\n"
38820 msgstr ""
38821
38822 #. type: textblock
38823 #: ../src/guestfs.pod:1407
38824 msgid ""
38825 "Out of memory errors are handled differently.  The default action is to call "
38826 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38827 "guestfs_set_out_of_memory_handler>."
38828 msgstr ""
38829
38830 #. type: textblock
38831 #: ../src/guestfs.pod:1411
38832 msgid ""
38833 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38834 "because there is no handle if this happens there is no way to get additional "
38835 "error information.  However L</guestfs_create> is supposed to be a "
38836 "lightweight operation which can only fail because of insufficient memory (it "
38837 "returns NULL in this case)."
38838 msgstr ""
38839
38840 #. type: =head2
38841 #: ../src/guestfs.pod:1417
38842 msgid "guestfs_last_error"
38843 msgstr "guestfs_last_error"
38844
38845 #. type: verbatim
38846 #: ../src/guestfs.pod:1419
38847 #, no-wrap
38848 msgid ""
38849 " const char *guestfs_last_error (guestfs_h *g);\n"
38850 "\n"
38851 msgstr ""
38852 " const char *guestfs_last_error (guestfs_h *g);\n"
38853 "\n"
38854
38855 #. type: textblock
38856 #: ../src/guestfs.pod:1421
38857 msgid ""
38858 "This returns the last error message that happened on C<g>.  If there has not "
38859 "been an error since the handle was created, then this returns C<NULL>."
38860 msgstr ""
38861
38862 #. type: textblock
38863 #: ../src/guestfs.pod:1425
38864 msgid ""
38865 "The lifetime of the returned string is until the next error occurs, or L</"
38866 "guestfs_close> is called."
38867 msgstr ""
38868
38869 #. type: =head2
38870 #: ../src/guestfs.pod:1428
38871 msgid "guestfs_last_errno"
38872 msgstr "guestfs_last_errno"
38873
38874 #. type: verbatim
38875 #: ../src/guestfs.pod:1430
38876 #, no-wrap
38877 msgid ""
38878 " int guestfs_last_errno (guestfs_h *g);\n"
38879 "\n"
38880 msgstr ""
38881 " int guestfs_last_errno (guestfs_h *g);\n"
38882 "\n"
38883
38884 #. type: textblock
38885 #: ../src/guestfs.pod:1432
38886 msgid "This returns the last error number (errno) that happened on C<g>."
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:1434
38891 msgid "If successful, an errno integer not equal to zero is returned."
38892 msgstr ""
38893
38894 #. type: textblock
38895 #: ../src/guestfs.pod:1436
38896 msgid ""
38897 "If no error, this returns 0.  This call can return 0 in three situations:"
38898 msgstr ""
38899
38900 #. type: textblock
38901 #: ../src/guestfs.pod:1443
38902 msgid "There has not been any error on the handle."
38903 msgstr ""
38904
38905 #. type: textblock
38906 #: ../src/guestfs.pod:1447
38907 msgid ""
38908 "There has been an error but the errno was meaningless.  This corresponds to "
38909 "the case where the error did not come from a failed system call, but for "
38910 "some other reason."
38911 msgstr ""
38912
38913 #. type: textblock
38914 #: ../src/guestfs.pod:1453
38915 msgid ""
38916 "There was an error from a failed system call, but for some reason the errno "
38917 "was not captured and returned.  This usually indicates a bug in libguestfs."
38918 msgstr ""
38919
38920 #. type: textblock
38921 #: ../src/guestfs.pod:1459
38922 msgid ""
38923 "Libguestfs tries to convert the errno from inside the applicance into a "
38924 "corresponding errno for the caller (not entirely trivial: the appliance "
38925 "might be running a completely different operating system from the library "
38926 "and error numbers are not standardized across Un*xen).  If this could not be "
38927 "done, then the error is translated to C<EINVAL>.  In practice this should "
38928 "only happen in very rare circumstances."
38929 msgstr ""
38930
38931 #. type: =head2
38932 #: ../src/guestfs.pod:1467
38933 msgid "guestfs_set_error_handler"
38934 msgstr "guestfs_set_error_handler"
38935
38936 #. type: verbatim
38937 #: ../src/guestfs.pod:1469
38938 #, no-wrap
38939 msgid ""
38940 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38941 "                                           void *opaque,\n"
38942 "                                           const char *msg);\n"
38943 " void guestfs_set_error_handler (guestfs_h *g,\n"
38944 "                                 guestfs_error_handler_cb cb,\n"
38945 "                                 void *opaque);\n"
38946 "\n"
38947 msgstr ""
38948 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38949 "                                           void *opaque,\n"
38950 "                                           const char *msg);\n"
38951 " void guestfs_set_error_handler (guestfs_h *g,\n"
38952 "                                 guestfs_error_handler_cb cb,\n"
38953 "                                 void *opaque);\n"
38954 "\n"
38955
38956 #. type: textblock
38957 #: ../src/guestfs.pod:1476
38958 msgid ""
38959 "The callback C<cb> will be called if there is an error.  The parameters "
38960 "passed to the callback are an opaque data pointer and the error message "
38961 "string."
38962 msgstr ""
38963
38964 #. type: textblock
38965 #: ../src/guestfs.pod:1480
38966 msgid ""
38967 "C<errno> is not passed to the callback.  To get that the callback must call "
38968 "L</guestfs_last_errno>."
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../src/guestfs.pod:1483
38973 msgid ""
38974 "Note that the message string C<msg> is freed as soon as the callback "
38975 "function returns, so if you want to stash it somewhere you must make your "
38976 "own copy."
38977 msgstr ""
38978
38979 #. type: textblock
38980 #: ../src/guestfs.pod:1487
38981 msgid "The default handler prints messages on C<stderr>."
38982 msgstr ""
38983
38984 #. type: textblock
38985 #: ../src/guestfs.pod:1489
38986 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38987 msgstr ""
38988
38989 #. type: =head2
38990 #: ../src/guestfs.pod:1491
38991 msgid "guestfs_get_error_handler"
38992 msgstr "guestfs_get_error_handler"
38993
38994 #. type: verbatim
38995 #: ../src/guestfs.pod:1493
38996 #, no-wrap
38997 msgid ""
38998 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38999 "                                                     void **opaque_rtn);\n"
39000 "\n"
39001 msgstr ""
39002 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39003 "                                                     void **opaque_rtn);\n"
39004 "\n"
39005
39006 #. type: textblock
39007 #: ../src/guestfs.pod:1496
39008 msgid "Returns the current error handler callback."
39009 msgstr ""
39010
39011 #. type: =head2
39012 #: ../src/guestfs.pod:1498
39013 msgid "guestfs_set_out_of_memory_handler"
39014 msgstr "guestfs_set_out_of_memory_handler"
39015
39016 #. type: verbatim
39017 #: ../src/guestfs.pod:1500
39018 #, no-wrap
39019 msgid ""
39020 " typedef void (*guestfs_abort_cb) (void);\n"
39021 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
39022 "                                         guestfs_abort_cb);\n"
39023 "\n"
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../src/guestfs.pod:1504
39028 msgid ""
39029 "The callback C<cb> will be called if there is an out of memory situation.  "
39030 "I<Note this callback must not return>."
39031 msgstr ""
39032
39033 #. type: textblock
39034 #: ../src/guestfs.pod:1507
39035 msgid "The default is to call L<abort(3)>."
39036 msgstr ""
39037
39038 #. type: textblock
39039 #: ../src/guestfs.pod:1509
39040 msgid ""
39041 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
39042 msgstr ""
39043
39044 #. type: =head2
39045 #: ../src/guestfs.pod:1512
39046 msgid "guestfs_get_out_of_memory_handler"
39047 msgstr "guestfs_get_out_of_memory_handler"
39048
39049 #. type: verbatim
39050 #: ../src/guestfs.pod:1514
39051 #, no-wrap
39052 msgid ""
39053 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39054 "\n"
39055 msgstr ""
39056 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
39057 "\n"
39058
39059 #. type: textblock
39060 #: ../src/guestfs.pod:1516
39061 msgid "This returns the current out of memory handler."
39062 msgstr ""
39063
39064 #. type: =head1
39065 #: ../src/guestfs.pod:1518
39066 msgid "API CALLS"
39067 msgstr "ВИКЛИКИ API"
39068
39069 #. type: =head1
39070 #: ../src/guestfs.pod:1522
39071 msgid "STRUCTURES"
39072 msgstr "СТРУКТУРИ"
39073
39074 #. type: textblock
39075 #: ../src/guestfs.pod:1524
39076 msgid "@STRUCTS@"
39077 msgstr "@STRUCTS@"
39078
39079 #. type: =head1
39080 #: ../src/guestfs.pod:1526
39081 msgid "AVAILABILITY"
39082 msgstr "ДОСТУПНІСТЬ"
39083
39084 #. type: =head2
39085 #: ../src/guestfs.pod:1528
39086 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
39087 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
39088
39089 #. type: textblock
39090 #: ../src/guestfs.pod:1530
39091 msgid ""
39092 "Using L</guestfs_available> you can test availability of the following "
39093 "groups of functions.  This test queries the appliance to see if the "
39094 "appliance you are currently using supports the functionality."
39095 msgstr ""
39096
39097 #. type: textblock
39098 #: ../src/guestfs.pod:1535
39099 msgid "@AVAILABILITY@"
39100 msgstr "@AVAILABILITY@"
39101
39102 #. type: =head2
39103 #: ../src/guestfs.pod:1537
39104 msgid "GUESTFISH supported COMMAND"
39105 msgstr ""
39106
39107 #. type: textblock
39108 #: ../src/guestfs.pod:1539
39109 msgid ""
39110 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
39111 "prints out the available groups and whether they are supported by this build "
39112 "of libguestfs.  Note however that you have to do C<run> first."
39113 msgstr ""
39114
39115 #. type: =head2
39116 #: ../src/guestfs.pod:1544
39117 msgid "SINGLE CALLS AT COMPILE TIME"
39118 msgstr ""
39119
39120 #. type: textblock
39121 #: ../src/guestfs.pod:1546
39122 msgid ""
39123 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
39124 "function, such as:"
39125 msgstr ""
39126
39127 #. type: verbatim
39128 #: ../src/guestfs.pod:1549
39129 #, no-wrap
39130 msgid ""
39131 " #define LIBGUESTFS_HAVE_DD 1\n"
39132 "\n"
39133 msgstr ""
39134 " #define LIBGUESTFS_HAVE_DD 1\n"
39135 "\n"
39136
39137 #. type: textblock
39138 #: ../src/guestfs.pod:1551
39139 msgid "if L</guestfs_dd> is available."
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../src/guestfs.pod:1553
39144 msgid ""
39145 "Before version 1.5.8, if you needed to test whether a single libguestfs "
39146 "function is available at compile time, we recommended using build tools such "
39147 "as autoconf or cmake.  For example in autotools you could use:"
39148 msgstr ""
39149
39150 #. type: verbatim
39151 #: ../src/guestfs.pod:1558
39152 #, no-wrap
39153 msgid ""
39154 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39155 " AC_CHECK_FUNCS([guestfs_dd])\n"
39156 "\n"
39157 msgstr ""
39158 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
39159 " AC_CHECK_FUNCS([guestfs_dd])\n"
39160 "\n"
39161
39162 #. type: textblock
39163 #: ../src/guestfs.pod:1561
39164 msgid ""
39165 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
39166 "in your program."
39167 msgstr ""
39168
39169 #. type: =head2
39170 #: ../src/guestfs.pod:1564
39171 msgid "SINGLE CALLS AT RUN TIME"
39172 msgstr ""
39173
39174 #. type: textblock
39175 #: ../src/guestfs.pod:1566
39176 msgid ""
39177 "Testing at compile time doesn't guarantee that a function really exists in "
39178 "the library.  The reason is that you might be dynamically linked against a "
39179 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
39180 "This situation unfortunately results in a segmentation fault, which is a "
39181 "shortcoming of the C dynamic linking system itself."
39182 msgstr ""
39183
39184 #. type: textblock
39185 #: ../src/guestfs.pod:1573
39186 msgid ""
39187 "You can use L<dlopen(3)> to test if a function is available at run time, as "
39188 "in this example program (note that you still need the compile time check as "
39189 "well):"
39190 msgstr ""
39191
39192 #. type: verbatim
39193 #: ../src/guestfs.pod:1577
39194 #, no-wrap
39195 msgid ""
39196 " #include <stdio.h>\n"
39197 " #include <stdlib.h>\n"
39198 " #include <unistd.h>\n"
39199 " #include <dlfcn.h>\n"
39200 " #include <guestfs.h>\n"
39201 " \n"
39202 msgstr ""
39203 " #include <stdio.h>\n"
39204 " #include <stdlib.h>\n"
39205 " #include <unistd.h>\n"
39206 " #include <dlfcn.h>\n"
39207 " #include <guestfs.h>\n"
39208 " \n"
39209
39210 #. type: verbatim
39211 #: ../src/guestfs.pod:1583
39212 #, no-wrap
39213 msgid ""
39214 " main ()\n"
39215 " {\n"
39216 " #ifdef LIBGUESTFS_HAVE_DD\n"
39217 "   void *dl;\n"
39218 "   int has_function;\n"
39219 " \n"
39220 msgstr ""
39221 " main ()\n"
39222 " {\n"
39223 " #ifdef LIBGUESTFS_HAVE_DD\n"
39224 "   void *dl;\n"
39225 "   int has_function;\n"
39226 " \n"
39227
39228 #. type: verbatim
39229 #: ../src/guestfs.pod:1589
39230 #, no-wrap
39231 msgid ""
39232 "   /* Test if the function guestfs_dd is really available. */\n"
39233 "   dl = dlopen (NULL, RTLD_LAZY);\n"
39234 "   if (!dl) {\n"
39235 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
39236 "     exit (EXIT_FAILURE);\n"
39237 "   }\n"
39238 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
39239 "   dlclose (dl);\n"
39240 " \n"
39241 msgstr ""
39242
39243 #. type: verbatim
39244 #: ../src/guestfs.pod:1598
39245 #, no-wrap
39246 msgid ""
39247 "   if (!has_function)\n"
39248 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
39249 "   else {\n"
39250 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
39251 "     /* Now it's safe to call\n"
39252 "     guestfs_dd (g, \"foo\", \"bar\");\n"
39253 "     */\n"
39254 "   }\n"
39255 " #else\n"
39256 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
39257 " #endif\n"
39258 "  }\n"
39259 "\n"
39260 msgstr ""
39261
39262 #. type: textblock
39263 #: ../src/guestfs.pod:1611
39264 msgid ""
39265 "You may think the above is an awful lot of hassle, and it is.  There are "
39266 "other ways outside of the C linking system to ensure that this kind of "
39267 "incompatibility never arises, such as using package versioning:"
39268 msgstr ""
39269
39270 #. type: verbatim
39271 #: ../src/guestfs.pod:1616
39272 #, no-wrap
39273 msgid ""
39274 " Requires: libguestfs >= 1.0.80\n"
39275 "\n"
39276 msgstr ""
39277
39278 #. type: =head1
39279 #: ../src/guestfs.pod:1618
39280 msgid "CALLS WITH OPTIONAL ARGUMENTS"
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../src/guestfs.pod:1620
39285 msgid ""
39286 "A recent feature of the API is the introduction of calls which take optional "
39287 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
39288 "takes variable arguments (ie. C<...>), as in this example:"
39289 msgstr ""
39290
39291 #. type: verbatim
39292 #: ../src/guestfs.pod:1625
39293 #, no-wrap
39294 msgid ""
39295 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39296 "\n"
39297 msgstr ""
39298 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
39299 "\n"
39300
39301 #. type: textblock
39302 #: ../src/guestfs.pod:1627
39303 msgid ""
39304 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
39305 "call with no optional arguments specified:"
39306 msgstr ""
39307
39308 #. type: verbatim
39309 #: ../src/guestfs.pod:1630
39310 #, no-wrap
39311 msgid ""
39312 " guestfs_add_drive_opts (g, filename, -1);\n"
39313 "\n"
39314 msgstr ""
39315 " guestfs_add_drive_opts (g, filename, -1);\n"
39316 "\n"
39317
39318 #. type: textblock
39319 #: ../src/guestfs.pod:1632
39320 msgid "With a single optional argument:"
39321 msgstr ""
39322
39323 #. type: verbatim
39324 #: ../src/guestfs.pod:1634
39325 #, no-wrap
39326 msgid ""
39327 " guestfs_add_drive_opts (g, filename,\n"
39328 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39329 "                         -1);\n"
39330 "\n"
39331 msgstr ""
39332 " guestfs_add_drive_opts (g, filename,\n"
39333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39334 "                         -1);\n"
39335 "\n"
39336
39337 #. type: textblock
39338 #: ../src/guestfs.pod:1638
39339 msgid "With two:"
39340 msgstr ""
39341
39342 #. type: verbatim
39343 #: ../src/guestfs.pod:1640
39344 #, no-wrap
39345 msgid ""
39346 " guestfs_add_drive_opts (g, filename,\n"
39347 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39348 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39349 "                         -1);\n"
39350 "\n"
39351 msgstr ""
39352 " guestfs_add_drive_opts (g, filename,\n"
39353 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
39354 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
39355 "                         -1);\n"
39356 "\n"
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:1645
39360 msgid ""
39361 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
39362 "happen!"
39363 msgstr ""
39364
39365 #. type: =head2
39366 #: ../src/guestfs.pod:1648
39367 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../src/guestfs.pod:1650
39372 msgid ""
39373 "The second variant has the same name with the suffix C<_va>, which works the "
39374 "same way but takes a C<va_list>.  See the C manual for details.  For the "
39375 "example function, this is declared:"
39376 msgstr ""
39377
39378 #. type: verbatim
39379 #: ../src/guestfs.pod:1654
39380 #, no-wrap
39381 msgid ""
39382 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39383 "                                va_list args);\n"
39384 "\n"
39385 msgstr ""
39386 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
39387 "                                va_list args);\n"
39388 "\n"
39389
39390 #. type: =head2
39391 #: ../src/guestfs.pod:1657
39392 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
39393 msgstr ""
39394
39395 #. type: textblock
39396 #: ../src/guestfs.pod:1659
39397 msgid ""
39398 "The third variant is useful where you need to construct these calls.  You "
39399 "pass in a structure where you fill in the optional fields.  The structure "
39400 "has a bitmask as the first element which you must set to indicate which "
39401 "fields you have filled in.  For our example function the structure and call "
39402 "are declared:"
39403 msgstr ""
39404
39405 #. type: verbatim
39406 #: ../src/guestfs.pod:1665
39407 #, no-wrap
39408 msgid ""
39409 " struct guestfs_add_drive_opts_argv {\n"
39410 "   uint64_t bitmask;\n"
39411 "   int readonly;\n"
39412 "   const char *format;\n"
39413 "   /* ... */\n"
39414 " };\n"
39415 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39416 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
39417 "\n"
39418 msgstr ""
39419 " struct guestfs_add_drive_opts_argv {\n"
39420 "   uint64_t bitmask;\n"
39421 "   int readonly;\n"
39422 "   const char *format;\n"
39423 "   /* ... */\n"
39424 " };\n"
39425 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
39426 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
39427 "\n"
39428
39429 #. type: textblock
39430 #: ../src/guestfs.pod:1674
39431 msgid "You could call it like this:"
39432 msgstr ""
39433
39434 #. type: verbatim
39435 #: ../src/guestfs.pod:1676
39436 #, no-wrap
39437 msgid ""
39438 " struct guestfs_add_drive_opts_argv optargs = {\n"
39439 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39440 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39441 "   .readonly = 1,\n"
39442 "   .format = \"qcow2\"\n"
39443 " };\n"
39444 " \n"
39445 msgstr ""
39446 " struct guestfs_add_drive_opts_argv optargs = {\n"
39447 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
39448 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
39449 "   .readonly = 1,\n"
39450 "   .format = \"qcow2\"\n"
39451 " };\n"
39452 " \n"
39453
39454 #. type: verbatim
39455 #: ../src/guestfs.pod:1683
39456 #, no-wrap
39457 msgid ""
39458 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39459 "\n"
39460 msgstr ""
39461 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
39462 "\n"
39463
39464 #. type: textblock
39465 #: ../src/guestfs.pod:1691
39466 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
39467 msgstr ""
39468
39469 #. type: textblock
39470 #: ../src/guestfs.pod:1696
39471 msgid "You do not need to fill in all fields of the structure."
39472 msgstr ""
39473
39474 #. type: textblock
39475 #: ../src/guestfs.pod:1700
39476 msgid ""
39477 "There must be a one-to-one correspondence between fields of the structure "
39478 "that are filled in, and bits set in the bitmask."
39479 msgstr ""
39480
39481 #. type: =head2
39482 #: ../src/guestfs.pod:1705
39483 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
39484 msgstr ""
39485
39486 #. type: textblock
39487 #: ../src/guestfs.pod:1707
39488 msgid ""
39489 "In other languages, optional arguments are expressed in the way that is "
39490 "natural for that language.  We refer you to the language-specific "
39491 "documentation for more details on that."
39492 msgstr ""
39493
39494 #. type: textblock
39495 #: ../src/guestfs.pod:1711
39496 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39497 msgstr ""
39498
39499 #. type: =head2
39500 #: ../src/guestfs.pod:1713
39501 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:1715
39506 msgid ""
39507 "B<Note:> This section documents the generic event mechanism introduced in "
39508 "libguestfs 1.10, which you should use in new code if possible.  The old "
39509 "functions C<guestfs_set_log_message_callback>, "
39510 "C<guestfs_set_subprocess_quit_callback>, "
39511 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39512 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39513 "page.  Because of the ABI guarantee, the old functions continue to work."
39514 msgstr ""
39515
39516 #. type: textblock
39517 #: ../src/guestfs.pod:1724
39518 msgid ""
39519 "Handles generate events when certain things happen, such as log messages "
39520 "being generated, progress messages during long-running operations, or the "
39521 "handle being closed.  The API calls described below let you register a "
39522 "callback to be called when events happen.  You can register multiple "
39523 "callbacks (for the same, different or overlapping sets of events), and "
39524 "individually remove callbacks.  If callbacks are not removed, then they "
39525 "remain in force until the handle is closed."
39526 msgstr ""
39527
39528 #. type: textblock
39529 #: ../src/guestfs.pod:1732
39530 msgid ""
39531 "In the current implementation, events are only generated synchronously: that "
39532 "means that events (and hence callbacks) can only happen while you are in the "
39533 "middle of making another libguestfs call.  The callback is called in the "
39534 "same thread."
39535 msgstr ""
39536
39537 #. type: textblock
39538 #: ../src/guestfs.pod:1737
39539 msgid ""
39540 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39541 "unsigned integers, or a message buffer.  Payloads are discussed later on."
39542 msgstr ""
39543
39544 #. type: =head3
39545 #: ../src/guestfs.pod:1741
39546 msgid "CLASSES OF EVENTS"
39547 msgstr ""
39548
39549 #. type: =item
39550 #: ../src/guestfs.pod:1745
39551 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39552 msgstr ""
39553
39554 #. type: textblock
39555 #: ../src/guestfs.pod:1748
39556 msgid ""
39557 "The callback function will be called while the handle is being closed "
39558 "(synchronously from L</guestfs_close>)."
39559 msgstr ""
39560
39561 #. type: textblock
39562 #: ../src/guestfs.pod:1751
39563 msgid ""
39564 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39565 "handles that are open when the program exits.  This means that this callback "
39566 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39567 "problems in higher-level languages (eg. if your HLL interpreter has already "
39568 "been cleaned up by the time this is called, and if your callback then jumps "
39569 "into some HLL function)."
39570 msgstr ""
39571
39572 #. type: textblock
39573 #: ../src/guestfs.pod:1758
39574 msgid ""
39575 "If no callback is registered: the handle is closed without any callback "
39576 "being invoked."
39577 msgstr ""
39578
39579 #. type: =item
39580 #: ../src/guestfs.pod:1761
39581 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39582 msgstr ""
39583
39584 #. type: textblock
39585 #: ../src/guestfs.pod:1764
39586 msgid ""
39587 "The callback function will be called when the child process quits, either "
39588 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
39589 "corresponds to a transition from any state to the CONFIG state)."
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39594 msgid "If no callback is registered: the event is ignored."
39595 msgstr ""
39596
39597 #. type: =item
39598 #: ../src/guestfs.pod:1770
39599 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39600 msgstr ""
39601
39602 #. type: textblock
39603 #: ../src/guestfs.pod:1773
39604 msgid ""
39605 "The callback function will be called when the child process becomes ready "
39606 "first time after it has been launched.  (This corresponds to a transition "
39607 "from LAUNCHING to the READY state)."
39608 msgstr ""
39609
39610 #. type: =item
39611 #: ../src/guestfs.pod:1779
39612 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39613 msgstr ""
39614
39615 #. type: textblock
39616 #: ../src/guestfs.pod:1782
39617 msgid ""
39618 "Some long-running operations can generate progress messages.  If this "
39619 "callback is registered, then it will be called each time a progress message "
39620 "is generated (usually two seconds after the operation started, and three "
39621 "times per second thereafter until it completes, although the frequency may "
39622 "change in future versions)."
39623 msgstr ""
39624
39625 #. type: textblock
39626 #: ../src/guestfs.pod:1788
39627 msgid ""
39628 "The callback receives in the payload four unsigned 64 bit numbers which are "
39629 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39630 msgstr ""
39631
39632 #. type: textblock
39633 #: ../src/guestfs.pod:1791
39634 msgid ""
39635 "The units of C<total> are not defined, although for some operations C<total> "
39636 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39637 "or megabytes), and C<position> may be the portion which has been transferred."
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../src/guestfs.pod:1796
39642 msgid "The only defined and stable parts of the API are:"
39643 msgstr ""
39644
39645 #. type: textblock
39646 #: ../src/guestfs.pod:1802
39647 msgid ""
39648 "The callback can display to the user some type of progress bar or indicator "
39649 "which shows the ratio of C<position>:C<total>."
39650 msgstr ""
39651
39652 #. type: textblock
39653 #: ../src/guestfs.pod:1807
39654 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39655 msgstr ""
39656
39657 #. type: textblock
39658 #: ../src/guestfs.pod:1811
39659 msgid ""
39660 "If any progress notification is sent during a call, then a final progress "
39661 "notification is always sent when C<position> = C<total> (I<unless> the call "
39662 "fails with an error)."
39663 msgstr ""
39664
39665 #. type: textblock
39666 #: ../src/guestfs.pod:1815
39667 msgid ""
39668 "This is to simplify caller code, so callers can easily set the progress "
39669 "indicator to \"100%\" at the end of the operation, without requiring special "
39670 "code to detect this case."
39671 msgstr ""
39672
39673 #. type: textblock
39674 #: ../src/guestfs.pod:1821
39675 msgid ""
39676 "For some calls we are unable to estimate the progress of the call, but we "
39677 "can still generate progress messages to indicate activity.  This is known as "
39678 "\"pulse mode\", and is directly supported by certain progress bar "
39679 "implementations (eg. GtkProgressBar)."
39680 msgstr ""
39681
39682 #. type: textblock
39683 #: ../src/guestfs.pod:1826
39684 msgid ""
39685 "For these calls, zero or more progress messages are generated with "
39686 "C<position = 0> and C<total = 1>, followed by a final message with "
39687 "C<position = total = 1>."
39688 msgstr ""
39689
39690 #. type: textblock
39691 #: ../src/guestfs.pod:1830
39692 msgid ""
39693 "As noted above, if the call fails with an error then the final message may "
39694 "not be generated."
39695 msgstr ""
39696
39697 #. type: textblock
39698 #: ../src/guestfs.pod:1835
39699 msgid ""
39700 "The callback also receives the procedure number (C<proc_nr>) and serial "
39701 "number (C<serial>) of the call.  These are only useful for debugging "
39702 "protocol issues, and the callback can normally ignore them.  The callback "
39703 "may want to print these numbers in error messages or debugging messages."
39704 msgstr ""
39705
39706 #. type: textblock
39707 #: ../src/guestfs.pod:1841
39708 msgid "If no callback is registered: progress messages are discarded."
39709 msgstr ""
39710
39711 #. type: =item
39712 #: ../src/guestfs.pod:1843
39713 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39714 msgstr ""
39715
39716 #. type: textblock
39717 #: ../src/guestfs.pod:1846
39718 msgid ""
39719 "The callback function is called whenever a log message is generated by qemu, "
39720 "the appliance kernel, guestfsd (daemon), or utility programs."
39721 msgstr ""
39722
39723 #. type: textblock
39724 #: ../src/guestfs.pod:1849
39725 msgid ""
39726 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39727 "guestfs_launch>) then additional debug messages are generated."
39728 msgstr ""
39729
39730 #. type: textblock
39731 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39732 msgid ""
39733 "If no callback is registered: the messages are discarded unless the verbose "
39734 "flag is set in which case they are sent to stderr.  You can override the "
39735 "printing of verbose messages to stderr by setting up a callback."
39736 msgstr ""
39737
39738 #. type: =item
39739 #: ../src/guestfs.pod:1857
39740 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39741 msgstr ""
39742
39743 #. type: textblock
39744 #: ../src/guestfs.pod:1860
39745 msgid ""
39746 "The callback function is called whenever a log message is generated by the "
39747 "library part of libguestfs."
39748 msgstr ""
39749
39750 #. type: textblock
39751 #: ../src/guestfs.pod:1863
39752 msgid ""
39753 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39754 "messages are generated."
39755 msgstr ""
39756
39757 #. type: =item
39758 #: ../src/guestfs.pod:1871
39759 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39760 msgstr ""
39761
39762 #. type: textblock
39763 #: ../src/guestfs.pod:1874
39764 msgid ""
39765 "The callback function is called whenever a trace message is generated.  This "
39766 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39767 msgstr ""
39768
39769 #. type: textblock
39770 #: ../src/guestfs.pod:1877
39771 msgid ""
39772 "If no callback is registered: the messages are sent to stderr.  You can "
39773 "override the printing of trace messages to stderr by setting up a callback."
39774 msgstr ""
39775
39776 #. type: =item
39777 #: ../src/guestfs.pod:1881
39778 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39779 msgstr ""
39780
39781 #. type: textblock
39782 #: ../src/guestfs.pod:1884
39783 msgid ""
39784 "The callback function is called whenever a libguestfs function is entered."
39785 msgstr ""
39786
39787 #. type: textblock
39788 #: ../src/guestfs.pod:1887
39789 msgid ""
39790 "The payload is a string which contains the name of the function that we are "
39791 "entering (not including C<guestfs_> prefix)."
39792 msgstr ""
39793
39794 #. type: textblock
39795 #: ../src/guestfs.pod:1890
39796 msgid ""
39797 "Note that libguestfs functions can call themselves, so you may see many "
39798 "events from a single call.  A few libguestfs functions do not generate this "
39799 "event."
39800 msgstr ""
39801
39802 #. type: =head3
39803 #: ../src/guestfs.pod:1898
39804 msgid "guestfs_set_event_callback"
39805 msgstr ""
39806
39807 #. type: verbatim
39808 #: ../src/guestfs.pod:1900
39809 #, no-wrap
39810 msgid ""
39811 " int guestfs_set_event_callback (guestfs_h *g,\n"
39812 "                                 guestfs_event_callback cb,\n"
39813 "                                 uint64_t event_bitmask,\n"
39814 "                                 int flags,\n"
39815 "                                 void *opaque);\n"
39816 "\n"
39817 msgstr ""
39818
39819 #. type: textblock
39820 #: ../src/guestfs.pod:1906
39821 msgid ""
39822 "This function registers a callback (C<cb>) for all event classes in the "
39823 "C<event_bitmask>."
39824 msgstr ""
39825
39826 #. type: textblock
39827 #: ../src/guestfs.pod:1909
39828 msgid ""
39829 "For example, to register for all log message events, you could call this "
39830 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39831 "To register a single callback for all possible classes of events, use "
39832 "C<GUESTFS_EVENT_ALL>."
39833 msgstr ""
39834
39835 #. type: textblock
39836 #: ../src/guestfs.pod:1915
39837 msgid "C<flags> should always be passed as 0."
39838 msgstr ""
39839
39840 #. type: textblock
39841 #: ../src/guestfs.pod:1917
39842 msgid ""
39843 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39844 "it for any purpose."
39845 msgstr ""
39846
39847 #. type: textblock
39848 #: ../src/guestfs.pod:1920
39849 msgid ""
39850 "The return value is the event handle (an integer) which you can use to "
39851 "delete the callback (see below)."
39852 msgstr ""
39853
39854 #. type: textblock
39855 #: ../src/guestfs.pod:1923
39856 msgid ""
39857 "If there is an error, this function returns C<-1>, and sets the error in the "
39858 "handle in the usual way (see L</guestfs_last_error> etc.)"
39859 msgstr ""
39860
39861 #. type: textblock
39862 #: ../src/guestfs.pod:1926
39863 msgid ""
39864 "Callbacks remain in effect until they are deleted, or until the handle is "
39865 "closed."
39866 msgstr ""
39867
39868 #. type: textblock
39869 #: ../src/guestfs.pod:1929
39870 msgid ""
39871 "In the case where multiple callbacks are registered for a particular event "
39872 "class, all of the callbacks are called.  The order in which multiple "
39873 "callbacks are called is not defined."
39874 msgstr ""
39875
39876 #. type: =head3
39877 #: ../src/guestfs.pod:1933
39878 msgid "guestfs_delete_event_callback"
39879 msgstr ""
39880
39881 #. type: verbatim
39882 #: ../src/guestfs.pod:1935
39883 #, no-wrap
39884 msgid ""
39885 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39886 "\n"
39887 msgstr ""
39888
39889 #. type: textblock
39890 #: ../src/guestfs.pod:1937
39891 msgid ""
39892 "Delete a callback that was previously registered.  C<event_handle> should be "
39893 "the integer that was returned by a previous call to "
39894 "C<guestfs_set_event_callback> on the same handle."
39895 msgstr ""
39896
39897 #. type: =head3
39898 #: ../src/guestfs.pod:1941
39899 msgid "guestfs_event_callback"
39900 msgstr ""
39901
39902 #. type: verbatim
39903 #: ../src/guestfs.pod:1943
39904 #, no-wrap
39905 msgid ""
39906 " typedef void (*guestfs_event_callback) (\n"
39907 "                  guestfs_h *g,\n"
39908 "                  void *opaque,\n"
39909 "                  uint64_t event,\n"
39910 "                  int event_handle,\n"
39911 "                  int flags,\n"
39912 "                  const char *buf, size_t buf_len,\n"
39913 "                  const uint64_t *array, size_t array_len);\n"
39914 "\n"
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../src/guestfs.pod:1952
39919 msgid ""
39920 "This is the type of the event callback function that you have to provide."
39921 msgstr ""
39922
39923 #. type: textblock
39924 #: ../src/guestfs.pod:1955
39925 msgid ""
39926 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39927 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39928 "handle, and C<flags> which in the current API you should ignore."
39929 msgstr ""
39930
39931 #. type: textblock
39932 #: ../src/guestfs.pod:1959
39933 msgid ""
39934 "The remaining parameters contain the event payload (if any).  Each event may "
39935 "contain a payload, which usually relates to the event class, but for future "
39936 "proofing your code should be written to handle any payload for any event "
39937 "class."
39938 msgstr ""
39939
39940 #. type: textblock
39941 #: ../src/guestfs.pod:1964
39942 msgid ""
39943 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39944 "there is no message buffer).  Note that this message buffer can contain "
39945 "arbitrary 8 bit data, including NUL bytes."
39946 msgstr ""
39947
39948 #. type: textblock
39949 #: ../src/guestfs.pod:1968
39950 msgid ""
39951 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39952 "moment this is only used for progress messages."
39953 msgstr ""
39954
39955 #. type: =head3
39956 #: ../src/guestfs.pod:1971
39957 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39958 msgstr ""
39959
39960 #. type: textblock
39961 #: ../src/guestfs.pod:1973
39962 msgid ""
39963 "One motivation for the generic event API was to allow GUI programs to "
39964 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39965 "unconditionally to C<stderr>."
39966 msgstr ""
39967
39968 #. type: textblock
39969 #: ../src/guestfs.pod:1977
39970 msgid ""
39971 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39972 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39973 "messages are not events; you must capture error messages separately)."
39974 msgstr ""
39975
39976 #. type: textblock
39977 #: ../src/guestfs.pod:1982
39978 msgid ""
39979 "Programs have to set up a callback to capture the classes of events of "
39980 "interest:"
39981 msgstr ""
39982
39983 #. type: verbatim
39984 #: ../src/guestfs.pod:1985
39985 #, no-wrap
39986 msgid ""
39987 " int eh =\n"
39988 "   guestfs_set_event_callback\n"
39989 "     (g, message_callback,\n"
39990 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39991 "      GUESTFS_EVENT_TRACE,\n"
39992 "      0, NULL) == -1)\n"
39993 " if (eh == -1) {\n"
39994 "   // handle error in the usual way\n"
39995 " }\n"
39996 "\n"
39997 msgstr ""
39998
39999 #. type: textblock
40000 #: ../src/guestfs.pod:1995
40001 msgid ""
40002 "The callback can then direct messages to the appropriate place.  In this "
40003 "example, messages are directed to syslog:"
40004 msgstr ""
40005
40006 #. type: verbatim
40007 #: ../src/guestfs.pod:1998
40008 #, no-wrap
40009 msgid ""
40010 " static void\n"
40011 " message_callback (\n"
40012 "         guestfs_h *g,\n"
40013 "         void *opaque,\n"
40014 "         uint64_t event,\n"
40015 "         int event_handle,\n"
40016 "         int flags,\n"
40017 "         const char *buf, size_t buf_len,\n"
40018 "         const uint64_t *array, size_t array_len)\n"
40019 " {\n"
40020 "   const int priority = LOG_USER|LOG_INFO;\n"
40021 "   if (buf_len > 0)\n"
40022 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
40023 " }\n"
40024 "\n"
40025 msgstr ""
40026
40027 #. type: =head1
40028 #: ../src/guestfs.pod:2013
40029 msgid "CANCELLING LONG TRANSFERS"
40030 msgstr ""
40031
40032 #. type: textblock
40033 #: ../src/guestfs.pod:2015
40034 msgid ""
40035 "Some operations can be cancelled by the caller while they are in progress.  "
40036 "Currently only operations that involve uploading or downloading data can be "
40037 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
40038 "parameters in the generator)."
40039 msgstr ""
40040
40041 #. type: =head2
40042 #: ../src/guestfs.pod:2020
40043 msgid "guestfs_user_cancel"
40044 msgstr ""
40045
40046 #. type: verbatim
40047 #: ../src/guestfs.pod:2022
40048 #, no-wrap
40049 msgid ""
40050 " void guestfs_user_cancel (guestfs_h *g);\n"
40051 "\n"
40052 msgstr ""
40053
40054 #. type: textblock
40055 #: ../src/guestfs.pod:2024
40056 msgid ""
40057 "C<guestfs_user_cancel> cancels the current upload or download operation."
40058 msgstr ""
40059
40060 #. type: textblock
40061 #: ../src/guestfs.pod:2027
40062 msgid ""
40063 "Unlike most other libguestfs calls, this function is signal safe and thread "
40064 "safe.  You can call it from a signal handler or from another thread, without "
40065 "needing to do any locking."
40066 msgstr ""
40067
40068 #. type: textblock
40069 #: ../src/guestfs.pod:2031
40070 msgid ""
40071 "The transfer that was in progress (if there is one) will stop shortly "
40072 "afterwards, and will return an error.  The errno (see L</"
40073 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
40074 "out if the operation was cancelled or failed because of another error."
40075 msgstr ""
40076
40077 #. type: textblock
40078 #: ../src/guestfs.pod:2037
40079 msgid ""
40080 "No cleanup is performed: for example, if a file was being uploaded then "
40081 "after cancellation there may be a partially uploaded file.  It is the "
40082 "caller's responsibility to clean up if necessary."
40083 msgstr ""
40084
40085 #. type: textblock
40086 #: ../src/guestfs.pod:2041
40087 msgid "There are two common places that you might call C<guestfs_user_cancel>."
40088 msgstr ""
40089
40090 #. type: textblock
40091 #: ../src/guestfs.pod:2043
40092 msgid ""
40093 "In an interactive text-based program, you might call it from a C<SIGINT> "
40094 "signal handler so that pressing C<^C> cancels the current operation.  (You "
40095 "also need to call L</guestfs_set_pgroup> so that child processes don't "
40096 "receive the C<^C> signal)."
40097 msgstr ""
40098
40099 #. type: textblock
40100 #: ../src/guestfs.pod:2048
40101 msgid ""
40102 "In a graphical program, when the main thread is displaying a progress bar "
40103 "with a cancel button, wire up the cancel button to call this function."
40104 msgstr ""
40105
40106 #. type: =head1
40107 #: ../src/guestfs.pod:2052
40108 msgid "PRIVATE DATA AREA"
40109 msgstr ""
40110
40111 #. type: textblock
40112 #: ../src/guestfs.pod:2054
40113 msgid ""
40114 "You can attach named pieces of private data to the libguestfs handle, fetch "
40115 "them by name, and walk over them, for the lifetime of the handle.  This is "
40116 "called the private data area and is only available from the C API."
40117 msgstr ""
40118
40119 #. type: textblock
40120 #: ../src/guestfs.pod:2059
40121 msgid "To attach a named piece of data, use the following call:"
40122 msgstr ""
40123
40124 #. type: verbatim
40125 #: ../src/guestfs.pod:2061
40126 #, no-wrap
40127 msgid ""
40128 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40129 "\n"
40130 msgstr ""
40131 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
40132 "\n"
40133
40134 #. type: textblock
40135 #: ../src/guestfs.pod:2063
40136 msgid ""
40137 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
40138 "pointer (which can be C<NULL>).  Any previous item with the same key is "
40139 "overwritten."
40140 msgstr ""
40141
40142 #. type: textblock
40143 #: ../src/guestfs.pod:2067
40144 msgid ""
40145 "You can use any C<key> you want, but your key should I<not> start with an "
40146 "underscore character.  Keys beginning with an underscore character are "
40147 "reserved for internal libguestfs purposes (eg. for implementing language "
40148 "bindings).  It is recommended that you prefix the key with some unique "
40149 "string to avoid collisions with other users."
40150 msgstr ""
40151
40152 #. type: textblock
40153 #: ../src/guestfs.pod:2073
40154 msgid "To retrieve the pointer, use:"
40155 msgstr ""
40156
40157 #. type: verbatim
40158 #: ../src/guestfs.pod:2075
40159 #, no-wrap
40160 msgid ""
40161 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40162 "\n"
40163 msgstr ""
40164 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
40165 "\n"
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:2077
40169 msgid ""
40170 "This function returns C<NULL> if either no data is found associated with "
40171 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
40172 "C<NULL>."
40173 msgstr ""
40174
40175 #. type: textblock
40176 #: ../src/guestfs.pod:2081
40177 msgid ""
40178 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
40179 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
40180 "all.  In particular, libguestfs does I<not> try to free the data when the "
40181 "handle is closed.  If the data must be freed, then the caller must either "
40182 "free it before calling L</guestfs_close> or must set up a close callback to "
40183 "do it (see L</GUESTFS_EVENT_CLOSE>)."
40184 msgstr ""
40185
40186 #. type: textblock
40187 #: ../src/guestfs.pod:2088
40188 msgid "To walk over all entries, use these two functions:"
40189 msgstr ""
40190
40191 #. type: verbatim
40192 #: ../src/guestfs.pod:2090
40193 #, no-wrap
40194 msgid ""
40195 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
40196 "\n"
40197 msgstr ""
40198
40199 #. type: verbatim
40200 #: ../src/guestfs.pod:2092
40201 #, no-wrap
40202 msgid ""
40203 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
40204 "\n"
40205 msgstr ""
40206
40207 #. type: textblock
40208 #: ../src/guestfs.pod:2094
40209 msgid ""
40210 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
40211 "not have any particular meaning -- keys are not returned in any defined "
40212 "order).  A pointer to the key is returned in C<*key_rtn> and the "
40213 "corresponding data pointer is returned from the function.  C<NULL> is "
40214 "returned if there are no keys stored in the handle."
40215 msgstr ""
40216
40217 #. type: textblock
40218 #: ../src/guestfs.pod:2100
40219 msgid ""
40220 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
40221 "value of this function is also C<NULL> is there are no further entries to "
40222 "return."
40223 msgstr ""
40224
40225 #. type: textblock
40226 #: ../src/guestfs.pod:2104
40227 msgid "Notes about walking over entries:"
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../src/guestfs.pod:2110
40232 msgid ""
40233 "You must not call C<guestfs_set_private> while walking over the entries."
40234 msgstr ""
40235
40236 #. type: textblock
40237 #: ../src/guestfs.pod:2115
40238 msgid ""
40239 "The handle maintains an internal iterator which is reset when you call "
40240 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
40241 "call C<guestfs_set_private>."
40242 msgstr ""
40243
40244 #. type: textblock
40245 #: ../src/guestfs.pod:2121
40246 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
40247 msgstr ""
40248
40249 #. type: verbatim
40250 #: ../src/guestfs.pod:2123
40251 #, no-wrap
40252 msgid ""
40253 " guestfs_set_private (g, key, NULL);\n"
40254 "\n"
40255 msgstr ""
40256
40257 #. type: textblock
40258 #: ../src/guestfs.pod:2125
40259 msgid "then that C<key> is not returned when walking."
40260 msgstr ""
40261
40262 #. type: textblock
40263 #: ../src/guestfs.pod:2129
40264 msgid ""
40265 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
40266 "C<guestfs_next_private> or C<guestfs_set_private>."
40267 msgstr ""
40268
40269 #. type: textblock
40270 #: ../src/guestfs.pod:2135
40271 msgid ""
40272 "The following example code shows how to print all keys and data pointers "
40273 "that are associated with the handle C<g>:"
40274 msgstr ""
40275
40276 #. type: verbatim
40277 #: ../src/guestfs.pod:2138
40278 #, no-wrap
40279 msgid ""
40280 " const char *key;\n"
40281 " void *data = guestfs_first_private (g, &key);\n"
40282 " while (data != NULL)\n"
40283 "   {\n"
40284 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
40285 "     data = guestfs_next_private (g, &key);\n"
40286 "   }\n"
40287 "\n"
40288 msgstr ""
40289
40290 #. type: textblock
40291 #: ../src/guestfs.pod:2146
40292 msgid ""
40293 "More commonly you are only interested in keys that begin with an application-"
40294 "specific prefix C<foo_>.  Modify the loop like so:"
40295 msgstr ""
40296
40297 #. type: verbatim
40298 #: ../src/guestfs.pod:2149
40299 #, no-wrap
40300 msgid ""
40301 " const char *key;\n"
40302 " void *data = guestfs_first_private (g, &key);\n"
40303 " while (data != NULL)\n"
40304 "   {\n"
40305 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40306 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
40307 "     data = guestfs_next_private (g, &key);\n"
40308 "   }\n"
40309 "\n"
40310 msgstr ""
40311
40312 #. type: textblock
40313 #: ../src/guestfs.pod:2158
40314 msgid ""
40315 "If you need to modify keys while walking, then you have to jump back to the "
40316 "beginning of the loop.  For example, to delete all keys prefixed with "
40317 "C<foo_>:"
40318 msgstr ""
40319
40320 #. type: verbatim
40321 #: ../src/guestfs.pod:2162
40322 #, no-wrap
40323 msgid ""
40324 "  const char *key;\n"
40325 "  void *data;\n"
40326 " again:\n"
40327 "  data = guestfs_first_private (g, &key);\n"
40328 "  while (data != NULL)\n"
40329 "    {\n"
40330 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
40331 "        {\n"
40332 "          guestfs_set_private (g, key, NULL);\n"
40333 "          /* note that 'key' pointer is now invalid, and so is\n"
40334 "             the internal iterator */\n"
40335 "          goto again;\n"
40336 "        }\n"
40337 "      data = guestfs_next_private (g, &key);\n"
40338 "    }\n"
40339 "\n"
40340 msgstr ""
40341
40342 #. type: textblock
40343 #: ../src/guestfs.pod:2178
40344 msgid ""
40345 "Note that the above loop is guaranteed to terminate because the keys are "
40346 "being deleted, but other manipulations of keys within the loop might not "
40347 "terminate unless you also maintain an indication of which keys have been "
40348 "visited."
40349 msgstr ""
40350
40351 #. type: =head1
40352 #: ../src/guestfs.pod:2183
40353 msgid "SYSTEMTAP"
40354 msgstr ""
40355
40356 #. type: textblock
40357 #: ../src/guestfs.pod:2185
40358 msgid ""
40359 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
40360 "true of any library, not just libguestfs.  However libguestfs also contains "
40361 "static markers to help in probing internal operations."
40362 msgstr ""
40363
40364 #. type: textblock
40365 #: ../src/guestfs.pod:2189
40366 msgid "You can list all the static markers by doing:"
40367 msgstr ""
40368
40369 #. type: verbatim
40370 #: ../src/guestfs.pod:2191
40371 #, no-wrap
40372 msgid ""
40373 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
40374 "              .provider(\"guestfs\").mark(\"*\")'\n"
40375 "\n"
40376 msgstr ""
40377
40378 #. type: textblock
40379 #: ../src/guestfs.pod:2194
40380 msgid ""
40381 "B<Note:> These static markers are I<not> part of the stable API and may "
40382 "change in future versions."
40383 msgstr ""
40384
40385 #. type: =head2
40386 #: ../src/guestfs.pod:2197
40387 msgid "SYSTEMTAP SCRIPT EXAMPLE"
40388 msgstr ""
40389
40390 #. type: textblock
40391 #: ../src/guestfs.pod:2199
40392 msgid ""
40393 "This script contains examples of displaying both the static markers and some "
40394 "ordinary C entry points:"
40395 msgstr ""
40396
40397 #. type: verbatim
40398 #: ../src/guestfs.pod:2202
40399 #, no-wrap
40400 msgid ""
40401 " global last;\n"
40402 " \n"
40403 msgstr ""
40404
40405 #. type: verbatim
40406 #: ../src/guestfs.pod:2204
40407 #, no-wrap
40408 msgid ""
40409 " function display_time () {\n"
40410 "       now = gettimeofday_us ();\n"
40411 "       delta = 0;\n"
40412 "       if (last > 0)\n"
40413 "             delta = now - last;\n"
40414 "       last = now;\n"
40415 " \n"
40416 msgstr ""
40417
40418 #. type: verbatim
40419 #: ../src/guestfs.pod:2211
40420 #, no-wrap
40421 msgid ""
40422 "       printf (\"%d (+%d):\", now, delta);\n"
40423 " }\n"
40424 " \n"
40425 msgstr ""
40426
40427 #. type: verbatim
40428 #: ../src/guestfs.pod:2214
40429 #, no-wrap
40430 msgid ""
40431 " probe begin {\n"
40432 "       last = 0;\n"
40433 "       printf (\"ready\\n\");\n"
40434 " }\n"
40435 " \n"
40436 msgstr ""
40437
40438 #. type: verbatim
40439 #: ../src/guestfs.pod:2219
40440 #, no-wrap
40441 msgid ""
40442 " /* Display all calls to static markers. */\n"
40443 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40444 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
40445 "       display_time();\n"
40446 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
40447 " }\n"
40448 " \n"
40449 msgstr ""
40450
40451 #. type: verbatim
40452 #: ../src/guestfs.pod:2226
40453 #, no-wrap
40454 msgid ""
40455 " /* Display all calls to guestfs_mkfs* functions. */\n"
40456 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
40457 "           .function(\"guestfs_mkfs*\") ? {\n"
40458 "       display_time();\n"
40459 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
40460 " }\n"
40461 "\n"
40462 msgstr ""
40463
40464 #. type: textblock
40465 #: ../src/guestfs.pod:2233
40466 msgid ""
40467 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
40468 "program.  Note that you either have to be root, or you have to add yourself "
40469 "to several special stap groups.  Consult the systemtap documentation for "
40470 "more information."
40471 msgstr ""
40472
40473 #. type: verbatim
40474 #: ../src/guestfs.pod:2238
40475 #, no-wrap
40476 msgid ""
40477 " # stap /tmp/test.stap\n"
40478 " ready\n"
40479 "\n"
40480 msgstr ""
40481
40482 #. type: textblock
40483 #: ../src/guestfs.pod:2241
40484 msgid "In another terminal, run a guestfish command such as this:"
40485 msgstr ""
40486
40487 #. type: textblock
40488 #: ../src/guestfs.pod:2245
40489 msgid "In the first terminal, stap trace output similar to this is shown:"
40490 msgstr ""
40491
40492 #. type: verbatim
40493 #: ../src/guestfs.pod:2247
40494 #, no-wrap
40495 msgid ""
40496 " 1318248056692655 (+0):\tlaunch_start\n"
40497 " 1318248056692850 (+195):       launch_build_appliance_start\n"
40498 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
40499 " 1318248056838059 (+19774):     launch_run_qemu\n"
40500 " 1318248061071167 (+4233108):   launch_end\n"
40501 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40502 "\n"
40503 msgstr ""
40504
40505 #. type: =end
40506 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40507 msgid "html"
40508 msgstr "html"
40509
40510 #. type: textblock
40511 #: ../src/guestfs.pod:2256
40512 msgid ""
40513 "<!-- old anchor for the next section --> <a name="
40514 "\"state_machine_and_low_level_event_api\"/>"
40515 msgstr ""
40516 "<!-- old anchor for the next section --> <a name="
40517 "\"state_machine_and_low_level_event_api\"/>"
40518
40519 #. type: =head1
40520 #: ../src/guestfs.pod:2261
40521 msgid "ARCHITECTURE"
40522 msgstr "АРХІТЕКТУРА"
40523
40524 #. type: textblock
40525 #: ../src/guestfs.pod:2263
40526 msgid ""
40527 "Internally, libguestfs is implemented by running an appliance (a special "
40528 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
40529 "process of the main program."
40530 msgstr ""
40531
40532 #. type: verbatim
40533 #: ../src/guestfs.pod:2267
40534 #, no-wrap
40535 msgid ""
40536 "  ___________________\n"
40537 " /                   \\\n"
40538 " | main program      |\n"
40539 " |                   |\n"
40540 " |                   |           child process / appliance\n"
40541 " |                   |           __________________________\n"
40542 " |                   |          / qemu                     \\\n"
40543 " +-------------------+   RPC    |      +-----------------+ |\n"
40544 " | libguestfs     <--------------------> guestfsd        | |\n"
40545 " |                   |          |      +-----------------+ |\n"
40546 " \\___________________/          |      | Linux kernel    | |\n"
40547 "                                |      +--^--------------+ |\n"
40548 "                                \\_________|________________/\n"
40549 "                                          |\n"
40550 "                                   _______v______\n"
40551 "                                  /              \\\n"
40552 "                                  | Device or    |\n"
40553 "                                  | disk image   |\n"
40554 "                                  \\______________/\n"
40555 "\n"
40556 msgstr ""
40557
40558 #. type: textblock
40559 #: ../src/guestfs.pod:2287
40560 msgid ""
40561 "The library, linked to the main program, creates the child process and hence "
40562 "the appliance in the L</guestfs_launch> function."
40563 msgstr ""
40564
40565 #. type: textblock
40566 #: ../src/guestfs.pod:2290
40567 msgid ""
40568 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40569 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40570 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
40571 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
40572 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
40573 "attached to the qemu process which translates device access by the "
40574 "appliance's Linux kernel into accesses to the image."
40575 msgstr ""
40576
40577 #. type: textblock
40578 #: ../src/guestfs.pod:2299
40579 msgid ""
40580 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
40581 "Although the disk image you are attached to might also be used by some "
40582 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
40583 "care if both libguestfs's qemu process and your virtual machine are trying "
40584 "to update the disk image at the same time, since these usually results in "
40585 "massive disk corruption)."
40586 msgstr ""
40587
40588 #. type: =head1
40589 #: ../src/guestfs.pod:2306
40590 msgid "STATE MACHINE"
40591 msgstr "СКІНЧЕННИЙ АВТОМАТ"
40592
40593 #. type: textblock
40594 #: ../src/guestfs.pod:2308
40595 msgid "libguestfs uses a state machine to model the child process:"
40596 msgstr ""
40597
40598 #. type: verbatim
40599 #: ../src/guestfs.pod:2310
40600 #, no-wrap
40601 msgid ""
40602 "                         |\n"
40603 "                    guestfs_create\n"
40604 "                         |\n"
40605 "                         |\n"
40606 "                     ____V_____\n"
40607 "                    /          \\\n"
40608 "                    |  CONFIG  |\n"
40609 "                    \\__________/\n"
40610 "                     ^ ^   ^  \\\n"
40611 "                    /  |    \\  \\ guestfs_launch\n"
40612 "                   /   |    _\\__V______\n"
40613 "                  /    |   /           \\\n"
40614 "                 /     |   | LAUNCHING |\n"
40615 "                /      |   \\___________/\n"
40616 "               /       |       /\n"
40617 "              /        |  guestfs_launch\n"
40618 "             /         |     /\n"
40619 "    ______  /        __|____V\n"
40620 "   /      \\ ------> /        \\\n"
40621 "   | BUSY |         | READY  |\n"
40622 "   \\______/ <------ \\________/\n"
40623 "\n"
40624 msgstr ""
40625
40626 #. type: textblock
40627 #: ../src/guestfs.pod:2332
40628 msgid ""
40629 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40630 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40631 "(3) alternating between READY and BUSY as commands are issued to, and "
40632 "carried out by, the child process."
40633 msgstr ""
40634
40635 #. type: textblock
40636 #: ../src/guestfs.pod:2337
40637 msgid ""
40638 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40639 "asynchronously at any time (eg. due to some internal error), and that causes "
40640 "the state to transition back to CONFIG."
40641 msgstr ""
40642
40643 #. type: textblock
40644 #: ../src/guestfs.pod:2341
40645 msgid ""
40646 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40647 "issued when in the CONFIG state."
40648 msgstr ""
40649
40650 #. type: textblock
40651 #: ../src/guestfs.pod:2344
40652 msgid ""
40653 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
40654 "L</guestfs_launch> blocks until the child process is READY to accept "
40655 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
40656 "moves the state from CONFIG to LAUNCHING while it is running."
40657 msgstr ""
40658
40659 #. type: textblock
40660 #: ../src/guestfs.pod:2350
40661 msgid ""
40662 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40663 "state.  These API calls block waiting for the command to be carried out (ie. "
40664 "the state to transition to BUSY and then back to READY).  There are no non-"
40665 "blocking versions, and no way to issue more than one command per handle at "
40666 "the same time."
40667 msgstr ""
40668
40669 #. type: textblock
40670 #: ../src/guestfs.pod:2356
40671 msgid ""
40672 "Finally, the child process sends asynchronous messages back to the main "
40673 "program, such as kernel log messages.  You can register a callback to "
40674 "receive these messages."
40675 msgstr ""
40676
40677 #. type: =head1
40678 #: ../src/guestfs.pod:2360
40679 msgid "INTERNALS"
40680 msgstr ""
40681
40682 #. type: =head2
40683 #: ../src/guestfs.pod:2362
40684 msgid "APPLIANCE BOOT PROCESS"
40685 msgstr ""
40686
40687 #. type: textblock
40688 #: ../src/guestfs.pod:2364
40689 msgid ""
40690 "This process has evolved and continues to evolve.  The description here "
40691 "corresponds only to the current version of libguestfs and is provided for "
40692 "information only."
40693 msgstr ""
40694
40695 #. type: textblock
40696 #: ../src/guestfs.pod:2368
40697 msgid ""
40698 "In order to follow the stages involved below, enable libguestfs debugging "
40699 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40700 msgstr ""
40701
40702 #. type: =item
40703 #: ../src/guestfs.pod:2373
40704 msgid "Create the appliance"
40705 msgstr ""
40706
40707 #. type: textblock
40708 #: ../src/guestfs.pod:2375
40709 msgid ""
40710 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40711 "initrd and the appliance."
40712 msgstr ""
40713
40714 #. type: textblock
40715 #: ../src/guestfs.pod:2378
40716 msgid ""
40717 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40718 "directory if C<TMPDIR> is set)."
40719 msgstr ""
40720
40721 #. type: textblock
40722 #: ../src/guestfs.pod:2381
40723 msgid ""
40724 "For a complete description of how the appliance is created and cached, read "
40725 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40726 msgstr ""
40727
40728 #. type: =item
40729 #: ../src/guestfs.pod:2385
40730 msgid "Start qemu and boot the kernel"
40731 msgstr ""
40732
40733 #. type: textblock
40734 #: ../src/guestfs.pod:2387
40735 msgid "qemu is invoked to boot the kernel."
40736 msgstr ""
40737
40738 #. type: =item
40739 #: ../src/guestfs.pod:2389
40740 msgid "Run the initrd"
40741 msgstr ""
40742
40743 #. type: textblock
40744 #: ../src/guestfs.pod:2391
40745 msgid ""
40746 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40747 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40748 "order that the appliance itself can be mounted and started."
40749 msgstr ""
40750
40751 #. type: textblock
40752 #: ../src/guestfs.pod:2395
40753 msgid ""
40754 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40755 "initrd>."
40756 msgstr ""
40757
40758 #. type: textblock
40759 #: ../src/guestfs.pod:2398
40760 msgid ""
40761 "When the initrd has started you will see messages showing that kernel "
40762 "modules are being loaded, similar to this:"
40763 msgstr ""
40764
40765 #. type: verbatim
40766 #: ../src/guestfs.pod:2401
40767 #, no-wrap
40768 msgid ""
40769 " febootstrap: ext2 mini initrd starting up\n"
40770 " febootstrap: mounting /sys\n"
40771 " febootstrap: internal insmod libcrc32c.ko\n"
40772 " febootstrap: internal insmod crc32c-intel.ko\n"
40773 "\n"
40774 msgstr ""
40775
40776 #. type: =item
40777 #: ../src/guestfs.pod:2406
40778 msgid "Find and mount the appliance device"
40779 msgstr ""
40780
40781 #. type: textblock
40782 #: ../src/guestfs.pod:2408
40783 msgid ""
40784 "The appliance is a sparse file containing an ext2 filesystem which contains "
40785 "a familiar (although reduced in size) Linux operating system.  It would "
40786 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40787 msgstr ""
40788
40789 #. type: textblock
40790 #: ../src/guestfs.pod:2412
40791 msgid ""
40792 "The regular disks being inspected by libguestfs are the first devices "
40793 "exposed by qemu (eg. as C</dev/vda>)."
40794 msgstr ""
40795
40796 #. type: textblock
40797 #: ../src/guestfs.pod:2415
40798 msgid ""
40799 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40800 "there was only one regular disk)."
40801 msgstr ""
40802
40803 #. type: textblock
40804 #: ../src/guestfs.pod:2418
40805 msgid ""
40806 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40807 "and switch root into the appliance, and run C</init> from the appliance."
40808 msgstr ""
40809
40810 #. type: textblock
40811 #: ../src/guestfs.pod:2422
40812 msgid "If this works successfully you will see messages such as:"
40813 msgstr ""
40814
40815 #. type: verbatim
40816 #: ../src/guestfs.pod:2424
40817 #, no-wrap
40818 msgid ""
40819 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40820 " febootstrap: creating /dev/root as block special 252:16\n"
40821 " febootstrap: mounting new root on /root\n"
40822 " febootstrap: chroot\n"
40823 " Starting /init script ...\n"
40824 "\n"
40825 msgstr ""
40826
40827 #. type: textblock
40828 #: ../src/guestfs.pod:2430
40829 msgid ""
40830 "Note that C<Starting /init script ...> indicates that the appliance's init "
40831 "script is now running."
40832 msgstr ""
40833
40834 #. type: =item
40835 #: ../src/guestfs.pod:2433
40836 msgid "Initialize the appliance"
40837 msgstr ""
40838
40839 #. type: textblock
40840 #: ../src/guestfs.pod:2435
40841 msgid ""
40842 "The appliance itself now initializes itself.  This involves starting certain "
40843 "processes like C<udev>, possibly printing some debug information, and "
40844 "finally running the daemon (C<guestfsd>)."
40845 msgstr ""
40846
40847 #. type: =item
40848 #: ../src/guestfs.pod:2439
40849 msgid "The daemon"
40850 msgstr ""
40851
40852 #. type: textblock
40853 #: ../src/guestfs.pod:2441
40854 msgid ""
40855 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40856 "should see:"
40857 msgstr ""
40858
40859 #. type: verbatim
40860 #: ../src/guestfs.pod:2444
40861 #, no-wrap
40862 msgid ""
40863 " verbose daemon enabled\n"
40864 "\n"
40865 msgstr ""
40866
40867 #. type: textblock
40868 #: ../src/guestfs.pod:2446
40869 msgid ""
40870 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40871 "connected on the other end to the library."
40872 msgstr ""
40873
40874 #. type: textblock
40875 #: ../src/guestfs.pod:2449
40876 msgid ""
40877 "The daemon connects to this port (and hence to the library) and sends a four "
40878 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40879 "protocol (see below)."
40880 msgstr ""
40881
40882 #. type: =head2
40883 #: ../src/guestfs.pod:2455
40884 msgid "COMMUNICATION PROTOCOL"
40885 msgstr ""
40886
40887 #. type: textblock
40888 #: ../src/guestfs.pod:2457
40889 msgid ""
40890 "Don't rely on using this protocol directly.  This section documents how it "
40891 "currently works, but it may change at any time."
40892 msgstr ""
40893
40894 #. type: textblock
40895 #: ../src/guestfs.pod:2460
40896 msgid ""
40897 "The protocol used to talk between the library and the daemon running inside "
40898 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40899 "1014, RFC 1832, RFC 4506)."
40900 msgstr ""
40901
40902 #. type: textblock
40903 #: ../src/guestfs.pod:2464
40904 msgid ""
40905 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40906 "this file is automatically generated)."
40907 msgstr ""
40908
40909 #. type: textblock
40910 #: ../src/guestfs.pod:2467
40911 msgid ""
40912 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40913 "and C<FileOut> parameters, which are handled with very simple request/reply "
40914 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40915 "parameters, which use the same request and reply messages, but they may also "
40916 "be followed by files sent using a chunked encoding."
40917 msgstr ""
40918
40919 #. type: =head3
40920 #: ../src/guestfs.pod:2474
40921 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40922 msgstr ""
40923
40924 #. type: textblock
40925 #: ../src/guestfs.pod:2476
40926 msgid "For ordinary functions, the request message is:"
40927 msgstr ""
40928
40929 #. type: verbatim
40930 #: ../src/guestfs.pod:2478
40931 #, no-wrap
40932 msgid ""
40933 " total length (header + arguments,\n"
40934 "      but not including the length word itself)\n"
40935 " struct guestfs_message_header (encoded as XDR)\n"
40936 " struct guestfs_<foo>_args (encoded as XDR)\n"
40937 "\n"
40938 msgstr ""
40939
40940 #. type: textblock
40941 #: ../src/guestfs.pod:2483
40942 msgid ""
40943 "The total length field allows the daemon to allocate a fixed size buffer "
40944 "into which it slurps the rest of the message.  As a result, the total length "
40945 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40946 "effective size of any request is limited to somewhere under this size."
40947 msgstr ""
40948
40949 #. type: textblock
40950 #: ../src/guestfs.pod:2489
40951 msgid ""
40952 "Note also that many functions don't take any arguments, in which case the "
40953 "C<guestfs_I<foo>_args> is completely omitted."
40954 msgstr ""
40955
40956 #. type: textblock
40957 #: ../src/guestfs.pod:2492
40958 msgid ""
40959 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40960 "receiver knows what type of args structure to expect, or none at all."
40961 msgstr ""
40962
40963 #. type: textblock
40964 #: ../src/guestfs.pod:2496
40965 msgid ""
40966 "For functions that take optional arguments, the optional arguments are "
40967 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40968 "arguments.  A bitmask in the header indicates which optional arguments are "
40969 "meaningful.  The bitmask is also checked to see if it contains bits set "
40970 "which the daemon does not know about (eg. if more optional arguments were "
40971 "added in a later version of the library), and this causes the call to be "
40972 "rejected."
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../src/guestfs.pod:2504
40977 msgid "The reply message for ordinary functions is:"
40978 msgstr ""
40979
40980 #. type: verbatim
40981 #: ../src/guestfs.pod:2506
40982 #, no-wrap
40983 msgid ""
40984 " total length (header + ret,\n"
40985 "      but not including the length word itself)\n"
40986 " struct guestfs_message_header (encoded as XDR)\n"
40987 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40988 "\n"
40989 msgstr ""
40990
40991 #. type: textblock
40992 #: ../src/guestfs.pod:2511
40993 msgid ""
40994 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40995 "functions that return no formal return values."
40996 msgstr ""
40997
40998 #. type: textblock
40999 #: ../src/guestfs.pod:2514
41000 msgid ""
41001 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
41002 msgstr ""
41003
41004 #. type: textblock
41005 #: ../src/guestfs.pod:2517
41006 msgid ""
41007 "In the case of an error, a flag is set in the header, and the reply message "
41008 "is slightly changed:"
41009 msgstr ""
41010
41011 #. type: verbatim
41012 #: ../src/guestfs.pod:2520
41013 #, no-wrap
41014 msgid ""
41015 " total length (header + error,\n"
41016 "      but not including the length word itself)\n"
41017 " struct guestfs_message_header (encoded as XDR)\n"
41018 " struct guestfs_message_error (encoded as XDR)\n"
41019 "\n"
41020 msgstr ""
41021
41022 #. type: textblock
41023 #: ../src/guestfs.pod:2525
41024 msgid ""
41025 "The C<guestfs_message_error> structure contains the error message as a "
41026 "string."
41027 msgstr ""
41028
41029 #. type: =head3
41030 #: ../src/guestfs.pod:2528
41031 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
41032 msgstr ""
41033
41034 #. type: textblock
41035 #: ../src/guestfs.pod:2530
41036 msgid ""
41037 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
41038 "The normal request message is sent (see above).  However this is followed by "
41039 "a sequence of file chunks."
41040 msgstr ""
41041
41042 #. type: verbatim
41043 #: ../src/guestfs.pod:2534
41044 #, no-wrap
41045 msgid ""
41046 " total length (header + arguments,\n"
41047 "      but not including the length word itself,\n"
41048 "      and not including the chunks)\n"
41049 " struct guestfs_message_header (encoded as XDR)\n"
41050 " struct guestfs_<foo>_args (encoded as XDR)\n"
41051 " sequence of chunks for FileIn param #0\n"
41052 " sequence of chunks for FileIn param #1 etc.\n"
41053 "\n"
41054 msgstr ""
41055
41056 #. type: textblock
41057 #: ../src/guestfs.pod:2542
41058 msgid "The \"sequence of chunks\" is:"
41059 msgstr ""
41060
41061 #. type: verbatim
41062 #: ../src/guestfs.pod:2544
41063 #, no-wrap
41064 msgid ""
41065 " length of chunk (not including length word itself)\n"
41066 " struct guestfs_chunk (encoded as XDR)\n"
41067 " length of chunk\n"
41068 " struct guestfs_chunk (encoded as XDR)\n"
41069 "   ...\n"
41070 " length of chunk\n"
41071 " struct guestfs_chunk (with data.data_len == 0)\n"
41072 "\n"
41073 msgstr ""
41074
41075 #. type: textblock
41076 #: ../src/guestfs.pod:2552
41077 msgid ""
41078 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
41079 "is set in the final chunk to indicate either successful completion or early "
41080 "cancellation."
41081 msgstr ""
41082
41083 #. type: textblock
41084 #: ../src/guestfs.pod:2556
41085 msgid ""
41086 "At time of writing there are no functions that have more than one FileIn "
41087 "parameter.  However this is (theoretically) supported, by sending the "
41088 "sequence of chunks for each FileIn parameter one after another (from left to "
41089 "right)."
41090 msgstr ""
41091
41092 #. type: textblock
41093 #: ../src/guestfs.pod:2561
41094 msgid ""
41095 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
41096 "transfer.  The library does this by sending a chunk with a special flag set "
41097 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
41098 "RPC, does I<not> send any reply, and goes back to reading the next request."
41099 msgstr ""
41100
41101 #. type: textblock
41102 #: ../src/guestfs.pod:2567
41103 msgid ""
41104 "The daemon may also cancel.  It does this by writing a special word "
41105 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
41106 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
41107 "cancel chunk).  The special word is chosen so that even if cancellation "
41108 "happens right at the end of the transfer (after the library has finished "
41109 "writing and has started listening for the reply), the \"spurious\" cancel "
41110 "flag will not be confused with the reply message."
41111 msgstr ""
41112
41113 #. type: textblock
41114 #: ../src/guestfs.pod:2576
41115 msgid ""
41116 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
41117 "limit), and also files where the size is not known in advance (eg. from "
41118 "pipes or sockets).  However the chunks are rather small "
41119 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
41120 "to keep much in memory."
41121 msgstr ""
41122
41123 #. type: =head3
41124 #: ../src/guestfs.pod:2582
41125 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
41126 msgstr ""
41127
41128 #. type: textblock
41129 #: ../src/guestfs.pod:2584
41130 msgid ""
41131 "The protocol for FileOut parameters is exactly the same as for FileIn "
41132 "parameters, but with the roles of daemon and library reversed."
41133 msgstr ""
41134
41135 #. type: verbatim
41136 #: ../src/guestfs.pod:2587
41137 #, no-wrap
41138 msgid ""
41139 " total length (header + ret,\n"
41140 "      but not including the length word itself,\n"
41141 "      and not including the chunks)\n"
41142 " struct guestfs_message_header (encoded as XDR)\n"
41143 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41144 " sequence of chunks for FileOut param #0\n"
41145 " sequence of chunks for FileOut param #1 etc.\n"
41146 "\n"
41147 msgstr ""
41148
41149 #. type: =head3
41150 #: ../src/guestfs.pod:2595
41151 msgid "INITIAL MESSAGE"
41152 msgstr ""
41153
41154 #. type: textblock
41155 #: ../src/guestfs.pod:2597
41156 msgid ""
41157 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
41158 "which indicates that the guest and daemon is alive.  This is what L</"
41159 "guestfs_launch> waits for."
41160 msgstr ""
41161
41162 #. type: =head3
41163 #: ../src/guestfs.pod:2601
41164 msgid "PROGRESS NOTIFICATION MESSAGES"
41165 msgstr ""
41166
41167 #. type: textblock
41168 #: ../src/guestfs.pod:2603
41169 msgid ""
41170 "The daemon may send progress notification messages at any time.  These are "
41171 "distinguished by the normal length word being replaced by "
41172 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
41173 msgstr ""
41174
41175 #. type: textblock
41176 #: ../src/guestfs.pod:2607
41177 msgid ""
41178 "The library turns them into progress callbacks (see L</"
41179 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
41180 "if not."
41181 msgstr ""
41182
41183 #. type: textblock
41184 #: ../src/guestfs.pod:2611
41185 msgid ""
41186 "The daemon self-limits the frequency of progress messages it sends (see "
41187 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
41188 "messages."
41189 msgstr ""
41190
41191 #. type: =head1
41192 #: ../src/guestfs.pod:2615
41193 msgid "LIBGUESTFS VERSION NUMBERS"
41194 msgstr ""
41195
41196 #. type: textblock
41197 #: ../src/guestfs.pod:2617
41198 msgid ""
41199 "Since April 2010, libguestfs has started to make separate development and "
41200 "stable releases, along with corresponding branches in our git repository.  "
41201 "These separate releases can be identified by version number:"
41202 msgstr ""
41203
41204 #. type: verbatim
41205 #: ../src/guestfs.pod:2622
41206 #, no-wrap
41207 msgid ""
41208 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
41209 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
41210 "       |\n"
41211 "       v\n"
41212 " 1  .  3  .  5\n"
41213 " ^           ^\n"
41214 " |           |\n"
41215 " |           `-------- sub-version\n"
41216 " |\n"
41217 " `------ always '1' because we don't change the ABI\n"
41218 "\n"
41219 msgstr ""
41220
41221 #. type: textblock
41222 #: ../src/guestfs.pod:2633
41223 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
41224 msgstr ""
41225
41226 #. type: textblock
41227 #: ../src/guestfs.pod:2635
41228 msgid ""
41229 "As time passes we cherry pick fixes from the development branch and backport "
41230 "those into the stable branch, the effect being that the stable branch should "
41231 "get more stable and less buggy over time.  So the stable releases are ideal "
41232 "for people who don't need new features but would just like the software to "
41233 "work."
41234 msgstr ""
41235
41236 #. type: textblock
41237 #: ../src/guestfs.pod:2641
41238 msgid "Our criteria for backporting changes are:"
41239 msgstr ""
41240
41241 #. type: textblock
41242 #: ../src/guestfs.pod:2647
41243 msgid ""
41244 "Documentation changes which don't affect any code are backported unless the "
41245 "documentation refers to a future feature which is not in stable."
41246 msgstr ""
41247
41248 #. type: textblock
41249 #: ../src/guestfs.pod:2653
41250 msgid ""
41251 "Bug fixes which are not controversial, fix obvious problems, and have been "
41252 "well tested are backported."
41253 msgstr ""
41254
41255 #. type: textblock
41256 #: ../src/guestfs.pod:2658
41257 msgid ""
41258 "Simple rearrangements of code which shouldn't affect how it works get "
41259 "backported.  This is so that the code in the two branches doesn't get too "
41260 "far out of step, allowing us to backport future fixes more easily."
41261 msgstr ""
41262
41263 #. type: textblock
41264 #: ../src/guestfs.pod:2664
41265 msgid ""
41266 "We I<don't> backport new features, new APIs, new tools etc, except in one "
41267 "exceptional case: the new feature is required in order to implement an "
41268 "important bug fix."
41269 msgstr ""
41270
41271 #. type: textblock
41272 #: ../src/guestfs.pod:2670
41273 msgid ""
41274 "A new stable branch starts when we think the new features in development are "
41275 "substantial and compelling enough over the current stable branch to warrant "
41276 "it.  When that happens we create new stable and development versions 1.N.0 "
41277 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
41278 "stable at this point, but by backporting fixes from development, that branch "
41279 "will stabilize over time."
41280 msgstr ""
41281
41282 #. type: =head1
41283 #: ../src/guestfs.pod:2678
41284 msgid "EXTENDING LIBGUESTFS"
41285 msgstr ""
41286
41287 #. type: =head2
41288 #: ../src/guestfs.pod:2680
41289 msgid "ADDING A NEW API ACTION"
41290 msgstr ""
41291
41292 #. type: textblock
41293 #: ../src/guestfs.pod:2682
41294 msgid ""
41295 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
41296 "documentation) are generated, and this makes it easy to extend the "
41297 "libguestfs API."
41298 msgstr ""
41299
41300 #. type: textblock
41301 #: ../src/guestfs.pod:2686
41302 msgid "To add a new API action there are two changes:"
41303 msgstr ""
41304
41305 #. type: textblock
41306 #: ../src/guestfs.pod:2692
41307 msgid ""
41308 "You need to add a description of the call (name, parameters, return type, "
41309 "tests, documentation) to C<generator/generator_actions.ml>."
41310 msgstr ""
41311
41312 #. type: textblock
41313 #: ../src/guestfs.pod:2695
41314 msgid ""
41315 "There are two sorts of API action, depending on whether the call goes "
41316 "through to the daemon in the appliance, or is serviced entirely by the "
41317 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
41318 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
41319 "an example of the latter, since a trace flag is maintained in the handle and "
41320 "all tracing is done on the library side."
41321 msgstr ""
41322
41323 #. type: textblock
41324 #: ../src/guestfs.pod:2703
41325 msgid ""
41326 "Most new actions are of the first type, and get added to the "
41327 "C<daemon_functions> list.  Each function has a unique procedure number used "
41328 "in the RPC protocol which is assigned to that action when we publish "
41329 "libguestfs and cannot be reused.  Take the latest procedure number and "
41330 "increment it."
41331 msgstr ""
41332
41333 #. type: textblock
41334 #: ../src/guestfs.pod:2709
41335 msgid ""
41336 "For library-only actions of the second type, add to the "
41337 "C<non_daemon_functions> list.  Since these functions are serviced by the "
41338 "library and do not travel over the RPC mechanism to the daemon, these "
41339 "functions do not need a procedure number, and so the procedure number is set "
41340 "to C<-1>."
41341 msgstr ""
41342
41343 #. type: textblock
41344 #: ../src/guestfs.pod:2717
41345 msgid "Implement the action (in C):"
41346 msgstr ""
41347
41348 #. type: textblock
41349 #: ../src/guestfs.pod:2719
41350 msgid ""
41351 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
41352 "C<daemon/> directory."
41353 msgstr ""
41354
41355 #. type: textblock
41356 #: ../src/guestfs.pod:2722
41357 msgid ""
41358 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
41359 "(note: double underscore) in the C<src/> directory."
41360 msgstr ""
41361
41362 #. type: textblock
41363 #: ../src/guestfs.pod:2725
41364 msgid "In either case, use another function as an example of what to do."
41365 msgstr ""
41366
41367 #. type: textblock
41368 #: ../src/guestfs.pod:2729
41369 msgid "After making these changes, use C<make> to compile."
41370 msgstr ""
41371
41372 #. type: textblock
41373 #: ../src/guestfs.pod:2731
41374 msgid ""
41375 "Note that you don't need to implement the RPC, language bindings, manual "
41376 "pages or anything else.  It's all automatically generated from the OCaml "
41377 "description."
41378 msgstr ""
41379
41380 #. type: =head2
41381 #: ../src/guestfs.pod:2735
41382 msgid "ADDING TESTS FOR AN API ACTION"
41383 msgstr ""
41384
41385 #. type: textblock
41386 #: ../src/guestfs.pod:2737
41387 msgid ""
41388 "You can supply zero or as many tests as you want per API call.  The tests "
41389 "can either be added as part of the API description (C<generator/"
41390 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
41391 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
41392 "slower, so if possible use the first method."
41393 msgstr ""
41394
41395 #. type: textblock
41396 #: ../src/guestfs.pod:2743
41397 msgid ""
41398 "The following describes the test environment used when you add an API test "
41399 "in C<generator_actions.ml>."
41400 msgstr ""
41401
41402 #. type: textblock
41403 #: ../src/guestfs.pod:2746
41404 msgid "The test environment has 4 block devices:"
41405 msgstr ""
41406
41407 #. type: =item
41408 #: ../src/guestfs.pod:2750
41409 msgid "C</dev/sda> 500MB"
41410 msgstr "C</dev/sda> 500 МБ"
41411
41412 #. type: textblock
41413 #: ../src/guestfs.pod:2752
41414 msgid "General block device for testing."
41415 msgstr ""
41416
41417 #. type: =item
41418 #: ../src/guestfs.pod:2754
41419 msgid "C</dev/sdb> 50MB"
41420 msgstr "C</dev/sdb> 50 МБ"
41421
41422 #. type: textblock
41423 #: ../src/guestfs.pod:2756
41424 msgid ""
41425 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
41426 "operations."
41427 msgstr ""
41428
41429 #. type: =item
41430 #: ../src/guestfs.pod:2759
41431 msgid "C</dev/sdc> 10MB"
41432 msgstr "C</dev/sdc> 10 МБ"
41433
41434 #. type: textblock
41435 #: ../src/guestfs.pod:2761
41436 msgid "Used in a few tests where two block devices are needed."
41437 msgstr ""
41438
41439 #. type: =item
41440 #: ../src/guestfs.pod:2763
41441 msgid "C</dev/sdd>"
41442 msgstr "C</dev/sdd>"
41443
41444 #. type: textblock
41445 #: ../src/guestfs.pod:2765
41446 msgid "ISO with fixed content (see C<images/test.iso>)."
41447 msgstr ""
41448
41449 #. type: textblock
41450 #: ../src/guestfs.pod:2769
41451 msgid ""
41452 "To be able to run the tests in a reasonable amount of time, the libguestfs "
41453 "appliance and block devices are reused between tests.  So don't try testing "
41454 "L</guestfs_kill_subprocess> :-x"
41455 msgstr ""
41456
41457 #. type: textblock
41458 #: ../src/guestfs.pod:2773
41459 msgid ""
41460 "Each test starts with an initial scenario, selected using one of the "
41461 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
41462 "initialize the disks mentioned above in a particular way as documented in "
41463 "C<generator_types.ml>.  You should not assume anything about the previous "
41464 "contents of other disks that are not initialized."
41465 msgstr ""
41466
41467 #. type: textblock
41468 #: ../src/guestfs.pod:2779
41469 msgid ""
41470 "You can add a prerequisite clause to any individual test.  This is a run-"
41471 "time check, which, if it fails, causes the test to be skipped.  Useful if "
41472 "testing a command which might not work on all variations of libguestfs "
41473 "builds.  A test that has prerequisite of C<Always> means to run "
41474 "unconditionally."
41475 msgstr ""
41476
41477 #. type: textblock
41478 #: ../src/guestfs.pod:2785
41479 msgid ""
41480 "In addition, packagers can skip individual tests by setting environment "
41481 "variables before running C<make check>."
41482 msgstr ""
41483
41484 #. type: verbatim
41485 #: ../src/guestfs.pod:2788
41486 #, no-wrap
41487 msgid ""
41488 " SKIP_TEST_<CMD>_<NUM>=1\n"
41489 "\n"
41490 msgstr ""
41491
41492 #. type: textblock
41493 #: ../src/guestfs.pod:2790
41494 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41495 msgstr ""
41496
41497 #. type: textblock
41498 #: ../src/guestfs.pod:2792
41499 msgid "or:"
41500 msgstr "або:"
41501
41502 #. type: verbatim
41503 #: ../src/guestfs.pod:2794
41504 #, no-wrap
41505 msgid ""
41506 " SKIP_TEST_<CMD>=1\n"
41507 "\n"
41508 msgstr ""
41509
41510 #. type: textblock
41511 #: ../src/guestfs.pod:2796
41512 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41513 msgstr ""
41514
41515 #. type: textblock
41516 #: ../src/guestfs.pod:2798
41517 msgid "Packagers can run only certain tests by setting for example:"
41518 msgstr ""
41519
41520 #. type: verbatim
41521 #: ../src/guestfs.pod:2800
41522 #, no-wrap
41523 msgid ""
41524 " TEST_ONLY=\"vfs_type zerofree\"\n"
41525 "\n"
41526 msgstr ""
41527
41528 #. type: textblock
41529 #: ../src/guestfs.pod:2802
41530 msgid ""
41531 "See C<capitests/tests.c> for more details of how these environment variables "
41532 "work."
41533 msgstr ""
41534
41535 #. type: =head2
41536 #: ../src/guestfs.pod:2805
41537 msgid "DEBUGGING NEW API ACTIONS"
41538 msgstr ""
41539
41540 #. type: textblock
41541 #: ../src/guestfs.pod:2807
41542 msgid "Test new actions work before submitting them."
41543 msgstr ""
41544
41545 #. type: textblock
41546 #: ../src/guestfs.pod:2809
41547 msgid "You can use guestfish to try out new commands."
41548 msgstr ""
41549
41550 #. type: textblock
41551 #: ../src/guestfs.pod:2811
41552 msgid ""
41553 "Debugging the daemon is a problem because it runs inside a minimal "
41554 "environment.  However you can fprintf messages in the daemon to stderr, and "
41555 "they will show up if you use C<guestfish -v>."
41556 msgstr ""
41557
41558 #. type: =head2
41559 #: ../src/guestfs.pod:2815
41560 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41561 msgstr ""
41562
41563 #. type: textblock
41564 #: ../src/guestfs.pod:2817
41565 msgid ""
41566 "Our C source code generally adheres to some basic code-formatting "
41567 "conventions.  The existing code base is not totally consistent on this "
41568 "front, but we do prefer that contributed code be formatted similarly.  In "
41569 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41570 "indentation level, and other than that, follow the K&R style."
41571 msgstr ""
41572
41573 #. type: textblock
41574 #: ../src/guestfs.pod:2823
41575 msgid ""
41576 "If you use Emacs, add the following to one of one of your start-up files (e."
41577 "g., ~/.emacs), to help ensure that you get indentation right:"
41578 msgstr ""
41579
41580 #. type: verbatim
41581 #: ../src/guestfs.pod:2826
41582 #, no-wrap
41583 msgid ""
41584 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41585 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41586 " (add-hook 'find-file-hook\n"
41587 "     '(lambda () (if (and buffer-file-name\n"
41588 "                          (string-match \"/libguestfs\\\\>\"\n"
41589 "                              (buffer-file-name))\n"
41590 "                          (not (string-equal mode-name \"Change Log\"))\n"
41591 "                          (not (string-equal mode-name \"Makefile\")))\n"
41592 "                     (setq indent-tabs-mode nil))))\n"
41593 " \n"
41594 msgstr ""
41595
41596 #. type: verbatim
41597 #: ../src/guestfs.pod:2836
41598 #, no-wrap
41599 msgid ""
41600 " ;;; When editing C sources in libguestfs, use this style.\n"
41601 " (defun libguestfs-c-mode ()\n"
41602 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
41603 "   (interactive)\n"
41604 "   (c-set-style \"K&R\")\n"
41605 "   (setq c-indent-level 2)\n"
41606 "   (setq c-basic-offset 2))\n"
41607 " (add-hook 'c-mode-hook\n"
41608 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41609 "                               (buffer-file-name))\n"
41610 "                           (libguestfs-c-mode))))\n"
41611 "\n"
41612 msgstr ""
41613
41614 #. type: textblock
41615 #: ../src/guestfs.pod:2848
41616 msgid "Enable warnings when compiling (and fix any problems this finds):"
41617 msgstr ""
41618
41619 #. type: verbatim
41620 #: ../src/guestfs.pod:2851
41621 #, no-wrap
41622 msgid ""
41623 " ./configure --enable-gcc-warnings\n"
41624 "\n"
41625 msgstr ""
41626 " ./configure --enable-gcc-warnings\n"
41627 "\n"
41628
41629 #. type: textblock
41630 #: ../src/guestfs.pod:2853
41631 msgid "Useful targets are:"
41632 msgstr ""
41633
41634 #. type: verbatim
41635 #: ../src/guestfs.pod:2855
41636 #, no-wrap
41637 msgid ""
41638 " make syntax-check  # checks the syntax of the C code\n"
41639 " make check         # runs the test suite\n"
41640 "\n"
41641 msgstr ""
41642
41643 #. type: =head2
41644 #: ../src/guestfs.pod:2858
41645 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41646 msgstr ""
41647
41648 #. type: textblock
41649 #: ../src/guestfs.pod:2860
41650 msgid ""
41651 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41652 "which are used to do shell quoting."
41653 msgstr ""
41654
41655 #. type: =item
41656 #: ../src/guestfs.pod:2865
41657 msgid "%Q"
41658 msgstr "%Q"
41659
41660 #. type: textblock
41661 #: ../src/guestfs.pod:2867
41662 msgid ""
41663 "Simple shell quoted string.  Any spaces or other shell characters are "
41664 "escaped for you."
41665 msgstr ""
41666
41667 #. type: =item
41668 #: ../src/guestfs.pod:2870
41669 msgid "%R"
41670 msgstr "%R"
41671
41672 #. type: textblock
41673 #: ../src/guestfs.pod:2872
41674 msgid ""
41675 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41676 "the sysroot."
41677 msgstr ""
41678
41679 #. type: verbatim
41680 #: ../src/guestfs.pod:2879
41681 #, no-wrap
41682 msgid ""
41683 " asprintf (&cmd, \"cat %R\", path);\n"
41684 "\n"
41685 msgstr ""
41686 " asprintf (&cmd, \"cat %R\", path);\n"
41687 "\n"
41688
41689 #. type: textblock
41690 #: ../src/guestfs.pod:2881
41691 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41692 msgstr ""
41693
41694 #. type: textblock
41695 #: ../src/guestfs.pod:2883
41696 msgid ""
41697 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41698 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41699 "they are not passed via the shell (instead, straight to exec).  You probably "
41700 "want to use the C<sysroot_path()> function however."
41701 msgstr ""
41702
41703 #. type: =head2
41704 #: ../src/guestfs.pod:2889
41705 msgid "SUBMITTING YOUR NEW API ACTIONS"
41706 msgstr ""
41707
41708 #. type: textblock
41709 #: ../src/guestfs.pod:2891
41710 msgid ""
41711 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41712 "libguestfs> and CC to L<rjones@redhat.com>."
41713 msgstr ""
41714
41715 #. type: =head2
41716 #: ../src/guestfs.pod:2895
41717 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41718 msgstr ""
41719
41720 #. type: textblock
41721 #: ../src/guestfs.pod:2897
41722 msgid "We support i18n (gettext anyhow) in the library."
41723 msgstr ""
41724
41725 #. type: textblock
41726 #: ../src/guestfs.pod:2899
41727 msgid ""
41728 "However many messages come from the daemon, and we don't translate those at "
41729 "the moment.  One reason is that the appliance generally has all locale files "
41730 "removed from it, because they take up a lot of space.  So we'd have to readd "
41731 "some of those, as well as copying our PO files into the appliance."
41732 msgstr ""
41733
41734 #. type: textblock
41735 #: ../src/guestfs.pod:2905
41736 msgid ""
41737 "Debugging messages are never translated, since they are intended for the "
41738 "programmers."
41739 msgstr ""
41740
41741 #. type: =head2
41742 #: ../src/guestfs.pod:2908
41743 msgid "SOURCE CODE SUBDIRECTORIES"
41744 msgstr ""
41745
41746 #. type: =item
41747 #: ../src/guestfs.pod:2912
41748 msgid "C<align>"
41749 msgstr ""
41750
41751 #. type: textblock
41752 #: ../src/guestfs.pod:2914
41753 msgid "L<virt-alignment-scan(1)> command and documentation."
41754 msgstr ""
41755
41756 #. type: textblock
41757 #: ../src/guestfs.pod:2918
41758 msgid "The libguestfs appliance, build scripts and so on."
41759 msgstr ""
41760
41761 #. type: =item
41762 #: ../src/guestfs.pod:2920
41763 msgid "C<capitests>"
41764 msgstr "C<capitests>"
41765
41766 #. type: textblock
41767 #: ../src/guestfs.pod:2922
41768 msgid "Automated tests of the C API."
41769 msgstr ""
41770
41771 #. type: =item
41772 #: ../src/guestfs.pod:2924
41773 msgid "C<cat>"
41774 msgstr "C<cat>"
41775
41776 #. type: textblock
41777 #: ../src/guestfs.pod:2926
41778 msgid ""
41779 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41780 "documentation."
41781 msgstr ""
41782
41783 #. type: =item
41784 #: ../src/guestfs.pod:2929
41785 msgid "C<caution>"
41786 msgstr "C<caution>"
41787
41788 #. type: textblock
41789 #: ../src/guestfs.pod:2931
41790 msgid ""
41791 "Safety and liveness tests of components that libguestfs depends upon (not of "
41792 "libguestfs itself).  Mainly this is for qemu and the kernel."
41793 msgstr ""
41794
41795 #. type: =item
41796 #: ../src/guestfs.pod:2934
41797 msgid "C<clone>"
41798 msgstr ""
41799
41800 #. type: textblock
41801 #: ../src/guestfs.pod:2936
41802 msgid ""
41803 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41804 "command and documentation."
41805 msgstr ""
41806
41807 #. type: =item
41808 #: ../src/guestfs.pod:2939
41809 msgid "C<contrib>"
41810 msgstr "C<contrib>"
41811
41812 #. type: textblock
41813 #: ../src/guestfs.pod:2941
41814 msgid "Outside contributions, experimental parts."
41815 msgstr ""
41816
41817 #. type: =item
41818 #: ../src/guestfs.pod:2943
41819 msgid "C<daemon>"
41820 msgstr "C<daemon>"
41821
41822 #. type: textblock
41823 #: ../src/guestfs.pod:2945
41824 msgid ""
41825 "The daemon that runs inside the libguestfs appliance and carries out actions."
41826 msgstr ""
41827
41828 #. type: =item
41829 #: ../src/guestfs.pod:2948
41830 msgid "C<df>"
41831 msgstr "C<df>"
41832
41833 #. type: textblock
41834 #: ../src/guestfs.pod:2950
41835 msgid "L<virt-df(1)> command and documentation."
41836 msgstr ""
41837
41838 #. type: =item
41839 #: ../src/guestfs.pod:2952
41840 msgid "C<edit>"
41841 msgstr "C<edit>"
41842
41843 #. type: textblock
41844 #: ../src/guestfs.pod:2954
41845 msgid "L<virt-edit(1)> command and documentation."
41846 msgstr ""
41847
41848 #. type: =item
41849 #: ../src/guestfs.pod:2956
41850 msgid "C<examples>"
41851 msgstr "C<examples>"
41852
41853 #. type: textblock
41854 #: ../src/guestfs.pod:2958
41855 msgid "C API example code."
41856 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41857
41858 #. type: =item
41859 #: ../src/guestfs.pod:2960
41860 msgid "C<fish>"
41861 msgstr "C<fish>"
41862
41863 #. type: textblock
41864 #: ../src/guestfs.pod:2962
41865 msgid ""
41866 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41867 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41868 "L<virt-tar-out(1)>."
41869 msgstr ""
41870
41871 #. type: =item
41872 #: ../src/guestfs.pod:2966
41873 msgid "C<fuse>"
41874 msgstr "C<fuse>"
41875
41876 #. type: textblock
41877 #: ../src/guestfs.pod:2968
41878 msgid ""
41879 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41880 msgstr ""
41881
41882 #. type: =item
41883 #: ../src/guestfs.pod:2970
41884 msgid "C<generator>"
41885 msgstr "C<generator>"
41886
41887 #. type: textblock
41888 #: ../src/guestfs.pod:2972
41889 msgid ""
41890 "The crucially important generator, used to automatically generate large "
41891 "amounts of boilerplate C code for things like RPC and bindings."
41892 msgstr ""
41893
41894 #. type: =item
41895 #: ../src/guestfs.pod:2975
41896 msgid "C<images>"
41897 msgstr "C<images>"
41898
41899 #. type: textblock
41900 #: ../src/guestfs.pod:2977
41901 msgid "Files used by the test suite."
41902 msgstr ""
41903
41904 #. type: textblock
41905 #: ../src/guestfs.pod:2979
41906 msgid "Some \"phony\" guest images which we test against."
41907 msgstr ""
41908
41909 #. type: =item
41910 #: ../src/guestfs.pod:2981
41911 msgid "C<inspector>"
41912 msgstr "C<inspector>"
41913
41914 #. type: textblock
41915 #: ../src/guestfs.pod:2983
41916 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41917 msgstr ""
41918
41919 #. type: =item
41920 #: ../src/guestfs.pod:2985
41921 msgid "C<logo>"
41922 msgstr "C<logo>"
41923
41924 #. type: textblock
41925 #: ../src/guestfs.pod:2987
41926 msgid "Logo used on the website.  The fish is called Arthur by the way."
41927 msgstr ""
41928
41929 #. type: =item
41930 #: ../src/guestfs.pod:2989
41931 msgid "C<m4>"
41932 msgstr "C<m4>"
41933
41934 #. type: textblock
41935 #: ../src/guestfs.pod:2991
41936 msgid "M4 macros used by autoconf."
41937 msgstr ""
41938
41939 #. type: =item
41940 #: ../src/guestfs.pod:2993
41941 msgid "C<po>"
41942 msgstr "C<po>"
41943
41944 #. type: textblock
41945 #: ../src/guestfs.pod:2995
41946 msgid "Translations of simple gettext strings."
41947 msgstr "Переклади простих рядків gettext."
41948
41949 #. type: =item
41950 #: ../src/guestfs.pod:2997
41951 msgid "C<po-docs>"
41952 msgstr "C<po-docs>"
41953
41954 #. type: textblock
41955 #: ../src/guestfs.pod:2999
41956 msgid ""
41957 "The build infrastructure and PO files for translations of manpages and POD "
41958 "files.  Eventually this will be combined with the C<po> directory, but that "
41959 "is rather complicated."
41960 msgstr ""
41961
41962 #. type: =item
41963 #: ../src/guestfs.pod:3003
41964 msgid "C<regressions>"
41965 msgstr "C<regressions>"
41966
41967 #. type: textblock
41968 #: ../src/guestfs.pod:3005
41969 msgid "Regression tests."
41970 msgstr "Тести на регресії."
41971
41972 #. type: =item
41973 #: ../src/guestfs.pod:3007
41974 msgid "C<rescue>"
41975 msgstr "C<rescue>"
41976
41977 #. type: textblock
41978 #: ../src/guestfs.pod:3009
41979 msgid "L<virt-rescue(1)> command and documentation."
41980 msgstr ""
41981
41982 #. type: =item
41983 #: ../src/guestfs.pod:3011
41984 msgid "C<resize>"
41985 msgstr ""
41986
41987 #. type: textblock
41988 #: ../src/guestfs.pod:3013
41989 msgid "L<virt-resize(1)> command and documentation."
41990 msgstr ""
41991
41992 #. type: =item
41993 #: ../src/guestfs.pod:3015
41994 msgid "C<sparsify>"
41995 msgstr ""
41996
41997 #. type: textblock
41998 #: ../src/guestfs.pod:3017
41999 msgid "L<virt-sparsify(1)> command and documentation."
42000 msgstr ""
42001
42002 #. type: =item
42003 #: ../src/guestfs.pod:3019
42004 msgid "C<src>"
42005 msgstr "C<src>"
42006
42007 #. type: textblock
42008 #: ../src/guestfs.pod:3021
42009 msgid "Source code to the C library."
42010 msgstr ""
42011
42012 #. type: =item
42013 #: ../src/guestfs.pod:3023
42014 msgid "C<tools>"
42015 msgstr "C<tools>"
42016
42017 #. type: textblock
42018 #: ../src/guestfs.pod:3025
42019 msgid ""
42020 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
42021 msgstr ""
42022
42023 #. type: =item
42024 #: ../src/guestfs.pod:3027
42025 msgid "C<test-tool>"
42026 msgstr "C<test-tool>"
42027
42028 #. type: textblock
42029 #: ../src/guestfs.pod:3029
42030 msgid ""
42031 "Test tool for end users to test if their qemu/kernel combination will work "
42032 "with libguestfs."
42033 msgstr ""
42034
42035 #. type: =item
42036 #: ../src/guestfs.pod:3032
42037 msgid "C<csharp>"
42038 msgstr "C<csharp>"
42039
42040 #. type: =item
42041 #: ../src/guestfs.pod:3034
42042 msgid "C<erlang>"
42043 msgstr ""
42044
42045 #. type: =item
42046 #: ../src/guestfs.pod:3036
42047 msgid "C<haskell>"
42048 msgstr "C<haskell>"
42049
42050 #. type: =item
42051 #: ../src/guestfs.pod:3038
42052 msgid "C<java>"
42053 msgstr "C<java>"
42054
42055 #. type: =item
42056 #: ../src/guestfs.pod:3040
42057 msgid "C<ocaml>"
42058 msgstr "C<ocaml>"
42059
42060 #. type: =item
42061 #: ../src/guestfs.pod:3042
42062 msgid "C<php>"
42063 msgstr "C<php>"
42064
42065 #. type: =item
42066 #: ../src/guestfs.pod:3044
42067 msgid "C<perl>"
42068 msgstr "C<perl>"
42069
42070 #. type: =item
42071 #: ../src/guestfs.pod:3046
42072 msgid "C<python>"
42073 msgstr "C<python>"
42074
42075 #. type: =item
42076 #: ../src/guestfs.pod:3048
42077 msgid "C<ruby>"
42078 msgstr "C<ruby>"
42079
42080 #. type: textblock
42081 #: ../src/guestfs.pod:3050
42082 msgid "Language bindings."
42083 msgstr "Прив’язки до мов програмування."
42084
42085 #. type: =head2
42086 #: ../src/guestfs.pod:3054
42087 msgid "MAKING A STABLE RELEASE"
42088 msgstr ""
42089
42090 #. type: textblock
42091 #: ../src/guestfs.pod:3056
42092 msgid ""
42093 "When we make a stable release, there are several steps documented here.  See "
42094 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
42095 "branch policy."
42096 msgstr ""
42097
42098 #. type: textblock
42099 #: ../src/guestfs.pod:3064
42100 msgid ""
42101 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
42102 msgstr ""
42103
42104 #. type: textblock
42105 #: ../src/guestfs.pod:3069
42106 msgid "Finalize RELEASE-NOTES."
42107 msgstr ""
42108
42109 #. type: textblock
42110 #: ../src/guestfs.pod:3073
42111 msgid "Update ROADMAP."
42112 msgstr ""
42113
42114 #. type: textblock
42115 #: ../src/guestfs.pod:3077
42116 msgid "Run C<src/api-support/update-from-tarballs.sh>."
42117 msgstr ""
42118
42119 #. type: textblock
42120 #: ../src/guestfs.pod:3081
42121 msgid "Push and pull from Transifex."
42122 msgstr ""
42123
42124 #. type: textblock
42125 #: ../src/guestfs.pod:3083
42126 msgid "Run:"
42127 msgstr ""
42128
42129 #. type: verbatim
42130 #: ../src/guestfs.pod:3085
42131 #, no-wrap
42132 msgid ""
42133 " tx push -s\n"
42134 "\n"
42135 msgstr ""
42136
42137 #. type: textblock
42138 #: ../src/guestfs.pod:3087
42139 msgid "to push the latest POT files to Transifex.  Then run:"
42140 msgstr ""
42141
42142 #. type: verbatim
42143 #: ../src/guestfs.pod:3089
42144 #, no-wrap
42145 msgid ""
42146 " ./tx-pull.sh\n"
42147 "\n"
42148 msgstr ""
42149
42150 #. type: textblock
42151 #: ../src/guestfs.pod:3091
42152 msgid "which is a wrapper to pull the latest translated C<*.po> files."
42153 msgstr ""
42154
42155 #. type: textblock
42156 #: ../src/guestfs.pod:3095
42157 msgid ""
42158 "Create new stable and development directories under L<http://libguestfs.org/"
42159 "download>."
42160 msgstr ""
42161
42162 #. type: textblock
42163 #: ../src/guestfs.pod:3100
42164 msgid "Create the branch in git:"
42165 msgstr ""
42166
42167 #. type: verbatim
42168 #: ../src/guestfs.pod:3102
42169 #, no-wrap
42170 msgid ""
42171 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
42172 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
42173 " git branch stable-1.XX\n"
42174 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
42175 "\n"
42176 msgstr ""
42177
42178 #. type: =head1
42179 #: ../src/guestfs.pod:3109
42180 msgid "LIMITS"
42181 msgstr "ОБМЕЖЕННЯ"
42182
42183 #. type: =head2
42184 #: ../src/guestfs.pod:3111
42185 msgid "PROTOCOL LIMITS"
42186 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
42187
42188 #. type: textblock
42189 #: ../src/guestfs.pod:3113
42190 msgid ""
42191 "Internally libguestfs uses a message-based protocol to pass API calls and "
42192 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
42193 "plenty more detail about this).  The maximum message size used by the "
42194 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
42195 "aware of this limit.  The API calls which may be affected are individually "
42196 "documented, with a link back to this section of the documentation."
42197 msgstr ""
42198
42199 #. type: textblock
42200 #: ../src/guestfs.pod:3121
42201 msgid ""
42202 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
42203 "a simple string.  Because this string is at some point internally encoded as "
42204 "a message, the maximum size that it can return is slightly under 4 MB.  If "
42205 "the requested file is larger than this then you will get an error."
42206 msgstr ""
42207
42208 #. type: textblock
42209 #: ../src/guestfs.pod:3127
42210 msgid ""
42211 "In order to transfer large files into and out of the guest filesystem, you "
42212 "need to use particular calls that support this.  The sections L</UPLOADING> "
42213 "and L</DOWNLOADING> document how to do this."
42214 msgstr ""
42215
42216 #. type: textblock
42217 #: ../src/guestfs.pod:3131
42218 msgid ""
42219 "You might also consider mounting the disk image using our FUSE filesystem "
42220 "support (L<guestmount(1)>)."
42221 msgstr ""
42222
42223 #. type: =head2
42224 #: ../src/guestfs.pod:3134
42225 msgid "MAXIMUM NUMBER OF DISKS"
42226 msgstr ""
42227
42228 #. type: textblock
42229 #: ../src/guestfs.pod:3136
42230 msgid "When using virtio disks (the default) the current limit is B<25> disks."
42231 msgstr ""
42232
42233 #. type: textblock
42234 #: ../src/guestfs.pod:3139
42235 msgid ""
42236 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
42237 "slots.  However febootstrap only understands disks with names C</dev/vda> "
42238 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
42239 "purposes."
42240 msgstr ""
42241
42242 #. type: textblock
42243 #: ../src/guestfs.pod:3144
42244 msgid ""
42245 "We are working to substantially raise this limit in future versions but it "
42246 "requires complex changes to qemu."
42247 msgstr ""
42248
42249 #. type: textblock
42250 #: ../src/guestfs.pod:3147
42251 msgid ""
42252 "In future versions of libguestfs it should also be possible to \"hot plug\" "
42253 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
42254 "requires changes to qemu."
42255 msgstr ""
42256
42257 #. type: =head2
42258 #: ../src/guestfs.pod:3151
42259 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
42260 msgstr ""
42261
42262 #. type: textblock
42263 #: ../src/guestfs.pod:3153
42264 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
42265 msgstr ""
42266
42267 #. type: textblock
42268 #: ../src/guestfs.pod:3155
42269 msgid ""
42270 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
42271 "vda>, and C</dev/vda1> through C</dev/vda15>)."
42272 msgstr ""
42273
42274 #. type: textblock
42275 #: ../src/guestfs.pod:3158
42276 msgid ""
42277 "If you attach a disk with more than 15 partitions, the extra partitions are "
42278 "ignored by libguestfs."
42279 msgstr ""
42280
42281 #. type: =head2
42282 #: ../src/guestfs.pod:3161
42283 msgid "MAXIMUM SIZE OF A DISK"
42284 msgstr ""
42285
42286 #. type: textblock
42287 #: ../src/guestfs.pod:3163
42288 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
42289 msgstr ""
42290
42291 #. type: textblock
42292 #: ../src/guestfs.pod:3165
42293 msgid ""
42294 "We have tested block devices up to 1 exabyte (2**60 or "
42295 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
42296 "filesystem."
42297 msgstr ""
42298
42299 #. type: textblock
42300 #: ../src/guestfs.pod:3169
42301 msgid ""
42302 "Although libguestfs probably does not impose any limit, the underlying host "
42303 "storage will.  If you store disk images on a host ext4 filesystem, then the "
42304 "maximum size will be limited by the maximum ext4 file size (currently 16 "
42305 "TB).  If you store disk images as host logical volumes then you are limited "
42306 "by the maximum size of an LV."
42307 msgstr ""
42308
42309 #. type: textblock
42310 #: ../src/guestfs.pod:3175
42311 msgid ""
42312 "For the hugest disk image files, we recommend using XFS on the host for "
42313 "storage."
42314 msgstr ""
42315
42316 #. type: =head2
42317 #: ../src/guestfs.pod:3178
42318 msgid "MAXIMUM SIZE OF A PARTITION"
42319 msgstr ""
42320
42321 #. type: textblock
42322 #: ../src/guestfs.pod:3180
42323 msgid ""
42324 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
42325 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
42326 "address a partition located beyond 2 TB on the disk."
42327 msgstr ""
42328
42329 #. type: textblock
42330 #: ../src/guestfs.pod:3184
42331 msgid ""
42332 "It is recommended that you use GPT partitions on disks which are larger than "
42333 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
42334 "which are theoretically larger than the largest disk we could support."
42335 msgstr ""
42336
42337 #. type: =head2
42338 #: ../src/guestfs.pod:3189
42339 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
42340 msgstr ""
42341
42342 #. type: textblock
42343 #: ../src/guestfs.pod:3191
42344 msgid ""
42345 "This depends on the filesystem type.  libguestfs itself does not impose any "
42346 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
42347 "what these limits are."
42348 msgstr ""
42349
42350 #. type: =head2
42351 #: ../src/guestfs.pod:3195
42352 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
42353 msgstr ""
42354
42355 #. type: textblock
42356 #: ../src/guestfs.pod:3197
42357 msgid ""
42358 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
42359 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
42360 "uploads and downloads."
42361 msgstr ""
42362
42363 #. type: =head2
42364 #: ../src/guestfs.pod:3201
42365 msgid "INSPECTION LIMITS"
42366 msgstr ""
42367
42368 #. type: textblock
42369 #: ../src/guestfs.pod:3203
42370 msgid ""
42371 "The inspection code has several arbitrary limits on things like the size of "
42372 "Windows Registry hive it will read, and the length of product name.  These "
42373 "are intended to stop a malicious guest from consuming arbitrary amounts of "
42374 "memory and disk space on the host, and should not be reached in practice.  "
42375 "See the source code for more information."
42376 msgstr ""
42377
42378 #. type: textblock
42379 #: ../src/guestfs.pod:3229
42380 msgid ""
42381 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
42382 "effect as calling C<guestfs_set_verbose (g, 1)>."
42383 msgstr ""
42384
42385 #. type: textblock
42386 #: ../src/guestfs.pod:3241
42387 msgid ""
42388 "Set the path that libguestfs uses to search for a supermin appliance.  See "
42389 "the discussion of paths in section L</PATH> above."
42390 msgstr ""
42391
42392 #. type: textblock
42393 #: ../src/guestfs.pod:3250
42394 msgid "See also L</QEMU WRAPPERS> above."
42395 msgstr ""
42396
42397 #. type: textblock
42398 #: ../src/guestfs.pod:3254
42399 msgid ""
42400 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
42401 "effect as calling C<guestfs_set_trace (g, 1)>."
42402 msgstr ""
42403
42404 #. type: textblock
42405 #: ../src/guestfs.pod:3272
42406 msgid ""
42407 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
42408 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
42409 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
42410 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
42411 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
42412 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
42413 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
42414 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
42415 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
42416 ">, L<http://libguestfs.org/>."
42417 msgstr ""
42418
42419 #. type: textblock
42420 #: ../src/guestfs.pod:3308
42421 msgid ""
42422 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
42423 "(8)>, L<disktype(1)>."
42424 msgstr ""
42425
42426 #. type: =head1
42427 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
42428 #: ../tools/virt-win-reg.pl:772
42429 msgid "BUGS"
42430 msgstr "ВАДИ"
42431
42432 #. type: textblock
42433 #: ../src/guestfs.pod:3317
42434 msgid "To get a list of bugs against libguestfs use this link:"
42435 msgstr ""
42436 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
42437 "посиланням:"
42438
42439 #. type: textblock
42440 #: ../src/guestfs.pod:3319
42441 msgid ""
42442 "L<https://bugzilla.redhat.com/buglist.cgi?"
42443 "component=libguestfs&product=Virtualization+Tools>"
42444 msgstr ""
42445 "L<https://bugzilla.redhat.com/buglist.cgi?"
42446 "component=libguestfs&product=Virtualization+Tools>"
42447
42448 #. type: textblock
42449 #: ../src/guestfs.pod:3321
42450 msgid "To report a new bug against libguestfs use this link:"
42451 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
42452
42453 #. type: textblock
42454 #: ../src/guestfs.pod:3323
42455 msgid ""
42456 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42457 "component=libguestfs&product=Virtualization+Tools>"
42458 msgstr ""
42459 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
42460 "component=libguestfs&product=Virtualization+Tools>"
42461
42462 #. type: textblock
42463 #: ../src/guestfs.pod:3325
42464 msgid "When reporting a bug, please check:"
42465 msgstr ""
42466
42467 #. type: textblock
42468 #: ../src/guestfs.pod:3331
42469 msgid "That the bug hasn't been reported already."
42470 msgstr ""
42471
42472 #. type: textblock
42473 #: ../src/guestfs.pod:3335
42474 msgid "That you are testing a recent version."
42475 msgstr ""
42476
42477 #. type: textblock
42478 #: ../src/guestfs.pod:3339
42479 msgid "Describe the bug accurately, and give a way to reproduce it."
42480 msgstr ""
42481
42482 #. type: textblock
42483 #: ../src/guestfs.pod:3343
42484 msgid ""
42485 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
42486 "bug report."
42487 msgstr ""
42488
42489 #. type: textblock
42490 #: ../test-tool/libguestfs-test-tool.pod:5
42491 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
42492 msgstr ""
42493
42494 #. type: verbatim
42495 #: ../test-tool/libguestfs-test-tool.pod:9
42496 #, no-wrap
42497 msgid ""
42498 " libguestfs-test-tool [--options]\n"
42499 "\n"
42500 msgstr ""
42501
42502 #. type: textblock
42503 #: ../test-tool/libguestfs-test-tool.pod:13
42504 msgid ""
42505 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42506 "to check basic libguestfs functionality is working.  This is needed because "
42507 "libguestfs occasionally breaks for reasons beyond our control: usually "
42508 "because of changes in the underlying qemu or kernel packages, or the host "
42509 "environment."
42510 msgstr ""
42511
42512 #. type: textblock
42513 #: ../test-tool/libguestfs-test-tool.pod:19
42514 msgid "If you suspect a problem in libguestfs, then just run:"
42515 msgstr ""
42516
42517 #. type: verbatim
42518 #: ../test-tool/libguestfs-test-tool.pod:21
42519 #, no-wrap
42520 msgid ""
42521 " libguestfs-test-tool\n"
42522 "\n"
42523 msgstr ""
42524
42525 #. type: textblock
42526 #: ../test-tool/libguestfs-test-tool.pod:23
42527 msgid "It will print lots of diagnostic messages."
42528 msgstr ""
42529
42530 #. type: textblock
42531 #: ../test-tool/libguestfs-test-tool.pod:25
42532 msgid "If it runs to completion successfully, you will see this near the end:"
42533 msgstr ""
42534
42535 #. type: verbatim
42536 #: ../test-tool/libguestfs-test-tool.pod:27
42537 #, no-wrap
42538 msgid ""
42539 " ===== TEST FINISHED OK =====\n"
42540 "\n"
42541 msgstr ""
42542
42543 #. type: textblock
42544 #: ../test-tool/libguestfs-test-tool.pod:29
42545 msgid "and the test tool will exit with code 0."
42546 msgstr ""
42547
42548 #. type: textblock
42549 #: ../test-tool/libguestfs-test-tool.pod:31
42550 msgid ""
42551 "If it fails (and/or exits with non-zero error code), please paste the "
42552 "I<complete, unedited> output of the test tool into a bug report.  More "
42553 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42554 "> website."
42555 msgstr ""
42556
42557 #. type: textblock
42558 #: ../test-tool/libguestfs-test-tool.pod:42
42559 msgid "Display short usage information and exit."
42560 msgstr ""
42561
42562 #. type: =item
42563 #: ../test-tool/libguestfs-test-tool.pod:44
42564 msgid "B<--qemu qemu_binary>"
42565 msgstr ""
42566
42567 #. type: textblock
42568 #: ../test-tool/libguestfs-test-tool.pod:46
42569 msgid ""
42570 "If you have downloaded another qemu binary, point this option at the full "
42571 "path of the binary to try it."
42572 msgstr ""
42573
42574 #. type: =item
42575 #: ../test-tool/libguestfs-test-tool.pod:49
42576 msgid "B<--qemudir qemu_source_dir>"
42577 msgstr ""
42578
42579 #. type: textblock
42580 #: ../test-tool/libguestfs-test-tool.pod:51
42581 msgid ""
42582 "If you have compiled qemu from source, point this option at the source "
42583 "directory to try it."
42584 msgstr ""
42585
42586 #. type: =item
42587 #: ../test-tool/libguestfs-test-tool.pod:54
42588 msgid "B<-t N>"
42589 msgstr ""
42590
42591 #. type: =item
42592 #: ../test-tool/libguestfs-test-tool.pod:56
42593 msgid "B<--timeout N>"
42594 msgstr ""
42595
42596 #. type: textblock
42597 #: ../test-tool/libguestfs-test-tool.pod:58
42598 msgid ""
42599 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
42600 "minutes) which does not usually need to be adjusted."
42601 msgstr ""
42602
42603 #. type: =head1
42604 #: ../test-tool/libguestfs-test-tool.pod:63
42605 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42606 msgstr ""
42607
42608 #. type: textblock
42609 #: ../test-tool/libguestfs-test-tool.pod:65
42610 msgid ""
42611 "If you have compiled another version of qemu from source and would like to "
42612 "try that, then you can use the I<--qemudir> option to point to the qemu "
42613 "source directory."
42614 msgstr ""
42615
42616 #. type: textblock
42617 #: ../test-tool/libguestfs-test-tool.pod:69
42618 msgid ""
42619 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42620 "option to point to the binary."
42621 msgstr ""
42622
42623 #. type: textblock
42624 #: ../test-tool/libguestfs-test-tool.pod:72
42625 msgid ""
42626 "Note when using these options, you can ignore the business of qemu wrapper "
42627 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42628 "wrapper script for you if one is needed."
42629 msgstr ""
42630
42631 #. type: =head1
42632 #: ../test-tool/libguestfs-test-tool.pod:76
42633 msgid "TRYING OUT A DIFFERENT KERNEL"
42634 msgstr ""
42635
42636 #. type: textblock
42637 #: ../test-tool/libguestfs-test-tool.pod:78
42638 msgid ""
42639 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42640 "libguestfs tries.  You do this by setting the environment variables "
42641 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42642 msgstr ""
42643
42644 #. type: textblock
42645 #: ../test-tool/libguestfs-test-tool.pod:82
42646 msgid ""
42647 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42648 "information."
42649 msgstr ""
42650
42651 #. type: =head1
42652 #: ../test-tool/libguestfs-test-tool.pod:85
42653 msgid "SELF-DIAGNOSIS"
42654 msgstr ""
42655
42656 #. type: textblock
42657 #: ../test-tool/libguestfs-test-tool.pod:87
42658 msgid ""
42659 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42660 "produced by libguestfs-test-tool and/or possible errors."
42661 msgstr ""
42662
42663 #. type: textblock
42664 #: ../test-tool/libguestfs-test-tool.pod:92
42665 msgid ""
42666 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42667 "I<1> if there was an error."
42668 msgstr ""
42669
42670 #. type: textblock
42671 #: ../test-tool/libguestfs-test-tool.pod:97
42672 msgid ""
42673 "For the full list of environment variables which may affect libguestfs, "
42674 "please see the L<guestfs(3)> manual page."
42675 msgstr ""
42676
42677 #. type: textblock
42678 #: ../test-tool/libguestfs-test-tool.pod:102
42679 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42680 msgstr ""
42681
42682 #. type: textblock
42683 #: ../tools/virt-list-filesystems.pl:32
42684 msgid ""
42685 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42686 msgstr ""
42687
42688 #. type: verbatim
42689 #: ../tools/virt-list-filesystems.pl:36
42690 #, no-wrap
42691 msgid ""
42692 " virt-list-filesystems [--options] domname\n"
42693 "\n"
42694 msgstr ""
42695
42696 #. type: verbatim
42697 #: ../tools/virt-list-filesystems.pl:38
42698 #, no-wrap
42699 msgid ""
42700 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42701 "\n"
42702 msgstr ""
42703
42704 #. type: textblock
42705 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42706 msgid ""
42707 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42708 "replacement."
42709 msgstr ""
42710
42711 #. type: textblock
42712 #: ../tools/virt-list-filesystems.pl:45
42713 msgid ""
42714 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42715 "are contained in a virtual machine or disk image."
42716 msgstr ""
42717
42718 #. type: textblock
42719 #: ../tools/virt-list-filesystems.pl:49
42720 msgid ""
42721 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42722 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42723 "> tool."
42724 msgstr ""
42725
42726 #. type: textblock
42727 #: ../tools/virt-list-filesystems.pl:112
42728 msgid ""
42729 "With this option, C<virt-list-filesystems> displays the type of each "
42730 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42731 msgstr ""
42732
42733 #. type: =item
42734 #: ../tools/virt-list-filesystems.pl:119
42735 msgid "B<-a>"
42736 msgstr "B<-a>"
42737
42738 #. type: textblock
42739 #: ../tools/virt-list-filesystems.pl:123
42740 msgid ""
42741 "Normally we only show mountable filesystems.  If this option is given then "
42742 "swap devices are shown too."
42743 msgstr ""
42744
42745 #. type: textblock
42746 #: ../tools/virt-list-filesystems.pl:197
42747 msgid ""
42748 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42749 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42750 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42751 msgstr ""
42752 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42753 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42754 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42755
42756 #. type: textblock
42757 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42758 msgid "Copyright (C) 2009 Red Hat Inc."
42759 msgstr "© Red Hat Inc., 2009"
42760
42761 #. type: textblock
42762 #: ../tools/virt-list-partitions.pl:32
42763 msgid ""
42764 "virt-list-partitions - List partitions in a virtual machine or disk image"
42765 msgstr ""
42766
42767 #. type: verbatim
42768 #: ../tools/virt-list-partitions.pl:36
42769 #, no-wrap
42770 msgid ""
42771 " virt-list-partitions [--options] domname\n"
42772 "\n"
42773 msgstr ""
42774 " virt-list-partitions [--параметри] назва_домену\n"
42775 "\n"
42776
42777 #. type: verbatim
42778 #: ../tools/virt-list-partitions.pl:38
42779 #, no-wrap
42780 msgid ""
42781 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42782 "\n"
42783 msgstr ""
42784 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42785 "\n"
42786
42787 #. type: textblock
42788 #: ../tools/virt-list-partitions.pl:45
42789 msgid ""
42790 "C<virt-list-partitions> is a command line tool to list the partitions that "
42791 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42792 "first step to using L<virt-resize(1)>."
42793 msgstr ""
42794
42795 #. type: textblock
42796 #: ../tools/virt-list-partitions.pl:50
42797 msgid ""
42798 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42799 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42800 "> tool."
42801 msgstr ""
42802
42803 #. type: textblock
42804 #: ../tools/virt-list-partitions.pl:113
42805 msgid "Show sizes in human-readable form (eg. \"1G\")."
42806 msgstr ""
42807
42808 #. type: textblock
42809 #: ../tools/virt-list-partitions.pl:123
42810 msgid ""
42811 "With this option, C<virt-list-partitions> displays the type and size of each "
42812 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42813 msgstr ""
42814
42815 #. type: =item
42816 #: ../tools/virt-list-partitions.pl:130
42817 msgid "B<-t>"
42818 msgstr "B<-t>"
42819
42820 #. type: =item
42821 #: ../tools/virt-list-partitions.pl:132
42822 msgid "B<--total>"
42823 msgstr "B<--total>"
42824
42825 #. type: textblock
42826 #: ../tools/virt-list-partitions.pl:134
42827 msgid ""
42828 "Display the total size of each block device (as a separate row or rows)."
42829 msgstr ""
42830
42831 #. type: textblock
42832 #: ../tools/virt-list-partitions.pl:267
42833 msgid ""
42834 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42835 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42836 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42837 msgstr ""
42838 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42839 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42840 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42841
42842 #. type: textblock
42843 #: ../tools/virt-list-partitions.pl:283
42844 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42845 msgstr "© Red Hat Inc., 2009–2010"
42846
42847 #. type: textblock
42848 #: ../tools/virt-make-fs.pl:37
42849 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42850 msgstr ""
42851
42852 #. type: verbatim
42853 #: ../tools/virt-make-fs.pl:41
42854 #, no-wrap
42855 msgid ""
42856 " virt-make-fs [--options] input.tar output.img\n"
42857 "\n"
42858 msgstr ""
42859
42860 #. type: verbatim
42861 #: ../tools/virt-make-fs.pl:43
42862 #, no-wrap
42863 msgid ""
42864 " virt-make-fs [--options] input.tar.gz output.img\n"
42865 "\n"
42866 msgstr ""
42867
42868 #. type: verbatim
42869 #: ../tools/virt-make-fs.pl:45
42870 #, no-wrap
42871 msgid ""
42872 " virt-make-fs [--options] directory output.img\n"
42873 "\n"
42874 msgstr ""
42875
42876 #. type: textblock
42877 #: ../tools/virt-make-fs.pl:49
42878 msgid ""
42879 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42880 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42881 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42882 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42883 "you want to attach these filesystems to existing virtual machines (eg. to "
42884 "import large amounts of read-only data to a VM)."
42885 msgstr ""
42886
42887 #. type: textblock
42888 #: ../tools/virt-make-fs.pl:57
42889 msgid "Basic usage is:"
42890 msgstr ""
42891
42892 #. type: verbatim
42893 #: ../tools/virt-make-fs.pl:59
42894 #, no-wrap
42895 msgid ""
42896 " virt-make-fs input output.img\n"
42897 "\n"
42898 msgstr ""
42899
42900 #. type: textblock
42901 #: ../tools/virt-make-fs.pl:61
42902 msgid ""
42903 "where C<input> is either a directory containing files that you want to add, "
42904 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42905 "C<output.img> is a disk image.  The input type is detected automatically.  "
42906 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42907 "extra flags (see L</OPTIONS> below)."
42908 msgstr ""
42909
42910 #. type: =head2
42911 #: ../tools/virt-make-fs.pl:67
42912 msgid "FILESYSTEM TYPE"
42913 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42914
42915 #. type: textblock
42916 #: ../tools/virt-make-fs.pl:69
42917 msgid ""
42918 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42919 "libguestfs supports can be used (but I<not> read-only formats like "
42920 "ISO9660).  Here are some of the more common choices:"
42921 msgstr ""
42922
42923 #. type: =item
42924 #: ../tools/virt-make-fs.pl:75
42925 msgid "I<ext3>"
42926 msgstr "I<ext3>"
42927
42928 #. type: textblock
42929 #: ../tools/virt-make-fs.pl:77
42930 msgid ""
42931 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42932 "you are not going to use the filesystem in a way that requires the journal, "
42933 "then this is just wasted overhead."
42934 msgstr ""
42935
42936 #. type: =item
42937 #: ../tools/virt-make-fs.pl:81
42938 msgid "I<ntfs> or I<vfat>"
42939 msgstr "I<ntfs> або I<vfat>"
42940
42941 #. type: textblock
42942 #: ../tools/virt-make-fs.pl:83
42943 msgid "Useful if exporting data to a Windows guest."
42944 msgstr ""
42945
42946 #. type: textblock
42947 #: ../tools/virt-make-fs.pl:85
42948 msgid ""
42949 "I<Note for vfat>: The tar archive or local directory must only contain files "
42950 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42951 "program running within libguestfs is unable to change the ownership of non-"
42952 "root files, since vfat itself does not support this."
42953 msgstr ""
42954
42955 #. type: =item
42956 #: ../tools/virt-make-fs.pl:90
42957 msgid "I<minix>"
42958 msgstr "I<minix>"
42959
42960 #. type: textblock
42961 #: ../tools/virt-make-fs.pl:92
42962 msgid ""
42963 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42964 "total filesystem size."
42965 msgstr ""
42966
42967 #. type: =head3
42968 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42969 #: ../tools/virt-make-fs.pl:149
42970 msgid "EXAMPLE"
42971 msgstr "ПРИКЛАД"
42972
42973 #. type: verbatim
42974 #: ../tools/virt-make-fs.pl:99
42975 #, no-wrap
42976 msgid ""
42977 " virt-make-fs --type=minix input minixfs.img\n"
42978 "\n"
42979 msgstr ""
42980
42981 #. type: =head2
42982 #: ../tools/virt-make-fs.pl:101
42983 msgid "TO PARTITION OR NOT TO PARTITION"
42984 msgstr ""
42985
42986 #. type: textblock
42987 #: ../tools/virt-make-fs.pl:103
42988 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42989 msgstr ""
42990
42991 #. type: textblock
42992 #: ../tools/virt-make-fs.pl:105
42993 msgid ""
42994 "Adding a partition can make the disk image more compatible with certain "
42995 "virtualized operating systems which don't expect to see a filesystem "
42996 "directly located on a block device (Linux doesn't care and will happily "
42997 "handle both types)."
42998 msgstr ""
42999
43000 #. type: textblock
43001 #: ../tools/virt-make-fs.pl:110
43002 msgid ""
43003 "On the other hand, if you have a partition table then the output image is no "
43004 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
43005 "directly on a partitioned disk image.  (However libguestfs tools such as "
43006 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
43007 msgstr ""
43008
43009 #. type: textblock
43010 #: ../tools/virt-make-fs.pl:118
43011 msgid "Add an MBR partition:"
43012 msgstr ""
43013
43014 #. type: verbatim
43015 #: ../tools/virt-make-fs.pl:120
43016 #, no-wrap
43017 msgid ""
43018 " virt-make-fs --partition -- input disk.img\n"
43019 "\n"
43020 msgstr ""
43021
43022 #. type: textblock
43023 #: ../tools/virt-make-fs.pl:122
43024 msgid ""
43025 "If the output disk image could be terabyte-sized or larger, it's better to "
43026 "use an EFI/GPT-compatible partition table:"
43027 msgstr ""
43028
43029 #. type: verbatim
43030 #: ../tools/virt-make-fs.pl:125
43031 #, no-wrap
43032 msgid ""
43033 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
43034 "\n"
43035 msgstr ""
43036
43037 #. type: =head2
43038 #: ../tools/virt-make-fs.pl:127
43039 msgid "EXTRA SPACE"
43040 msgstr ""
43041
43042 #. type: textblock
43043 #: ../tools/virt-make-fs.pl:129
43044 msgid ""
43045 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
43046 "the files that it contains, but might have extra space.  Depending on how "
43047 "you are going to use the output, you might think this extra space is wasted "
43048 "and want to minimize it, or you might want to leave space so that more files "
43049 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
43050 "but you can use the I<--size> flag to leave space in the filesystem if you "
43051 "want it."
43052 msgstr ""
43053
43054 #. type: textblock
43055 #: ../tools/virt-make-fs.pl:137
43056 msgid ""
43057 "An alternative way to leave extra space but not make the output image any "
43058 "bigger is to use an alternative disk image format (instead of the default "
43059 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
43060 "image format (check your hypervisor supports this before using it).  This "
43061 "allows you to choose a large I<--size> but the extra space won't actually be "
43062 "allocated in the image until you try to store something in it."
43063 msgstr ""
43064
43065 #. type: textblock
43066 #: ../tools/virt-make-fs.pl:145
43067 msgid ""
43068 "Don't forget that you can also use local commands including L<resize2fs(8)> "
43069 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
43070 "to build another image from scratch."
43071 msgstr ""
43072
43073 #. type: verbatim
43074 #: ../tools/virt-make-fs.pl:151
43075 #, no-wrap
43076 msgid ""
43077 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43078 "\n"
43079 msgstr ""
43080 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
43081 "\n"
43082
43083 #. type: textblock
43084 #: ../tools/virt-make-fs.pl:179
43085 msgid "Enable debugging information."
43086 msgstr "Увімкнути виведення діагностичних даних."
43087
43088 #. type: =item
43089 #: ../tools/virt-make-fs.pl:185
43090 msgid "B<--size=E<lt>NE<gt>>"
43091 msgstr "B<--size=E<lt>NE<gt>>"
43092
43093 #. type: =item
43094 #: ../tools/virt-make-fs.pl:187
43095 msgid "B<--size=+E<lt>NE<gt>>"
43096 msgstr "B<--size=+E<lt>NE<gt>>"
43097
43098 #. type: =item
43099 #: ../tools/virt-make-fs.pl:189
43100 msgid "B<-s E<lt>NE<gt>>"
43101 msgstr "B<-s E<lt>NE<gt>>"
43102
43103 #. type: =item
43104 #: ../tools/virt-make-fs.pl:191
43105 msgid "B<-s +E<lt>NE<gt>>"
43106 msgstr "B<-s +E<lt>NE<gt>>"
43107
43108 #. type: textblock
43109 #: ../tools/virt-make-fs.pl:193
43110 msgid ""
43111 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
43112 msgstr ""
43113
43114 #. type: textblock
43115 #: ../tools/virt-make-fs.pl:196
43116 msgid ""
43117 "If this option is I<not> given, then the output image will be just large "
43118 "enough to contain all the files, with not much wasted space."
43119 msgstr ""
43120
43121 #. type: textblock
43122 #: ../tools/virt-make-fs.pl:199
43123 msgid ""
43124 "To choose a fixed size output disk, specify an absolute number followed by b/"
43125 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43126 "Petabytes or Exabytes.  This must be large enough to contain all the input "
43127 "files, else you will get an error."
43128 msgstr ""
43129
43130 #. type: textblock
43131 #: ../tools/virt-make-fs.pl:204
43132 msgid ""
43133 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
43134 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
43135 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
43136 "the input files, and (approximately) an extra 200 MB free space."
43137 msgstr ""
43138
43139 #. type: textblock
43140 #: ../tools/virt-make-fs.pl:210
43141 msgid ""
43142 "Note that virt-make-fs estimates free space, and therefore will not produce "
43143 "filesystems containing precisely the free space requested.  (It is much more "
43144 "expensive and time-consuming to produce a filesystem which has precisely the "
43145 "desired free space)."
43146 msgstr ""
43147
43148 #. type: =item
43149 #: ../tools/virt-make-fs.pl:219
43150 msgid "B<--format=E<lt>fmtE<gt>>"
43151 msgstr ""
43152
43153 #. type: =item
43154 #: ../tools/virt-make-fs.pl:221
43155 msgid "B<-F E<lt>fmtE<gt>>"
43156 msgstr ""
43157
43158 #. type: textblock
43159 #: ../tools/virt-make-fs.pl:223
43160 msgid "Choose the output disk image format."
43161 msgstr ""
43162
43163 #. type: textblock
43164 #: ../tools/virt-make-fs.pl:225
43165 msgid "The default is C<raw> (raw sparse disk image)."
43166 msgstr ""
43167
43168 #. type: textblock
43169 #: ../tools/virt-make-fs.pl:227
43170 msgid ""
43171 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
43172 "that would really make sense here is C<qcow2>."
43173 msgstr ""
43174
43175 #. type: =item
43176 #: ../tools/virt-make-fs.pl:234
43177 msgid "B<--type=E<lt>fsE<gt>>"
43178 msgstr ""
43179
43180 #. type: =item
43181 #: ../tools/virt-make-fs.pl:236
43182 msgid "B<-t E<lt>fsE<gt>>"
43183 msgstr ""
43184
43185 #. type: textblock
43186 #: ../tools/virt-make-fs.pl:238
43187 msgid "Choose the output filesystem type."
43188 msgstr ""
43189
43190 #. type: textblock
43191 #: ../tools/virt-make-fs.pl:240
43192 msgid "The default is C<ext2>."
43193 msgstr "Типовим значенням є C<ext2>."
43194
43195 #. type: textblock
43196 #: ../tools/virt-make-fs.pl:242
43197 msgid ""
43198 "Any filesystem which is supported read-write by libguestfs can be used here."
43199 msgstr ""
43200
43201 #. type: =item
43202 #: ../tools/virt-make-fs.pl:249
43203 msgid "B<--partition>"
43204 msgstr "B<--partition>"
43205
43206 #. type: =item
43207 #: ../tools/virt-make-fs.pl:251
43208 msgid "B<--partition=E<lt>parttypeE<gt>>"
43209 msgstr ""
43210
43211 #. type: textblock
43212 #: ../tools/virt-make-fs.pl:253
43213 msgid ""
43214 "If specified, this flag adds an MBR partition table to the output disk image."
43215 msgstr ""
43216
43217 #. type: textblock
43218 #: ../tools/virt-make-fs.pl:256
43219 msgid ""
43220 "You can change the partition table type, eg. I<--partition=gpt> for large "
43221 "disks."
43222 msgstr ""
43223
43224 #. type: textblock
43225 #: ../tools/virt-make-fs.pl:259
43226 msgid ""
43227 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
43228 "might consider the next parameter to be the partition type.  For example:"
43229 msgstr ""
43230
43231 #. type: verbatim
43232 #: ../tools/virt-make-fs.pl:263
43233 #, no-wrap
43234 msgid ""
43235 " virt-make-fs --partition input.tar output.img\n"
43236 "\n"
43237 msgstr ""
43238
43239 #. type: textblock
43240 #: ../tools/virt-make-fs.pl:265
43241 msgid ""
43242 "would cause virt-make-fs to think you wanted to use a partition type of "
43243 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
43244 "dash) between options and the input and output arguments:"
43245 msgstr ""
43246
43247 #. type: verbatim
43248 #: ../tools/virt-make-fs.pl:269
43249 #, no-wrap
43250 msgid ""
43251 " virt-make-fs --partition -- input.tar output.img\n"
43252 "\n"
43253 msgstr ""
43254
43255 #. type: textblock
43256 #: ../tools/virt-make-fs.pl:271
43257 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
43258 msgstr ""
43259
43260 #. type: textblock
43261 #: ../tools/virt-make-fs.pl:559
43262 msgid ""
43263 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43264 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43265 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43266 msgstr ""
43267 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
43268 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
43269 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
43270
43271 #. type: textblock
43272 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
43273 msgid ""
43274 "When reporting bugs, please enable debugging and capture the I<complete> "
43275 "output:"
43276 msgstr ""
43277
43278 #. type: verbatim
43279 #: ../tools/virt-make-fs.pl:576
43280 #, no-wrap
43281 msgid ""
43282 " export LIBGUESTFS_DEBUG=1\n"
43283 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43284 "\n"
43285 msgstr ""
43286 " export LIBGUESTFS_DEBUG=1\n"
43287 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
43288 "\n"
43289
43290 #. type: textblock
43291 #: ../tools/virt-make-fs.pl:579
43292 msgid ""
43293 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
43294 "redhat.com/>"
43295 msgstr ""
43296
43297 #. type: textblock
43298 #: ../tools/virt-tar.pl:33
43299 msgid "virt-tar - Extract or upload files to a virtual machine"
43300 msgstr ""
43301
43302 #. type: verbatim
43303 #: ../tools/virt-tar.pl:37
43304 #, no-wrap
43305 msgid ""
43306 " virt-tar [--options] -x domname directory tarball\n"
43307 "\n"
43308 msgstr ""
43309
43310 #. type: verbatim
43311 #: ../tools/virt-tar.pl:39
43312 #, no-wrap
43313 msgid ""
43314 " virt-tar [--options] -u domname tarball directory\n"
43315 "\n"
43316 msgstr ""
43317
43318 #. type: verbatim
43319 #: ../tools/virt-tar.pl:41
43320 #, no-wrap
43321 msgid ""
43322 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
43323 "\n"
43324 msgstr ""
43325
43326 #. type: verbatim
43327 #: ../tools/virt-tar.pl:43
43328 #, no-wrap
43329 msgid ""
43330 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
43331 "\n"
43332 msgstr ""
43333
43334 #. type: =head2
43335 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
43336 msgid "NOTE"
43337 msgstr "ПРИМІТКА"
43338
43339 #. type: textblock
43340 #: ../tools/virt-tar.pl:47
43341 msgid ""
43342 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
43343 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
43344 msgstr ""
43345
43346 #. type: textblock
43347 #: ../tools/virt-tar.pl:52
43348 msgid "Download C</home> from the VM into a local tarball:"
43349 msgstr ""
43350
43351 #. type: verbatim
43352 #: ../tools/virt-tar.pl:54
43353 #, no-wrap
43354 msgid ""
43355 " virt-tar -x domname /home home.tar\n"
43356 "\n"
43357 msgstr ""
43358
43359 #. type: verbatim
43360 #: ../tools/virt-tar.pl:56
43361 #, no-wrap
43362 msgid ""
43363 " virt-tar -zx domname /home home.tar.gz\n"
43364 "\n"
43365 msgstr ""
43366
43367 #. type: textblock
43368 #: ../tools/virt-tar.pl:58
43369 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
43370 msgstr ""
43371
43372 #. type: verbatim
43373 #: ../tools/virt-tar.pl:60
43374 #, no-wrap
43375 msgid ""
43376 " virt-tar -u domname uploadstuff.tar /tmp\n"
43377 "\n"
43378 msgstr ""
43379
43380 #. type: verbatim
43381 #: ../tools/virt-tar.pl:62
43382 #, no-wrap
43383 msgid ""
43384 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
43385 "\n"
43386 msgstr ""
43387
43388 #. type: textblock
43389 #: ../tools/virt-tar.pl:66
43390 msgid ""
43391 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
43392 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
43393 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
43394 msgstr ""
43395
43396 #. type: textblock
43397 #: ../tools/virt-tar.pl:71
43398 msgid ""
43399 "You can use I<-x> (extract) on live virtual machines, but you might get "
43400 "inconsistent results or errors if there is filesystem activity inside the "
43401 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
43402 "work, but the only way to guarantee consistent results is if the virtual "
43403 "machine is shut down."
43404 msgstr ""
43405
43406 #. type: textblock
43407 #: ../tools/virt-tar.pl:79
43408 msgid ""
43409 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
43410 "parts of a guest filesystem.  There are many possibilities: making backups, "
43411 "uploading data files, snooping on guest activity, fixing or customizing "
43412 "guests, etc."
43413 msgstr ""
43414
43415 #. type: textblock
43416 #: ../tools/virt-tar.pl:84
43417 msgid ""
43418 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
43419 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
43420 "should look at the L<guestfish(1)> tool."
43421 msgstr ""
43422
43423 #. type: textblock
43424 #: ../tools/virt-tar.pl:88
43425 msgid ""
43426 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
43427 "its contents (recursively) from the virtual machine into a local tarball.  "
43428 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
43429 "virtual machine.  You cannot use these two options together."
43430 msgstr ""
43431
43432 #. type: textblock
43433 #: ../tools/virt-tar.pl:94
43434 msgid ""
43435 "In addition, you may need to use the I<-z> (gZip) option to enable "
43436 "compression.  When uploading, you have to specify I<-z> if the upload file "
43437 "is compressed because virt-tar won't detect this on its own."
43438 msgstr ""
43439
43440 #. type: textblock
43441 #: ../tools/virt-tar.pl:98
43442 msgid ""
43443 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
43444 "example it cannot do PKZip files or bzip2 compression.  If you want that "
43445 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
43446 "the L<libguestfs(3)> API)."
43447 msgstr ""
43448
43449 #. type: =item
43450 #: ../tools/virt-tar.pl:160
43451 msgid "B<--extract>"
43452 msgstr "B<--extract>"
43453
43454 #. type: =item
43455 #: ../tools/virt-tar.pl:162
43456 msgid "B<--download>"
43457 msgstr "B<--download>"
43458
43459 #. type: =item
43460 #: ../tools/virt-tar.pl:164
43461 msgid "B<-u>"
43462 msgstr "B<-u>"
43463
43464 #. type: =item
43465 #: ../tools/virt-tar.pl:166
43466 msgid "B<--upload>"
43467 msgstr "B<--upload>"
43468
43469 #. type: textblock
43470 #: ../tools/virt-tar.pl:168
43471 msgid ""
43472 "Use I<-x> to extract (download) a directory from a virtual machine to a "
43473 "local tarball."
43474 msgstr ""
43475
43476 #. type: textblock
43477 #: ../tools/virt-tar.pl:171
43478 msgid ""
43479 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
43480 "Please read the L</WARNING> section above before using this option."
43481 msgstr ""
43482
43483 #. type: textblock
43484 #: ../tools/virt-tar.pl:175
43485 msgid "You must specify exactly one of these options."
43486 msgstr ""
43487
43488 #. type: =item
43489 #: ../tools/virt-tar.pl:181
43490 msgid "B<-z>"
43491 msgstr "B<-z>"
43492
43493 #. type: =item
43494 #: ../tools/virt-tar.pl:183
43495 msgid "B<--gzip>"
43496 msgstr "B<--gzip>"
43497
43498 #. type: textblock
43499 #: ../tools/virt-tar.pl:185
43500 msgid "Specify that the input or output tarball is gzip-compressed."
43501 msgstr ""
43502
43503 #. type: textblock
43504 #: ../tools/virt-tar.pl:298
43505 msgid ""
43506 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43507 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43508 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43509 "org/>."
43510 msgstr ""
43511 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43512 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43513 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43514 "org/>."
43515
43516 #. type: textblock
43517 #: ../tools/virt-win-reg.pl:37
43518 msgid ""
43519 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
43520 msgstr ""
43521
43522 #. type: verbatim
43523 #: ../tools/virt-win-reg.pl:41
43524 #, no-wrap
43525 msgid ""
43526 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43527 "\n"
43528 msgstr ""
43529
43530 #. type: verbatim
43531 #: ../tools/virt-win-reg.pl:43
43532 #, no-wrap
43533 msgid ""
43534 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43535 "\n"
43536 msgstr ""
43537
43538 #. type: verbatim
43539 #: ../tools/virt-win-reg.pl:45
43540 #, no-wrap
43541 msgid ""
43542 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43543 "\n"
43544 msgstr ""
43545
43546 #. type: verbatim
43547 #: ../tools/virt-win-reg.pl:47
43548 #, no-wrap
43549 msgid ""
43550 " virt-win-reg --merge domname [input.reg ...]\n"
43551 "\n"
43552 msgstr ""
43553
43554 #. type: verbatim
43555 #: ../tools/virt-win-reg.pl:49
43556 #, no-wrap
43557 msgid ""
43558 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43559 "\n"
43560 msgstr ""
43561
43562 #. type: textblock
43563 #: ../tools/virt-win-reg.pl:53
43564 msgid ""
43565 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43566 "virtual machines.  If you do this, you I<will> get irreversible disk "
43567 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
43568 "but doesn't catch all cases."
43569 msgstr ""
43570
43571 #. type: textblock
43572 #: ../tools/virt-win-reg.pl:58
43573 msgid ""
43574 "Modifying the Windows Registry is an inherently risky operation.  The format "
43575 "is deliberately obscure and undocumented, and Registry changes can leave the "
43576 "system unbootable.  Therefore when using the I<--merge> option, make sure "
43577 "you have a reliable backup first."
43578 msgstr ""
43579
43580 #. type: textblock
43581 #: ../tools/virt-win-reg.pl:65
43582 msgid ""
43583 "This program can export and merge Windows Registry entries from a Windows "
43584 "guest."
43585 msgstr ""
43586
43587 #. type: textblock
43588 #: ../tools/virt-win-reg.pl:68
43589 msgid ""
43590 "The first parameter is the libvirt guest name or the raw disk image of a "
43591 "Windows guest."
43592 msgstr ""
43593
43594 #. type: textblock
43595 #: ../tools/virt-win-reg.pl:71
43596 msgid ""
43597 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43598 "exported (recursively).  For example:"
43599 msgstr ""
43600
43601 #. type: verbatim
43602 #: ../tools/virt-win-reg.pl:74
43603 #, no-wrap
43604 msgid ""
43605 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43606 "\n"
43607 msgstr ""
43608 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43609 "\n"
43610
43611 #. type: textblock
43612 #: ../tools/virt-win-reg.pl:76
43613 msgid ""
43614 "You can also display single values from within registry keys, for example:"
43615 msgstr ""
43616
43617 #. type: verbatim
43618 #: ../tools/virt-win-reg.pl:79
43619 #, no-wrap
43620 msgid ""
43621 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43622 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43623 " Windows 7 Enterprise\n"
43624 "\n"
43625 msgstr ""
43626 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43627 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43628 " Windows 7 Enterprise\n"
43629 "\n"
43630
43631 #. type: textblock
43632 #: ../tools/virt-win-reg.pl:83
43633 msgid ""
43634 "With I<--merge>, you can merge a textual regedit file into the Windows "
43635 "Registry:"
43636 msgstr ""
43637
43638 #. type: verbatim
43639 #: ../tools/virt-win-reg.pl:86
43640 #, no-wrap
43641 msgid ""
43642 " $ virt-win-reg --merge Windows7 changes.reg\n"
43643 "\n"
43644 msgstr ""
43645 " $ virt-win-reg --merge Windows7 changes.reg\n"
43646 "\n"
43647
43648 #. type: textblock
43649 #: ../tools/virt-win-reg.pl:90
43650 msgid ""
43651 "This program is only meant for simple access to the registry.  If you want "
43652 "to do complicated things with the registry, we suggest you download the "
43653 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43654 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43655 "L<hivexregedit(1)>."
43656 msgstr ""
43657
43658 #. type: =item
43659 #: ../tools/virt-win-reg.pl:159
43660 msgid "B<--merge>"
43661 msgstr "B<--merge>"
43662
43663 #. type: textblock
43664 #: ../tools/virt-win-reg.pl:161
43665 msgid ""
43666 "In merge mode, this merges a textual regedit file into the Windows Registry "
43667 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
43668 "displays or exports Registry entries instead."
43669 msgstr ""
43670
43671 #. type: textblock
43672 #: ../tools/virt-win-reg.pl:165
43673 msgid ""
43674 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43675 "result in disk corruption.  However exporting (without this flag)  is always "
43676 "safe."
43677 msgstr ""
43678
43679 #. type: =item
43680 #: ../tools/virt-win-reg.pl:173
43681 msgid "B<--encoding> UTF-16LE|ASCII"
43682 msgstr "B<--encoding> UTF-16LE|ASCII"
43683
43684 #. type: textblock
43685 #: ../tools/virt-win-reg.pl:175
43686 msgid ""
43687 "When merging (only), you may need to specify the encoding for strings to be "
43688 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43689 "(3)/ENCODING STRINGS>."
43690 msgstr ""
43691
43692 #. type: textblock
43693 #: ../tools/virt-win-reg.pl:179
43694 msgid ""
43695 "The default is to use UTF-16LE, which should work with recent versions of "
43696 "Windows."
43697 msgstr ""
43698
43699 #. type: =item
43700 #: ../tools/virt-win-reg.pl:186
43701 msgid "B<--unsafe-printable-strings>"
43702 msgstr "B<--unsafe-printable-strings>"
43703
43704 #. type: textblock
43705 #: ../tools/virt-win-reg.pl:188
43706 msgid ""
43707 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43708 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43709 "present."
43710 msgstr ""
43711
43712 #. type: textblock
43713 #: ../tools/virt-win-reg.pl:192
43714 msgid ""
43715 "This is unsafe and does not preserve the fidelity of strings in the original "
43716 "Registry for various reasons:"
43717 msgstr ""
43718
43719 #. type: textblock
43720 #: ../tools/virt-win-reg.pl:199
43721 msgid ""
43722 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43723 "other encodings will be corrupted by this transformation."
43724 msgstr ""
43725
43726 #. type: textblock
43727 #: ../tools/virt-win-reg.pl:204
43728 msgid ""
43729 "Assumes that everything which has type 1 or 2 is really a string and that "
43730 "everything else is not a string, but the type field in real Registries is "
43731 "not reliable."
43732 msgstr ""
43733
43734 #. type: textblock
43735 #: ../tools/virt-win-reg.pl:210
43736 msgid ""
43737 "Loses information about whether a zero codepoint followed the string in the "
43738 "Registry or not."
43739 msgstr ""
43740
43741 #. type: textblock
43742 #: ../tools/virt-win-reg.pl:215
43743 msgid ""
43744 "This all happens because the Registry itself contains no information about "
43745 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43746 msgstr ""
43747
43748 #. type: textblock
43749 #: ../tools/virt-win-reg.pl:219
43750 msgid ""
43751 "You should only use this option for quick hacking and debugging of the "
43752 "Registry contents, and I<never> use it if the output is going to be passed "
43753 "into another program or stored in another Registry."
43754 msgstr ""
43755
43756 #. type: =head1
43757 #: ../tools/virt-win-reg.pl:556
43758 msgid "SUPPORTED SYSTEMS"
43759 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43760
43761 #. type: textblock
43762 #: ../tools/virt-win-reg.pl:558
43763 msgid ""
43764 "The program currently supports Windows NT-derived guests starting with "
43765 "Windows XP through to at least Windows 7."
43766 msgstr ""
43767
43768 #. type: textblock
43769 #: ../tools/virt-win-reg.pl:561
43770 msgid "The following Registry keys are supported:"
43771 msgstr ""
43772
43773 #. type: =item
43774 #: ../tools/virt-win-reg.pl:565
43775 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43776 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43777
43778 #. type: =item
43779 #: ../tools/virt-win-reg.pl:567
43780 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43781 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43782
43783 #. type: =item
43784 #: ../tools/virt-win-reg.pl:569
43785 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43786 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43787
43788 #. type: =item
43789 #: ../tools/virt-win-reg.pl:571
43790 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43791 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43792
43793 #. type: =item
43794 #: ../tools/virt-win-reg.pl:573
43795 msgid "C<HKEY_USERS\\.DEFAULT>"
43796 msgstr "C<HKEY_USERS\\.DEFAULT>"
43797
43798 #. type: =item
43799 #: ../tools/virt-win-reg.pl:575
43800 msgid "C<HKEY_USERS\\I<SID>>"
43801 msgstr "C<HKEY_USERS\\I<SID>>"
43802
43803 #. type: textblock
43804 #: ../tools/virt-win-reg.pl:577
43805 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43806 msgstr ""
43807
43808 #. type: =item
43809 #: ../tools/virt-win-reg.pl:579
43810 msgid "C<HKEY_USERS\\I<username>>"
43811 msgstr "C<HKEY_USERS\\I<користувач>>"
43812
43813 #. type: textblock
43814 #: ../tools/virt-win-reg.pl:581
43815 msgid ""
43816 "where I<username> is a local user name (this is a libguestfs extension)."
43817 msgstr ""
43818
43819 #. type: textblock
43820 #: ../tools/virt-win-reg.pl:585
43821 msgid ""
43822 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43823 "C<HKEY_USERS>."
43824 msgstr ""
43825
43826 #. type: textblock
43827 #: ../tools/virt-win-reg.pl:588
43828 msgid ""
43829 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43830 "supported (there is no \"current user\")."
43831 msgstr ""
43832
43833 #. type: =head1
43834 #: ../tools/virt-win-reg.pl:591
43835 msgid "ENCODING"
43836 msgstr "КОДУВАННЯ"
43837
43838 #. type: textblock
43839 #: ../tools/virt-win-reg.pl:593
43840 msgid ""
43841 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43842 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43843 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43844 "Windows-style line endings, you may need to reencode the whole file before "
43845 "or after processing."
43846 msgstr ""
43847
43848 #. type: textblock
43849 #: ../tools/virt-win-reg.pl:599
43850 msgid ""
43851 "To reencode a file from Windows format to Linux (before processing it with "
43852 "the I<--merge> option), you would do something like this:"
43853 msgstr ""
43854
43855 #. type: verbatim
43856 #: ../tools/virt-win-reg.pl:602
43857 #, no-wrap
43858 msgid ""
43859 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43860 "\n"
43861 msgstr ""
43862 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43863 "\n"
43864
43865 #. type: textblock
43866 #: ../tools/virt-win-reg.pl:604
43867 msgid ""
43868 "To go in the opposite direction, after exporting and before sending the file "
43869 "to a Windows user, do something like this:"
43870 msgstr ""
43871
43872 #. type: verbatim
43873 #: ../tools/virt-win-reg.pl:607
43874 #, no-wrap
43875 msgid ""
43876 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43877 "\n"
43878 msgstr ""
43879 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43880 "\n"
43881
43882 #. type: textblock
43883 #: ../tools/virt-win-reg.pl:609
43884 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43885 msgstr ""
43886
43887 #. type: textblock
43888 #: ../tools/virt-win-reg.pl:611
43889 msgid ""
43890 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43891 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43892 "style (CRLF) line endings, like this:"
43893 msgstr ""
43894
43895 #. type: verbatim
43896 #: ../tools/virt-win-reg.pl:615
43897 #, no-wrap
43898 msgid ""
43899 " $ file software.reg\n"
43900 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43901 " with CRLF line terminators\n"
43902 "\n"
43903 msgstr ""
43904
43905 #. type: textblock
43906 #: ../tools/virt-win-reg.pl:619
43907 msgid "This file would need conversion before you could I<--merge> it."
43908 msgstr ""
43909
43910 #. type: =head1
43911 #: ../tools/virt-win-reg.pl:621
43912 msgid "CurrentControlSet etc."
43913 msgstr ""
43914
43915 #. type: textblock
43916 #: ../tools/virt-win-reg.pl:623
43917 msgid ""
43918 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43919 "Registry at the level of the hive file, and therefore you cannot modify "
43920 "these."
43921 msgstr ""
43922
43923 #. type: textblock
43924 #: ../tools/virt-win-reg.pl:627
43925 msgid ""
43926 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43927 "circumstances it might refer to another control set.  The way to find out is "
43928 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43929 msgstr ""
43930
43931 #. type: verbatim
43932 #: ../tools/virt-win-reg.pl:631
43933 #, no-wrap
43934 msgid ""
43935 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43936 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43937 " \"Current\"=dword:00000001\n"
43938 " \"Default\"=dword:00000001\n"
43939 " \"Failed\"=dword:00000000\n"
43940 " \"LastKnownGood\"=dword:00000002\n"
43941 "\n"
43942 msgstr ""
43943 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43944 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43945 " \"Current\"=dword:00000001\n"
43946 " \"Default\"=dword:00000001\n"
43947 " \"Failed\"=dword:00000000\n"
43948 " \"LastKnownGood\"=dword:00000002\n"
43949 "\n"
43950
43951 #. type: textblock
43952 #: ../tools/virt-win-reg.pl:638
43953 msgid "\"Current\" is the one which Windows will choose when it boots."
43954 msgstr ""
43955
43956 #. type: textblock
43957 #: ../tools/virt-win-reg.pl:640
43958 msgid ""
43959 "Similarly, other C<Current...> keys in the path may need to be replaced."
43960 msgstr ""
43961
43962 #. type: =head1
43963 #: ../tools/virt-win-reg.pl:643
43964 msgid "DELETING REGISTRY KEYS AND VALUES"
43965 msgstr ""
43966
43967 #. type: textblock
43968 #: ../tools/virt-win-reg.pl:645
43969 msgid "To delete a whole registry key, use the syntax:"
43970 msgstr ""
43971
43972 #. type: verbatim
43973 #: ../tools/virt-win-reg.pl:647
43974 #, no-wrap
43975 msgid ""
43976 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43977 "\n"
43978 msgstr ""
43979
43980 #. type: textblock
43981 #: ../tools/virt-win-reg.pl:649
43982 msgid "To delete a single value within a key, use the syntax:"
43983 msgstr ""
43984
43985 #. type: verbatim
43986 #: ../tools/virt-win-reg.pl:651
43987 #, no-wrap
43988 msgid ""
43989 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43990 " \"Value\"=-\n"
43991 "\n"
43992 msgstr ""
43993
43994 #. type: =head1
43995 #: ../tools/virt-win-reg.pl:654
43996 msgid "WINDOWS TIPS"
43997 msgstr ""
43998
43999 #. type: textblock
44000 #: ../tools/virt-win-reg.pl:656
44001 msgid ""
44002 "Note that some of these tips modify the guest disk image.  The guest I<must> "
44003 "be shut off, else you will get disk corruption."
44004 msgstr ""
44005
44006 #. type: =head2
44007 #: ../tools/virt-win-reg.pl:659
44008 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
44009 msgstr ""
44010
44011 #. type: textblock
44012 #: ../tools/virt-win-reg.pl:661
44013 msgid ""
44014 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
44015 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
44016 "is uploaded into C<C:\\>:"
44017 msgstr ""
44018
44019 #. type: verbatim
44020 #: ../tools/virt-win-reg.pl:665
44021 #, no-wrap
44022 msgid ""
44023 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44024 "\n"
44025 msgstr ""
44026 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
44027 "\n"
44028
44029 #. type: textblock
44030 #: ../tools/virt-win-reg.pl:667
44031 msgid "Prepare a regedit file containing the registry change:"
44032 msgstr ""
44033
44034 #. type: verbatim
44035 #: ../tools/virt-win-reg.pl:669
44036 #, no-wrap
44037 msgid ""
44038 " cat > test.reg <<'EOF'\n"
44039 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44040 " \"Test\"=\"c:\\\\test.bat\"\n"
44041 " EOF\n"
44042 "\n"
44043 msgstr ""
44044 " cat > test.reg <<'EOF'\n"
44045 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
44046 " \"Test\"=\"c:\\\\test.bat\"\n"
44047 " EOF\n"
44048 "\n"
44049
44050 #. type: textblock
44051 #: ../tools/virt-win-reg.pl:674
44052 msgid ""
44053 "In this example we use the key C<RunOnce> which means that the script will "
44054 "run precisely once when the first user logs in.  If you want it to run every "
44055 "time a user logs in, replace C<RunOnce> with C<Run>."
44056 msgstr ""
44057
44058 #. type: textblock
44059 #: ../tools/virt-win-reg.pl:678
44060 msgid "Now update the registry:"
44061 msgstr "Оновіть регістр:"
44062
44063 #. type: verbatim
44064 #: ../tools/virt-win-reg.pl:680
44065 #, no-wrap
44066 msgid ""
44067 " virt-win-reg --merge WindowsGuest test.reg\n"
44068 "\n"
44069 msgstr ""
44070
44071 #. type: =head2
44072 #: ../tools/virt-win-reg.pl:682
44073 msgid "INSTALLING A SERVICE"
44074 msgstr ""
44075
44076 #. type: textblock
44077 #: ../tools/virt-win-reg.pl:684
44078 msgid ""
44079 "This section assumes you are familiar with Windows services, and you either "
44080 "have a program which handles the Windows Service Control Protocol directly "
44081 "or you want to run any program using a service wrapper like SrvAny or the "
44082 "free RHSrvAny."
44083 msgstr ""
44084
44085 #. type: textblock
44086 #: ../tools/virt-win-reg.pl:689
44087 msgid ""
44088 "First upload the program and optionally the service wrapper.  In this case "
44089 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
44090 msgstr ""
44091
44092 #. type: verbatim
44093 #: ../tools/virt-win-reg.pl:693
44094 #, no-wrap
44095 msgid ""
44096 " guestfish -i -d WindowsGuest <<EOF\n"
44097 "   upload rhsrvany.exe /rhsrvany.exe\n"
44098 "   upload test.exe /test.exe\n"
44099 " EOF\n"
44100 "\n"
44101 msgstr ""
44102 " guestfish -i -d WindowsGuest <<EOF\n"
44103 "   upload rhsrvany.exe /rhsrvany.exe\n"
44104 "   upload test.exe /test.exe\n"
44105 " EOF\n"
44106 "\n"
44107
44108 #. type: textblock
44109 #: ../tools/virt-win-reg.pl:698
44110 msgid ""
44111 "Prepare a regedit file containing the registry changes.  In this example, "
44112 "the first registry change is needed for the service itself or the service "
44113 "wrapper (if used).  The second registry change is only needed because I am "
44114 "using the RHSrvAny service wrapper."
44115 msgstr ""
44116
44117 #. type: verbatim
44118 #: ../tools/virt-win-reg.pl:703
44119 #, no-wrap
44120 msgid ""
44121 " cat > service.reg <<'EOF'\n"
44122 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44123 " \"Type\"=dword:00000010\n"
44124 " \"Start\"=dword:00000002\n"
44125 " \"ErrorControl\"=dword:00000001\n"
44126 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44127 " \"DisplayName\"=\"RHSrvAny\"\n"
44128 " \"ObjectName\"=\"NetworkService\"\n"
44129 " \n"
44130 msgstr ""
44131 " cat > service.reg <<'EOF'\n"
44132 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
44133 " \"Type\"=dword:00000010\n"
44134 " \"Start\"=dword:00000002\n"
44135 " \"ErrorControl\"=dword:00000001\n"
44136 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
44137 " \"DisplayName\"=\"RHSrvAny\"\n"
44138 " \"ObjectName\"=\"NetworkService\"\n"
44139 " \n"
44140
44141 #. type: verbatim
44142 #: ../tools/virt-win-reg.pl:712
44143 #, no-wrap
44144 msgid ""
44145 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44146 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44147 " \"PWD\"=\"c:\\\\Temp\"\n"
44148 " EOF\n"
44149 "\n"
44150 msgstr ""
44151 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
44152 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
44153 " \"PWD\"=\"c:\\\\Temp\"\n"
44154 " EOF\n"
44155 "\n"
44156
44157 #. type: textblock
44158 #: ../tools/virt-win-reg.pl:723
44159 msgid ""
44160 "For use of C<ControlSet001> see the section above in this manual page.  You "
44161 "may need to adjust this according to the control set that is in use by the "
44162 "guest."
44163 msgstr ""
44164
44165 #. type: textblock
44166 #: ../tools/virt-win-reg.pl:729
44167 msgid ""
44168 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
44169 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
44170 "privileged account."
44171 msgstr ""
44172
44173 #. type: textblock
44174 #: ../tools/virt-win-reg.pl:735
44175 msgid ""
44176 "For the meaning of the magic numbers, see this Microsoft KB article: "
44177 "L<http://support.microsoft.com/kb/103000>."
44178 msgstr ""
44179
44180 #. type: textblock
44181 #: ../tools/virt-win-reg.pl:740
44182 msgid "Update the registry:"
44183 msgstr "Оновіть регістр:"
44184
44185 #. type: verbatim
44186 #: ../tools/virt-win-reg.pl:742
44187 #, no-wrap
44188 msgid ""
44189 " virt-win-reg --merge WindowsGuest service.reg\n"
44190 "\n"
44191 msgstr ""
44192
44193 #. type: textblock
44194 #: ../tools/virt-win-reg.pl:746
44195 msgid ""
44196 "Be careful when passing parameters containing C<\\> (backslash) in the "
44197 "shell.  Usually you will have to use 'single quotes' or double backslashes "
44198 "(but not both) to protect them from the shell."
44199 msgstr ""
44200
44201 #. type: textblock
44202 #: ../tools/virt-win-reg.pl:750
44203 msgid "Paths and value names are case-insensitive."
44204 msgstr ""
44205
44206 #. type: textblock
44207 #: ../tools/virt-win-reg.pl:759
44208 msgid ""
44209 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44210 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44211 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44212 msgstr ""
44213 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
44214 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
44215 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44216
44217 #. type: verbatim
44218 #: ../tools/virt-win-reg.pl:777
44219 #, no-wrap
44220 msgid ""
44221 " export LIBGUESTFS_DEBUG=1\n"
44222 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
44223 "\n"
44224 msgstr ""
44225
44226 #. type: textblock
44227 #: ../tools/virt-win-reg.pl:780
44228 msgid ""
44229 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
44230 "redhat.com/>"
44231 msgstr ""